XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
THIS IS ONLY FOR THEMERS AND MODERS
If Someone needs to add xperia S lockscreen to your MODED files
::::::::::::::::::::::::::::::::ANDROID.POLICY.JAR:::::::::::::::::::::::::::::::
First:::: Download This ::::http://www.mediafire.com/download.php?g35chi82ex5wou9
Then
DECOMPILE your android.policy.jar (After Deodexing them if odexed ) --- Using x10modtool or any other tool
Then
Copy the files from the downloaded RAR (above) to the decompiled folder /policy/impl and RECOMPILE
Thats your android.policy.jar
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No NEED TO.ADD.ANYTHING.ANYWHERE SORRY
help
please tell me how to deodex android.policy.jar (x10moddtool cant)...
dex87xda said:
please tell me how to deodex android.policy.jar (x10moddtool cant)...
Click to expand...
Click to collapse
Use xultimate
Thank You,
Aeon
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
simplyjustkids said:
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
Click to expand...
Click to collapse
Explain the error, give a screen shot
Thank You,
Aeon
I post the log here ones I reach home. It's not a problem to decompile but recompile is an issue. I think it's my apk manager.
EDIT: logs are here
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:09:54.45|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\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, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:11:04.77|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\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, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sent From My Sony Xperia Arc S
Like the compiler said, you didn't add lines in strings.xml, and the hex code you added was over, write hex in a way in continuation to the respective part in public.xml
Thank You,
Aeon
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
simplyjustkids said:
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
Click to expand...
Click to collapse
1. You didn't add lines in strings.xml or manifest
2. You also set the hex codes wrong
3. You might have not installed framework files
Thank You,
Aeon
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
simplyjustkids said:
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
Click to expand...
Click to collapse
Update : thanks man I really forgot to check that ,I will update every post
Thank You,
Aeon
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
Yes i think mate
sent from my Xperia Neo V Supercharged ICS 4.0.4
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
May be, and can you try it with an aosp multiwave framework-res and check it out
Thank You,
Aeon
multiwave framework? Which?
Sent From My Sony Xperia Arc S
simplyjustkids said:
multiwave framework? Which?
Sent From My Sony Xperia Arc S
Click to expand...
Click to collapse
I meant an ASOP framework files, no need I tried with Slide stock ics UN modified framework still it works
Thank You,
Aeon
The android.policy.jar file that i posted is what i did using your tutorial, is there anything wrong i did in there that make it not work?
After trying your android.policy.jar mod I am getting the lockscreen settings but no lockscreen. And editing framework-res.apk gives bootloop, as you mentioned earlier it needs editing androidmanifest.xml, but afaik editing it changes the signature of the apk.
I am using a lot of mods (including hansip87's) and I want to incorporate this mod too.
And I dont want to flash the rom.
Any help will be appreciated
what about mod for GB
AeonWorld said:
XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon
Click to expand...
Click to collapse
Please tutorial how to add lockscreen from SXS for 587 Xperia arc?
Related
So I'm in the process of porting a theme (for IE20) and I'm making good progress, however I can't seem to get the SystemUI.apk to compile correctly even without changing anything. (using APK manager 5.0.2)
I actually updated it from v5 to see if it would help but I keep getting the same error
Here's the log:
Code:
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
Could Not Find C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Jon\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res\layout\status_bar_expanded.xml:12: error: Error: No resource found that matches the given name (at 'layout' with value '@touchwiz:layout/quick_panel_call').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jon\AppData\Local\Temp\APKTOOL5747871947045013646.tmp, -I, C:\Users\Jon\apktool\framework\1.apk, -S, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res, -M, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jon\AppData\Local\Temp\APKTOOL5747871947045013646.tmp, -I, C:\Users\Jon\apktool\framework\1.apk, -S, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res, -M, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
From reading the log I would say I just have to decompile with dependencies (the twframework-res.apk if I'm not mistaken?) but that doesn't seem to work.
And if it makes a difference, when I install the frameworks they get installed to C:\Users\Jon\apktool\framework no matter what, whether I install them via apk manager or cmd, then again I might just be using the wrong command.
Basically the product .apk is 12.4 KBs when it should be around 300 KBs.
Any help is appreciated!
Decompile systemUI.apk using framework-res.apk as a dependency. Not twframework.
good day.
chopper the dog said:
Decompile systemUI.apk using framework-res.apk as a dependency. Not twframework.
good day.
Click to expand...
Click to collapse
That came up with the same error, log is exactly the same so I won't bother posting it.
EDIT:
When I try to use framework-res.apk as a dependency I get the error: "Sorry thats not the dependee apk, try again"
However if I use twframework it decompiles but I get the error when I compile it.
So your steps are.
1.add systemUI.apk to place here to be modded folder.
2.option 10 in the apk mgr script
3when prompted (simply drag the framework-res.apk from you framework folder in to the apk mgr script window)
4.enter
5.make edits to apk
6.option 11 to compile.
7.is this a system apk (Y)
8.Would you like to copy over any bla bla bla to reduce errors? (Y)
9.go to keep folder and delete resources.arc if you made any xml edits
10.go to drawable hdpi in keep folder and delete any images that you edited.
11. enter in script to continue/finish compiling.
good day.
---------- Post added at 04:45 PM ---------- Previous post was at 04:38 PM ----------
ok just saw your edited post. TBH I've used all those steps above to theme aosp. My only theming of touch wiz I did was eclair/froyo which did not include systemUI so it make sense with needing twframe.
good day.
chopper the dog said:
So your steps are.
1.add systemUI.apk to place here to be modded folder.
2.option 10 in the apk mgr script
3when prompted (simply drag the framework-res.apk from you framework folder in to the apk mgr script window)
4.enter
5.make edits to apk
6.option 11 to compile.
7.is this a system apk (Y)
8.Would you like to copy over any bla bla bla to reduce errors? (Y)
9.go to keep folder and delete resources.arc if you made any xml edits
10.go to drawable hdpi in keep folder and delete any images that you edited.
11. enter in script to continue/finish compiling.
good day.
Click to expand...
Click to collapse
That's exactly what I would do if I didn't get errors first.
The first error is when I drag over framework-res.apk "Sorry thats not the dependee apk, try again"
Now if i drag in the twframework-res.apk I can get to #6 in your guide and I get the error "An Error Occured, Please Check The Log"
Press any key to continue . . .
Then I proceed to steps #7, 8, 9,10,11.
Now I have an apk that is 269 KBs, compared to the stock SystemUI.apk which is 308 KBs.
One minute, going to push this to my phone and see what happens.
Okay that seems to have given me a fully intact SystemUI.apk.
I guess I was just getting paranoid with the smaller size and the error.
So instead of saying no to
Code:
8.Would you like to copy over any bla bla bla to reduce errors? (Y)
like I did with the other .apk files I said yes and that's what made it work.
Thank you!
Okay so that didn't work after all. Apparently that works fine if I don't change anything, but once I did my xml edits I had problems.
It seems the files I delete in the keep folder don't get compiled in resulting SystemUI.apk. This also explains why the file size is smaller.
Everything leads back to the error in the log but...I don't know what to do next...Here's a log following chopper's steps precisely aside from using twframework-res.apk instead of framework-res.apk.
Code:
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
I: Framework installed to: C:\Users\Jon\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Jon\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res\layout\status_bar_expanded.xml:12: error: Error: No resource found that matches the given name (at 'layout' with value '@touchwiz:layout/quick_panel_call').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jon\AppData\Local\Temp\APKTOOL8422748642562834993.tmp, -I, C:\Users\Jon\apktool\framework\1.apk, -S, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res, -M, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jon\AppData\Local\Temp\APKTOOL8422748642562834993.tmp, -I, C:\Users\Jon\apktool\framework\1.apk, -S, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\res, -M, C:\Users\Jon\Desktop\Theming\Apk_Manager_5.0.2\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the file specified.
The directory is not empty.
EDIT: Downloaded the original version 4.9 and everything works swimmingly now.
Is it possible to recompile the framework-res.apk from cm9-20120404??
tried apktool 1.4.1 & 1.4.2 with newest aapt.exe
and AutoAPKtool 2.0.3 still lots of error........
anyone can help?
Use the apk tool designed for ics . It didn't gave me errors on decompiling, not tried the version you mentioned though
#*posted on the move *#
bala_gamer said:
Use the apk tool designed for ics . It didn't gave me errors on decompiling, not tried the version you mentioned though
#*posted on the move *#
Click to expand...
Click to collapse
I tried this ICS apktool, but still got errors with 'plurals.xml'
http://forum.xda-developers.com/showthread.php?t=1558171
ron194 said:
I tried this ICS apktool, but still got errors with 'plurals.xml'
http://forum.xda-developers.com/showthread.php?t=1558171
Click to expand...
Click to collapse
use "AutoAPKTool2.0.0" and just tried decompiling the same and didnt got any errors. dont forget to install the framework b4 decompiling.
bala_gamer said:
use "AutoAPKTool2.0.0" and just tried decompiling the same and didnt got any errors. dont forget to install the framework b4 decompiling.
Click to expand...
Click to collapse
still not work......
Code:
[*] C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res
recompiling C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/animator
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/interpolator
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-hdpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-ldpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-mdpi
invalid resource directory name: C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res/mipmap-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Ron\AppData\Local\Temp\APKTOOL8300429255981799689.tmp, -x, -S, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.0\_INPUT_APK\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Ron\AppData\Local\Temp\APKTOOL8300429255981799689.tmp, -x, -S, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\res, -M, C:\AutoAPKTool2.0.0\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
ron194 said:
still not work......
Click to expand...
Click to collapse
you are right, giving errors on recompiling. what mod are you doing anyway?
bala_gamer said:
you are right, giving errors on recompiling. what mod are you doing anyway?
Click to expand...
Click to collapse
thx for ur help! I hv just replaced the ICS "aapt.exe" to the AutoAPKTool 2.0.0, and it works now!
I just want to mod the navigation bar, but cant recompile the framework-res even without any mod before.......
i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..
gandhar said:
i tried recompiling the Home.apk, in the same condition i decompiled it, but it gives an error,
i installed
SemcGenericUxpRes.apk and framework-res.apk and it succesfully decompiled.
also: i tried an older version of apktool , 1.4.1 which was succesfull with some samsung phones in other threads but no success with that either
i also tried copying the latest aapt from the sdk to the apktool installation, nothing.
so if anyone has had success recompiling sony ICS apks, then help..
Click to expand...
Click to collapse
You should ask question in general section anyway...
Sent from my WT19i using XDA
What error you get?
Also, wrong section.
Someguyfromhell said:
What error you get?
Also, wrong section.
Click to expand...
Click to collapse
oh sorry for the wrong section, but i do not think someone in the general section would have answered this one..
this is exactly the error
C:\Users\gandhar\apktool>apktool d Home.apk Home
Destination directory (C:\Users\gandhar\apktool\Home) already exists. Use -f swi
tch if you want to overwrite it.
C:\Users\gandhar\apktool>apktool d Home.apk Home
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\gandhar\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\gandhar\apktool>apktool b Home Home1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\gandhar\apktool\Home\res\values\styles.xml:4: error: Error retrieving p
arent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\gandhar\AppData\Local\Temp
\APKTOOL762609809719293048.tmp, -I, C:\Users\gandhar\apktool\framework\1.apk, -I
, C:\Users\gandhar\apktool\framework\2.apk, -S, C:\Users\gandhar\apktool\Home\re
s, -M, C:\Users\gandhar\apktool\Home\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\gandhar\AppData\Local\Temp\APKTOOL762609809719293048.tmp, -I, C:\Users\gand
har\apktool\framework\1.apk, -I, C:\Users\gandhar\apktool\framework\2.apk, -S, C
:\Users\gandhar\apktool\Home\res, -M, C:\Users\gandhar\apktool\Home\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\gandhar\apktool>
i have the latest version of java
danist727 said:
You should ask question in general section anyway...
Sent from my WT19i using XDA
Click to expand...
Click to collapse
i thought ROM modders would have come across this error before, so, here..
edit:
@sumguyfromhell,
i have latest aapt from sdk, java jdk, jre
Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).
Someguyfromhell said:
Seems like you have made a mistake while editing a .xml file, as it is unable to compile the file(xml files are compiled to a bit different language).
Click to expand...
Click to collapse
i just did that, no editing done, i directly recompiled after the decompiling..
edit:
say i just want to change the values.xml, so is there a workaround maybe?
edit: i mean integers.xml
Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?
gandhar said:
Hurray!!! i found something,
Just decompile apk, replace the string <style name="Layout.ButtonContainer" for <style name="Layout.ButtonContainer" parent="@android:style/Theme.Wallpaper.NoTitleBar"> at \res\values\styles.xml and compile...
it's from this thread,
http://forum.xda-developers.com/showthread.php?t=1276332
just recompiled, thank you guys
can someone close this thread?
Click to expand...
Click to collapse
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
whalesplaho said:
i get dis error while recompiling.....
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\LaLa\AppData\Local\Temp\APKTOOL61323.tmp, -I, C:\Users\LaLa\apktool\framework\1.apk, -S, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\res, -M, C:\Users\LaLa\plaho\Android\flash.driverz\Apk_Manager_5.0.2\other\..\projects\TTPod_Android_release.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
but i cant find layout in styles.xml!!!! Help..
Click to expand...
Click to collapse
update your sdk to latest version, then copy aapt.exe from platform-tools to apktool directory, that was the fix i had found on the apktool bugtracker.
edit:you have to install frameworks again after replacing aapt
how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??
iiandskater said:
how about decompiling and recompiling framework-res.apk, settings.apk, systemui.apk, and other semc ics apks bro gandhar ??
Click to expand...
Click to collapse
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version
gandhar said:
a lot of people including me are waiting for the next version of apktool just because of the errors that are met when recompiling ICS apks..
it does not accept some parts of a lot of xml files, so many need to be changed just to recompile the file, many files excluding the actual modifications we need to do..
well i am no expert at this, so i may be wrong, but my experience in trying to recompile leads me to conclude that i should wait for the next version
Click to expand...
Click to collapse
i'm agree with you,
i've try many ways but its always end with no luck..
that's doesn't matter my bro,
i also hope for new version / way that will works perfectly,
thanks for ur answer..
Hi, I want modify the number of deskop on my Ray ...
In the Home.apk, this line in the R$integer.smali file :
".field public static final number_of_desktop_panes:I = 0x7f09000a"
But I don't understand this integer format ? and How can I modify this ?? (and it's possible ?)
Or another way to modify the number of desktop ??
Thanks for your dev answers !
u have to unpack Home.apk via APK tool, then find in res/values/integers.xml.
there u will see Number of desktop panes=5 , Modify to whichever number u like...
Then repack, re-sign, zipalign apk..
jjdoctor said:
u have to unpack Home.apk via APK tool, then find in res/values/integers.xml.
there u will see Number of desktop panes=5 , Modify to whichever number u like...
Then repack, re-sign, zipalign apk..
Click to expand...
Click to collapse
Thanks for your reply but I already unpack Home.apk (ics final version) with apktool and I don't have integers.xml !!
In the values folder, Only 4 xml files : array, colors, ids, styles ...
EDIT : Sorry jjdoctor I think I have a problem with my framework-res , because now when I try to unpack I have some warn ... and if I retry I don't have same file and my unpack directory ... SORRY
Ok I re-pull my framework-res and my SemcGenericUxpRes and retry the unpack ...
All fine, I have now the integers.xml ! thanks jjdoctor
please modify 3 desktop for me...
i try to decompile home.apk but error
thx
Have you unpack with : apktool if SemcGenericUxpRes.apk ??
Before your home.apk
I can give you my 3 desktop home.apk but I use this mod : http://forum.xda-developers.com/showthread.php?t=1534903 (ICS final) ,and the framework-res is modded !!
Sent from my ST18i using XDA
mickfo said:
Have you unpack with : apktool if SemcGenericUxpRes.apk ??
Before your home.apk
I can give you my 3 desktop home.apk but I use this mod : http://forum.xda-developers.com/showthread.php?t=1534903 (ICS final) ,and the framework-res is modded !!
Sent from my ST18i using XDA
Click to expand...
Click to collapse
no problem
i use this mod from hansip too
can't wait your 3 desktop home
thx
Here my home.apk with only 3 deskop...
I don't do a CWM update.zip but you can replace in /system/app your home.apk with my home.apk via es explorer (right rw-r-r)
Empty all your deskop before replace... and you must use this mod : http://forum.xda-developers.com/show....php?t=1534903 (ICS final)
Thank you very much...
It works... I use ROICS V5_Rev1
Thx for your help
Sent from my ST18i using XDA
mickfo said:
Ok I re-pull my framework-res and my SemcGenericUxpRes and retry the unpack ...
All fine, I have now the integers.xml ! thanks jjdoctor
Click to expand...
Click to collapse
could you please explain how to do this? i got same error here
I pull my framework-res.apk and my SemcGenericUxpRes.apk in /system/framework and my Home.apk in /system/app
I unpack with :
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
And :
apktool d Home.apk
Mod you want
mickfo said:
I pull my framework-res.apk and my SemcGenericUxpRes.apk in /system/framework and my Home.apk in /system/app
I unpack with :
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
And :
apktool d Home.apk
Mod you want
Click to expand...
Click to collapse
what's the different between "apktool if" and "apktool d". are you using the tool from here http://apkmultitool.com ?
---------- Post added at 06:43 AM ---------- Previous post was at 06:26 AM ----------
hafatih27 said:
what's the different between "apktool if" and "apktool d". are you using the tool from here http://apkmultitool.com ?
Click to expand...
Click to collapse
ok i got the tool and already got it installed. but as newbie, i wanna ask where to place those apk files for decompiling?
---------- Post added at 06:56 AM ---------- Previous post was at 06:43 AM ----------
ok guys, finally i did it!
(just point the direction using cd command in cmd before apktool, am i right?)
i succeeded installing framework and semc, also succeeded decompile home.apk. but i failed compiling it. the terminal said there were errors but i dont recognize it. even if i compile directly after decompiling without editing any file. please help
Code:
H:\apps\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
H:\apps\android\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
H:\apps\android\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
H:\apps\android\apktool>cd Home
H:\apps\android\apktool\Home>apktool b
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
H:\apps\android\apktool\Home\.\res\values\styles.xml:4: error: Error retrieving
parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, H:\apps\android\apktool\Home\.\
res, -M, H:\apps\android\apktool\Home\.\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\haf.001\AppData\Local\Temp\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
H:\apps\android\apktool\Home\.\res, -M, H:\apps\android\apktool\Home\.\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The error is "BrutException: could not exec command: [aapt, p, ..."
Your PATH variable is correct?? have you add in your PATH : H:\apps\android\apktool\ ??
mickfo said:
The error is "BrutException: could not exec command: [aapt, p, ..."
Your PATH variable is correct?? have you add in your PATH : H:\apps\android\apktool\ ??
Click to expand...
Click to collapse
still the same...
Code:
C:\Users\haf.001\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
C:\Users\haf.001\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
C:\Users\haf.001\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\haf.001\apktool>apktool b C:\Users\haf.001\apktool\Home
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\haf.001\apktool\Home\res\values\styles.xml:4: error: Error retrieving p
arent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL4121807731103563189.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, C:\Users\haf.001\apktool\Home\r
es, -M, C:\Users\haf.001\apktool\Home\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\haf.001\AppData\Local\Temp\APKTOOL4121807731103563189.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
C:\Users\haf.001\apktool\Home\res, -M, C:\Users\haf.001\apktool\Home\AndroidMani
fest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Under linux, I use the last version of apktools, and I've replaced the aapt binary (in the apktools dir) with the last aapt of android-sdk (in platforms-tools)
Sent from my ST18i using XDA
hafatih27 said:
i succeeded installing framework and semc, also succeeded decompile home.apk. but i failed compiling it. the terminal said there were errors but i dont recognize it. even if i compile directly after decompiling without editing any file. please help
Code:
H:\apps\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\1.apk
H:\apps\android\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\haf.001\apktool\framework\2.apk
H:\apps\android\apktool>apktool d Home.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\haf.001\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
H:\apps\android\apktool>cd Home
H:\apps\android\apktool\Home>apktool b
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
[B]H:\apps\android\apktool\Home\.\res\values\styles.xml:4: error: Error retrieving
parent for item: No resource found that matches the given name 'Layout'.[/B]
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\haf.001\AppData\Local\Temp
\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf.001\apktool\framework\1.apk, -
I, C:\Users\haf.001\apktool\framework\2.apk, -S, H:\apps\android\apktool\Home\.\
res, -M, H:\apps\android\apktool\Home\.\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\haf.001\AppData\Local\Temp\APKTOOL3404838517631333886.tmp, -I, C:\Users\haf
.001\apktool\framework\1.apk, -I, C:\Users\haf.001\apktool\framework\2.apk, -S,
H:\apps\android\apktool\Home\.\res, -M, H:\apps\android\apktool\Home\.\AndroidMa
nifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
It clearly states the error that when u open styles.xml there is something that u added or modified in 4th line(styles.xml:4: ) that has no resources added in public.xml and strings.xml..
Dont add new things or dont rename anything in xmls coz then u have to change it in public.xml and strings.xml and if its linked to more xmls..
For newbies, u should only change values like numbers in dimens.xml and integers.xml.. dont rename files..
H:\apps\android\apktool\Home\.\res\values\styles.xml:4: error: Error retrieving
parent for item: No resource found that matches the given name 'Layout'.
Click to expand...
Click to collapse
U just added a line in styles.xml but didnt add its value in strings.xml and public.xml...
mickfo said:
Under linux, I use the last version of apktools, and I've replaced the aapt binary (in the apktools dir) with the last aapt of android-sdk (in platforms-tools)
Sent from my ST18i using XDA
Click to expand...
Click to collapse
then i try the same (copying aapt.exe from platform-tools) in windows but still no effect. maybe i'll try using linux. could you attach the aapt for linux here? (i dont plan to install sdk on linux)
---------- Post added at 05:03 AM ---------- Previous post was at 04:51 AM ----------
jjdoctor said:
It clearly states the error that when u open styles.xml there is something that u added or modified in 4th line(styles.xml:4: ) that has no resources added in public.xml and strings.xml..
Dont add new things or dont rename anything in xmls coz then u have to change it in public.xml and strings.xml and if its linked to more xmls..
For newbies, u should only change values like numbers in dimens.xml and integers.xml.. dont rename files..
U just added a line in styles.xml but didnt add its value in strings.xml and public.xml...
Click to expand...
Click to collapse
sorry doctor, but i dont think so. i really just decompiled Home.apk (installing framework before ofcourse) and directly recompiled it again without even open Home folder to see integer.xml and friends.
i've tried in myfriend's pc (also windows) and the screen also told me the same error. but when i tried to modify another app, it just finished like a charm.
mickfo said:
Here my home.apk with only 3 deskop...
I don't do a CWM update.zip but you can replace in /system/app your home.apk with my home.apk via es explorer (right rw-r-r)
Empty all your deskop before replace... and you must use this mod : http://forum.xda-developers.com/show....php?t=1534903 (ICS final)
Click to expand...
Click to collapse
Great work... I have one simple request. There is litlle bug wit this mod because we can't add , for example photo/gallery widget because it is active on 4th desktop... 4th and 5th desktop are now hidden and you can swipe to them as they are active but hidden. Just suggestion to completeley remove them if it is possible of course
I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version,
17, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL12
39664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\re
s, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_14725854127464
6456.tmp, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Shann
on\AppData\Local\Temp\APKTOOL1239664133003724430.tmp, -x, -0, arsc, -S, C:\Devel
opment\android\framework-res\res, -M, C:\Development\android\framework-res\Andro
idManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_147258541274646456.tmp, p, --min-sdk-version, 1
7, --target-sdk-version, 17, -F, C:\Users\Shannon\AppData\Local\Temp\APKTOOL1239
664133003724430.tmp, -x, -0, arsc, -S, C:\Development\android\framework-res\res,
-M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
Skaeren said:
I am looking for help with APKTool. I have tried using the current stable version, as well as the 2.x beta. Both with same result. I am even using the dependancies on the official google code site. My android sdk is fully updated, and both JRE and JDK are installed (both installations done about 2 weeks ago, with no prompt to update since)
Click to expand...
Click to collapse
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
hnkotnis said:
Error log says could not find resources. It means you have not installed framework-res.apk (in case of Samsung Touchwiz phones install twframework also).
Solution :-
Pull framwork-red.apk and for Samsung TW phones pull twframawork-res.apk and put it where you keep files in apktool.
If you are using APK Multitool with GUI, then first button is for installing framework.
If you are using command line apktool, type
Code:
apktool if framework-res.apk
to install framework.
Then decompile and recompile.
Press Thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
Click to expand...
Click to collapse
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
Code:
C:\Development\android>apktool.bat d framework-res.apk
I: Using Apktool 2.0.0-Beta7 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
Code:
C:\Development\android>apktool.bat b framework-res framework-res-new.apk
I: Using Apktool 2.0.0-Beta7 on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Development\android\framework-res\res/values
-mcc454-mnc-1
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Shanno
n\AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-
id, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --ve
rsion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local
\Temp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\f
ramework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Shannon\AppData\Local\Temp\brut_util_Jar_36557064233955
63843.tmp, p, --forced-package-id, 1, --min-sdk-version, 17, --target-sdk-versio
n, 17, --version-code, 17, --version-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F,
C:\Users\Shannon\AppData\Local\Temp\APKTOOL5651618845894214526.tmp, -x, -0, ars
c, -S, C:\Development\android\framework-res\res, -M, C:\Development\android\fram
ework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Shannon\
AppData\Local\Temp\brut_util_Jar_3655706423395563843.tmp, p, --forced-package-id
, 1, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --vers
ion-name, 4.2.1-WW_epad-10.6.2.10-20130918, -F, C:\Users\Shannon\AppData\Local\T
emp\APKTOOL5651618845894214526.tmp, -x, -0, arsc, -S, C:\Development\android\fra
mework-res\res, -M, C:\Development\android\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:475)
... 6 more
C:\Development\android>
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
This did not help
Code:
C:\Development\android>apktool.bat if framework-res.apk
I: Framework installed to: C:\Users\Shannon\apktool\framework\1.apk
................................................................
Try with Android Multitool.
If it does not work give me that apk and framework. I will try to decompile it.
Wait........ Is it a 3rd party app? (I mean not a system app?)
Then it might be possible that developer is using some other resources, different than in your framework.
Click to expand...
Click to collapse
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
Skaeren said:
hnkotnis said:
Thanks, but it didn't help. I will keep the tool, ask my girlfriend to look over the log when there is time, but so far, still an error. I have not been able to recompile.
It is a system app. I modified one file to enable calls on my TF300TG. I have included 7zip files of the apk, and of the values folder. The values folder goes inside the res folder of the decompiled apk, before recompiling. If you could recompile for me, I will give you all the cookies!
Click to expand...
Click to collapse
You did not tell me you had JellyBean. I found it when I took a look at framework-res.apk manifest.
There is some problem with decompiling and recompiling JB Framework. (No problem for other apks)
So I did a bit searching and I found this
monstaX said:
Grab an ICS framework-res apk. Replace manifest resources.arsc and res from the ICS apk with the one from jb apk. Then dexompile with apktool142.jar and then edit. Then recompile with apktoll144.jar. then open the apk that recompiled and take out manifest resources.arsc and res and place back in jb framework sorry if its to confusing. But just a quick write up
Sent from my SPH-L710 using XDA App
Click to expand...
Click to collapse
Added at 28/01/2014 04:00 PM IST
I also found this thread
This contains JB Decompiling tool and there are some guides of framework-res modifications.
Click to expand...
Click to collapse
hnkotnis said:
Skaeren said:
I will try to do it.
Click to expand...
Click to collapse
thanks
Click to expand...
Click to collapse
@Skaeren
Please read my updated post above.
hnkotnis said:
@Skaeren
Please read my updated post above.
Click to expand...
Click to collapse
I thank you for your assistance. I will take a look at the link when I get home. I know it might be asking a lot, but would it be possible for you to make the required resources.arsc for me? Basically, I only need two variabls in bools.xml changed. I have attached my bools.xml file.
If you are able to, I greatly appreciate the help. Hell, I greatly appreciate the help anyway. This stuff is a little beyond my current knowledge pool though.
is this proble solved? you want recompiled system file like systemui.apk?
try to delete folder "values-mcc9989-mnc999" in your decopile folder /res/here
press thanks button if i helped you
Problem while decompiling SystemUI.apk
I can decompile framework-res.apk but i cant able to decompile SystemUI.apk 4.2.2.
Any Solution???
thanks in advance