[Q] recompile problem framework-res.apk (4.2.2 jb) apk - Android Apps and Games

i have apktool and all software for apktool i do decompile framework-res.apk working perfectly but i m also recompile apk it's send this error
C:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'headset_pin_recognition' has no default translation in C:
\apktool\framework-res\res; found: zh_CN
C:\apktool\framework-res\res\layout\keyguard_screen_password_landscape.xml:21: e
rror: Error: No resource found that matches the given name (at 'layout' with val
ue '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_password_portrait.xml:21: er
ror: Error: No resource found that matches the given name (at 'layout' with valu
e '@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock.xml:22: error: Er
ror: No resource found that matches the given name (at 'layout' with value '@lay
out/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_tab_unlock_land.xml:16: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_landscape.xml:18: err
or: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
C:\apktool\framework-res\res\layout\keyguard_screen_unlock_portrait.xml:20: erro
r: Error: No resource found that matches the given name (at 'layout' with value
'@layout/keyguard_transport_control').
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\VINODK~1\AppData\Local\T
emp\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:
\apktool\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, 17, --target-sdk-version, 17, -F, C:
\Users\VINODK~1\AppData\Local\Temp\APKTOOL5014567853137649274.tmp, -x, -S, C:\ap
ktool\framework-res\res, -M, C:\apktool\framework-res\AndroidManifest.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, 17, --target-sdk-version, 17, -F, C:\Users\VINODK~1\AppData\Local\Tem
p\APKTOOL5014567853137649274.tmp, -x, -S, C:\apktool\framework-res\res, -M, C:\a
pktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
what should i do plz help
thanks in advanced

at first you have wrong posted,it shall be in Q/A section,now the second,did you install the framework res before?when not do it and it shall work than.

hey bro sorry because when i posting this i have only permission in this section Sorry i was always tried it but getting this error

Did you change any files in the APK package?? If you send me the framework, may be I will be able to help.

Problem Solved
thanks for helping me problem has solved i did add + in the error of xmls this is working greate

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?

[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

about recompiling apps

I have recompiled app using apktool, I got error
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\ROCK STAR>cd\
C:\>e:
E:\>cd a
E:\A>apktool if power.apk
I: Framework installed to: C:\Users\ROCK STAR\apktool\framework\127.apk
E:\A>apktool d power.apk
I: Using Apktool 2.0.0-RC2 on power.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ROCK STAR\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
testI: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
E:\A>apktool b power
I: Using Apktool 2.0.0-RC2 on power
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
E:\A\power\res\drawable-hdpi\matte_ab_back.PNG: error: File is case-insensitive
equivalent to: E:\A\power\res\drawable-xxhdpi\matte_ab_back.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\ROCKST
~1\AppData\Local\Temp\brut_util_Jar_4021937814520947120.tmp, p, --forced-package
-id, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 561, -
-version-name, 2.0.9-build-561-play, -F, C:\Users\ROCKST~1\AppData\Local\Temp\AP
KTOOL9038149586893225175.tmp, -I, C:\Users\ROCK STAR\apktool\framework\1.apk, -S
, E:\A\power\res, -M, E:\A\power\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\ROCKST~1\AppData\Local\Temp\brut_util_Jar_4021937814520
947120.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-vers
ion, 19, --version-code, 561, --version-name, 2.0.9-build-561-play, -F, C:\Users
\ROCKST~1\AppData\Local\Temp\APKTOOL9038149586893225175.tmp, -I, C:\Users\ROCK S
TAR\apktool\framework\1.apk, -S, E:\A\power\res, -M, E:\A\power\AndroidManifest.
xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\ROCKST~1
\AppData\Local\Temp\brut_util_Jar_4021937814520947120.tmp, p, --forced-package-i
d, 127, --min-sdk-version, 9, --target-sdk-version, 19, --version-code, 561, --v
ersion-name, 2.0.9-build-561-play, -F, C:\Users\ROCKST~1\AppData\Local\Temp\APKT
OOL9038149586893225175.tmp, -I, C:\Users\ROCK STAR\apktool\framework\1.apk, -S,
E:\A\power\res, -M, E:\A\power\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
E:\A>e
what does this mean? How can be it solved?

Categories

Resources