Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MODS][KPU] Pack for odexed/deodexed [24/05/12]

OP loSconosciuto

27th May 2012, 05:43 PM   |  #61  
neojith's Avatar
Senior Member
Flag Kannur, Kerala
Thanks Meter: 55
 
206 posts
Join Date:Joined: May 2011
More
Will check once i reach my computer..

Sent from my GT-I9003 using Tapatalk 2
16th June 2012, 06:27 PM   |  #62  
Senior Member
Thanks Meter: 77
 
173 posts
Join Date:Joined: Jun 2012
Would it be possible for you to make a flashable zip compatible with your pack so we can have crt on animation too?

I've tried sirilpta's mod but it didn't work and you said it's because it's made for deodexed roms, and mine is odexed. I understand if it's not possible, but my phone feels "incomplete" when it only has crt off animation.
16th June 2012, 07:33 PM   |  #63  
OP Senior Member
Thanks Meter: 2,813
 
765 posts
Join Date:Joined: Nov 2011
Quote:
Originally Posted by faku1810

Would it be possible for you to make a flashable zip compatible with your pack so we can have crt on animation too?

Maybe, but don't count on it. I'm not using KPU, I'm using CyanogenMod, so I can't test my work and it's important when you mod such an important thing like services.jar. The reason why I didn't include the CRT ON effect is that the OFF effect is included in Android (you need to change a boolean value, no smali editing), while the ON effect needs to be added.

(quoting from the other thread...)
Quote:
Originally Posted by faku1810

Also i'm not much into this stuff, i just got my i9003 a couple of months ago and haven't done much to it, so i wouldn't know how to make this mod work on my rom, should i try following the tutorial from the OP and modify the services.jar from your pack?

It's possible, but it's not the easiest thing to do if you are a beginner. Mods for odexed are more difficult to do, but I make a shell script to automatize the process, so it shouldn't be that different.
If you want to port this mod, download the deodexed pack from the OP, mod services.jar as exmplained in the guide and then use my tool to build the odex as I explained in that thread. If you don't know how to mod jar files, there are many tutorials on the net.
Good luck.
17th June 2012, 12:13 AM   |  #64  
Senior Member
Thanks Meter: 77
 
173 posts
Join Date:Joined: Jun 2012
Quote:
Originally Posted by loSconosciuto

It's possible, but it's not the easiest thing to do if you are a beginner. Mods for odexed are more difficult to do, but I make a shell script to automatize the process, so it shouldn't be that different.
If you want to port this mod, download the deodexed pack from the OP, mod services.jar as exmplained in the guide and then use my tool to build the odex as I explained in that thread. If you don't know how to mod jar files, there are many tutorials on the net.
Good luck.

I'll try and see if i can pull it off, though it's not that important, really. However i have another doubt you might be able to help me with. I want to have the main pack from op + crt off + screenshot power menu + circular battery mod.

So in order to do so, i have replaced some files in the pack (modified framework-res.apk, SystemUI.apk, and other things) and then i flashed it, and flashed crt off zip afterwards.. But now, when i charge battery it only shows up to the 22nd png, and so I tried to pull framework-res.apk and modify the corresponding xml with no satisfactory results (it works, but then i get a graphical glitch you can see in the attachments). Then i tried replacing that xml directly in the crt zip, getting a nice permanent "unknown_battery_status" png, so i had to reflash the original zip.

Finally, i read your last reply here about crt-off being just a boolean value, and so i decided to apply fruchtfliege's method again, using the pack's framework-res.apk and edit that boolean value, plus adding circular battery mod. Recompiling and replacing it in a copy of crt-off.zip to flash it, it seemed way too easy. However after doing so, i got a boot loop, so i had to reflash crt-off.zip

Is there any way i can get all the mods i mentioned (plus the ones included in your pack) in one working flashable zip? Sorry for the long post.

Edit: The second screenshot was the same as the first -.-' thought it should have shown how the "More" menu was completely black (even text), therefore i'll include a screenshot of how it should look (plus you can see how charging battery is shown, even though it's almost fully charged)
Attached Thumbnails
Click image for larger version

Name:	SC20120616-180342.jpg
Views:	65
Size:	28.2 KB
ID:	1134724   Click image for larger version

Name:	SC20120616-191933.jpg
Views:	62
Size:	35.5 KB
ID:	1134746  
Last edited by faku1810; 17th June 2012 at 12:22 AM.
17th June 2012, 11:03 AM   |  #65  
OP Senior Member
Thanks Meter: 2,813
 
765 posts
Join Date:Joined: Nov 2011
Flash the pack + the mods you want in the OP and then:

Circular battery mod:
Download from the OP "CRT off effect", get from it and open framework-res.apk with a file archiver, go to "res/drawable-hdpi" and replace all the stat_sys_battery_XX.png with your circular battery images without uncompressing/decompiling it.

CRT ON:
I made it for you, I didn't it carefully, I didn't try to understand what I was doing and it's not odexed. I simply followed the tutorial. HERE
Downlaod my tool (odexer) to odex it. You simply need to put services.jar inside /PATH/TO/THE/TOOL/deodexed/framework and run the script. It does everything automatically. After that you need to replace the files with the modded ones.

To easly make a flashable zip, get the pack and replace your new modded files with those inside the zip.

A suggestion. Once you finished, zipalign all the modded files. I assume you are using a CF-root kernel (and that you don't know how to manually do it), so open "Tweaks" or whatever its name is, check "Auto zipalign" and then reboot.
Once you did that, you can uncheck the option.
The Following 2 Users Say Thank You to loSconosciuto For This Useful Post: [ View ]
17th June 2012, 05:26 PM   |  #66  
Senior Member
Thanks Meter: 77
 
173 posts
Join Date:Joined: Jun 2012
Quote:
Originally Posted by loSconosciuto

CRT ON:
I made it for you, I didn't it carefully, I didn't try to understand what I was doing and it's not odexed. I simply followed the tutorial. HERE
Downlaod my tool (odexer) to odex it.

Thanks a lot!! I'd click the Thanks button, but i guess i don't have enough posts to do it. I really appreciate you taking the time to do it, I'll test it and give feedback later

Quote:
Originally Posted by loSconosciuto

Circular battery mod:
Download from the OP "CRT off effect", get from it and open framework-res.apk with a file archiver, go to "res/drawable-hdpi" and replace all the stat_sys_battery_XX.png with your circular battery images without uncompressing/decompiling it.

I forgot to mention it explicitly in my last post, but i already did this, however, last time i checked the framework-res.apk, there were only 22 pngs inside, and i assume it has to do with the stats-battery-charging.xml, but it can't be edited in that framework-res.apk

Anyways, i'll try backing up everything and flashing the restore zips before trying again with the mods, following your advices. Thanks for your patience and help.
17th June 2012, 06:05 PM   |  #67  
OP Senior Member
Thanks Meter: 2,813
 
765 posts
Join Date:Joined: Nov 2011
Quote:
Originally Posted by faku1810

I forgot to mention it explicitly in my last post, but i already did this, however, last time i checked the framework-res.apk, there were only 22 pngs inside, and i assume it has to do with the stats-battery-charging.xml, but it can't be edited in that framework-res.apk

And I forgot to say that you need to use that particular framework-res.apk because the one in the pack doesn't have the camera picture used in the power menu (screenshot) . Adding that image is not enough, you need to do other things, so it's easier and faster to use that file as base.

And yes, the number of pictures depends on XXXXXXX.xml.
The Following User Says Thank You to loSconosciuto For This Useful Post: [ View ]
17th June 2012, 06:20 PM   |  #68  
Senior Member
Thanks Meter: 77
 
173 posts
Join Date:Joined: Jun 2012
I see, I had noticed that picture was missing when i flashed another framework-res.apk, so i'll just stick to crt off.

I'll see what i can do about that xml then, because the one i get from crt-off framework-res can't be edited using notepad++, plus it has a smaller size than frutchfliege's edited one. Is there any way to replace it / edit it without decompiling the whole apk?
17th June 2012, 06:40 PM   |  #69  
OP Senior Member
Thanks Meter: 2,813
 
765 posts
Join Date:Joined: Nov 2011
Quote:
Originally Posted by faku1810

I'll see what i can do about that xml then, because the one i get from crt-off framework-res can't be edited using notepad++, plus it has a smaller size than frutchfliege's edited one. Is there any way to replace it / edit it without decompiling the whole apk?

That's how "compiled" xmls look like. You have to decompile it first.


EDIT: sorry, there's writte to use as compression level 0, I missed it.

If you are following fruchtfliege's tutorial and you get bootloops, do this:
Quote:

....
10. now it's time to paste your modified/downloaded stat_sys...
11. apk manager -> compression level: 0
12. go back to apk manager and type 11 to compile your framework
...

If not, extract the apk and then re-compress it as zip using as compression level 0.


You need to replace the xml with a compiled one, but you need to know what's the corrispective decompressed xml.

EDIT 2:
Try this.
Decompile the apk, edit the xml and then recompile it. Once you did that, take from the recompiled apk the xml and replace it inside my framework-res.apk.
Last edited by loSconosciuto; 17th June 2012 at 06:51 PM.
18th June 2012, 02:45 AM   |  #70  
Senior Member
Thanks Meter: 77
 
173 posts
Join Date:Joined: Jun 2012
Okay, finally i got it working.. in the end i didn't need to restore and start over again. All i did was decompiling the apk, take a look at how the xml should be edited, worked on that, and after a few errors (which i still don't know what caused, but were gone after some retries) compile it again. Then I could take what i needed and replace the files in the original framework-res.apk and now it works just perfect when charging.

After that was done, i tested your crt on mod, and i can confirm that it works, after being odexed and flashed (I included it in my modded crt-off + circular battery.zip). However, I feel it's not exactly like in this video, but kind of shorter maybe?

Anyways, i wouldn't mind if it was just that because, short or not, it works.. But sadly it doesn't always work, sometimes the screen turns on the "usual" way, I'd upload a video to show what i mean, but my lg gt360's camera is not that good nor it can capture the effect fast enough. I've looked at the tutorial for it and can't find anything that seems related to duration.. This phone is great at making me feel dumb.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes