You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to modify framework-res.apk coming from LOS GSI i am facing an error trying to compile back.
The error is error: attribute android:systemUserOnly not found.
Any idea on how to fix it?
Stacktrace/Logcat
jarfile /home/mguillon/dev/android/Apktool/brut.apktool/apktool-cli/build/libs/apktool-2.10.1-dirty.jar
I: Using Apktool 2.10.1-dirty on framework-res-TMP.apk with 8 threads
I: Checking whether resources have changed...
I: Building resources with aapt2...
W: /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/AndroidManifest.xml:1774: error: attribute android:systemUserOnly not found.
W: /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/AndroidManifest.xml:1796: error: attribute android:systemUserOnly not found.
W: error: failed processing manifest.
Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_175945716267898023568302640793820594858.tmp, link, -o, /tmp/APKTOOL17777172333869606841.tmp, --min-sdk-version, 34, --target-sdk-version, 34, --version-code, 34, --version-name, 14, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, --enable-sparse-encoding, --enable-compact-entries, -x, --manifest, /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/AndroidManifest.xml, /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/build/resources.zip]
at brut.androlib.AaptInvoker.invoke(SourceFile:0)
at brut.androlib.ApkBuilder.buildResources(SourceFile:0)
at brut.androlib.ApkBuilder.build(SourceFile:0)
at brut.apktool.Main.main(SourceFile:0)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_175945716267898023568302640793820594858.tmp, link, -o, /tmp/APKTOOL17777172333869606841.tmp, --min-sdk-version, 34, --target-sdk-version, 34, --version-code, 34, --version-name, 14, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, --enable-sparse-encoding, --enable-compact-entries, -x, --manifest, /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/AndroidManifest.xml, /home/mguillon/dev/android/a9/A9PatchingService/app/external_scripts/system_img_patcher/TMP/temp_framework-res/build/resources.zip]
at brut.util.OS.exec(SourceFile)
... 4 more
Steps to Reproduce
apktool --frame-path /home/mguillon/.local/share/apktool d -s -f d/system/framework/framework-res.apk -o temp_framework-res
apktool --frame-path /home/mguillon/.local/share/apktool b temp_framework-res -api 29 -o framework-res-TMP.apk
The text was updated successfully, but these errors were encountered:
Information
apktool -version
) - 2.10.1java --version
) - 11Trying to modify framework-res.apk coming from LOS GSI i am facing an error trying to compile back.
The error is
error: attribute android:systemUserOnly not found
.Any idea on how to fix it?
Stacktrace/Logcat
Steps to Reproduce
apktool --frame-path /home/mguillon/.local/share/apktool d -s -f d/system/framework/framework-res.apk -o temp_framework-res
apktool --frame-path /home/mguillon/.local/share/apktool b temp_framework-res -api 29 -o framework-res-TMP.apk
The text was updated successfully, but these errors were encountered: