Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 14 Framework Support #3202

Closed
kaloresanket opened this issue Jul 23, 2023 · 7 comments · Fixed by #3206
Closed

Android 14 Framework Support #3202

kaloresanket opened this issue Jul 23, 2023 · 7 comments · Fixed by #3206
Labels
Milestone

Comments

@kaloresanket
Copy link

kaloresanket commented Jul 23, 2023

Information

  1. **Apktool Version 2.8.1 ** -
  2. **Windows ** -
  3. Motorola Stock ROM Android 13 -
  4. Java Version 20.0.2 -

Stacktrace/Logcat

I: Using Apktool 2.8.1 on SystemUI.apk
I: Loading resource table...
W: Config flags size > 64. Size = 72. Exceeding bytes: 0x10000000.
W: Invalid data detected. Skipping: -8 byte(s)
W: Invalid config flags detected. Dropping resources: anim-ERR0
Exception in thread "main" brut.androlib.exceptions.AndrolibException: Could not decode arsc file
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:55)
        at brut.androlib.res.data.ResTable.loadResPackagesFromApk(ResTable.java:176)
        at brut.androlib.res.data.ResTable.loadMainPkg(ResTable.java:126)
        at brut.androlib.res.ResourcesDecoder.getResTable(ResourcesDecoder.java:88)
        at brut.androlib.res.ResourcesDecoder.decodeManifest(ResourcesDecoder.java:106)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
        at brut.apktool.Main.cmdDecode(Main.java:190)
        at brut.apktool.Main.main(Main.java:93)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000201
        at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:49)
        at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:414)
        at brut.androlib.res.decoder.ARSCDecoder.readEntryData(ARSCDecoder.java:339)
        at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:318)
        at brut.androlib.res.decoder.ARSCDecoder.readResourceTable(ARSCDecoder.java:99)
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:50)

Steps to Reproduce

  1. apktool d SystemUI.apk

SystemUI.zip
framework-res.zip

@kaloresanket kaloresanket changed the title [BUG] [BUG] Failed to Decompile OEM APK Jul 23, 2023
@kaloresanket kaloresanket changed the title [BUG] Failed to Decompile OEM APK [BUG] Failed to Decompile OEM APK | No files being generated Jul 23, 2023
@iBotPeaches
Copy link
Owner

Thanks. I'll take a look. Odd that Motorola configs are exceeding the known current AOSP max of 64.

@iBotPeaches
Copy link
Owner

iBotPeaches commented Jul 23, 2023

Looks like the Locale Numbering System at play here. I hadn't had a sample yet so was unsure how to patch it. I see the configuration now - mcc262-mnc1-es-r419

Marking as bug.

@iBotPeaches iBotPeaches changed the title [BUG] Failed to Decompile OEM APK | No files being generated Android 14 Framework Support - Grammatical Gender Jul 23, 2023
@iBotPeaches
Copy link
Owner

Okay, this might stay open for a bit until Android 14 officially drops. It appears this is a new qualifier that isn't yet documented online. It appears to be related to gender.

Returns the user preference for the grammatical gender. Will be GRAMMATICAL_GENDER_NOT_SPECIFIED or GRAMMATICAL_GENDER_NEUTRAL or GRAMMATICAL_GENDER_FEMININE or GRAMMATICAL_GENDER_MASCULINE.

@iBotPeaches iBotPeaches changed the title Android 14 Framework Support - Grammatical Gender Android 14 Framework Support Jul 23, 2023
@iBotPeaches iBotPeaches added this to the v2.8.2 milestone Jul 23, 2023
@iBotPeaches iBotPeaches removed the Bug label Jul 24, 2023
@kaloresanket
Copy link
Author

Alright

@iBotPeaches
Copy link
Owner

Android 14 is quite large. I'm treating this issue as the internal framework updates, then I have:

iBotPeaches added a commit that referenced this issue Oct 5, 2023
@kaloresanket
Copy link
Author

Hey sir it still not extracting

@iBotPeaches
Copy link
Owner

@kaloresanket - It is. Please open a new bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants