Closed Erquint closed 5 years ago
If I could just decode and encode separate binary files without messing with the whole APK — that would be wonderful.
Not possible. Files reference others.
At least tell me what algorithm it is encoded with so that I can find/make a tool that works with just that.
Android XML (AXML)
So apktool breaks when trying to compile the APK on my Windows 10 if I decompile it with resources (no
-r
key).
Duplicate of #1272, command is too long for Windows
Weirdly enough, it breaks trying to decompile this APK on an Ubuntu subsystem.
Don't see any logs of this to comment.
I never expected editing one tiny XML being this complicated an ordeal.
Welcome to reverse engineering, and not even RE. RE + Rebuild.
Information
PixelExperience Santoni Pie (Android 9) Basically AOSP with some Google Pixel extras.
framework-res.apk
No framework installed
Cleaning up
Trying again with framework (it is itself one AFAII)
Omitted from both snippets are the array contents (replaced by
…
). Full console output in this gist.Frameworks
It's the framework-res.apk I'm trying to recompile pulled with ADB directly from the phone with PixelExperience installed and seemingly working alright.
APK
Same file
Questions to ask before submission
apktool d
,apktool b
without changing anything? Yep, that's what I did.Purpose and some weird quirks
I just want to edit one single XML file in there. If I could just decode and encode separate binary files without messing with the whole APK — that would be wonderful. At least tell me what algorithm it is encoded with so that I can find/make a tool that works with just that.
So apktool breaks when trying to compile the APK on my Windows 10 if I decompile it with resources (no
-r
key). Weirdly enough, it breaks trying to decompile this APK on an Ubuntu subsystem. I never expected editing one tiny XML being this complicated an ordeal.