ADB Help
Hi,
yes there is a solution to install AA apps without publishing them in the playstore. It's quite easy look here :
I tested it myself.
This is not so easy for me. I've been struggling to get the method in the above link to work for installing spotify. I have adb running on my pc, my device is recognized, and I was able to successfully push the spotify.apk to my phone, but I'm getting an error when I try to run the second command. Can someone please help me out?
C:\android-sdk-windows\platform-tools>adb shell pm install -i "com.android.vending" -r /sdcard/spotify.apk
java.lang.ClassNotFoundException: Didn't find class "com.android.commands.pm.Pm" on path: DexPathList[[zip file "/system/framework/pm.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
Suppressed: java.io.IOException: Failed to open oat file from dex location '/system/framework/pm.jar'
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:295)
at dalvik.system.DexFile.<init>(DexFile.java:80)
at dalvik.system.DexFile.<init>(DexFile.java:59)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
at dalvik.system.DexPathList.<init>(DexPathList.java:109)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:38)
at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:128)
at java.lang.ClassLoader.access$000(ClassLoader.java:65)
at java.lang.ClassLoader$SystemClassLoader.<clinit>(ClassLoader.java:81)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:137)
Caused by: java.io.IOException: Failed to open oat file from /system/framework/arm/pm.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
... 13 more
Caused by: java.io.IOException:
... 13 more
Caused by: java.io.IOException: Failed to remove obsolete file from /data/dalvik-cache/arm/
[email protected]@
[email protected] when searching for dex file /system/framework/pm.jar: Permission denied
... 13 more
Suppressed: java.lang.ClassNotFoundException: com.android.commands.pm.Pm
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 1 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available