[Samsung Galaxy Nexus] ketu:
Help pls

If someone could pls help me...I am trying for 3 hour now to modify the framework-res.apk but with no luck. I managed to modify the array.xml but i can't recompile the apk.

I must say that this is my first time trying to modify an apk...so plain noob

I attached my original apk and if someone is kind enought to modify the array.xml and recompile it for me with the values from the first post.

Or, even better, tell me what i am doing wrong. Basically all my recompiled frameworks didn't contain the modification.

I used apk manager, selected 9 to decompile -> edited array.xml -> 11 compile - > yes to system apk -> yes to cpy over aditional files -> deleted the resources.arsc from keep folder -> OK

The new apk is way different from the original and i have only the assets folder. Here is my log file:

--------------------------------------------------------------------------
|16.02.2012 -- 0:58:26,27|
--------------------------------------------------------------------------
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/animator
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/interpolator
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/mipmap-320dpi
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/mipmap-hdpi
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/mipmap-ldpi
invalid resource directory name: d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res/mipmap-mdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ketu\AppData\Local\Temp\APKTOOL138231523560031478.tmp, -x, -S, d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, d:\_Download\apk_manager_4.9\other\..\projects\framework-res.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\ketu\AppData\Local\Temp\APKTOOL138231523560031478.tmp, -x, -S, d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, d:\_Download\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.

<integer-array name="config_autoBrightnessLevels">
<item>6</item>
<item>14</item>
<item>30</item>
<item>68</item>
<item>154</item>
<item>346</item>
<item>778</item>
<item>1752</item>
<item>3941</item>
<item>8867</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>40</item>
<item>45</item>
<item>50</item>
<item>55</item>
<item>60</item>
<item>80</item>
<item>100</item>
<item>130</item>
<item>175</item>
<item>230</item>
<item>250</item>
</integer-array>

Thanks in advance!