Closed zemasa closed 3 years ago
The owner of the package said to use (--use-aapt2) parameter.. I tried doing this and it still didn't work for me if you discover a solution to this please comment the solution, thanks.
➜ Bug1969 apktool d LinkedIn_v4.1.236_apkpure.com.apk
I: Using Apktool 2.4.0-f997e0-SNAPSHOT on LinkedIn_v4.1.236_apkpure.com.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/connortumbleson/Library/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Baksmaling classes5.dex...
I: Baksmaling classes6.dex...
I: Baksmaling classes7.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜ Bug1969 apktool b --use-aapt2 LinkedIn_v4.1.236_apkpure.com
I: Using Apktool 2.4.0-f997e0-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes7 folder into classes7.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes6 folder into classes6.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3410: error: resource 'drawable/$avd_hide_password__0' has invalid entry name '$avd_hide_password__0'. Invalid character '$avd_hide_password__0'.
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3411: error: resource 'drawable/$avd_hide_password__1' has invalid entry name '$avd_hide_password__1'. Invalid character '$avd_hide_password__1'.
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3412: error: resource 'drawable/$avd_hide_password__2' has invalid entry name '$avd_hide_password__2'. Invalid character '$avd_hide_password__2'.
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3413: error: resource 'drawable/$avd_show_password__0' has invalid entry name '$avd_show_password__0'. Invalid character '$avd_show_password__0'.
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3414: error: resource 'drawable/$avd_show_password__1' has invalid entry name '$avd_show_password__1'. Invalid character '$avd_show_password__1'.
W: /Users/connortumbleson/Desktop/Apktool/Bugs/Bug1969/LinkedIn_v4.1.236_apkpure.com/res/values/public.xml:3415: error: resource 'drawable/$avd_show_password__2' has invalid entry name '$avd_show_password__2'. Invalid character '$avd_show_password__2'.
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
➜ Bug1969
Can't replicate this using aapt2 on the yet to be released, v2.4.0 build. A few warnings, but rebuilt cleanly.
Could you pass me the new version that is working please??! xD
Just cloned the latest version from the master branch (2.4.0-261e16-SNAPSHOT) as well as installed the latest LinkedIn version from the Play Store (v4.1.257). Used --use-aapt2 flag as suggested and the issue remains:
# adb pull /data/app/com.linkedin.android-1/base.apk
/data/app/com.linkedin.android-1/base.apk: 1 file pulled. 10.7 MB/s (22802163 bytes in 2.038s)
# java -jar apktool-cli-all.jar d --use-aapt2 -o linkedin.decompiled base.apk
I: Using Apktool 2.4.0-261e16-SNAPSHOT on base.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Baksmaling classes5.dex...
I: Baksmaling classes6.dex...
I: Baksmaling classes7.dex...
I: Baksmaling classes8.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
# java -jar apktool-cli-all.jar b --use-aapt2 -o linkedin.apk linkedin.decompiled
I: Using Apktool 2.4.0-261e16-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes7 folder into classes7.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes8 folder into classes8.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes6 folder into classes6.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3530: error: resource 'drawable/$avd_hide_password__0' has invalid entry name '$avd_hide_password__0'. Invalid character '$avd_hide_password__0'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3531: error: resource 'drawable/$avd_hide_password__1' has invalid entry name '$avd_hide_password__1'. Invalid character '$avd_hide_password__1'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3532: error: resource 'drawable/$avd_hide_password__2' has invalid entry name '$avd_hide_password__2'. Invalid character '$avd_hide_password__2'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3533: error: resource 'drawable/$avd_show_password__0' has invalid entry name '$avd_show_password__0'. Invalid character '$avd_show_password__0'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3534: error: resource 'drawable/$avd_show_password__1' has invalid entry name '$avd_show_password__1'. Invalid character '$avd_show_password__1'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/public.xml:3535: error: resource 'drawable/$avd_show_password__2' has invalid entry name '$avd_show_password__2'. Invalid character '$avd_show_password__2'.
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/styles.xml:6899: error: invalid value for type 'style'. Expected a reference.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_3258132639340515845.tmp, compile, --dir, /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res, --legacy, -o, /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/build/resources.zip]
Well different issue :)
W: /tmp/Apktool/brut.apktool/apktool-cli/build/libs/linkedin.decompiled/res/values/styles.xml:6899: error: invalid value for type 'style'. Expected a reference.
I'll reopen, but this was not in the original report. I'll need to grab the v4.1.257 version of LinkedIn
Could you link me to the master branch @zemasa
Could you link me to the master branch @zemasa
just git clone https://github.com/iBotPeaches/Apktool/
and build from source as usual
Ok, thanks.
downloaded apktool.bat replaced the current apktool.bat file on windows and attempted to recompile open vpn v3.0.5 on windows here is my output:
C:\Windows\apktool>apktool b openvpn.original I: Using Apktool 2.3.4 I: Checking whether sources has changed... I: Checking whether resources has changed... I: Building resources... S: WARNING: Could not write to (C:\Users\admin\AppData\Local\apktool\framework), using C:\Users\admin\AppData\Local\Temp\ instead... S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable W: C:\Windows\apktool\openvpn.original\res\values\public.xml:21: error: Public symbol array/mk_spinner_stroke_colors declared here is not defined. brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\admin\AppData\Local\Temp\brut_util_Jar_1739766191926740286.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 27, --version-code, 1503, --version-name, 3.0.5, --no-version-vectors, -F, C:\Users\admin\AppData\Local\Temp\APKTOOL4290501569100282111.tmp, -0, arsc, -0, META-INF/com.android.support_animated-vector-drawable.version, -0, META-INF/com.android.support_appcompat-v7.version, -0, META-INF/com.android.support_support-compat.version, -0, META-INF/com.android.support_support-core-ui.version, -0, META-INF/com.android.support_support-core-utils.version, -0, META-INF/com.android.support_support-fragment.version, -0, META-INF/com.android.support_support-vector-drawable.version, -0, assets/index.bundle.meta, -0, arsc, -I, C:\Users\admin\AppData\Local\Temp\1.apk, -S, C:\Windows\apktool\openvpn.original\res, -M, C:\Windows\apktool\openvpn.original\AndroidManifest.xml]
Now, do you have the access to deal with the problem? Please tell me ,thank you ! good senior engineer.
Did anyone figure out how to solve this?
I met same problem. Did anyone figure out how to solve this?
@iBotPeaches
i have the same problem even with 2.3.1 and latest yet (2.4.1) i used --aapt <path to my sdk/build-tools/build-tools/28.0.3/aapt> and i encountered this error
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: res/drawable-v21/$avd_hide_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable-v21/$avd_hide_password__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable-v21/$avd_hide_password__2.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable-v21/$avd_show_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable-v21/$avd_show_password__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable-v21/$avd_show_password__2.xml: Invalid file name: must contain only [a-z0-9_.]
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/.../Sdk/build-tools/28.0.3/aapt, p, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 800019, --version-name, 1.9, --no-version-vectors, -F, /tmp/APKTOOL17198116958154688667.tmp, -0, resources.arsc, -0, png, -0, arsc, -I, /home/user/.local/share/apktool/framework/1.apk, -S, /tmp/original/res, -M, /tmp/original/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
at brut.androlib.Androlib.buildResources(Androlib.java:426)
at brut.androlib.Androlib.build(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/.../Sdk/build-tools/28.0.3/aapt, p, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 800019, --version-name, 1.9, --no-version-vectors, -F, /tmp/APKTOOL17198116958154688667.tmp, -0, resources.arsc, -0, png, -0, arsc, -I, /home/user/.local/share/apktool/framework/1.apk, -S, /tmp/original/res, -M, /tmp/original/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/.../Sdk/build-tools/28.0.3/aapt, p, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 800019, --version-name, 1.9, --no-version-vectors, -F, /tmp/APKTOOL17198116958154688667.tmp, -0, resources.arsc, -0, png, -0, arsc, -I, /home/user/.local/share/apktool/framework/1.apk, -S, /tmp/original/res, -M, /tmp/original/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
... 6 more```
tested OS : Kali Linux 2019.1 and Ubuntu 19.04
I: Building resources... brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 132): [/tmp/brut_util_Jar_10323267139661821008.tmp, compile, --dir, /root/1/Chatous_v3.9.87_apkpure.com/res, --legacy, -o, /root/1/Chatous_v3.9.87_apkpure.com/build/resources.zip]
Any solutions?(exit code=132)
Building resources, failed.
apktool b app -o app.apk I: Using Apktool 2.4.1 I: Checking whether sources has changed... I: Checking whether resources has changed... I: Building resources... W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:45: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.RecentApplications'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:46: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.VolumePanel'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:47: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow.ActionMode'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:48: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:49: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.Dream'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Time'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Info'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:52: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Line2'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:53: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.Ticker'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:54: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Emphasis'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:55: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Small.CalendarViewWeekDayView'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:56: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Suggestion'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:57: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.EasyCorrectSuggestion'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:58: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:59: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:60: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.MisspelledSuggestion'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:61: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.AutoCorrectionSuggestion'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:62: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.GestureOverlayView'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:68: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:69: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator.White'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:70: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ExpandableListView.White'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:71: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.NumberPicker'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:72: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TimePicker'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:79: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.HorizontalScrollView'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:93: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:94: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowSmall'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:95: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowMedium'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:96: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowLarge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:97: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall.WindowSmall'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:98: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall.WindowLarge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:99: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Theme.Dialog.AppError'. W: W: /Users/yu/log/iBiliTV/app/res/values-v24/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.DeviceDefault.CheckBoxPreference'. W: W: /Users/yu/log/iBiliTV/app/res/values-v24/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.DeviceDefault.Category'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.DeviceDefault.Light.Medium'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:117: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:119: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:120: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.SwitchPreference'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:124: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:125: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowMedium'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:238: error: Error: No resource found that matches the given name: attr 'android:allowScaling'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:241: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:240: error: Error: No resource found that matches the given name: attr 'android:feedbackCount'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:236: error: Error: No resource found that matches the given name: attr 'android:firstItemOffset'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:235: error: Error: No resource found that matches the given name: attr 'android:glowRadius'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:237: error: Error: No resource found that matches the given name: attr 'android:magneticTargets'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:239: error: Error: No resource found that matches the given name: attr 'android:snapMargin'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:273: error: Error: No resource found that matches the given name: attr 'android:allowScaling'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:276: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:275: error: Error: No resource found that matches the given name: attr 'android:feedbackCount'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:271: error: Error: No resource found that matches the given name: attr 'android:firstItemOffset'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:270: error: Error: No resource found that matches the given name: attr 'android:glowRadius'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:272: error: Error: No resource found that matches the given name: attr 'android:magneticTargets'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:274: error: Error: No resource found that matches the given name: attr 'android:snapMargin'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:674: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:675: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu.Large'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:676: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu.Small'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:677: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.DropDownHint'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:680: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.ActionMode.Title'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.ActionMode.Title'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:699: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.WindowTitle'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:702: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.DialogWindowTitle'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:703: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.CalendarViewWeekDayView'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:704: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Holo'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Holo'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.DeviceDefault.Light.Large.Inverse'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:715: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TextView.ListSeparator'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:716: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TextSuggestionsPopupWindow'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:718: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Gallery'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:719: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.GestureOverlayView'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:742: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ImageWell'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:743: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ListView.White'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ListView.White'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:746: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:757: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.QuickContactBadgeSmall.WindowLarge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:758: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.QuickContactBadgeSmall.WindowLarge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:759: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.CompoundButton.Switch'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:760: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.DeviceDefault.ProgressBar.Small.Inverse'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:767: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown.ActionBar'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:768: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TabText'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:769: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.KeyboardView'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:771: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadge.WindowMedium'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:776: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadgeSmall.WindowMedium'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:777: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadgeSmall.WindowLarge'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:778: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.Button.Borderless'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TextView.ListSeparator'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:12: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TextSelectHandle'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:813: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ExpandableListView.White'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:817: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.NumberPicker'. W: W: /Users/yu/log/iBiliTV/app/res/values-ldltr/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TimePicker'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:13: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TimePicker'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:821: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ImageWell'. W: W: /Users/yu/log/iBiliTV/app/res/values-v23/styles.xml:14: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ImageWell'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:822: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ListView.White'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:824: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:831: error: Error: No resource found that matches the given name: attr 'android:allowScaling'. W: W: /Users/yu/log/iBiliTV/app/res/values/styles.xml:834: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'. W: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/20/yv69wbq164z73df3pvjkljgm0000gn/T/brut_util_Jar_637371655060426796.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 1, --version-name, 2.0, --no-version-vectors, -F, /var/folders/20/yv69wbq164z73df3pvjkljgm0000gn/T/APKTOOL8815776753344468345.tmp, -e, /var/folders/20/yv69wbq164z73df3pvjkljgm0000gn/T/APKTOOL8949679838662605512.tmp, -0, arsc, -I, /Users/yu/Library/apktool/framework/1.apk, -S, /Users/yu/log/iBiliTV/app/res, -M, /Users/yu/log/iBiliTV/app/AndroidManifest.xml]
I can't follow this ticket anymore. Not sure what is being reported since I proved it worked on aapt2. Closing.
After testing a lot on Ubuntu 20.04.4 LTS. I got to know its working fine until you don't install cpanel.
After installing CPanel it throws 'brut.androlib.AndrolibException: brut.common.BrutException: ' at this line https://github.com/iBotPeaches/Apktool/blob/7a2c0c8bb8f50208e0c7842e494874957c2d3cfd/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java#L607
Here i found some workout and got full log error
[/tmp/brut_util_Jar_10333730864643958114855733006941118555.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /tmp/APKTOOL6140 128914220169092.tmp, -e, /tmp/APKTOOL2955545294257454697.tmp, -0, arsc, -I, /root/.local/share/apktool/framework /1.apk, -S, /home/test/startapp/res, -M, /home/test/startapp/AndroidManifest.xml]
java.io.IOException: Cannot run program "/tmp/brut_util_Jar_10333730864643958114855733006941118555.tmp": error=1 3, Permission denied
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1142)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at brut.util.OS.exec(OS.java:92)
at brut.androlib.res.AndrolibResources.aapt1Package(AndrolibResources.java:602)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:629)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:497)
at brut.androlib.Androlib.buildResources(Androlib.java:437)
at brut.androlib.Androlib.build(Androlib.java:316)
at brut.androlib.Androlib.build(Androlib.java:280)
at brut.apktool.Main.cmdBuild(Main.java:255)
at brut.apktool.Main.main(Main.java:82)
Caused by: java.io.IOException: error=13, Permission denied
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.
I'm really very interested, why are you posting the logs in solid text? Are you having trouble attaching a file?
No i don't have any trouble in attaching file but what type of files should be attached?
Solved the problem in linux based system. I've edited jar.
ignore unnecessary line as its added by to to view commands of processbuilder.
Information
#1
SMP Debian 4.18.20-2kali2 (2018-11-30) x86_64 GNU/LinuxIssue description
Apktool fails to re-build LinkedIn from the Play Store.
Affected packages
Example
Steps to Reproduce
apktool d <APK>
apktool b <folder>
Extra information
apktool d
,apktool b
without changing anything;-r
flag - which is not useful since I want to modify the resources (namely AndroidManifest.xml).