Rotary Lockscreen and CRT Power off - myTouch 4G Themes and Apps

I am running the leaked 2.3.3 rom at the moment. I am working on getting the rotary lockscreen and crt effect. I follow the directions at this link and i get a boot loop.
As for the CRT effect I cannot find the instructions to do it manually. Just find roms that have it built in.
I am familiar with the tools required and creating roms, building from AOSP and such. So I would rather find instructions to do these myself rather than just the apks or update.zip. Any help would be appreciated.

Even the instructions on another device would be helpful

Check the d2 and dx leak threads on the crt off, ill see if I can find them.
Sent from my DROID2 using XDA Premium App

http://forum.xda-developers.com/showthread.php?t=1014514
Sent from my DROID2 using XDA Premium App

Thanks for that link. At least its the right direction but for some reason I just can't recompile after making those changes. I will get exact errors later and post them
Sent from my HTC myTouch 4G using Tapatalk

So here is the info. The log file is below. The link for the instructions i am using is HERE.
I pull com.htc.resources.apk and framework-res.apk from my phone. I decompile framework-res.apk with dependencies using com.htc.resources.apk. I make the changes in the link above and then compile. I get this error message when it starts building the apk. Any help with this would be appreciated. Also, if i just decompile and recompile without changing anything it builds just fine.
Code:
|Tue 05/10/2011 -- 13:31:57.14|
--------------------------------------------------------------------------
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)
'adb' is not recognized as an internal or external command,
operable program or batch file.
I: Framework installed to: C:\Users\Taylor\apktool\framework\2.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
I: Framework installed to: C:\Users\Taylor\apktool\framework\2.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Taylor\AppData\Local\Temp\APKTOOL81858235249238882.tmp, -x, -S, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\res, -M, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Taylor\AppData\Local\Temp\APKTOOL81858235249238882.tmp, -x, -S, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\res, -M, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.

how about the CRT on animation also? make sure you make it compatible with evil D's virtuous rom so he can possibly use your mod and post it on his OP! that be great

_ice_ said:
how about the CRT on animation also? make sure you make it compatible with evil D's virtuous rom so he can possibly use your mod and post it on his OP! that be great
Click to expand...
Click to collapse
Well the CRT on effect is cyanogenmod proprietary code. As far as I understand they coded that themselves so unless released by them I'm not going to worry about that. CRT off is built into gingerbread and just can't find how to enable it.
Sent from my HTC Glacier using Tapatalk

taylorhome11 said:
Well the CRT on effect is cyanogenmod proprietary code. As far as I understand they coded that themselves so unless released by them I'm not going to worry about that. CRT off is built into gingerbread and just can't find how to enable it.
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
go to virus rom in the evo thread (RC mix by gazian for mytouch 4g), they have a successful screen on and off port! I tried the rc mix rom and under display settings it says "screen on" "screen off" animations checkboxes. They worked for me.
so yeah there will be no legal concerns with cyanogen since they already did it, and cyanogen approved it (I believe)

_ice_ said:
go to virus rom in the evo thread (RC mix by gazian for mytouch 4g), they have a successful screen on and off port! I tried the rc mix rom and under display settings it says "screen on" "screen off" animations checkboxes. They worked for me.
so yeah there will be no legal concerns with cyanogen since they already did it, and cyanogen approved it (I believe)
Click to expand...
Click to collapse
Oh ok. Just got the device and haven't checked all the stuff out. But I will look into it. Just focusing on the whole screen off right now and the rotary lockscreen for now
Sent from my HTC Glacier using Tapatalk

taylorhome11 said:
Oh ok. Just got the device and haven't checked all the stuff out. But I will look into it. Just focusing on the whole screen off right now and the rotary lockscreen for now
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
it might be way easier to just take the files in the RC mix and attempt to edit the codes, that way you do not have to worry about AOSP/ sense code conflicts since rc mix is already a sense rom. but you would have to port it from sense 2.1 to mysense 2.1 or if you're planning on doing a port to 3.0 than you would have to look into the compatibility

_ice_ said:
it might be way easier to just take the files in the RC mix and attempt to edit the codes, that way you do not have to worry about AOSP/ sense code conflicts since rc mix is already a sense rom. but you would have to port it from sense 2.1 to mysense 2.1 or if you're planning on doing a port to 3.0 than you would have to look into the compatibility
Click to expand...
Click to collapse
Well update on this. I finally got the apk decompile correctly and the bools.xml file is there and the config setting it says to change is already set to false. So it has to be something else. Don't have any idea what it could be though

taylorhome11 said:
Well update on this. I finally got the apk decompile correctly and the bools.xml file is there and the config setting it says to change is already set to false. So it has to be something else. Don't have any idea what it could be though
Click to expand...
Click to collapse
hang on buddy one of my boys that ported this to his evo knows more about the codes he will be on here in a sec

_ice_ said:
hang on buddy one of my boys that ported this to his evo knows more about the codes he will be on here in a sec
Click to expand...
Click to collapse
ok thanks for that

do you still need help with this?

pack said:
do you still need help with this?
Click to expand...
Click to collapse
yeah. for the rotary lockscreen i change the stuff as specified in a previous post and i get an error when i recompile. listed below.
Code:
|Tue 05/10/2011 -- 13:31:57.14|
--------------------------------------------------------------------------
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)
'adb' is not recognized as an internal or external command,
operable program or batch file.
I: Framework installed to: C:\Users\Taylor\apktool\framework\2.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
I: Framework installed to: C:\Users\Taylor\apktool\framework\2.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Taylor\AppData\Local\Temp\APKTOOL81858235249238882.tmp, -x, -S, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\res, -M, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Taylor\AppData\Local\Temp\APKTOOL81858235249238882.tmp, -x, -S, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\res, -M, C:\Users\Taylor\Desktop\New folder (2)\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
As for the CRT off effect, the string in bools.xml is already set to false so don't really know what to do from there.

can you zip up what you have and shoot it over to me

pack said:
can you zip up what you have and shoot it over to me
Click to expand...
Click to collapse
sorry for the megaupload link. this is the rotary part. but you can also see the bools.xml file in here also. this apk was pulled directly from my device.
http://www.megaupload.com/?d=CFL74PHC

taylorhome11 said:
sorry for the megaupload link. this is the rotary part. but you can also see the bools.xml file in here also. this apk was pulled directly from my device.
http://www.megaupload.com/?d=CFL74PHC
Click to expand...
Click to collapse
Crt on off animations on evil D: rom already thanks for trying though
Sent from my HTC Vision using XDA App

_ice_ said:
Crt on off animations on evil D: rom already thanks for trying though
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Well I am building my own rom based of the GB leak and don't like using someone else's rom for my base. I prefer to use my own. Thanks why I am wondering how to get it working.

Related

[Q] Having trouble compiling SystemUI.apk

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.

[Q] Compile/Decompile using apktool or APK Multi Tool

Hi everyone,
I'm trying desperately to edit some files inside SystemUI.apk and framework-res.apk but I'm having some troubles...
I wanted to post in the specific thread of the program : http://forum.xda-developers.com/showthread.php?t=1310151 but I'm not allowed to, because it's my first post here.
First I used only apktool, I managed to decompile my 2 files with no problems, I replaced a few *.png files and tried to recompile it but I'm getting errors... (I only manage to recompile the files if I don't edit a thing)
Then I tried APK Multi Tool, I achieved to decompile my 2 files (with the option 9 in the program), but I can't recompile them after editing my files. So I decided to make a test, I tried to decompile and recompile (I hit 9 then 11 in the choice case) them WITHOUT changing a thing and I get errors anyway...
If I use the choice 1 (only extract the apk), do my editing and then zip the project (with the choice 3), directories are wrong inside the new *.apk, I get "projects\SystemUI.apk\(res or smali, etc...)" so the *.apk result is not usable
Here is the log file when I try to recompile WITHOUT changes :
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\David\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...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res, -M, C:\Users\David\Downloads\APK Multi Tool\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:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res, -M, C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Thanks in advance if you can help me
I managed to recompile my edited files with apktool by placing classes.dex and resources.arsc in the folder oh the extracted archives.
I signed my SystemUI.apk and framework-res.apk with signapk.jar but my ROM still won't boot...
I'm getting the same error
I've emailed the dev. Will let you know if I get a response.
Can you try removing the spaces in the folder name ? "APK Multi Tool" ?
My Windows user name has spaces in it, I was just wondering if that could be an issue.
Just a hunch since spaces can sometimes cause problems.
Let me know if that works !
---------- Post added at 08:10 AM ---------- Previous post was at 07:46 AM ----------
Well ignore my previous post. I created a new user and tried to compile. Still getting the same error
Funny, i'm having the EXACT same thing happen to me.
I used to use linux and I know that when I was originally installing it(on linux) it wouldn't run without a file called "aapt". I had to download and insert the file with the others in a specific area.
Unfortunately I had to wipe linux and reinstall win7 for school purposes. So now here I am trying to test everything on windows, which is a blur to me since I haven't used it in so long.
In the error log we are getting, it's mentioning something about "aapt", and when I go searching for it in the APK-multi tool folders, it's nowhere to be found. This file may be what's causing the issue of de/recompiling.
EDIT: I figured it out, well kinda. I uninstalled version 1.0.2, and downloaded and installed version 1.0.0 of apk multi tool from his website. Tested again and this time everything went ok. there must be some sort of bug in the newest one.
Try this, it will work
Place apk in modding folder
Hit #1to extract apk
go to project folder and make your mods
now hit #3 to zip apk
then hit #1 to retain system signature for system files (system.ui, framework.res etc...)
go into modding folder and get the new unsigned apk and rename it to what it was before
place in sd card or use adb to push to where ever it needs to go
this works everytime for me, never had problems hope this helps
that works for editing images only...but I want to edit some .xml files, and when I extract I don't get them
thats where we need decompile/compile
Im getting this same issue..
I have the same issue every apk creates with a project/*.*.apk
Anyone fix it?
Ok so dropped back to version 1.0.1 and it works
when I hit option 3 in 1.0.1 I see
compressing res\
But in version 1.0.2 I see
compressing project\FILESNAME.apk\res\
Hope that helps
Test This
Do you Have instaled Android SDK Tools?
You Have Downloaded de Google Api 15 for Android SDK Tools or others Api for your version of Android?
Andersondj said:
Do you Have instaled Android SDK Tools?
You Have Downloaded de Google Api 15 for Android SDK Tools or others Api for your version of Android?
Click to expand...
Click to collapse
Andersondj, thanks for your reply.
Maybe it will solve my problem, coz i had installed API 14 (4.0) and now i`ll try install API 15.
Thanks bro, and see you on BrasilDroid.
Which version of Android are you on? Apktool doesn't work too well with ICS.
still no luck
Ticklefish said:
Which version of Android are you on? Apktool doesn't work too well with ICS.
Click to expand...
Click to collapse
i hv every method but still its not recompiling
Dygreg said:
Here is the log file when I try to recompile WITHOUT changes :
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\David\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...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\David\AppData\Local\Temp\APKTOOL8476784424403325139.tmp, -I, C:\Users\David\apktool\framework\1.apk, -S, [B][COLOR="Red"]C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\res[/COLOR], -M[/B], C:\Users\David\Downloads\APK Multi Tool\projects\SystemUI.apk\AndroidManifest.xml][/QUOTE]
See point 1, spaces in paths have given me issues before and spent ages trying everything before finally realizing it's how I'd named the folder. If that doesn't work, assuming you've installed all the necessary resource apks I'm not sure what to suggest. apktool never gave me issues [user=4315551]@Ticklefish[/user]?
[QUOTE="raziel23x, post: 18558251, member: 2968938"][B][COLOR=Red]Got problems ?[/COLOR][/B]
[B]1. [COLOR="Red"]Make sure your path has no spaces[/COLOR]
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.[/B]
[/QUOTE]
Click to expand...
Click to collapse
Guys, need your help!, while compiling an APK, what I get in the keep folder is the four files
1. Meta-inf
2. res
3. AndroidManifest
4. resources.arsc
what files do I need to remove before compiling?

apktool won't build unchanged SystemUI

Can anyone help a noob figure out why?
Code:
[email protected]:~$ apktool b '/home/linux/SystemUI'
I: Checkingwhether sources has changed...
I: Checkingwhether resources has changed...
I: Building resources...
invalid resource directory name: /home/linux/SystemUI/res/values-sw720dp
invalid resource directory name: /home/linux/SystemUI/res/layout-sw600dp
invalid resource directory name: /home/linux/SystemUI/res/values-sw720dp-port invalid resource directory name: /home/linux/SystemUI/res/drawable-sw600dp-mdpi
invalid resource directory name: /home/linux/SystemUI/res/values-sw600dp
invalid resource directory name: /home/linux/SystemUI/res/values-sw600dp-port Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8165751601391013391.tmp, -I, /home/linux/apktool/framework/1.apk, -S'
/home/linux/SystemUI/res, -M, /home/linux/SystemUI/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, /tmp/APKTOOL8165751601391013391.tmp, -I, /home/linux/apktool/framework/1.apk, -S, /home/linux/SystemUI/res, -M, /home/linux/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I decompiled SystemUI.apk with no problem but when I went to rebuild, I got this error. I want to make sure I know how to rebuild an unchanged directory before I start making any kind of changes and go crazy trying to figure out what the problem is.
Sent from my Amazon Kindle Fire using xda premium
What android version?
Sorry...
4.0.3
CM9
Ubuntu 10.4
Sent from my Amazon Kindle Fire using xda premium
OK, same problem, new error...
Changed <app_path>
Code:
[email protected]:~$ apktool b SystemUI
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I'm at a loss
Sent from my Amazon Kindle Fire using xda premium
soupmagnet said:
Can anyone help a noob figure out why?
Code:
[email protected]:~$ apktool b '/home/linux/SystemUI'
I: Checkingwhether sources has changed...
I: Checkingwhether resources has changed...
I: Building resources...
invalid resource directory name: /home/linux/SystemUI/res/values-sw720dp
invalid resource directory name: /home/linux/SystemUI/res/layout-sw600dp
invalid resource directory name: /home/linux/SystemUI/res/values-sw720dp-port invalid resource directory name: /home/linux/SystemUI/res/drawable-sw600dp-mdpi
invalid resource directory name: /home/linux/SystemUI/res/values-sw600dp
invalid resource directory name: /home/linux/SystemUI/res/values-sw600dp-port Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8165751601391013391.tmp, -I, /home/linux/apktool/framework/1.apk, -S'
/home/linux/SystemUI/res, -M, /home/linux/SystemUI/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, /tmp/APKTOOL8165751601391013391.tmp, -I, /home/linux/apktool/framework/1.apk, -S, /home/linux/SystemUI/res, -M, /home/linux/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I decompiled SystemUI.apk with no problem but when I went to rebuild, I got this error. I want to make sure I know how to rebuild an unchanged directory before I start making any kind of changes and go crazy trying to figure out what the problem is.
Sent from my Amazon Kindle Fire using xda premium
Click to expand...
Click to collapse
Try this, hope I can help you
apktool d -s SystemUI.apk
-s, --no-src
Do not decode sources.
apktool b SystemUI
hey guys, just found this thread on a google search for this error ..
i have the same problem with CM9 Beta8 for Galaxy Ace ... pulled the framework-res.apk and SystemUI.apk via adb and installed framework-res.apk via apktool if framework-res.apk ...
i modded a lot of things in Adrenaline ROM before and everything was ok ... now, on android 4.0.4 (CM9) i get this error when ever i try to compile the apk ... tried it with a fresh project and without modding anything and it gives the same error ...
anyone have an idea ??? maybe apktool can't handle ICS-apks ???
DJ_Synergy said:
hey guys, just found this thread on a google search for this error ..
i have the same problem with CM9 Beta8 for Galaxy Ace ... pulled the framework-res.apk and SystemUI.apk via adb and installed framework-res.apk via apktool if framework-res.apk ...
i modded a lot of things in Adrenaline ROM before and everything was ok ... now, on android 4.0.4 (CM9) i get this error when ever i try to compile the apk ... tried it with a fresh project and without modding anything and it gives the same error ...
anyone have an idea ??? maybe apktool can't handle ICS-apks ???
Click to expand...
Click to collapse
This should help you
http://forum.xda-developers.com/showpost.php?p=24893563&postcount=1
pwelyn said:
Try this, hope I can help you
apktool d -s SystemUI.apk
-s, --no-src
Do not decode sources.
apktool b SystemUI
Click to expand...
Click to collapse
hello
guys i dont know but i am trying to recompile apks from 10 day tried ever fix every fix thread. i usaly get the first op problem can anyone confirm it that this method work
For ICS you need to use 2 different apktool jar files. One to decompile and another to recompile. Also you need to install system UI framework files like you do normale framework files. With apktool if systemui.apk command. And some files still can't be edited unless you edit the source file from scratch
zelendel said:
For ICS you need to use 2 different apktool jar files. One to decompile and another to recompile. Also you need to install system UI framework files like you do normale framework files. With apktool if systemui.apk command. And some files still can't be edited unless you edit the source file from scratch
Click to expand...
Click to collapse
Man I think I was looking for this in past 2 weeks I looked into all the apktool related threads and this is the simplest answer I have seen and straight forward
I will try it today thanks man
Sent from my HTC Glacier using xda premium
I'm getting the same errors. Tried everything. Got to be doing something wrong.
Sent from my HTC Sensation 4G using Tapatalk 2
Rainbowbright081 said:
I'm getting the same errors. Tried everything. Got to be doing something wrong.
Sent from my HTC Sensation 4G using Tapatalk 2
Click to expand...
Click to collapse
Yeah you didn't read my post 2 posts above this. You have to use a different apktool version to compile an ICS systemui apk
Sent from my Inspire 4G using Tapatalk 2
Sir, I did. Tried decompile with 1.4.2 compile with 1.4.3. Tried a lot of things, will try ferns way this evening. And yours again.
Edit: I hadnt installed systemui into framework, will try that and -s tag as well. Why does theming have to change in the way we deal with each rom. Lol.
Sent from my HTC Sensation 4G using Tapatalk 2
Rainbowbright081 said:
Sir, I did. Tried decompile with 1.4.2 compile with 1.4.3. Tried a lot of things, will try ferns way this evening. And yours again.
Edit: I hadnt installed systemui into framework, will try that and -s tag as well. Why does theming have to change in the way we deal with each rom. Lol.
Sent from my HTC Sensation 4G using Tapatalk 2
Click to expand...
Click to collapse
Because each rom has different framework changes. Lol and each OS update you need to reinstall the framework files as well
Sent from my Inspire 4G using Tapatalk 2
wrong version of apktool and/or aapt.
Sent from my Nokia 2100 using xda premium
thetrisatria said:
wrong version of apktool and/or aapt.
Sent from my Nokia 2100 using xda premium
Click to expand...
Click to collapse
So which is the right version then? as I have tried with apktool 1.4.1 - 1.4.3 and am on the latest aapt version and still cannot get it to work
As in am having the same problem .I tried using almost all apktools and every version of apktool but problem exist
Can this be the windows problem?
But Even on Linux I get same errors.
I also tried decompiling by one apktool and recompiling by other . Nothing worked
Even used the method ( decompiling with -s ) suggested in one of the reply in this post
I am using windows 7 64 bit and Linux 11.04 64 bit
Sent from my HTC Glacier using xda premium
1.4.3 with latest ics aapt.
tested to de/compile miui v4.
oh, btw I'm using windows7 32bit.
try to get the apktool from here:
http://forum.xda-developers.com/showthread.php?p=25063042
Sent from my Nokia 2100 using xda premium
thetrisatria said:
1.4.3 with latest ics aapt.
tested to de/compile miui v4.
oh, I'm using windows7.
Sent from my Nokia 2100 using xda premium
Click to expand...
Click to collapse
I have tried new aapt its not working for me idk why
Sent from my HTC Glacier using xda premium
gsminhas said:
I have tried new aapt its not working for me idk why
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
lol, its works for me. the key is to find the proper apktool. try my link above.
Sent from my Nokia 2100 using xda premium

[DEV QUESTION] Modify deskop number in Home.apk

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

[TUTORIAL FIX-/policy/impl ] XPERiA S iCS Lockscreen FOR YOUR FILES

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?

Categories

Resources