User Tools

Site Tools


android

This is an old revision of the document!


Android

Android Studio Ignored Files

  • build (and build directory if there are multiple modules in a project)
  • .idea
  • *.iml
  • local.properties
  • .DS_Store
  • .gradle
  • .cxx

Pull APK from device

Get the list of installed packages to determine what to pull:

> adb shell pm list packages | grep tom
package:com.customermobile.preload.vzw
package:com.fanqies.tomatofn

With the package name, we can get the actual file name and location of the APK using:

> adb shell pm path com.fanqies.tomatofn
package:/data/app/com.fanqies.tomatofn-g0zd0oekwgIETU7mS62UEQ==/base.apk

Then pull it:

adb pull /data/app/com.fanqies.tomatofn-g0zd0oekwgIETU7mS62UEQ==/base.apk

This will result in an APK file “base.apk” downloaded onto your computer. Rename it appropriately:

mv base.apk tomoato.apk
android.1577383216.txt.gz · Last modified: 2019/12/26 18:00 by jrseti