View Single Post
Old 06-14-2020, 10:18 AM   #62
Peripathetic
Enthusiast
Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.Peripathetic composes epic poetry in binary.
 
Posts: 38
Karma: 90402
Join Date: Feb 2019
Device: Tolino Shine 3
Quote:
Originally Posted by IngoPan View Post
I just unzipped the EPubProd.apk and edited the assets/environments/app.properties.prod for not calling home anymore. Unfortunately, i cannot adb push it back nor install the apk. Certificate error. Whats the easiest way please to get a valid signed modified EPubProd. apk?
It looks like either:
  1. You're trying to install your version of EPubProd.apk as a user app (into /data) with adb install: this will not work unless it were correctly signed with the same certificate as the system package - or -
  2. The signature got mangled when you were modifying the file so Android is treating it as an app with no signature and refuses to run it.
What you should be doing is:
  • Leave the existing signature in place, unchanged. It will be invalid but Android does not verify it for system apps.
  • Just replace the file on the /system partition with your modified version with adb push, do not install it.
If you wanted to sign the APK with your own certificate, it's also possible but you would have to re-sign the whole system (all the other APKs). It's extra work and no benefit unless you wanted to modify the framework.

You can use WinMerge to compare the APK you created with the original version and the version I posted (it can look inside automatically if you change both extensions to .zip). Signature data is under META-INF inside the archive. None of the files there should be changed. Once you're sure of that, you can replace the file with adb push.
Peripathetic is offline   Reply With Quote