[GUIDE] Enable App Ops (Application Permissions) - Verizon Samsung Galaxy S6

While looking around at the decompiled SecSettings2.apk, I noticed that all of the App Ops (application permissions) stuff was still present. So, I decided to look for a way to enable the Settings menu option for Application Permissions.
The xml files all seemed to have the entries required to display the option, but the smali code was preventing it.
Note that there are apps in the store that will give you this feature, but this method doesn't require an additional app and it uses the built-in settings menus.
I have not tested every permission, but I did disabled "location" for several apps and that worked perfectly.
This is an easy mod if you know how to decompile/recompile.
There are 2 ways to implement the Application Permissions menu option:
Method 1 (requires deodexed app and smali edit)
Decompile the deodexed SecSettings2.apk.
In the smali folder, navigate to com\android\settings\LockscreenMenuSettings.smali
Do a search for the following line:
Code:
iget-object v14, v0, Lcom/android/settings/LockscreenMenuSettings;->mAppOpsSettings:Landroid/preference/Preference;
Just after the first instance of that code, you will see:
Code:
if-eqz v14, :cond_d
Change it to:
Code:
if-nez v14, :cond_d
Save and recompile.
You will find the "Application Permissions" menu under the "Lock screen and Security" settings menu (screenshot #1).
Method 2 (easier - can be either odexed or deodexed)
Decompile SecSettings2.apk
Open the res/xml/applications_settings_vzw.xml
Insert the following code on a line right above "PreferenceCategory" near the bottom:
Code:
<PreferenceScreen android:icon="@drawable/st_application_ic_application_permission" android:title="@string/app_ops_settings" android:key="app_ops_settings" android:fragment="com.android.settings.applications.AppOpsSummary" />
Save and recompile.
You will find the "Application Permissions" menu under the "Applications" settings menu. (screenshot #2)
Disclaimer: This is intended mainly for rom devs to use, but if you like making your own mods, then feel free to give it a try. I take no responsibility for any modifications you make to your device. Always ensure that you have the required files to restore if something goes wrong.
#1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
#2

I'm assuming you need root for this?

weizilla said:
I'm assuming you need root for this?
Click to expand...
Click to collapse
Yes, root is required.
Sent from my SM-G920V using Tapatalk

After recompiling do you have to copy signatures from original apk? Or just replace with modified apk.

Fe Mike said:
After recompiling do you have to copy signatures from original apk? Or just replace with modified apk.
Click to expand...
Click to collapse
No, system apps don't need to be signed. Just replace with modified app and make sure permissions are correct. It is best to make a flashable zip to do it and flash the zip with Flashfire. I just modified the zip from the rom I am currently running. That way, I know the permissions will be set correctly.

After compiling I'm missing the dist folder that contains modded apk. Am I missing something?
---------- Post added at 04:59 PM ---------- Previous post was at 04:24 PM ----------
Fe Mike said:
After compiling I'm missing the dist folder that contains modded apk. Am I missing something?
Click to expand...
Click to collapse
Disregard, I copied the classes.dex and it worked. Thank you

So I saw this thread and loved the idea of the mod and decided it would be a good time to dive into less trivial android tweaking.
Its been a while since I've done coding at this level (I spend most of my time in the delightfully carefree environment that is Matlab) and I cannot seem to get this to work despite spending a bunch of time searching for solutions (I really wanted to avoid asking here but cest la vie)
I have installed java, the jdk, the android sdk, apktools and apk studio. I have tried using both the studio and straight apk tools from the command line but I cannot get the apk to de-compile properly. My intention was to use the second method and simply replace the old SecSettings2.apk with the new modified version and reboot.
In addition to grabbing SecSettings2.apk for editing I also loaded the SystemUI.apk, twframework-res.apk, and framework-res.apk as frameworks. I have tried both with and without various combinations of those active frameworks to no avail.
The output dialog is as follows:
Code:
I: Using Apktool 2.0.1 on SecSettings2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\david_000\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808f2
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x01080902
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808eb
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808f2
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f9
I: Decoding values */* XMLs...
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResBoolValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:65)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:496)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:134)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
I'm out of ideas and scratching my head a bit here, thank you for any guidance you can provide.
Regards,
-JasonVaritekMVP

JasonVaritekMVP said:
So I saw this thread and loved the idea of the mod and decided it would be a good time to dive into less trivial android tweaking.
Its been a while since I've done coding at this level (I spend most of my time in the delightfully carefree environment that is Matlab) and I cannot seem to get this to work despite spending a bunch of time searching for solutions (I really wanted to avoid asking here but cest la vie)
I have installed java, the jdk, the android sdk, apktools and apk studio. I have tried using both the studio and straight apk tools from the command line but I cannot get the apk to de-compile properly. My intention was to use the second method and simply replace the old SecSettings2.apk with the new modified version and reboot.
In addition to grabbing SecSettings2.apk for editing I also loaded the SystemUI.apk, twframework-res.apk, and framework-res.apk as frameworks. I have tried both with and without various combinations of those active frameworks to no avail.
The output dialog is as follows:
Code:
I: Using Apktool 2.0.1 on SecSettings2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\david_000\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808f2
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x01080902
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808eb
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x010808f2
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f8
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x010203f9
I: Decoding values */* XMLs...
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResBoolValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:65)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:496)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:134)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:104)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
I'm out of ideas and scratching my head a bit here, thank you for any guidance you can provide.
Regards,
-JasonVaritekMVP
Click to expand...
Click to collapse
THIS is what I have been using lately.

gr8nole said:
THIS is what I have been using lately.
Click to expand...
Click to collapse
Thank you so much for the quick response.
I downloaded the multi-tool and that did indeed solve the decompile issue. It decompiles with no errors now. I am having difficulty with the recompile however.
I installed deleted and re-installed the 3 frameworks previously mentioned with the tool. I decompiled via the full sources and resources. Made the edit in the suggested line but got the following error upon my recompile attempt.
Code:
--------------------------------------------------------------------------
|Thu 09/17/2015 -- 18:11:42.63|
--------------------------------------------------------------------------
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
A subdirectory or file modified-system-apk-files-here already exists.
W: Could not find sources
warning: string 'accessibility_widget_torch' has no default translation.
warning: string 'accessibility_widget_torch_notification_message' has no default translation.
warning: string 'accessibility_widget_torch_notification_title' has no default translation.
warning: string 'accessibility_widget_torch_talkback_turned_off' has no default translation.
warning: string 'accessibility_widget_torch_talkback_turned_on' has no default translation.
warning: string 'bt_tether_warning_message' has no default translation.
warning: string 'homeScreen' has no default translation.
warning: string 'wifi_on_dialog_summary' has no default translation.
warning: string 'wifi_search_networks' has no default translation.
C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res\layout-sw768dp-v13\tap_hold_delay.xml:9: error: Error: No resource found that matches the given name (at 'style' with value '@style/TapAndHoldDelayButtonTab').
C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res\layout-sw768dp-v13\tap_hold_delay.xml:10: error: Error: No resource found that matches the given name (at 'style' with value '@style/TapAndHoldDelayButtonTab').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:90)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
I'm sure I'm missing something simple at this point and apologize for bugging you with it. Thank you for the help.
- JasonVaritekMVP

JasonVaritekMVP said:
Thank you so much for the quick response.
I downloaded the multi-tool and that did indeed solve the decompile issue. It decompiles with no errors now. I am having difficulty with the recompile however.
I installed deleted and re-installed the 3 frameworks previously mentioned with the tool. I decompiled via the full sources and resources. Made the edit in the suggested line but got the following error upon my recompile attempt.
Code:
--------------------------------------------------------------------------
|Thu 09/17/2015 -- 18:11:42.63|
--------------------------------------------------------------------------
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
A subdirectory or file modified-system-apk-files-here already exists.
W: Could not find sources
warning: string 'accessibility_widget_torch' has no default translation.
warning: string 'accessibility_widget_torch_notification_message' has no default translation.
warning: string 'accessibility_widget_torch_notification_title' has no default translation.
warning: string 'accessibility_widget_torch_talkback_turned_off' has no default translation.
warning: string 'accessibility_widget_torch_talkback_turned_on' has no default translation.
warning: string 'bt_tether_warning_message' has no default translation.
warning: string 'homeScreen' has no default translation.
warning: string 'wifi_on_dialog_summary' has no default translation.
warning: string 'wifi_search_networks' has no default translation.
C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res\layout-sw768dp-v13\tap_hold_delay.xml:9: error: Error: No resource found that matches the given name (at 'style' with value [user=262514]@style[/user]/TapAndHoldDelayButtonTab').
C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res\layout-sw768dp-v13\tap_hold_delay.xml:10: error: Error: No resource found that matches the given name (at 'style' with value [user=262514]@style[/user]/TapAndHoldDelayButtonTab').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\DAVID_~1\AppData\Local\Temp\brut_util_Jar_3976242654467133263.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920VVRU1AOE2, -F, C:\Users\DAVID_~1\AppData\Local\Temp\APKTOOL1087761008084259253.tmp, -0, arsc, -I, C:\Users\david_000\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\res, -M, C:\APK-Multi-Tool-WIP-2.0\APK-Multi-Tool-WIP-2.0\projects\SecSettings2.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:90)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
I'm sure I'm missing something simple at this point and apologize for bugging you with it. Thank you for the help.
- JasonVaritekMVP
Click to expand...
Click to collapse
I'll have a look when I get back to my computer tomorrow. Looks like it is having trouble locating a resource.
Sent from my SM-G920V using Tapatalk
Edit: @JasonVaritekMVP...I took a quick look and this should fix the compile problem:
Open res\layout-sw768dp-v13\tap_hold_delay.xml and in line 9 and 10, change "@style/TapAndHoldDelayButtonTab" to "@style/TapAndHoldDelayButton". Then try to compile again.

gr8nole said:
I'll have a look when I get back to my computer tomorrow. Looks like it is having trouble locating a resource.
Sent from my SM-G920V using Tapatalk
Edit: @JasonVaritekMVP...I took a quick look and this should fix the compile problem:
Open res\layout-sw768dp-v13\tap_hold_delay.xml and in line 9 and 10, change "@style/TapAndHoldDelayButtonTab" to "@style/TapAndHoldDelayButton". Then try to compile again.
Click to expand...
Click to collapse
That solved the issue. You're a bona fide miracle worker!
I'm assuming the prompt "Aside from the signatures, would you like to copy over any additional files that you did not modify from the original apk in order to ensure lease # of errors Y/N" does not make a huge difference one way or another?
But again thank you, much obliged.
- JasonVaritekMVP
EDIT - nevermind pretty sure I figured it out.
Second Edit:
Put the new apk into the proper folder with the old version and left them both in in the hopes of confirming it worked per the perspective outlined with multiple secsettings here:
http://gs4.wonderhowto.com/how-to/install-galaxy-s5-settings-theme-your-galaxy-s4-0158347/
I rebooted fine ... but the screen was unresponsive, and odin reflash to OE2 stock and a re-root later I'm all back up and running the way I like ... but definitely done trying to solve this one for the night now that my phone's functional again.

JasonVaritekMVP said:
That solved the issue. You're a bona fide miracle worker!
I'm assuming the prompt "Aside from the signatures, would you like to copy over any additional files that you did not modify from the original apk in order to ensure lease # of errors Y/N" does not make a huge difference one way or another?
But again thank you, much obliged.
- JasonVaritekMVP
EDIT - nevermind pretty sure I figured it out.
Second Edit:
Put the new apk into the proper folder with the old version and left them both in in the hopes of confirming it worked per the perspective outlined with multiple secsettings here:
http://gs4.wonderhowto.com/how-to/install-galaxy-s5-settings-theme-your-galaxy-s4-0158347/
I rebooted fine ... but the screen was unresponsive, and odin reflash to OE2 stock and a re-root later I'm all back up and running the way I like ... but definitely done trying to solve this one for the night now that my phone's functional again.
Click to expand...
Click to collapse
I don't recommend trying to have 2 settings apps. Since you know how to recover (if things go wrong), just replace the old app and make sure permissions are set correctly.

gr8nole said:
I don't recommend trying to have 2 settings apps. Since you know how to recover (if things go wrong), just replace the old app and make sure permissions are set correctly.
Click to expand...
Click to collapse
You speak the truth, it all looks good now.
- JasonVaritekMVP

Hi I am having similar issues and weird too. After de comping i get the exact same errors and when i switched to the multii apk tool i cannot read any xml files

as this tested ?!

I do not have the file "SecSetting2.apk" only I have "SecSetting.apk" in the system / priv-app directory after decompilation (windows 7 64bit I have an empty directory) (Linux only directory "smali") My system is android 4.4.2 overlay samsung galaxy s5 (touchwiz)
Should I look for another apk file with the permission option (or maybe someone knows where else to look ...)
I will add that when I decompiled another application from the store and from the / priv-app system I had all files in the directory (probably all)

would there be someone who would decompile the "SecSetting.apk" file for me whether the apk is correct?
I will add that the rom is "odexed" and there is a file "SecSetting.odex" and one more thing ... after unpacking the winra is an error crc because on others, for example: "SystemUI.apk" has no error
Sorry for my english,no speak english :-/

Related

How do you themers decompile SystemUI.apk?

I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk!
I get the following error:
Code:
[[email protected] Downloads]$ ./apktool d SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/kyle/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This happens in both vanilla apktool and in APK Manager.
I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this.
dwitherell said:
I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this.
Click to expand...
Click to collapse
I decompiled with framework-res and it worked, thanks a lot!
Now to go hunting for what I want to change
I know you got it to work but for future reference place the apktool jar and framework-res.apk in your C:Windows folder. Then open up command prompt, cd to the windows directory and type:
apktool if framework-res.apk
This will install the framework into an apktool folder for future projects. You should also repeat the process with twframework-res.apk in the rare case you work with a froyo ROM.
shobon said:
I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk!
I get the following error:
Code:
[[email protected] Downloads]$ ./apktool d SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/kyle/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This happens in both vanilla apktool and in APK Manager.
Click to expand...
Click to collapse
The .xml's you seek are not in the systemUI. They are in the FRAMEWORK.RES if I remember right.
Try FRAMEWORK-RES/DECOMPILED DIR/LAYOUT/STATUSBAR_LATEST_EVENT_CONTENT and there might be one more. Its been awhile....
Sent from my SCH-I510 using XDA App

[MOD] Battery Bar for All ROMs - Updated 31/3/12

MOD Version
App Version Here - http://forum.xda-developers.com/showthread.php?t=1568318
Howdy All,
Few people have been asking me how i got the Miui Battery Bar into my ROM on the x10! short answer is i didn't i wrote my own battery bar! and here is how you can use it!
Features
Hide / Show
Selectable Colors
Static Color
Auto-Magicaly Color (Low Med Reg Charge)
Auto Detection of screen Width ( Bar works in Portrait and Landscape Mode )
Selectable Height
Charge Animation options.
Screen Shots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Change Log
Code:
[B]Options App[/B]
v2.0
added height options.
v3.0
added new color dialogs.
v4.0
fixed default color of med level to be non-transparent.
Code:
[B]Battery Bar[/B]
v2
added height options and fixed default colors.
How To!
Ok so there are 2 files attached
First is a Zip with the files needed to add to the SystemUI.apk (THIS IS NOT FLASHABLE)
Second is an the Settings app for the Battery Bar.
Step 1
decompile your SystemUI.apk
i use Apk Manager
Click to expand...
Click to collapse
Step 2
Navigate to smali\com\android\systemui\statusbar\ Folder
Place the 3 Smali Files from the zip here
BatteryBar.smali
BatteryBar$1.smali
BatteryBar$SettingsObserver.smali
Click to expand...
Click to collapse
Step 3
You need to Navigate to the res\layouts\ Folder
open your statusbar.xml
Click to expand...
Click to collapse
Step 4
Underneath the line with
Code:
com.android.systemui.statusbar.DateView
add this
*** CHANGED ON v3 ***
Code:
<com.android.systemui.statusbar.BatteryBar android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" [B][COLOR="Red"]android:layout_height="wrap_content"[/COLOR][/B] />
it should be right at the bottom above the
Code:
i have added my statusbar.xml for reference if yours is in a different order no big deal just put it last and above this line
Code:
</com.android.systemui.statusbar.StatusBarView>
Click to expand...
Click to collapse
Step 5
Recompile the apk however you normaly would (there are so many ways i wont cover this here)
then push it to your phone and reboot.
If you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
- 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /res/layouts/status_bar.xml
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
+ 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or
- 10. Proceed to next step
Click to expand...
Click to collapse
-
Step 6
Once your status bar is back and running (you will have no battery bar yet)
Simply install "BatteryBarSettings.apk" then open the app and pick your settings!
Click to expand...
Click to collapse
Thats it ( I think )!
all i ask is you don't modify the about section of the app if you choose to use it! and give credits where credits due. feel free to change my dodgy icon and if anyone has a better one i will also put the sources for the settings app up on my git when i get git back up ( and when i tidy up and add comments ) and running in the next few days so that those of you running on source versions can cook it in from scratch. ( i don't think i need to explain how to do that if you are compiling sources i think you'll know what to do )
Vissit My Git to have a Look
with some help i can probably port this to older android versions (<2.3) as needed but i dont have access to a rom to test it on currently. so if you can help me there let me know
Hope you found this helpfull! Let me know if this is not clear enough!
Q&A
Q: I am getting a FC on this or that, can you help me!
A: NO. We can't help you. Because what you just said means nothing to us.
We want to help you SO much, but in order to do that you need to report the bug properly.
We took care of that too, see here:
http://forum.xda-developers.com/showthread.php?t=1292625
Click to expand...
Click to collapse
Q:OMG YOU STOLE MY WORK! YOU [email protected]#$!% etc etc etc
A: I kindly ask you that if you have an issue with anything above to PM me so i can sort it out politely. There is no need to flame in the thread.
Click to expand...
Click to collapse
Pvy
Credits
Color Picker
http://forum.xda-developers.com/showthread.php?p=10739805#post10739805
Thanks to Devmil
​
[APP] or [MOD] Battery Bar for All ROMs - Updated 16/1/12
Hiding the battery Icons on your beloved ROM's
tested on 2.3.* ROMS (Stock ROMS, AOSP, CM, MIUI) may sork on others aswell but 2.2 and below have a different process.
for anyone who understands this stuff a bit this code here is what i edited for our TEAM ROM. this is hiding with an option from an app that sets a "global" setting.
look in the statusbarpolicy.smali
i commented the part with "hide battery icon";
For everyone else what you will need to do is,
1. Decompile your SystemUI.apk
2. Open /smali/com/android/systemui/statusbar/StatusBarPolicy.smali
3. Find the UpdateBattery function.
this can be a long way down.
just do a search for "battery" and you will find it eventually.
Option A - Lock out the battery icon forever!
basicaly to perma hide the icon add this to the start of the update battery function after the bit that looks like this.
Code:
Code:
.locals 12
.parameter "intent"
.prologue
add this!
Code:
Code:
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v2, "battery"
const v0, 0x0
invoke-virtual {v1, v2, v0}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
return-void
then recompile and push back to phone.
If you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
Click to expand...
Click to collapse
that will perma hide the battery icon
Option B - Make it optional! ( my preferred way of doing things )
basically the same process but with different code and an app to set the settings.
i will add this soon and i will put the option to toggle into the BatteryBar settings app.
Aaron.
hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool)
Worked perfect, Thanks.
Sent from my HTC Wildfire using xda premium
Mjergen said:
hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool)
Click to expand...
Click to collapse
It has to be enabled from the app. Did you turn it on?
Pvy
Sent from my TEAM powered x10
pvyParts said:
It has to be enabled from the app. Did you turn it on?
Click to expand...
Click to collapse
sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l
Mjergen said:
sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l
Click to expand...
Click to collapse
Doesn't cm have it'd own bar? could be fighting.
Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings.
Pvy
Sent from my TEAM powered x10
pvyParts said:
Doesn't cm have it'd own bar? could be fighting.
Click to expand...
Click to collapse
well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ).
what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ?
what is your method of choice for decompiling and recompiling, btw ?
pvyParts said:
Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings.
Click to expand...
Click to collapse
sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ?
Hey there. First, thank you so much for this.
I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn.
I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package."
I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime.
Mjergen said:
well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ).
what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ?
what is your method of choice for decompiling and recompiling, btw ?
sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ?
Click to expand...
Click to collapse
Ditamae said:
Hey there. First, thank you so much for this.
I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn.
I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package."
I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime.
Click to expand...
Click to collapse
I use APK Manager v5
then drag/ drop updated files into the apks. to replace the old ones.
i cant find a decent guide atm but i know there is one.
Pvy
pvyParts said:
i cant find a decent guide atm but i know there is one.Pvy
Click to expand...
Click to collapse
I used & followed this tuto : http://youtu.be/YgWd0jsDtH0
if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back.
if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app.
it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process...
at work now, whenever I have 10min, I'll upload my systemUI apks
Mjergen said:
I used & followed this tuto : http://youtu.be/YgWd0jsDtH0
if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back.
if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app.
it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process...
at work now, whenever I have 10min, I'll upload my systemUI apks
Click to expand...
Click to collapse
OK my gimme 5 i'll edit the op with my full decompile/compile process
EDIT*** all done. hope it is enough... i really had to think on how to word it all LOL!
also the file in apktool/[apk name]/dist
has no signatures and will not run (from memory)
Pvy.
well, so far...no good. i followed your tuto using APK Manager 4.9, I got numerous errors when decompiling. log coming up in next post.
---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------
Part 1
Code:
--------------------------------------------------------------------------
|p* 02.12.2011 -- 12:16:52,24|
--------------------------------------------------------------------------
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu,
spustiteln‚ho programu nebo d*vkov‚ho souboru.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f090000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020009
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=allowClearUserData, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=persistent, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0x00000101
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x00000320
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009c
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000004b0
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009d
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_pressed, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020005
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020006
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020004
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004102
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b002e
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0108008c
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000602
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=clickable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f020008
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000011
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=text, value=0x7f090006
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000a00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000a00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000f00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x7f020000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0xffffff01
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02008a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010802d9
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=descendantFocusability, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001d
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f0200bf
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000501
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001e
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000010
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001f
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x01010040
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x7f060000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_gravity, value=0x00000010
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00000401
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000101
pt 2 of the log is basically repeating the pt1 above with different "name=" values
it goes on like that for a while and then at the very end of the log :
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(Unknown Source)
at brut.androlib.res.data.ResTable.getPackage(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
i tried reducing memory size (option 20) or running the .bat as Admin (Win 7 x64) but the same error kept coming back in the log. and before you ask, I do have ADB installed but APK Manager doesn't find it.
i'll try flashing a stock SGS2 ROM or a non-CM ROM, who knows, maybe it's CM's SystemUI's fault...i'll also try doing the procedure on a more powerful PC than the curent one I got at work
APK Manager relies on apktool and it seems you haven't installed the appropriate framework. Check here for more details.
iridaki said:
it seems you haven't installed the appropriate framework.
Click to expand...
Click to collapse
that makes perfect sense, efharisto good sir
I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC
--- EDIT ---
alright, it decompiled ! now it seems the problem lies in the recompiling :
Code:
|p* 02.12.2011 -- 13:07:11,05|
--------------------------------------------------------------------------
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu,
spustiteln‚ho programu nebo d*vkov‚ho souboru.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 5884): Unable to get buffer of resource asset file
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:textStyle'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Large'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Button'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:background'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:13: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:textSize'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling
any ideas before i go jump off a cliff... ?
Mjergen said:
that makes perfect sense, efharisto good sir
I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC
Click to expand...
Click to collapse
Trust me, pulling the framework is as harmless as it gets!
Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about.
Good luck!
PS: I am more of a madam, than a sir!
Mjergen said:
i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling
any ideas before i go jump off a cliff... ?
Click to expand...
Click to collapse
You certainly did not install the framework by renaming it to 1.apk.
The link I posted nowhere does it mention this is what you should do.
Code:
apktool if framework-res.apk
iridaki said:
Trust me, pulling the framework is as harmless as it gets!
Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about.
Good luck!
Click to expand...
Click to collapse
actually, for 95% of what I do, I only need CWM recovery and samsung's download mode, sooo...
iridaki said:
PS: I am more of a madam, than a sir!
Click to expand...
Click to collapse
my apologies, I couldn't have guessed !
iridaki said:
You certainly did not install the framework by renaming it to 1.apk.
The link I posted nowhere does it mention this is what you should do.
Click to expand...
Click to collapse
yup, I'll re-do it all this afternoon and take my time. now I'm trying to install Pvy's MOD at work, when I have 5 free minutes between two tasks...
so... i solved this the lazy way
I actually found a package that's flashable in recovery that did the trick ! it was lying around on a Polish Samsung forum (link : http://s5830.pl/thread-242.html). it is intended only for CyanogenMod and apparently the Galaxy Ace, but it works perfect on the latest CM 7.1 and a Galaxy S2 !
link to the mod flashable, in CWM recovery : http://db.tt/79ytqshA
maybe some of you brainiacs could make a universal, flashable zip ? all credit goes to Konsky from http://s5830.pl (and to Lady Luck for not [email protected]µ*& up my phone...)
anyway, BIG thanks to Pvy and the rest of you guys for the immediate follow-up customer care and i'm bookmarking this thread nonetheless for when I'll change my SGS2 - hopefully by then I'll be experienced enough not to fumble over de/re-compiling
Looks good and works without Problems in my X10mini with GingerDX v17 and naa Kernel06.
Good job, a little nice Customisation

[Video] Beginners guide to DeOdexing and Theming APKs

This is a beginners guide to DeOdexing and Theming APKs
I only started theming the past week so I by no means am the best person to make a tutorial on theming but, when I was trying to learn I couldn't find anything like this so I hope it will help anyone who wants to learn how to theme.
You will need:
apktools
http://dl.dropbox.com/u/40066052/apktool.zip
APK-Multi-tools
http://dl.dropbox.com/u/40066052/APK-Multi-Tool.zip
Baksmali and Smali (for DeOdexing)
http://dl.dropbox.com/u/40066052/DeOdexing.zip
and I didn't mention in the video but you need an image editor, which I use pain.net and also notepad++ or equivalent.
I hope this covers enough material to get you started.. It's pretty much all I know how to do right now from what I've learned over the past couple days but please post if you have questions and if I can't answer, hopefully somebody else in the forum can.
[edit] sorry apparently my video is too long for youtube so I just put it in dropbox... hope it works well enough for ya.
https://www.dropbox.com/s/a6y4vgqg58jq76y/20121006_1340_47.avi
[EDIT]
Also not covered in the video are system APKs that are tied to the framework such as SystemUI.apk
for those all you need to do is copy the content of your framework folder that you already have in the "DeOdexing" folder and past it into: C:\Users\{your user name}\apktool\framework
Then before doing "apktool d SystemUI.apk", first do "apktool if SystemUI.apk". Doing that first should allow the APK to decompile just fine.
This is the BEST theming tutorial I have ever seen. I would like to convert it to a written tutorial and post it here (with your permission).
All is good here. Thank you SOO much Brother for that tutorial. I am only having trouble when I try to decompile SystemUI.apk.
These are the errors I get:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\h311sdr0id>cd c:/devt/deodexing
c:\devt\deodexing>java -jar baksmali.jar -d framework -x SystemUI.odex
Can't find the file SystemUI.odex
c:\devt\deodexing>java -jar baksmali.jar -d framework -x SystemUI.odex
c:\devt\deodexing>cd apktool
The system cannot find the path specified.
c:\devt\deodexing>cd ..
c:\devt>cd apktool
c:\devt\apktool>apktool d SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\h311sdr0id\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030315
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030315
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030315
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030315
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080672
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01030307
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:64)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:98)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:112)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:152
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
c:\devt\apktool>
What can I do to get around these errors when trying to decompile the SystemUI.apk?
If I already have a deodexed apk for SystemUI.apk, could this help at all with the errors?
How would I go about this process using an already deodexed apk?
taihard said:
This is a beginners guide to DeOdexing and Theming APKs
[edit] sorry apparently my video is too long for youtube so I just put it in dropbox... hope it works well enough for ya.
https://www.dropbox.com/s/a6y4vgqg58jq76y/20121006_1340_47.avi
Click to expand...
Click to collapse
You could host it on Veoh, just have to get it down to 1Gig. I've never used veoh before, so I dunno if people hate that site or anything.
I can transcode your video with optimal settings to get that 1Gig sweet spot and still retain as much quality as possible if you like. PM me if you want me to set it up and get you the file.
Ta,
ALQI
I have updated OP with additional information...
If anyone wants to use any of this information feel free to use it in anyway you like (including making a written tutorial).

[SOLVED] [Q][HELP] Decompiling Settings.apk

Hello all succesful app tweakers
I tried to tweak 9-lockscreenmod-compatible Settings.apk but I have this problem when decompiling it:
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\George\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x02070015
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
W: Cant find 9patch chunk in file: "drawable-mdpi/appwidget_bg.9.png". Renaming
it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
I: Decoding values*/* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
However, I already installed framework from XXJPU and this Settings.apk is from XXJPU, and still can't decompile.
If you can help me, please, please let me know what to do to decompile it properly or what framework I need to install. Thank you :good:
Someone must know this... This error is really annoying...
Sent from my GT-I5800 using xda app-developers app
SOLVED.
With the help of Jason-EX I succesfully decompiled it.
SOLUTION: install both framework-res.apk and twframework-res.apk (apktool if) and then decompile Settings.apk.
Thanks Jason!

Could not decode attr value. Xperia J

Hi, while trying to leap decompilation me this error, please help.
Code:
Microsoft Windows [Wersja 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Wszelkie prawa zastrzeżone.
J:\Users\Wszyscy123>apktool d D:\SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: J:\Users\Wszyscy123\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x01040c7e
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080740
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080700
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(Re
sScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:61)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:432)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Thanks for your help

Categories

Resources