0

I am trying to manually add text file into assets folder of .apk using aapt tool or can able to add any ZIP reader. After adding text file I resigned .apk by using jarsigner and aligned it using zipalign.

Here problem is, that the final .apk is not getting installed on my device.

I referred these posts but they didn't help

Can I resign an .apk with a different certificate than what it came with?

Repackage APK file to contain custom assets - what build tool to use?

Android: How to manually add a file to apk?

SOLUTION: This helps to fix my issue

Device shows Application not installed error

Community
  • 1
  • 1
SathishKumar
  • 1,644
  • 1
  • 14
  • 28

1 Answers1

0

if one application with special package name has been installed on your device, the next instance of that can be installed, only if both of them has the same signature. so if you want to do that, you must remove the previous one, or you must change package name.

  • it is working fine while installing directly, issue comiong only when i using `aapt tool` to add text file into assets. – SathishKumar Apr 07 '14 at 05:59
  • have you looked at [this](http://stackoverflow.com/questions/7360149/how-to-modify-a-pre-packaged-apk-file-on-client-side-by-user-who-is-using-my-des) – Abolhassan Abdolalizade Apr 07 '14 at 06:20
  • yeah i already looked on it but i did not tried it because i did not understand step 3 & 4. Do you have any idea on steps 3&4. – SathishKumar Apr 07 '14 at 06:37