- 11 Apr 2013
- 54
- 20
just a little question, i have a very light modification to do on an apk so i extract with :
apktool d -s -r miuisystem.apk
i modify my xml file in assets/device_features/
and i build with :
apktool b -c miuisystem
since it's a system apk, i have read i should keep the original signature with the -c,--copy-original flag
but if i check the signature(v1 scheme since it is Marshmallow), with jarsigner or apksigner, it fail with SHA1 mismatches for every file in MANIFEST.MF
in many places it's written that if you do any modification you are obliged to resign the apk, but then it's not clear to me what is the use of the -c,--copy-original ?
what is the correct way of editing a system apk ?
BUT now i realised that the original apk i just pulled with adb has already the same signature error !?! i'm lost .... miui signatures are specifics ?
apktool d -s -r miuisystem.apk
i modify my xml file in assets/device_features/
and i build with :
apktool b -c miuisystem
since it's a system apk, i have read i should keep the original signature with the -c,--copy-original flag
but if i check the signature(v1 scheme since it is Marshmallow), with jarsigner or apksigner, it fail with SHA1 mismatches for every file in MANIFEST.MF
in many places it's written that if you do any modification you are obliged to resign the apk, but then it's not clear to me what is the use of the -c,--copy-original ?
what is the correct way of editing a system apk ?
BUT now i realised that the original apk i just pulled with adb has already the same signature error !?! i'm lost .... miui signatures are specifics ?