TF700T SystemUI.apk won't recompile - Asus Transformer TF700

Well, having been developing on the SGS2 and SGS3 for awhile, I finally got my ASUS Infinity TF700T.
I have successfully made changes to framework-res.apk.
I wanted to make changes to the SystemUI.apk. The decompile with apktool worked (I think). But, when I tried to recompile it could not find some files. The files do not exist in the res/drawable or res/layout folders.
Has anyone been able to decompile/recompile a stock SystemUI.apk?
I have tried various combinations of apktool.jar (1.4.2 thru 1.4.9) as well as using different aapt.exe files. Nothing seems to work.
Here is the error if anyone is interested:
INFO: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL848757225396994910.tmp, -I, C:\Users\Administrator\apktool\framework\1.
apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\res, -M, D:\ASUSTF700T\ROMS\9456\
test\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL848757225396994910.tmp, -I, C:\Users\Adm
inistrator\apktool\framework\1.apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\re
s, -M, D:\ASUSTF700T\ROMS\9456\test\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
So far I have not made any changes. I need to work out this problem.

gcrutchr said:
Well, having been developing on the SGS2 and SGS3 for awhile, I finally got my ASUS Infinity TF700T.
I have successfully made changes to framework-res.apk.
I wanted to make changes to the SystemUI.apk. The decompile with apktool worked (I think). But, when I tried to recompile it could not find some files. The files do not exist in the res/drawable or res/layout folders.
Has anyone been able to decompile/recompile a stock SystemUI.apk?
I have tried various combinations of apktool.jar (1.4.2 thru 1.4.9) as well as using different aapt.exe files. Nothing seems to work.
Here is the error if anyone is interested:
INFO: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL848757225396994910.tmp, -I, C:\Users\Administrator\apktool\framework\1.
apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\res, -M, D:\ASUSTF700T\ROMS\9456\
test\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\ADMINI~1\AppData\Local\Temp\APKTOOL848757225396994910.tmp, -I, C:\Users\Adm
inistrator\apktool\framework\1.apk, -S, D:\ASUSTF700T\ROMS\9456\test\systemui\re
s, -M, D:\ASUSTF700T\ROMS\9456\test\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
So far I have not made any changes. I need to work out this problem.
Click to expand...
Click to collapse
I got the exact same error for my HTC One X! This not only occurs with SystemUI.apk, framework-res.apk gives the same problem as well! Really hope someone can provide a solution.

Mazzstrikers said:
I got the exact same error for my HTC One X! This not only occurs with SystemUI.apk, framework-res.apk gives the same problem as well! Really hope someone can provide a solution.
Click to expand...
Click to collapse
Ill try something tomorow, I used to have the same problem with roms and stuff for the sensation but I got a way around that now. But I want to make sure if that is the same problem with this, before posting any say that I got a fix XD

UPDATE:
I am trying to decompile/compile SystemUI.apk on an ASUS Transformer infinity (ICS 4.0.3). The file decompiles ok, but does not compile. When I turned on java -verbose, I noticied apktool could not find some .pngs. They are in the drawable-hdpi folder and defined in the values/public.xml file.
Example: in /drawable/status_bar_expand.xml there is a line:
<item android:drawable="@drawable/status_bar_expand_default" />
It cannot find status_bar_expand_default.png. It is defined in public.xml and is a .png in the drawable-hdpi folder.
According to user IBotPeaches, who is continuing work on apktool, it is a problem with apktool and he is working on correcting it.
When he does, and it works, then I can start posting some mods for the TF700T.
I currently have CRT OFF working, but most of what I want to do involves SystemUI.apk.

Sorry for the stupid question, but what exactly is "CRT OFF" - I've seen that mentioned a few places....
Thanks!
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2

It's the way old TVs used to turn off.
The screen collapses from the top/bottom at the same time until you have a horizontal white line. Then the screen goes off.

Related

[Q] Help with Miui Patchrom!

Hi!
I've been working on a Miui ROM for the Wildfire S. I am using MiCode Patchrom. I'm having some problems—can you help me?
Here's the log: (under Mac OS X Lion)
>>> Install framework resources for apktool...
install framework-miui-res.apk
/Users/Paul/patchrom/tools/apktool --quiet if /Users/Paul/patchrom/miui/system/framework/framework-miui-res.apk
unzip >/dev/null CM9_modpunk.zip "system/framework/*.apk" -d out
install out/system/framework//framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
/Users/Paul/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/Users/Paul/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
(skipping hidden file '/Users/Paul/patchrom/marvel/out/framework-res/res/.DS_Store')
invalid resource directory name: /Users/Paul/patchrom/marvel/out/framework-res/res/drawable-xmdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL6605038754455243514.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/framework-res.apk] Error 1
So, what gives? I've tried changing the PATH, updating ApkTool, etc…, and most of the questions about this on forums aren't very helpful.
Thanks!
Also—I'm building Miui v4

[Q]What does this error in apktool mean?

Hey Guys,
I was modding my SystemUI.apk. I successfully decompiled it with apktool (the latest one), made the changes and then recompiled. I didn't make any changes to .9.png files, when I tried to recompile... it failed, I get this error ---
Code:
[email protected]:/home/jason# apktool b /home/jason/SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:/home/jason#
I can see that most of these errors are related to AndroidManifest.xml. But I can't understand
Code:
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
and
Code:
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
part. BTW, I did tinker with the XMLs but I didn't make any changes to them. What does "[aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]" mean???
Any Ideas? I do have SDK installed...
Thanks in advance guys!
The only errors that mean anything is the beginning. The rest are due to that one error. It states that the styles XML is pointing to a style that isn't there. Do you have the proper frameworks installed?
Wayne Tech Nexus
Thanks for Replying!
I do have framework files installed... I did "apktool if framework-res.apk". That is the only framework apk I can find.
Ok here is your errors. Cross ref these in the decompiled frameworks apk
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
JasonKZLY said:
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
Click to expand...
Click to collapse
Very well could be. Where did you get the apk from?
I got the apk from a Custom ROM for my phone...
JasonKZLY said:
I got the apk from a Custom ROM for my phone...
Click to expand...
Click to collapse
Did you pull and install the framework from that rom?
Wayne Tech Nexus
zelendel said:
Did you pull and install the framework from that rom?
Click to expand...
Click to collapse
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
JasonKZLY said:
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
Click to expand...
Click to collapse
They should be the same thing. And you are running the if command for apktool for both the framework-res and the system ui apks right?
Not sure about the adb for linux as all my themeing is done in windows
zelendel said:
And you are running the if command for apktool for both the framework-res and the system ui apks right?
Click to expand...
Click to collapse
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
JasonKZLY said:
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
Click to expand...
Click to collapse
Thats what I did today myself. I have a proper dual boot going with win7 and ubuntu 13.04.
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
iBotPeaches said:
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
Click to expand...
Click to collapse
After downloading apktool(Thank you soo much for this), I replaced the aapt provided with apktool with the aapt from the latest SDK. Is this the reason?

Need Help Changing Home Screen Grid On HTC Blinkfeed Launcher

I need some help changing the home screen grid size of the Blinkfeed launcher ported for AOSP based ROM's. I have created a seperate thread for the HTC One S here. The original thread is here.
The grid size in the launcher is currently 4 x 4 but it is too spaced out vertically (see attached pic). So what I want to do is change the prism.apk to reduce the vertical spacing for 4 x 4 and create a separate zip with a 4 x 5 grid size.
I understand the files that need changing are integers.xml and dimens.xml in prism.apk
The problem I am having is that I am unable to compile the prism.apk. I have tried using APKTool and Virtuous 10 Studio and get the same following error:
C:\Android\APK Tool\prismblack\res\values\styles.xml:2868: error: Error: No reso
urce found that matches the given name: attr 'android:searchViewEditQuery'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\
APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:
\Android\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidMani
fest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Ross\AppData\Local\Temp\APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\
apktool\framework\1.apk, -S, C:\Android\APK Tool\prismblack\res, -M, C:\Android\
APK Tool\prismblack\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\AP
KTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:\A
ndroid\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
I get this error without even changing any of the values, just decompiling, then compiling the prism.apk again. I have tried updating the APKTool version, updating the aapt.exe file, reinstalling Android SDK. The launcher only works on android 4.4 so I've updated the SDK to the newest version, still get the same errors.
Does anyone have any ideas how I can get this to compile or can anyone try to compile this on their system to see if its the file itself?
Also, does anyone have the values that I need to change the dimens.xml file to, so it fit's correctly on the One S? Otherwise its trial and error.
@Flashalot @rc420head @grorg - All help would be greatly appreciated.
Blinkfeed Launcher
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvZ2NaV2w4Z2ZQSUE/edit?usp=sharing
Prismblack.apk
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvSkM2VlpCampWb2c/edit?usp=sharing
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Flashalot said:
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Click to expand...
Click to collapse
Legend. That was it, added the framework and it compiled correctly. :good:
The app drawer grid size I'm not bothered about, its more the homescreen. The guides I have looked at don't mention editing smali files so I'll try with just integers.xml and dimens.xml and see what happens.
One quick question, do you know if the values I need to change in dimens.xml will be the same with all devices with hdpi resolution or will they be specific to the ville?
Edit: Tried all the guides/tutorials, nothing changes, must have to change the smali files as well.

[Q] i can't recompile framework-res

i can decompile and recompile systemui.apk
i can decompile framework-res.apk but i can't recompile framework-res
this log :
D:\android\APKTool\APKTool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\android\APKTool\APKTool\framework-res\res/dr
awable-ldrtl-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\
APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\fra
mework-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml
]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\user\AppData\Local\Temp\APKTOOL4210339719876539949.tmp, -x, -0, arsc, -S,
D:\android\APKTool\APKTool\framework-res\res, -M, D:\android\APKTool\APKTool\fr
amework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\user\AppData\Local\Temp\AP
KTOOL4210339719876539949.tmp, -x, -0, arsc, -S, D:\android\APKTool\APKTool\frame
work-res\res, -M, D:\android\APKTool\APKTool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
i think i wrong edit my framework-res.apk but i try decompile and no edit ,its same cannot recompile framework-res
sorry to my english
friend try this
hi friend i think there is ssomething error in the apktool
i have posted a link below
:cyclops: http://forum.xda-developers.com/showpost.php?p=43353411&postcount=54:cyclops:
download that version
unzip that file to a specific folder ther you open comand prompt by shift+right click
in that first type
step-1
apktool if framework-res.apk (here xxxxxx.apk is your desired apk file)
step-2(decompile)
apktool d xxxxxxx.apk
step-3(recompile)
apktool b -f -d xxxxxxx
you find the recompiled apk in xxxxxx/dist folder open it with winrar or 7zip .now open original apk file with 7zip or winrar and drag and drop
META-INF and resource files there give the compression level as (store) and sign it(important)
step-4(sign)
java -jar signapk.jar testkey.x509.pem testkey.pk8 xxxxxxx.apk xxxxxxx_signed.apk
step-5(zipalign)
zipalign -fv 4 xxxxxxxx.apk xxxxxxxx-new.apk
to zip align you must install android sdk software in that go to tools/ there you search for (draw9patch.bat) and (zipalign.exe)
copy that two files and paste in C:\windows\paste it
hit thanks if i helped

Xperia framework cm11(solved)

I AM NOT ABLE TO RECOMPILE USING THIS METHOD CAN ANY1 PLEASE HELP ME AND THEME OUR FRAMEWORK ACC TO THIS GUIDE http://forum.xda-developers.com/and...framework-res-to-xperia-t2843046#post54871675
bhavstech said:
I AM NOT ABLE TO RECOMPILE USING THIS METHOD CAN ANY1 PLEASE HELP ME AND THEME OUR FRAMEWORK ACC TO THIS GUIDE http://forum.xda-developers.com/and...framework-res-to-xperia-t2843046#post54871675
Click to expand...
Click to collapse
what error do you get while recompiling? are you using apktool?
chimmychenga said:
what error do you get while recompiling? are you using apktool?
Click to expand...
Click to collapse
i get this error
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2>apktool b framew
ork-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc310-mnc-1
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc450-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Tem
p\APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\
apktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5
.2.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Bhavya\AppData\Local\Temp\APKTOOL2684508379156101602.tmp, -x, -S, F:\proj
ect\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\res, -M,
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\An
droidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Temp\
APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\ap
ktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5.2
.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2
>
bhavstech said:
i get this error
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2>apktool b framew
ork-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc310-mnc-1
invalid resource directory name: F:\project\decompile\apktool1.5.2.tar\apktool1.
5.2\apktool1.5.2\framework-res\res/values-mcc450-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Tem
p\APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\
apktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5
.2.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Bhavya\AppData\Local\Temp\APKTOOL2684508379156101602.tmp, -x, -S, F:\proj
ect\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\res, -M,
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2\framework-res\An
droidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Bhavya\AppData\Local\Temp\
APKTOOL2684508379156101602.tmp, -x, -S, F:\project\decompile\apktool1.5.2.tar\ap
ktool1.5.2\apktool1.5.2\framework-res\res, -M, F:\project\decompile\apktool1.5.2
.tar\apktool1.5.2\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
F:\project\decompile\apktool1.5.2.tar\apktool1.5.2\apktool1.5.2
>
Click to expand...
Click to collapse
Ok, follow this steps:
1. Have you installed the latest java jdk and jre?
2. Have you download the latest android sdk?
3. Download the platform tools in android sdk. The latest tools + the one from build 17 or 19. I dont know for sure.
4. Go to the folder platform tools and there should be aapt.exe. copy this to your apktool folder. The only files there should be are the .exe .jar and .bat files.
Make sure there are no spaces in the names of folders.
Added: this thread should actually go to Q&A
chimmychenga said:
Ok, follow this steps:
1. Have you installed the latest java jdk and jre?
2. Have you download the latest android sdk?
3. Download the platform tools in android sdk. The latest tools + the one from build 17 or 19. I dont know for sure.
4. Go to the folder platform tools and there should be aapt.exe. copy this to your apktool folder. The only files there should be are the .exe .jar and .bat files.
Make sure there are no spaces in the names of folders.
Added: this thread should actually go to Q&A
Click to expand...
Click to collapse
i have everything i am able to recompile and decompile everythin but this doesnt get compiled
Well as i see in your command you are using "b" wich means that you are recompiling.
If you want to edit framework-res.apk you need to install it firts by running the command: apktool if framework-res.apk. then decompile: apktool d framework-res.apk.then modify your framework. THEN, at last, run: apktool b framework-res, Without .apk. Now it is finished.
If it still doesn't work you have to try an other aapt.exe.
chimmychenga said:
Well as i see in your command you are using "b" wich means that you are recompiling.
If you want to edit framework-res.apk you need to install it firts by running the command: apktool if framework-res.apk. then decompile: apktool d framework-res.apk.then modify your framework. THEN, at last, run: apktool b framework-res, Without .apk. Now it is finished.
If it still doesn't work you have to try an other aapt.exe.
Click to expand...
Click to collapse
solved it wan an issue with apk tool
bhavstech said:
solved it wan an issue with apk tool
Click to expand...
Click to collapse
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
SFCMouco said:
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
Click to expand...
Click to collapse
of course but its not booting atm
SFCMouco said:
Is it possible for you to share your work results if you are successful? I really will be thankful because I'm not very god whit that kind of procedures. Thanks in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/google-nexus-5/themes-apps/port-xperia-z2-framework-cm11-t2854266 here you go

Categories

Resources