Jump to content


Photo

Sign 2 APK's with the same certificate

signing apk certificate

  • Please log in to reply
3 replies to this topic

#1 RealPetChicken

RealPetChicken

    n00b

  • Members
  • Pip
  • 10 posts

Posted 27 August 2013 - 05:33 PM

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.



#2 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 27 August 2013 - 05:38 PM

Edit..... can you change the name of the second apk (in the manifest) "... try not, do! or do not! there is no try..."

Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#3 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 27 August 2013 - 05:41 PM

Don't know if that's an option or not.... just throwing it out there .... LOL

"... try not, do! or do not! there is no try..."


Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#4 RealPetChicken

RealPetChicken

    n00b

  • Members
  • Pip
  • 10 posts

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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users