Hi, 

When I use "adb install" to install an apk, everything works and I got the 
dex2oat cmd line from logcat. 
But when I use the dex2oat cmd line directly from adb shell, it failed and 
complained about the apk file is invalid
Can any one please give me some help ?
Thanks :)

-------------------------
When using "adb install", the command line from logcat is as below:
I/dex2oat ( 5662): /system/bin/dex2oat --zip-fd=6 
--zip-location=/data/app/com.example.dongl.test1-1/base.apk --oat-fd=7 
--oat-location=/data/dalvik-cache/arm64/data@[email protected][email protected]@classes.dex
 
--instruction-set=arm64 --instruction-set-features=div --runtime-arg 
-Xms64m --runtime-arg -Xmx512m

-------------------------
how ever, when I try to call this command line directly from adb, it does 
not work any more. Here is the command line I am using:
"adb shell /system/bin/dex2oat --zip-fd=6 
--zip-location=/data/app/com.example.dongl.test1-1/base.apk --oat-fd=7 
--oat-location=/data/dalvik-cache/arm64/data@[email protected][email protected]@classes.dex
 
--instruction-set=arm64 --instruction-set-features=div --runtime-arg 
-Xms64m --runtime-arg -Xmx512m"
-------------------------
The error msg is:
"E/dex2oat ( 5942): Failed to open zip from file descriptor for 
'/data/app/com.example.dongl.test1-1/base.apk': Invalid file"

Your help will be greatly appreciated





-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/da1ac3d3-40ad-4be7-8417-0ad76ac88c76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to