Microsoft Windows [Version 10.0.19045.5854] 

(c) Microsoft Corporation. All rights reserved.

To extract apk file of an android application from android device , first enable android device in Developer mode . Then enable usb debugging.

After that connect the device using data cable. now find the path of your adb tool where is located. After that using cd command go to the platform-tools where you should find the adb tool and follow the below procedure as done myself and extracted successfully the apk file of the application.

 

C:\Users\User>cd C:\Users\UserAppData\Local\Android\Sdk\platform-tools C:\Users\User\AppData\Local\Android\Sdk\platform-tools>adb shell pm list packages

package:com.alibaba.aliexpresshd                                                                               package:com.osp.app.signin                                                                                           package:com.samsung.android.aremoji                                                                         package:com.samsung.clipboardsaveservice                                                                 package:com.sec.automation                                                                                         package:com.whereismytrain.android                                                                             package:com.scp.scpdatahistor 

C:\Users\User\AppData\Local\Android\Sdk\platform-tools>adb shell pm path com.scp.scpdatahistory

                                                                                                 

 Output: package:/data/app/~~WQtGFye7dHmW-8VOpEiLxA==/com.scp.scpdatahistory-6svhWIZxSx5y7D2WISBT0w==/base.apk

C:\Users\User\AppData\Local\Android\Sdk\platform-tools>adb pull /data/app/~~WQtGFye7dHmW-8VOpEiLxA==/com.scp.scpdatahistory-6svhWIZxSx5y7D2WISBT0w==/base.apk E:APKsSCPDataHistory.apk  

 

Output: /data/app/~~WQtGFye7dHmW-8VOpEiLxA==/com.scp.scpdatahistory-6svhWIZxSx5y7D2WISBT0w==/base.apk: 1 file pulled, 0 skipped. 36.5 MB/s (31067843 bytes in 0.811 

 

C:\Users\User\AppData\Local\Android\Sdk\platform-tools>