Reason is i have an apk which works as an installer. When the user installs and opens it, it prompts the user to install another apk (drm free) which was inside the installer apk. However, after signing and zipaligning both with APK Signer tool and Private keys i get this error when installing: an existing package by the same name with a conflicting signature is already installed
basically, both the apk (installer) and apk (theme) have the same package name. When the apk (theme) is installed, it should overwrite the apk (installer).
Any help on this would be greatly appreciated. I think both the installer apk and theme apk should have the same certificates in order to overwrite each other, but i don't know how.
Sign 2 APK's with the same certificate
#1
Posted 27 August 2013 - 05:33 PM
#4
Posted 27 August 2013 - 05:56 PM
The reason i am doing this is because, when put my paid theme on google play, which is a playerpro theme, when the user installs it after buying it, it crashes playerpro. I found out the problem is that when installed it installs it in the mnt/asec/ folder, and not the system/app/ directory as free apps go.
So someone made a installer, which when bought and the user opens it, asks to install the actual theme. That way, it puts it as a free app in the system/app directory. Basically both the installer apk is overwritten when the theme is installed because they have the same package name. So i am now trying to see if i can sign both the actualtheme.apk and Skin_Name_installer.apk with the same certificate so it overwrites it with no problem.
So the directory is like this right now:
Skin_Name_Installer.apk
\ assets
\ actualtheme.apk
\ build
\ res
\ smali
I use the APK Signer to sign and zip align both the theme and installer.
Also tagged with one or more of these keywords: signing, apk, certificate
DroidRzr.com →
Droid Razr Apps, Games and Accessories →
Stock Text Messaging Apk PleaseStarted by onemandeep , 13 Jun 2012 mms, text, conversation, apk, sms and 3 more... |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users