how to extract apk from android device without rooting the device

want to extract apk from android device without any 3rd party app and without rooting the device
EXTRACT APK FROM ANDROID DEVICE USING ADB WITHOUT ROOTING

Submitted by surinder83singh On Tuesday, 13 October 2015.
Category: Javascript

0
1 Answers.
 
Super User
laser

Re:how to extract apk from android device without rooting the device

first of all setup adb using android sdk
then attach device to usd, turn on developer mode , debug mode

then from comand prompt run following command

it will list the installed app
adb shell pm list packages

Result:

.... 
package:com.google.android.apps.uploader 
package:com.google.android.backup 
package:com.google.android.feedback 
package:com.google.android.gm 
package:com.google.android.gms 
package:com.google.android.googlequicksearchbox 
....


Example: Extracting com.android.camera

get the full path using following command
adb shell pm path com.android.camera

Result will be something like:
package:/system/app/LegacyCamera/LegacyCamera.apk



then pull then app from device to current working directly from where u are running adb command
adb pull /system/app/LegacyCamera/LegacyCamera.apk
Submitted by Super User On Tuesday, 13 October 2015
0