Android: Unable to install signed apk file

2,730 views
Skip to first unread message

Alex Schimp

unread,
Mar 29, 2012, 3:09:03 PM3/29/12
to rhom...@googlegroups.com
Hi,
 
I've been driving myself crazy trying to figure this out.  I can't get a signed production version of my app to install on the Android simulator or real device.  A debug version of the app installs perfectly, so I don't see why the signed version won't.  I checked the output of the rake cmd, but didn't find any errors.  I tried the production version using the auto-generated certificate and also with one that I created myself, but neither works.
 
The build is using the Android 2.1 SDK, and I have tried installing it on Android 2.1 simulator, Android 4.0 simulator, and an Android 2.3.3 actual device.
 
Any ideas?
 
Thanks,
Alex Schimp

Mark Zweedijk

unread,
Mar 30, 2012, 3:00:14 AM3/30/12
to rhom...@googlegroups.com
Have you changed the default settings of your phone? Look at Settings --> Applications --> Development.

Op donderdag 29 maart 2012 21:09:03 UTC+2 schreef Alex Schimp het volgende:

Alex Schimp

unread,
Mar 30, 2012, 9:51:37 AM3/30/12
to rhom...@googlegroups.com
I have the "Allow installation of non-market apps" option enabled.  I looked at Settings -> Applications -> Development and everything was enabled there as well.  But I'm not trying to install a development (debug) version - that already works.  The problem I'm having is with the signed production version.
 
Thanks,
Alex Schimp

tom

unread,
Mar 30, 2012, 10:06:37 AM3/30/12
to rhom...@googlegroups.com
can u post the adb log while u try to install?


--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/YA0KQ6akFKAJ.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.

Alex Schimp

unread,
Mar 30, 2012, 10:23:26 AM3/30/12
to rhom...@googlegroups.com
How to I get the adb log?  The method I'm using to install is to put the apk file in my public dropbox folder, then go into the android simulator and download it, and try to install it.
 
Thanks,
Alex
To unsubscribe from this group, send email to rhomobile+unsubscribe@googlegroups.com.

tom

unread,
Mar 30, 2012, 10:28:30 AM3/30/12
to rhom...@googlegroups.com
adb logcat in a new shell
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/BmWNco3bjQAJ.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.

Alex Schimp

unread,
Mar 30, 2012, 12:58:10 PM3/30/12
to rhom...@googlegroups.com
Here's the relevant part of the adb log.
 
The main things that stand out to me are " No content provider found for permission revoke: file:
///mnt/sdcard/Download/Seed to Harvest_signed.apk" and "Package com.alex_software_development.seedtoharvest has
no certificates at entry assets/apps/app/AmountUnit/amount_unit.iseq; ignoring!"
The installation error code is -103, but I don't have any idea what that means.
 
I/ActivityManager(   82): START {act=android.intent.action.VIEW dat=file:///mnt/
sdcard/Download/Seed to Harvest_signed.apk typ=application/vnd.android.package-a
rchive flg=0x10000001 cmp=com.android.packageinstaller/.PackageInstallerActivity
} from pid 308
W/WindowManager(   82): Failure taking screenshot for (180x300) to layer 21015
I/WindowManager(   82): createSurface Window{41545578 Starting com.android.packa
geinstaller paused=false}: DRAW NOW PENDING
I/ActivityManager(   82): Start proc com.android.packageinstaller for activity c
om.android.packageinstaller/.PackageInstallerActivity: pid=566 uid=10021 gids={}
W/NetworkManagementSocketTagger(   82): setKernelCountSet(10021, 1) failed with
errno -2
W/NetworkManagementSocketTagger(   82): setKernelCountSet(10008, 0) failed with
errno -2
I/WindowManager(   82): createSurface Window{415d11e0 com.android.packageinstall
er/com.android.packageinstaller.PackageInstallerActivity paused=false}: DRAW NOW
 PENDING
W/InputManagerService(   82): Starting input on non-focused client com.android.i
nternal.view.IInputMethodClient$Stub$Proxy@415f55d8 (uid=10008 pid=308)
D/gralloc_goldfish(  566): Emulator without GPU emulation detected.
I/ActivityManager(   82): Displayed com.android.packageinstaller/.PackageInstall
erActivity: +2s274ms
I/ActivityManager(   82): START {dat=file:///mnt/sdcard/Download/Seed to Harvest
_signed.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras)} f
rom pid 566
W/WindowManager(   82): Failure taking screenshot for (180x300) to layer 21020
I/ActivityManager(   82): Start proc com.android.defcontainer for service com.an
droid.defcontainer/.DefaultContainerService: pid=579 uid=10025 gids={1015, 2001}
I/WindowManager(   82): createSurface Window{415c87e8 com.android.packageinstall
er/com.android.packageinstaller.InstallAppProgress paused=false}: DRAW NOW PENDI
NG
D/dalvikvm(  566): GC_CONCURRENT freed 150K, 3% free 10168K/10439K, paused 6ms+2
2ms
I/ARMAssembler(   36): generated scanline__00000077:03010104_00008001_00000000 [
 89 ipp] (110 ins) at [0x411618c8:0x41161a80] in 11285197 ns
I/ActivityManager(   82): Displayed com.android.packageinstaller/.InstallAppProg
ress: +1s302ms
W/ActivityManager(   82): No content provider found for permission revoke: file:
///mnt/sdcard/Download/Seed to Harvest_signed.apk
W/ActivityManager(   82): No content provider found for permission revoke: file:
///mnt/sdcard/Download/Seed to Harvest_signed.apk
I/dalvikvm(   82): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm(   82): GC_CONCURRENT freed 316K, 9% free 12275K/13383K, paused 20ms+
23ms
D/dalvikvm(   82): GC_CONCURRENT freed 375K, 8% free 12389K/13383K, paused 27ms+
23ms
D/dalvikvm(   82): GC_CONCURRENT freed 190K, 5% free 12719K/13383K, paused 7ms+2
2ms
W/PackageParser(   82): Exception reading assets/apps/app/AmountUnit/amount_unit
.iseq in /data/app/vmdl-1665306889.tmp
W/PackageParser(   82): java.lang.SecurityException: META-INF/SEEDTOH.SF has inv
alid digest for res/drawable/info.png in /data/app/vmdl-1665306889.tmp
W/PackageParser(   82):         at java.util.jar.JarVerifier.invalidDigest(JarVe
rifier.java:131)
W/PackageParser(   82):         at java.util.jar.JarVerifier.verifyCertificate(J
arVerifier.java:350)
W/PackageParser(   82):         at java.util.jar.JarVerifier.readCertificates(Ja
rVerifier.java:258)
W/PackageParser(   82):         at java.util.jar.JarFile.getInputStream(JarFile.
java:378)
W/PackageParser(   82):         at android.content.pm.PackageParser.loadCertific
ates(PackageParser.java:362)
W/PackageParser(   82):         at android.content.pm.PackageParser.collectCerti
ficates(PackageParser.java:550)
W/PackageParser(   82):         at com.android.server.pm.PackageManagerService.i
nstallPackageLI(PackageManagerService.java:6606)
W/PackageParser(   82):         at com.android.server.pm.PackageManagerService.a
ccess$1500(PackageManagerService.java:152)
W/PackageParser(   82):         at com.android.server.pm.PackageManagerService$5
.run(PackageManagerService.java:5143)
W/PackageParser(   82):         at android.os.Handler.handleCallback(Handler.jav
a:605)
W/PackageParser(   82):         at android.os.Handler.dispatchMessage(Handler.ja
va:92)
W/PackageParser(   82):         at android.os.Looper.loop(Looper.java:137)
W/PackageParser(   82):         at android.os.HandlerThread.run(HandlerThread.ja
va:60)
E/PackageParser(   82): Package com.alex_software_development.seedtoharvest has
no certificates at entry assets/apps/app/AmountUnit/amount_unit.iseq; ignoring!
D/dalvikvm(   82): GC_EXPLICIT freed 270K, 7% free 12480K/13383K, paused 9ms+56m
s
D/InstallAppProgress(  566): Installation error code: -103
D/dalvikvm(  165): GC_CONCURRENT freed 457K, 6% free 10348K/10951K, paused 7ms+9
ms
 
Thanks for your help,
Alex Schimp

tom

unread,
Mar 30, 2012, 2:20:55 PM3/30/12
to rhom...@googlegroups.com
if u can exclude errors in your code (try to install a vanilla app) then i think this might be the same issue i had too a while ago. try a different java sdk version. search the group for it


To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/XBI_qEty0ZsJ.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.

Alex Schimp

unread,
Mar 30, 2012, 6:06:52 PM3/30/12
to rhom...@googlegroups.com
Thanks for your help, Tom.  It was the java sdk version.  I was using the java sdk 1.7, and I switched to the java sdk 1.6 and it works great.  I think the problem had something to do with the 1.7 version signing utility's default settings not being compatible with Android.
 
Thanks,
Alex
Reply all
Reply to author
Forward
0 new messages