[MOD][How To] - Yet Another Tether Hack (YATH for short) Odex or De-Odex - AT&T Samsung Galaxy S 4 Android Development

I did this because... Its DIFFERENT!
Ok, I got frustrated with not being able to re-compile framework-res.apk which is the most known method of hacking tether. So I was inspired by Nottach and his initial Tether Mod by hacking the provisioning check. So I decided to do my own little hack. Nottach hack sends the system looking to 127.0.0.1 for a response to tether, while the original un-modified version goes to various AT&T Entitlement check servers.
I took a different route. I just redirected to my own server and give everyone a Yes response! Simple enough, heh?
Dont laugh! It works!
This hack works for Hotspot and USB tether.
De-Odex version is attached.
Installation
I used similar install method as Nottach to apply this mod.
Download the attachment. Unzip it to your desktop.
Simply copy the "Mods" folder to your internal storage
Run the "Mod Me.bat" file after copying
It will copy the mod to the correct location, then reboot phone.
Enjoy free tether
If you are STOCK Rooted (In other words odex) and are not using the de-odex rom you can still use this hack simply by deleting TetherProvisioning.odex from /system/app/ then intsll my mod.
Download HERE
If you think this was a crafty use of my Web Server hit Thanks Please!​

How this mod works
Look for any http string in TetheringProvisionActivity$TetheringPlanCheckTask.smali and change it to "http://www.scottsroms.com/tether"
Example:
Code:
.line 1081
const-string v0, "http://entitlement.mobile.att.net/teth"
[B][COLOR="Red"]Change to[/COLOR][/B]
.line 1081
const-string v0, "http://scottsroms.com/tether"
There are a total of 6 http strings. You need to change them all.
On the server side is just one simple index.html with the word "Yes". Believe it or not that is all the AT&T servers respond with, Yes or No :silly:
You can see this yourself by going to www.scottsroms.com/tether
Also, this should for any AT&T device that uses the same method of entitlement check. Not so much this file but redirecting whichever apk that does the look-up on AT&T to my server. Im going to try it on my One X and see if it works. I will post results on that later.

Feel free to do with this mod as you choose. Give it away, put it in a ROM, sell it for profit... I dont care!
If you do make this mod for another device and use my server a simple thanks in the OP is all I ask.

Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.

romracer said:
Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.
Click to expand...
Click to collapse
You got to admit I got creative on this one, lol. Bored much :silly:
Ok, Im gonna mess with framework-res again later and look around. Mind if I PM you if need help?

romracer said:
Neat, but I still like my framework-res.apk approach
I think to recompile framework-res.apk, I had to change 6 or so styles to use keyguard_lockscreen_control_view or something (the key was adding _view to each of the six style files). I think that's right.
Click to expand...
Click to collapse
All you need to do is add a + to the style location. It's the same for all these recompile errors.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

I thought this technique was really cool. Thanks for sharing!

shoman94 said:
All you need to do is add a * to the style location. It's the same for all these recompile errors.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
What exactly did you do to get framework-res.apk to get things to recompile correctly?

xxhorseriderxxx said:
What exactly did you do to get framework-res.apk to get things to recompile correctly?
Click to expand...
Click to collapse
I'll explain with an example when I get home.
Edit: Posted here: http://forum.xda-developers.com/showthread.php?t=2279024
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2

shoman94 said:
I'll explain with an example when I get home.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Thanks! Can you start a how to thread in either Dev or Q/A and link to it from here so we dont totally sidetrack this thread?
A lot of people, including myself would be very grateful!

Related

XML file that controls Signal Strength Bars?

Does anybody know which file(s) generate the signal strength indicator in the status bar?
I am running the Redemption ROM, and really want to 6 bar strength indicator in Redemptive rEVOlution, but I have a couple of problems with rEVOlution that I can't get rid of, so I can't use it.
It's services.jar
It's located in /system/framework/
Be careful though, it controls other things as well.
I suggest you do a nandroid backup and then push the file using adb. That way if it doesn't work you can always fall back.
I have done this with skyraider3.5 with no issues so you should be fine.
sent from my HTC Incredible
Rooted - S-off - 2.15 radio
Skyraider 3.5 RULES!
Whats so great about the 6bar vs 4bar? Is it just really just aesthetics?
gadget! said:
It's services.jar
It's located in /system/framework/
Be careful though, it controls other things as well.
Rooted - S-off - 2.15 radio
Skyraider 3.5 RULES!
Click to expand...
Click to collapse
.
Thanks, I was hoping it was just gonna be one of the xml files in the framework-res.apk.
As to what's do great about the 6 bar meter, I don't know, I just know I want it.
I mean in all reality you could just edit the four .png of the 4bars into .png of the 6bars, only thing is you have to take out two files so say you'd make 4 bar1 into 6 bar1 4bar2 into 6bar3 ect.. I've done it to do the opposite haha I did it to get 4 bars instead of 6. but the true way is to edit the .xml and I have no experience with that at all. sorry.
Well, pushing the services.jar to the framework directory just threw my phone into boot loops, so that aint gonna work.
Anyone know which XML file and or png's I need to swap out or add.
The problem with just adding png files is that it's not really gonna give correct indications.
gadget! said:
It's services.jar
It's located in /system/framework/
Be careful though, it controls other things as well.
I suggest you do a nandroid backup and then push the file using adb. That way if it doesn't work you can always fall back.
I have done this with skyraider3.5 with no issues so you should be fine.
sent from my HTC Incredible
Rooted - S-off - 2.15 radio
Skyraider 3.5 RULES!
Click to expand...
Click to collapse
You need to edit HtcCdmaStatusBar.smali, which is deep within services.jar. You need to decompile classes.dex within services.jar using baksmali and go to /android/server/status/ and then edit HtcCdmaStatusBar.smali in several places, recompile with smali and put the new classes.dex back in services.jar and then push that to your /system/framework/.
Or.......you could pull the services.jar from IncROM beta4 which is posted a page or two from the end of the thread .... unless lou has something other than the power widget mod it should work just fine for ya
Sent from IncROM
True story, lllboredlll is the man. End story.
sk806 said:
You need to edit HtcCdmaStatusBar.smali, which is deep within services.jar. You need to decompile classes.dex within services.jar using baksmali and go to /android/server/status/ and then edit HtcCdmaStatusBar.smali in several places, recompile with smali and put the new classes.dex back in services.jar and then push that to your /system/framework/.
Click to expand...
Click to collapse
Just to add to this...if you fail to edit statusbaricon.smali also the 6 bar edit will never show more than 4 bars of signal
Sent from IncROM
lllboredlll said:
Or.......you could pull the services.jar from IncROM beta4 which is posted a page or two from the end of the thread .... unless lou has something other than the power widget mod it should work just fine for ya
Click to expand...
Click to collapse
That threw the phone into boot loops too. But, now I have another ROM to try anyway.
lllboredlll said:
Just to add to this...if you fail to edit statusbaricon.smali also the 6 bar edit will never show more than 4 bars of signal
Sent from IncROM
Click to expand...
Click to collapse
Oh, yeah! Forgot about that. thanks.
mark-in-dallas said:
That threw the phone into boot loops too. But, now I have another ROM to try anyway.
Click to expand...
Click to collapse
I have had the same issue, that's why I put up instructions. If you want, you can email me the services.jar in question, and I'll mod it for you.
PM me if interested.
Steve
mark-in-dallas said:
That threw the phone into boot loops too. But, now I have another ROM to try anyway.
Click to expand...
Click to collapse
sorry i assumed it would work....since we both utilize evo framework-res.apk and both have the power widget mod... sorry about that
Someone posted the 6 bar signal mod in the Redemption thread here: http://forum.xda-developers.com/showthread.php?t=768626&page=165. I flashed it last week and it's working good on Redemption 2.2.
sk806 said:
Oh, yeah! Forgot about that. thanks.
I have had the same issue, that's why I put up instructions. If you want, you can email me the services.jar in question, and I'll mod it for you.
PM me if interested.
Steve
Click to expand...
Click to collapse
Thanks so much, I had just pulled my services.jar and was going to upload it and send you a download link, when I saw the post below.
tweebee said:
Someone posted the 6 bar signal mod in the Redemption thread here: http://forum.xda-developers.com/showthread.php?t=768626&page=165. I flashed it last week and it's working good on Redemption 2.2.
Click to expand...
Click to collapse
Works great, thank you!
Can anyone tell me the exact code I need to add?
mark-in-dallas said:
Thanks so much, I had just pulled my services.jar and was going to upload it and send you a download link, when I saw the post below.
Works great, thank you!
Click to expand...
Click to collapse
Cool. Glad you found something that works.
gmichaelow said:
Can anyone tell me the exact code I need to add?
Click to expand...
Click to collapse
Code for what?
mark-in-dallas said:
Code for what?
Click to expand...
Click to collapse
To htccdmastatus.smali and statusbaricon.smali?
I've done this with skyraider before, but now I am on cyanogen. Is there any way to get 6 bars on aosp roms?
Sent from my ADR6300 using XDA App

Please help me with theming!

Okay, I am really sorry if this sounds negative or like a rant, first off. I really want to get into theming. I have been trying for weeks, possibly months, to figure out how to do certain things. I have only recently been able to successfully make a zipthemer mod, and that's very easy. I really need specific help. The tutorials that I have seen are not specific enough, as they assume that you have prior knowledge of things like SDK and ADB. I am a completely clean slate. I have been completely unsuccessful in finding a step by step tutorial that I can actually follow to get the things done that I want to do. Maybe it's just me, but I have been literally hours searching for it. I have asked for help, but never get any because people tell me to go research how to do it.
I want to do only two things now...I am running dark paranoid android and I want to change the circlemod battery from the stock to white. I have the pngs, I just don't know where to put them or what files need to be edited. I also have no coding experience, so I need fairly specific help to learn what things need to change.
I also want to change the clock in the status bar from the ICS blue to white.
That's it....I know it sounds like it should be simple, but it's not to me. I have tried and tried to find the answers on my own, but have been wholly unsuccessful. It has left me feeling jaded and frustrated, leading to this thread.
Can somebody please point me somewhere that will teach me what I need to know with kid gloves? I want to really get into doing this and participate in the community, but I fail time and time again. I have tried to find pre-made themes to do what I want, but everything is usually too deeply modded whereas I only want to change a few things. Please help!
they go in the systemui.apk /res/drawables-xhdpi folder. If there is already a circles mod there, you don't need to code anything. The status bar clock color is in styles.xml of systemui.apk. The color code for ics is #33b5e5, so change it to #ffffff.
Here's the line of code you need to change. https://github.com/android/platform...r/packages/SystemUI/res/values/styles.xml#L41
change @android:color/holo_blue_light to #ffffff.
This is called hard coding, and in an ideal world, you'd change it to @color/status_bar_clock then add that value to colors.xml, but i know google will never optimize their code that way
artvandelay440 said:
they go in the systemui.apk /res/drawables-xhdpi folder. If there is already a circles mod there, you don't need to code anything. The status bar clock color is in styles.xml of systemui.apk. The color code for ics is #33b5e5, so change it to #ffffff.
Click to expand...
Click to collapse
Thank you very much. I didn't know which XML to look at.
I am pretty sure I tried putting the mod in that folder but it didn't take for some reason. I have looked pretty deeply into any other place they could be and can't find it for some reason.
Sent from my Galaxy Nexus using Tapatalk 2
liquid150 said:
Thank you very much. I didn't know which XML to look at.
I am pretty sure I tried putting the mod in that folder but it didn't take for some reason. I have looked pretty deeply into any other place they could be and can't find it for some reason.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Look in the /drawable folder in systemui. If the mod is present, you should find a stat_sys_battery_circle.xml in there.
artvandelay440 said:
Look in the /drawable folder in systemui. If the mod is present, you should find a stat_sys_battery_circle.xml in there.
Click to expand...
Click to collapse
Thank you I will check it out.
Sent from my Galaxy Nexus using Tapatalk 2
No problem. I'm writing a guide for my site on theming that's aimed at both beginners and advanced. I'll link it here when I'm done.
Sent from my Galaxy Nexus using Tapatalk 2
artvandelay440 said:
No problem. I'm writing a guide for my site on theming that's aimed at both beginners and advanced. I'll link it here when I'm done.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Any idea why when I flash white numbers into phone.apk it doesn't change anything? I am not in a place I can play with XML (no computer) so I tried something else.
Does pa/cm10 use a different apk?
Sent from my Galaxy Nexus using Tapatalk 2
liquid150 said:
Any idea why when I flash white numbers into phone.apk it doesn't change anything? I am not in a place I can play with XML (no computer) so I tried something else.
Does pa/cm10 use a different apk?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Phone.apk dial numbers used for "During a call dialer" so you have to change Contacts.apk dial numbers.
Yep- he's right. The ones in phone.apk are for the in-call dialpad.
Is there a fairly specific tutorial thread that I can turn to for editing XML files? From my very limited understanding I have to decompile it and work through it myself. Do I do this through ADB and push it? Is there an ADB tutorial to do things like that? I was hoping somebody here has a fairly specific noob-friendly tutorial.
My issue is that most of the tutorials that I have seen just say things like "use X tool and decompile." Well, I don't know how to do that. lol.
Thanks to everyone for all your help, and also to anybody else that helps in advance.
liquid150 said:
Is there a fairly specific tutorial thread that I can turn to for editing XML files? From my very limited understanding I have to decompile it and work through it myself. Do I do this through ADB and push it? Is there an ADB tutorial to do things like that? I was hoping somebody here has a fairly specific noob-friendly tutorial.
My issue is that most of the tutorials that I have seen just say things like "use X tool and decompile." Well, I don't know how to do that. lol.
Thanks to everyone for all your help, and also to anybody else that helps in advance.
Click to expand...
Click to collapse
For decompile:
*you will need to have Java runtime installed*
1.download http://minus.com/mwgtTbmZd
2.create a folder c:\apktools
3.Take the zip and unzip all 4 files to c:\apktools
4.You will need to pull the framework-res.apk from the rom you are working on. Copy it to c:\apktools
5.Rename apktool.jar.1.4.2 to apktool.jar
6.Open a command window and make sure everything you do from now on is while you are in this folder c:\apktools
* If you don't know how, just open command window and by use this command ( cd.. ) until you are in ( C:\ ) driver then ( cd apktools )
7.In command window type: java -jar apktool.jar if framework-res.apk
You only need to do this once, unless you are working on a different Rom
8.decompile framework-res with apktool: java -jar apktool.jar d framework-res.apk
make any changes you want
9.Now compile: java -jar apktool.jar b framework-res
If you get error compile it with apktool version 1.4.3, So what I do at this point is rename apktool.jar to apktool.1.4.2, and then rename apktool.jar.1.4.3 to apktool.jar
10.Once it is done compiling you will need to go to c:\apktools\framework-res\dist and you will now see your new framework-res.apk
Just remember to copy any apk you want to decompile right into the root of c:\apktools
--
Now put your new for example framework-res in flashable zip (attached) and flash by using Rom Manager aka CWM.
Note that framework-res.apk should be inside framework folder, and SystemUI.apk inside app folder.
I'll make one tonight and link it.
Sent from my Galaxy Nexus using Tapatalk 2
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
liquid150 said:
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
Click to expand...
Click to collapse
I'd start in Linux since more of the advanced concepts require it.
Sent from my Galaxy Nexus using Tapatalk 2
Check this out. It might help http://www.jbthemes.com/artvandelay440/theming-guide/
I am having trouble finding the status bar xml controlling clock color (battery, too). I am not seeing a values nor styles folder nor XML in System UI. My ROM is DarkPA. If anybody knows offhand where I should look please let me know, otherwise I will continue on my own.
you won't see a /values folder until you decompile it. then, it will be in /res.
liquid150 said:
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
Click to expand...
Click to collapse
get that ubuntu booted
Sent from my Galaxy Nexus using Tapatalk 2
If you still need help tomorrow let me know. I could either do the edits for you or help you with the apps you need ...
Thyrus said:
If you still need help tomorrow let me know. I could either do the edits for you or help you with the apps you need ...
Click to expand...
Click to collapse
I am available as well. Hit me up via talk if need be. I have helped many setup theming. Although i use xdaautoapktool which is much more comprehensive theming tool...
Sent from my Nexus 7 using Xparent Blue Tapatalk 2

[Q] Edit system/framework/services.jar

Can anyone fill me in on details of how to edit java executable files? I would like to remove the GPS icon from the notification bar in the ROM I am using and the best I could come up with is this: The file I need to change is in system/framework/services.jar
Better yet, does anyone have a flashable zip with an edited services file that has no GPS icon? I would like one that works with Sense 3.0 ROMs.
If you use gimp or photoshop its pretty easy just make the GPS.png file or what ever its named in the framework-res.apk and make it transparent.
Then zip the app and sign it with a META-INF signer.
Sent from my EVO using xda premium
Or you could replace the picture itself with an empty picture so that when GPS is on and so are other radios, there won't be a random empty space there. Also, to explain how to edit the "java executable", let me explain how java works
So the reason that java is great is that its cross platform. But how? So when a .jar file is created, that's actually not 100% compiled itself, its more like 60/70% of the way there. And that's where the JRE comes in. When you open a .jar file, the code is compiled the rest of the way into bytecode that the specific OS its running on can interpret.
So there is really no such thing as a "java executable". The "jar" format is basically just a ZIP file with partially compiled code, so what you need to do is extract all the files from it (use 7Zip or something) and then get a .class decompiler (I recommend JD-GUI, its free and one of the best out there. It also has an option to decompile all the files into .java files and packages it into a .zip) and then just look at the source code. The problem is to find where exactly the GPS icon is set up, because when you decompile it, its going to be a huge mass of folders and folders and folders of files
Sent from my PG06100 using xda premium
lreyes said:
If you use gimp or photoshop its pretty easy just make the GPS.png file or what ever its named in the framework-res.apk and make it transparent.
Then zip the app and sign it with a META-INF signer.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Thank you very much for your reply. The information I originally found pointed me in the wrong direction. I found the images I want to edit in the data\sysapp\SystemUI.apk\res\drawable-hdpi. There are five .png files all starting with names like sym_gpsone_0_sprint.png. I've included some below.
All of the other modifications I have made to the ROM I am running involved using m10 and the fusion.apk or the Idlescreen_Base.apk. I know how to make those changes work on my phone. If I alter the .png images in the SystemUI.apk, I know how to zip it again, but I could use some instructions on how to sign it with a META-INF signer.
HopHead68 said:
Thank you very much for your reply. The information I originally found pointed me in the wrong direction. I found the images I want to edit in the data\sysapp\SystemUI.apk\res\drawable-hdpi. There are five .png files all starting with names like sym_gpsone_0_sprint.png. I've included some below.
All of the other modifications I have made to the ROM I am running involved using m10 and the fusion.apk or the Idlescreen_Base.apk. I know how to make those changes work on my phone. If I alter the .png images in the SystemUI.apk, I know how to zip it again, but I could use some instructions on how to sign it with a META-INF signer.
Click to expand...
Click to collapse
Let me get on my comp and I'll link you
Sent from my PG06100 using xda premium
Task Accomplished
CNexus said:
Let me get on my comp and I'll link you
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Thank you everyone who replied and tried to help me out. After searching around some more, I managed to make the modifications work.
Damn, ain't things easy once you know what you're doing? Anyhow, the results are below. No more GPS icon whether the GPS is on or off now.
Thanks again.
If anyone wants a brief tutorial just ask and I'll be glad to help.
HopHead68 said:
Thank you everyone who replied and tried to help me out. After searching around some more, I managed to make the modifications work.
Damn, ain't things easy once you know what you're doing? Anyhow, the results are below. No more GPS icon whether the GPS is on or off now.
Thanks again.
If anyone wants a brief tutorial just ask and I'll be glad to help.
Click to expand...
Click to collapse
Dude. So sorry, completely forget to post after telling you
But anyway, the process is explained in the following thread, as well as how to make a flashable zip in case anyone else is interested
Link: http://forum.xda-developers.com/showthread.php?t=1611615
But again, so sorry about that
Sent from my PG06100 using xda premium
CNexus said:
Dude. So sorry, completely forget to post after telling you
But anyway, the process is explained in the following thread, as well as how to make a flashable zip in case anyone else is interested
Link: http://forum.xda-developers.com/showthread.php?t=1611615
But again, so sorry about that
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
No worries at all. Before you put this up, I figured it out. Part guidance, part stumbling though the dark and some luck led to success.
Thanks for the help.
Cheers.

[Tool][MOD] Add any battery image to any TW ROM for all S3 models

Ok I am going to keep this simple. These tool will allow you to add any battery image to any TW ROM. First unzip the tools. Then all you need to do is grap the framework-res.apk, twframework-res.apk, and SystemUI.apk from which ever ROM you are using and/or want to change the battery images for. Now grab the 204 PNG's for your new battery. Place these in the folders that are named as such. I have included a zip with a bunch of battery PNG's for you to use. Even the ones from my ROMs. Some are complete and some are not though. You HAVE to have 204 images or the tool will not start. Enjoy!
Side note, need a tester for the Windows tool as I tweaked it but have not tested. Thanks!
How to:
Code:
For Linux (Tested on Ubuntu12.04 64-bit)
Before anything:
add the required apks (framework-re.apk, twframework-res.apk and SystemUI.apk) to the folder "Input_APKs."
then you will need to add all 204 battery PNG'd to "Input_Images"
now you will:
1) Make sure these packages are installed.
sudo apt-get install openjdk-6-jre openjdk-6-jdk (step 4)
****** Do not just click on the Mod_Battery.sh file. Open a terminal
and run it! *************************
2) Open terminal in the Battery_Mod_Tool_v1.2/Working_Dir folder and run:
./Mod_Battery.sh
3) If you are having problems then make sure the following files are executable.
./Working_Dir/Mod_Battery.sh
./Working_Dir/7za
./Working_Dir/aapt
4) You may notice some java errors whilst running the Mod_Battery.sh script.
If so you need to install java. The instructions for Linux are below...
5) As of now for Infamous 4.4 the Framework-res.apk, twframework-rek.apk, and SystemUI.apk are included. 4.5+ you will need to add the apks yourself.
[/B]
Code:
[B]For Windows:
Before anything:
add the required apks (framework-re.apk, twframework-res.apk and SystemUI.apk) to the folder "Input_APKs."
then you will need to add all 204 battery PNG'd to "Input_Images"
now you will:
- Double-click "Mod_my_battery!.bat" and sit back and wait
NOTE:
If you modify ANY files within the "Working_Dir" folder, the process will not work. Do not rename, remove or add any files to this directory
URL for Java Development Kit:
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
to download JDK, Simply;
1) Select "Accept License Agreement".
2) Select "jdk-7xx-windows-xxx.exe" for your version of Windows. (Windows x86 = 32-bit, Windows x64 = 64-bit)
3) Run installer with default settings should be fine.[/B]
Link(s):
Linux tool download link
Windows tool download link
Battery PNG's #Infamous as of Feb 22, 2013
Install Java for Linux
Big thanks to shayne77 for making this. I only modified it to work for our phones and Jelly Bean.
saved just in cause
and one more for whatever
Re: [Tool][MOD] Add any battery image to any TW ROM
Nice work but it seems faster to pull the apks open them, paste your images and zip and flash, just saying.
Sent from my wicked fast SGS3!
This is very true. This tool is for every user even the less experienced.
Re: [Tool][MOD] Add any battery image to any TW ROM
Jamison904 said:
This is very true. This tool is for every user even the less experienced.
Click to expand...
Click to collapse
Yeah, I see how it could benefit the less experienced. Either way, nice tool.
Sent from my wicked fast SGS3!
Thanks buddy. Didn't make it just tweaked it to work for the S3. All the credit goes to shayne77.
Battery PNG's #Infamous as of Feb 13, 2013
Says url not found might me my firewall but could you please check it.
Thanks
weird... here you go
http://goo.im/devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
Sent from my dark hole called an office.
Jamison904 said:
weird... here you go
http://goo.im/devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
Sent from my dark hole called an office.
Click to expand...
Click to collapse
The file you requested was not found
Lets see if we can find that for you...
Search results for devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
That is what I got from Goo.
maybe I need to try a different browser
Thanks
yeah just tried myself. Goo most of lost it. Ill check go see if I have an older one on my mirror. Give me a sec and thanks for the heads up
Ill have to reupload it tonight. Thanks again
Sent from my dark hole called an office.
Battery_PNG
Fixed link.
Jamison904 said:
Battery_PNG
Fixed link.
Click to expand...
Click to collapse
I give up this is what it is saying again.
The file you requested was not found
Lets see if we can find that for you...
Search results for devs/Jamison904/T999/Infamous_S3/Tools/Battery_PNG
Thanks though I got the other files so All I have to do is find images and place them into your formula.
Dang it. I even tested yesterday after up loading it. OK good deal. Ill upload it to my mirror some time this weekend. I dont get why it keeps doing that...
Sent from my dark hole called an office.
LINK
Different server. Third time is a charm.
I am really surprised that this didn't get the attention I thought it would. People afraid of it? Or don't have a need for it.
Jamison904 said:
LINK
Different server. Third time is a charm.
Click to expand...
Click to collapse
Thanks Worked great!
:good:
Jamison904 said:
I am really surprised that this didn't get the attention I thought it would. People afraid of it? Or don't have a need for it.
Click to expand...
Click to collapse
Alright, giving this a shot, I def like battery #5. I like the idea of having a tool, but what's the easy way akapaul26 is speaking of?
Chefedogg said:
Alright, giving this a shot, I def like battery #5. I like the idea of having a tool, but what's the easy way akapaul26 is speaking of?
Click to expand...
Click to collapse
Tool won't work for me, I've followed every direction to the T...
Windows or Linux? Thanks

[MOD][TW KK][Guide][How To]Animated PullDown Background AND/OR Pulldown BAR

An example of what I mean by ANIMATED STATUS BAR PULL DOWN BACKGROUND can be found HERE
Click to expand...
Click to collapse
This is the thread I followed to get a feel for how to do it. ---> http://forum.xda-developers.com/showthread.php?t=1143675
Click to expand...
Click to collapse
Ok, after seeing a few posts a few days ago talking about people having animated status bar pulldown backgrounds, I decided to do some research because I had never heard of this before.
I noticed that for some reason the mod stopped with ICS.
So I decided to create a thread on how to add this feature to your ROM, or the ROM you are currently running.
The edits are very simple, actually, pretty much exact to the GB version of the mod.... however, they can be a little time consuming based on just how many images you would like to add to your animation.
In POST #2, I have posted a guide on how to add add this feature to your TOUCHWIZ KITKAT 4.4.2 ND8/NDC ROM. (other phones also running touchwiz kitkat should be relatively similair, depending on if your systemui.apk is where the background is pulled from.)
Click to expand...
Click to collapse
In POST #3, I have posted a guide for user/themer's, on how to create your own animations and use them with this mod.
Click to expand...
Click to collapse
In POST #4, I have posted a guide on how to add animation to the statusbar PULLDOWN bar.
Click to expand...
Click to collapse
In POST #6 I would like to link to animations posted by you... To make it easier to find the animations... Why not have them posted in the thread explaining how to create them... But I'll need your help on this one.
Click to expand...
Click to collapse
​
I would like to send a thank you to....
@bilgerryan
@tdunham
@dazednconfused
@CNexus
and
@erikalin ...
Without your answers to a few questions I've had or tuts on how to do something... I wouldn't have this mod... Or a few others that I've put out....
So thank you guys for your help.
Dev instructions
Dev instructions on how to add this mod to your touchwiz kitkat 4.4.2 based rom is located below:
Please remember to hit thanks if you like or use this mod.​
NOTE: To get this to work with your rom... Read THIS POST..... To customize the animation read POST #3 and POST #4.
Click to expand...
Click to collapse
Step 1 - Download the AnimatedPulldownMod.zip I have attached below.
Step 2 - Open the zip and extract the two files somewhere on your desktop.
Step 3 - Decompile your systemui.apk from your rom using apktool or what ever tool you use to decompile apps.
Step 4 - Navigate to the res/drawable folder in your decompiled app and the "pulldown.xml" from my zip to this folder.....
Step 5 - Navigate to the res/drawable-xhdpi folder, (or whatever folder your rom uses), and do the same for the "pulldown_animxxxx.png" images into your open folder..... You can now delete my files.
Step 6 - Navigate to "res/layout" folder and open "status_bar_expanded.xml" open it with an xml editor such as notepad++ or virtuos ten studio.
Step 7 - In line 2 of that file you should see this..
<com.android.systemui.statusbar.phone.notificationpanelview android:id="@id/notification_panel" android:background="@drawable/twcustom"................
Click to expand...
Click to collapse
change the background to look like this android:background="@drawable/pulldown" so the image background gets directed to the pulldown.xml file you just put in your res/drawable folder.
Step 8 - Save and close this file now to prevent any conflicts while recompiling the app.
Step 9 - Once you have the images in the proper folder, edited the status_bar_expanded.xml file, and put the pulldown.xml file in your res/drawable folder... Recompile your apk and name it something different, like new.apk...
Step 10 - Open both the original systemui.apk and the new new.apk you just built, with 7-zip (that is what i recommend)
Step 11 - Drag the resourses.arsc and classes.dex file from the new.apk into the original systemui.apk.... Do the same for the res folder in the new.apk
Step 12 - Add to your rom and enjoy!!!
Click to expand...
Click to collapse
Dev/Themer Instructions
THEMER INSTRUCTIONS FOR CREATING YOUR OWN ANIMATIONS AND EDITING THE ABOVE FILES TO WORK WITH YOUR NEW ANIMATIONS.
Please remember to hit thanks if you like or use this mod.​
This guide is assuming you have either performed the DEV MOD in the post above or you are on a rom that has.... AND..... you already have the custom images you would like to use for your animation. If you do not, I recommend reading the guide created by @erikalin on how to create your own images
erikalin said:
If you ever want to learn, the tutorial I made up on another device thread shows the process. I made a video tutorial too - me talking and walking through the process of grabbing a video and turning it into an animation. FWIW, just sharing the love. Link is: written tutorial or video tutorial. Just replace with your own image sizes and file names, same process.
Click to expand...
Click to collapse
As stated above, the process is the same.
You could also search GOOGLE or XDA FORUMS for how to create frame by frame png animations... WARNING!!! It can be time consuming.
NOTE:Read POST #4 to learn how to create a flashable zip for other users of your, and all other roms based on your phone carriers android version that have the mod above, to use.
Click to expand...
Click to collapse
Ok, so if you want to use a different animation than what i have inside the mod, you will have to edit the xml inside of Systemui.apk.
Step 1 - Decompile the SystemUI.apk that already has the mod described in POST #2
Step 2 - Navigate to the res/drawable folder and open pulldown.xml
Step 3 - Count HOW MANY images are in your animation
Step 4 - Add or remove these lines
<item android:duration="100" android:drawable="@drawable/pulldown_animXXXX" />
Click to expand...
Click to collapse
in that xml file you just opened to match the amount of images in your animation (see the next step to see what to name the images)
(THIS FILE ONLY CONTAINS THIS SPECIFIC MOD... DO NOT WORRY ABOUT BREAKING ANYTHING ELSE IF YOU MESS UP...OTHER THAN THE SYSTEMUI FORCE CLOSING WHEN REBOOTING....THIS IS WHERE THE BACKUP COMES IN HANDY.... JUST FOLLOW THE NEXT STEP AND YOU WILL BE OK) (USE THAT FILE AS A TEMPLATE FOR HOW YOURS SHOULD LOOK ONCE FINISHED) (REMEMBER TO HIT SAVE ONCE YOU ARE DONE EDITING THIS XML FILE.)
Step 5 - Rename your images to "pulldown_animXXXX.png" ... replacing the "XXX" with numbers starting at 0 ---> so if you have 10 images, you will start with pulldown_anim0 and end with pulldown_anim9
Step 6 - Move those newly named images to the res/drawable-xhdpi folder
Step 7 - Recompile the app and name it something else other than SystemUI.apk
Step 8 - Open BOTH the original SystemUI.apk and the new apk you just created with 7-zip
Step 9 - Drag the "resources.arsc" file, "classes.dex" file and the entire "res" folder from the NEW apk INTO THE ORIGINAL SYSTEMUI.APK
Step 10 - Push the MODIFIED systemui.apk (NOT THE NEW ONE YOU JUST CREATED) into the priv/app folder on you phone with a root explorer and reboot..... or remove the systemui from my zip above and replace with yours and flash.....
Step 11 - ENJOY!!!
Click to expand...
Click to collapse
instructions for adding animated pulldown bar​
Follow this if you are on the STOCK systemui.apk
Step 1 - Download the zip below.
Step 2 - In your decompiled systemui.apk, Navigate to the res/drawable folder and drop all 3 xmls from the zip, into this folder.
Step 3 - Navigate to the res/drawable-xhdpi and drop the images from the zip into this folder.
Step 4 - Recompile the apk and enjoy.
Note: Use the same methods for the previous posts to customize your own animation.... what i did was put the same animation on both the close and open animations.... but you can have one for opening and one for closing... your choice.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
These are instructions courtesy of @talkingmonkeys for how to add the mod if you are using @dazednconfused single bar pulldown mod.
talkingmonkeys said:
Open drawable/tw_close_handle_bg.xml and look for these 3 lines
Code:
<item android:state_pressed="true" android:drawable="@drawable/tw_close_handle_bg_press" />
<item android:state_focused="true" android:drawable="@drawable/tw_close_handle_bg_press" />
<item android:drawable="@drawable/tw_close_handle_bg_normal" />
Replace the above with this
Code:
<item android:state_pressed="true" android:drawable="@drawable/pulldown_bar_on" />
<item android:drawable="@drawable/pulldown_bar_off" />
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved
This is where I would like to post links to flashable animations that you guys make using this guide.
As long as it is for a NDC (virgin/boost mobile) or ND8 (sprint) TOUCHWIZ KITKAT 4.4.2 based rom for the Galaxy S3, simply post your zip here with an ANIMATED pic of your animation, I will link it here in this post.
If you follow step 12 in @erikalin tutorial here
you can create an animated preview of the animation to post here for the screenshot....
Click to expand...
Click to collapse
I would like to thank anyone who creates and posts a zip for us to use in advance.... Thank you.
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
pharmdeon said:
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
sweet... just follow the instructions in post 4 and you can create a flashable zip to use on the updated version of wicked x rom... as it will have the mod implemented according to @bilgerryan.... and any other rom for our phone that decides to implement this mod....
also, im going to use post 6 as a place to post links to the animations for this mod on our phone.. if ya wanna post it here i'll link it in post 6....
and if you follow step 12 in @erikalin tutorial here
you can create an animated preview of the animation to post here for the screenshot....
pharmdeon said:
Awesome! I love this mod! I just modified my systemui to include 111 images of the transformer in the other thread ... Changes d from Autobot to decepticon. Thanks for all of your work on this:thumbup::thumbup:
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Sweet... guess my issues going above 30 were isolated.... I WAS playing with the animation duration time so that was prolly my issue.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I wasnt successful turning the 111 image into a zip though. The systemui I modified works, but once I make a zip out of it and flash it, it breaks the apk as before. I went back to the working nandroid and was able to flash the other 28 image one that I put together (I went back and forth between the Autobot and deception anims)
I may be zipping the 111 image XML and images wrong though?? ... I was pretty tired last night when messing around.
Sent from my SPH-L710 using xda premium
pharmdeon said:
I wasnt successful turning the 111 image into a zip though. The systemui I modified works, but once I make a zip out of it and flash it, it breaks the apk as before. I went back to the working nandroid and was able to flash the other 28 image one that I put together (I went back and forth between the Autobot and deception anims)
I may be zipping the 111 image XML and images wrong though?? ... I was pretty tired last night when messing around.
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
If ya wanna post the systemui ya have with the new animation I'll take a look at it.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I will send shortly
Sent from my SPH-L710 using xda premium
pharmdeon said:
I will send shortly
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
OK. After thinking about it... I do believe that it is my mod....
I don't think I have it set up to ALLOW FOR flashable zips with different amounts of images....
I may have to remove that post or redo the mod....
I would like to test my theory with what you have before I do that tho...
I would also like to state that i am not a dev... So I think its something that I wasn't aware of.....
But again I would like to test it before I go into all of that...
So when ever ya get a chance would be great.... Won't be able to redo the post or the mid for a few more hours.... So no rush... Just whenever ya get a chance.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
OK. first I have to apologize to you @pharmdeon and I have to thank you for discovering this issue before it became widespread.
Your problem IS MY MOD ITSELF and MY INSTRUCTION....
I truly apologize for this mistake and hope ya don't have any hard feelings ... I will work this out and try to get your animation to be flash able.....
For now just use your entire nodded apk since wicked x is really the only custom ROM right now.....
the_original_teknikl said:
OK. first I have to apologize to you @pharmdeon and I have to thank you for discovering this issue before it became widespread.
Your problem IS MY MOD ITSELF and MY INSTRUCTION....
I truly apologize for this mistake and hope ya don't have any hard feelings ... I will work this out and try to get your animation to be flash able.....
For now just use your entire nodded apk since wicked x is really the only custom ROM right now.....
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
Click to expand...
Click to collapse
No issuses at all:good::good: ... glad to "help". I am happy that this neat mod is around even if its not perfected, YET:fingers-crossed:. If you need help testing anything let me know (I've done my fare share of testing lately, lol:cyclops
ok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....
they will be rom specific.
the_original_teknikl said:
ok. so after some testing and failure... i have come to the conclusion that these will not be simply universal....
they will be rom specific.
Click to expand...
Click to collapse
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
CNexus said:
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
Click to expand...
Click to collapse
And that's why ur the boss man....
I wish I had the knowledge to add those edits to smali.... But I have only made edits to smali that you and tdunham directed me to in ur flashlight thread.... When I was trying to workout the missing toggle icon issue....
Other than that I have absolutely no knowledge of CREATING lines in smali or working with strings....
I will have to wait to see what you do with the mod on moar to even get an idea of how to do this... But you would prolly become willing to edit it for wicked x before i could figure that out lol...
I AM a quick learner... As some may have noticed..... But that's a little to high above my current level of knowledge to even have something close this MONTH.....
Can't wait to see what ya do with it man............
And I feel kinda honored to see ya taking this mod even further... Even tho I'm technically not the creator.... Just the modder lol.
Sent from a Wicked Virgin Mobile Samsung Galaxy S3 running KT747 Kernel on KITKAT Touchwiz.
I Literally JUST edited post 4 and then i saw your post... .had to add that info to that post and re edit it lol.... cant wait to see what ya can do on that front man.... again... i will look at it to see if i can figure out what you are referring to (and i say that due to my level of knowledge on smali) but i will prolly not see it until i can compare with yours... but by then we can just use urs... maybe lol
CNexus said:
I've actually been looking into this myself, because I want to implement the ability to be able to switch between static pulldowns and animated pulldowns for MOAR
What I was thinking is the following (for making ANY number of pulldown images work, including a static one)
In xml, remove the reference to @ drawabe/pulldown (we'll define it via smali)
Add an init.d script that reads SystemUI.apk, checks to see how many pulldown_XX pngs there are and dynamically generates a pulldown.xml file that references each of those files. It then places this pulldown.xml file somewhere in the system (/data, /sdcard whatever)
In the smali, SystemUI, instead of loading a drawable named pulldown from it's resources, loads the pulldown.xml file we created with the script (using the createFromPath method from the Drawable api) and voila, pulldown that animates if there are multiple images, or is static when there is only 1 image.
Click to expand...
Click to collapse
sitting here thinking about it... i had a thought since ya said the pulldown.xml would be placed SOMEWHERE....
how bout seeing if the init.d script can read another location for the images... such as "sdcard/pulldown animation".... and plays the animation from that location outside of the systemui.apk....... then have the smali point to that location on the sdcard.... just remove the background from systemui.apk completely.... then the animation can be changed by a simply placing the images in that folder and reboot without flashing or modding the apk at all....
there would be no need for users to need a computer to zip the file and no need for flashing.. just place and reboot
because (and i could be wrong) each flashable zip to change animations would need to have a script that removed the current images from the apk before placing the new animation.... otherwise, flashing a 30 image ani over a 50 image ani would give part of the old one playing at the end of the new one cause the pulldown.xml still reads that there are 50 images......
again... thats your front.... but was just an idea i had after reading your post again.... ur way would prolly be better.. this is just a thought that popped up, i always trying to mod things... even if it aint here yet apparently lol

Categories

Resources