Closed assembleDebug closed 1 year ago
This is the magic of the AndroidManifest.xml of NP Manager (in hexadecimal):
00 00 08 00
Since Android Binary XML uses little endian, it could be written as follows:
00 00 00 08
The first part is the version i.e. 0x0000 and the second part is the header i.e. 0x0008. Version 0x0000 appears to be invalid according to my checks (App Manager expects 0x0003). Other XML files, as it appears, are perfectly fine.
Related issue: https://github.com/LSPosed/LSPatch/issues/135
So this is something which cannot be fixed on our side, right?
So this is something which cannot be fixed on our side, right?
I'm not sure yet. Since Android package parser is able to parse this file, there might be a way. Interestingly, the other parser provided by the AOSP is not working as you can see in the error above.
Even Android's own buildtools' aapt
has failed to parse the manifest:
N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1348d13
A: (0x0101021c)="3.0.62" (Raw: "3.0.62")
A: (0x01010572)=(type 0x10)0x1c
A: (0x01010573)="9" (Raw: "9")
A: package="player.normal.np" (Raw: "player.normal.np")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
zsh: segmentation fault /Users/muntashir/Library/Android/sdk/build-tools/33.0.1/aapt d xmltree
(exit code: 139)
Ah, aap2
can parse it. So, whatever this format is, it is new.
All existing Java implementations will fail to parse this file. A possible alternative is to create a new implementation from aapt2
: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.h
Fixed in bbcc8024b015c4722defbbac9971f8c2c2d4f14e
Note: If APK signing is enabled, the installation will still fail due to an issue with the apksig library, which will be fixed later in the corresponding library.
Please check before submitting an issue
Describe the bug
I have installed this shady chinies app NP MANAGER (just bcz it connects to internet), provides functionalities which you see in MT Manager. This app seems highly obfuscated. I can not open the NP manager app info in the AM Debug version. It crashes the AM Debug. I am attaching logs below.
To Reproduce
Expected behavior
Should open details page for NP manager.
Screenshots
No response
Logs
Device info
Everything given in logs above.
Additional context
No response