[Q] De-TouchWizzing MusicPlayer.apk - Galaxy S I9000 Themes and Apps

hello guys,
i want to "de-touchwiz" the music player so i can use it on miui. i managed to merge the twframework styles and colors with the musicplayers' ones and looked for drawables in twframework that are referenced by these and put inside musicplayer. i looked through all the xmls and where i found some "touchwiz:color" or similar i changed it so it points now to the local color/style file not the twframework one
but i got stuck at some points: i have some layout files that refer to frame layout with com.sec.android.touchwiz.widget and inside these touchwiz properties, like for android:id or things like that but touchwiz:twIndexViewHandlePosition and xmlns:touchwiz="http://schemas.android.com/apk/res/touchwiz". what should i do with them?
and do i have to change the smali code, too? i guess so but i don't exactly know where to start with it.
thanks very much for your help
-picard

anyone?
-10char

instead of removing those tw attributes, you could try to merge the tw framework into the apk.
Just decompile the frameworks and copy their source folders into the music's app source folder.

that's what i try to do, i copied all referenced images and tw color attributes to the apk, but for these i don't know how to change (i guess i need to make it an android attribute, can i make it by simply merging those from the framework?)
but what is "com.sec.android.touchwiz.widget" referring to? what do i have to merge to my app?

I did not meant resources but code.^^
"com.sec.android.touchwiz.widget" is a class somewhere in one of the tw frameworks.

okay, my bad
trying it

How did you go with this apk? I'm working on the same thing at the moment, I'm interested to know what happened.
Thanks

interested) hope you can get something done
Sent from my GT-I9000 using Tapatalk 2

kage00 said:
How did you go with this apk? I'm working on the same thing at the moment, I'm interested to know what happened.
Thanks
Click to expand...
Click to collapse
actually i dropped the project due to lack of time and skills

picard666 said:
actually i dropped the project due to lack of time and skills
Click to expand...
Click to collapse
I know what you mean, this app is a nightmare - samsung really made sure this apk was bloody difficult to port, I dont know what else to try, I keep having errors and the apk wont start, I think it has something to do with the boot sequence not being the same on AOSP as on a samsung rom, it checks for a certain sequence and if it doesn't see it, the app won't start...

Related

[MOD] Touchwiz Speed

Hi Everyone,
I tried to find a lot on all sections and google for a good touchwiz Mod but to no avail. So i thought of asking u guys for some insight to Mod Touchwiz for our beloved Galaxy S.
So i extracted TouchWiz30Launcher.apk to a folder. Was checking the different resources and i came across \res\anim and i saw two files fade_in_fast.xml and fade_out_fast.xml. Now they are binary XML files. So the question is can we modify or delete some values and speed up touchwiz. I dont care about the fancy transition or effects. Just raw speed. Tried ADW and Launcher Pro but i personally didnt like it. Please forgive me if this is pretty simple. Here is the code for the files.
Guys we modify these values and recompile TouchWiz30Launcher with apk manager.
XML code for fade-in
<alpha fromAlpha="resource_id:0x0" duration="resource_id:0x10e0001" interpolator="resource_id:0x10a0005" toAlpha="resource_id:0x3f800000">
</alpha>
XML code for fadeout
<alpha fromAlpha="resource_id:0x3f800000" duration="resource_id:0x10e0001" interpolator="resource_id:0x10a0005" toAlpha="resource_id:0x0">
</alpha>
check attachment for the files.
Awaiting reply. Thanks in advance.
Come on guys. No one's intrested in tweaking touckwiz.
shawn_pro said:
Come on guys. No one's intrested in tweaking touckwiz.
Click to expand...
Click to collapse
wrong attitude
shawn_pro said:
Come on guys. No one's intrested in tweaking touckwiz.
Click to expand...
Click to collapse
the truth
shawn_pro said:
Come on guys. No one's intrested in tweaking touckwiz.
Click to expand...
Click to collapse
Attention whore?
I might be running Launcher Pro, but I support that you are doing this. Cheers!
Would be useful especially since i've seen Touchwiz drain less battery compared to other launchers. IMHO.
Sent from my GT-I9000 using XDA App
Thanks for your work, may i ask how to use your file? How could i combine it into the existing launcher application?
if it matters that much to you, try picking up how binary numbering works...
Anyways, if I were to try messing around with it - I'd change that last digit in the binary sequence from a 5 to a 3...
Firstly, it isn't binary, it is Hex.
I have not tested but I guess if you change the duration to a lower number, you may get lucky but I expect that these values actually point to another resource for the actual value.
nafem said:
Firstly, it isn't binary, it is Hex.
I have not tested but I guess if you change the duration to a lower number, you may get lucky but I expect that these values actually point to another resource for the actual value.
Click to expand...
Click to collapse
Sorry, I'm not really a programmer...I just offered an idea because nobody else seemed to at the time.
Also, I thought Hex was 6-digit ranging from 0-F/digit? Or is that for colors only?
Hey guys i tried changing the values for the duration but when i over written the modded touchwiz apk to system/app folder i keep on getting Force Closes. Guess i should take a different route. Thanks for the tips guys.
Sorry guys i didnt meant to be rude or show any attitute in the above post. I respect all XDA members. I just hope my findings would be useful to someone who be looking just for it.
Not really sure what you're trying to do with this. Are you trying to remove the fade-in/fade-out animation when using the home screen? Why would you? It looks cool!
I'm interested in removing the animation as well. It looks nice indeed, but it doesn't works smooth on my ZTE Blade. It used to work without lags on my T-Mobile pulse...
After changing the values in the XML file, is it possible to reinstall the file with those changes ?
If so, I can give it a try as well...

[Q] Launcher2.apk image file edits?

Hi all,
I am trying to make a simple change to the Launcher2 desktop, I can't stand the divider line above the app drawer launcher button, which image file do I need to make transparent to achieve this?
Or is it not that simple??
Many thanks
Haven't tested, but check out res/drawable-xhdpi/divider_launcher_holo.9.png. I believe 9-patches have to be recompiled before replacing them in the APK, but I could be mistaken.
EDIT: Actually, might be hotseat_scrubber_holo.9.png and hotseat_track_holo.9.png instead.
copkay said:
Haven't tested, but check out res/drawable-xhdpi/divider_launcher_holo.9.png. I believe 9-patches have to be recompiled before replacing them in the APK, but I could be mistaken.
EDIT: Actually, might be hotseat_scrubber_holo.9.png and hotseat_track_holo.9.png instead.
Click to expand...
Click to collapse
Many thanks for this.
I am bringing this thread back to life folks as I would like to perform the same edit in Jelly Bean, but I would actually like to learn how to do it.
What are .9.png's and how do I edit them and are the files mentioned above still the same in Jelly Bean??
As I said I want to learn rather than rely on others to create mods so any help or a quick tutorial in how to remove the dock divider would be much appreciated!
Again, many thanks all!
wilskywalker said:
Many thanks for this.
I am bringing this thread back to life folks as I would like to perform the same edit in Jelly Bean, but I would actually like to learn how to do it.
What are .9.png's and how do I edit them and are the files mentioned above still the same in Jelly Bean??
As I said I want to learn rather than rely on others to create mods so any help or a quick tutorial in how to remove the dock divider would be much appreciated!
Again, many thanks all!
Click to expand...
Click to collapse
.9.png's are PNG image files that android recognizes as being stretchable, and it knows where to stretch them via the black outline around the image that can only be seen when decompiled.
.9.png's can only be edited when an apk has been decompiled, not just unzipped.
After decompilation you can use draw9patch, which is included with the Android SDK, to edit the border.
However, if you're just them(e)ing the image, you don't touch the border, as it could possibly mess things up. You really only use draw9patch to create a border on a new image.
Sent from my Galaxy Nexus using Tapatalk 2

[REQUEST][THEME] Need help theming AlterROM

As the title suggests, I need help with theming my ROM. It is based on 4.67 RUU, but mostly de-sensed and using GO Launcher EX. I'm looking to theme the various Sense bits remaining (like SystemUI.apk and other Sense themed .apks) to match GO Launcher's default theme, but I suck at graphic design and am still new to theming in general.
This would end up being the default theme of AlterROM and all credits would be given where due. I'm looking to collaborate on this so that I can learn more about themeing, as well, not just get a packaged theme, if possible. You can find screenshots of what I am currently working with here. Keep in mind that it is under active development, so those images are subject to change...
If interested, please PM me or post any questions or requests for clarification here and I'll provide you with whatever you need.
Thanks!
Have you tried UOT kitchen yet? It has all kinds of theming options for systemUI (and other stuff). It doesn't really teach you how to theme, it's pretty much plug n play.
Also, I believe there are some theming guides in the broader xda forum (rather than the Evo forum). Hope any of that helps, I know it's a bit vague lol.
Sent from my PC36100 using xda premium
Tommytomatoe wrote a real nice thread about theming sense...I'd find it for ya but in on tapatalk but It's a pain
Sent from my PC36100 using XDA
You have apktool 1.4.2? b/c youll need it and m10 tools and probably optipng and tommyt's tool for linux at least thats what I use for zipaligning... Photoshop or something close to it. Tommyt's tutorial is more android 1.0 seeing as thats what he builds but yeah its basically the same... Making your own .9.png's using draw9patch... It takes a while to learn but once you get the hang of it youll be able to theme like me lol
scottspa74 said:
Have you tried UOT kitchen yet? It has all kinds of theming options for systemUI (and other stuff). It doesn't really teach you how to theme, it's pretty much plug n play.
Also, I believe there are some theming guides in the broader xda forum (rather than the Evo forum). Hope any of that helps, I know it's a bit vague lol.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
UOT Kitchen is a little light for the amount of changes I need to make to the SystemUI.apk. I've looked into it, though, a while back.
jboyer0000 said:
Tommytomatoe wrote a real nice thread about theming sense...I'd find it for ya but in on tapatalk but It's a pain
Sent from my PC36100 using XDA
Click to expand...
Click to collapse
I've read it, but it is for theming rosie, which has been ripped out of my ROM. I've read a lot of the others in the more general forums, as well, but they are not exactly what I am looking for or they are missing something that I need.
Pneuma1985 said:
You have apktool 1.4.2? b/c youll need it and m10 tools and probably optipng and tommyt's tool for linux at least thats what I use for zipaligning... Photoshop or something close to it. Tommyt's tutorial is more android 1.0 seeing as thats what he builds but yeah its basically the same... Making your own .9.png's using draw9patch... It takes a while to learn but once you get the hang of it youll be able to theme like me lol
Click to expand...
Click to collapse
I should have all the tools that I would need (photoshop & android-utility) and have already implemented various modifications to several apk and jar files. My issue is that I can't do much in Photoshop outside of text manipulation and opacity/fill changes. Even then, I managed to successfully modify the pngs, 9-patch and xml files the tutorials I followed said I needed to and successfully recompiled the SystemUI.apk, but none of the changes actually seemed to take.
Basically, I need help from someone who can create the pngs that I need to theme the statusbar and notification bar to resemble GO Launcher, instead of Sense 1.0. I can make the .smali and xml edits myself, provided I have a complete list of the files that I need to edit, but I am likely missing a step that keeps them from showing the changes after the apk is recompiled.
Send me the images and Ill change them to what you want... Yeah what are you using apk_multitool or something? If you modify a .9 image and you recompile it and it doesnt error on the .9 image the .9 should should in your output .apk? make sure your signing your files btw...

[MOD] Disable low battery, battery temperature pop-ups and full battery notification

The reason for this little hack is the fact those 2 pop-ups can become an extreme double-annoyance while driving in hot weather. Imagine, your battery is below 15%, yet scorching hot, beyond the charging cut-off threshold. Connect a charger and you get bombarded with the "charging paused, battery temperature too high" pop-ups. Disconnect it and you get a low battery ones. This little patch deals with the issue by simply disabling the annoying pop-ups. It also disables the annoying battery full notification.
Please note, this doesn't modify any functionality, it just disables the pop-ups. The battery will not and should not charge when overheated.
Instructions:
Download and unpack "BatteryPatch.zip", you should now have "Patch.js" jscript along with the "utils" directory.
Fetch your "/system/app/SystemUI.apk" from the device, place it in the same directory, along with the "Patch.js".
Apply the patch by launching "Patch.js" and push the patched SystemUI.apk back to the device.
Updates:
Not every ROM seems to have the battery full notification and/or battery overheating popup. Patching those is now optional, the script will show a warning in case it fails to patch those instead of erroring out completely.
There are some ROMs out there with showLowBatteryWarning method looking somewhat different from what i've seen on my S3. In order to try & let the patch work on more ROMs, the showLowBatteryWarning method is now being bypassed entirely. Hopefully, no ROM does anything important inside that method, besides showing the annoying low battery popups. In any case, as usual, you use the patch - you take the risk.
PS: For those willing and able to apply the patch manually, download the second zip and do a 3 way merge.
===> reserved <===
Nice mod...just added it to my rom.. purposely drained the battery...no notification pop up (hopefully won't get the temp warning anyway)
Lovely work
Already given 8 thanks today...I will come back!
_neutron_ said:
Nice mod...just added it to my rom.. purposely drained the battery...no notification pop up (hopefully won't get the temp warning anyway)
Lovely work
Already given 8 thanks today...I will come back!
Click to expand...
Click to collapse
Thanks. Temp warning should not be there any longer, too. But the rest of them (bad charger, overcurrent, stuff like that) are still there, i don't think killing those is a good idea.
The reason i did this was primarily the temperature warning. I've been looking all over the forum on how to disable it, but couldn't find any info, so i though, "what the hell, i can find it myself, it's not such a big deal"... during the search i've noticed the low bat one, too, and though "hmm, i hate that one too, lets kill it as well".
Thats about it.
Just patched and tested the full battery notification as well, first post updated.
Lovely, gonna test this when I get home
Thanks for the update
sorry to sound like a total noob, but im completely new to apktool. was reading up on it and trying it, but im slightly confused. what options do you chose exactly when decompiling? i couldnt find the power smali file after decompiling
There are plenty of explanations/tutorials on this around the forum. About not having the smali after decompiling... any chance your rom is odexed? In this case you wont be getting any smali files, cause all the code is in the odex file, not the apk. You will have to deodex it in this case and, possibly, reodex it before placing it back on the device (not sure about it, specifically i am unsure how the odex dependecies work).
Sadly, i cannot provide a ready to use apk, there are too many versions being in use, especially considering the 15 toggles mod, the battery icon mod as well as many other visual mods also patch stuff inside this apk, increasing the number of variations even further. So, sorry, no ready to use apk.
Is there a flashable file?
Sent from my GT-I9300 using Tapatalk 2
baste07 said:
Is there a flashable file?
Click to expand...
Click to collapse
Nope, and it is extremely hard to make. In fact, impossible, with the currently available CWM tools, as far as i know. It would be "for ROM version <insert_version_here> with 15 toggles and circle battery", "for ROM version <insert_version_here> without 15 toggles and green battery" etc etc etc kind of variations, and as i already mentioned, i doubt this is a viable option.
Anyone can prove me wrong and provide a way of writing a CWM script that would decompile (deodex if needed) an existing apk, apply a patch, recompile it and than replace it ? Out of all the things needed, i only know how to do the "replacing" part
Can i ask a massive favour?
im now havin problems with my systemui in regards to it recording the changes (decompiling & recompiling - i think i have an issue with my pc but i cant figure it out)
Could you apply the changes to the attached file for me?
InfX said:
There are plenty of explanations/tutorials on this around the forum. About not having the smali after decompiling... any chance your rom is odexed? In this case you wont be getting any smali files, cause all the code is in the odex file, not the apk. You will have to deodex it in this case and, possibly, reodex it before placing it back on the device (not sure about it, specifically i am unsure how the odex dependecies work).
Sadly, i cannot provide a ready to use apk, there are too many versions being in use, especially considering the 15 toggles mod, the battery icon mod as well as many other visual mods also patch stuff inside this apk, increasing the number of variations even further. So, sorry, no ready to use apk.
Click to expand...
Click to collapse
ah that explains why there is no smali file. thanks for the help!
I also cannot get this mod to work, wishing easier method coming soon, like one zip file thru recovery or similar... i dont have patience to this sorta things.
Sent from my GT-I9300 using xda app-developers app
_neutron_ said:
Can i ask a massive favour?
im now havin problems with my systemui in regards to it recording the changes (decompiling & recompiling - i think i have an issue with my pc but i cant figure it out)
Could you apply the changes to the attached file for me?
Click to expand...
Click to collapse
Done. Enjoy.
GalaxyS3man said:
I also cannot get this mod to work, wishing easier method coming soon, like one zip file thru recovery or similar... i dont have patience to this sorta things.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Well, if you know of someone that could have possibly coded an infrastructure for doing this kind of patches onboard, automatically, i would be glad to get pointed to the right direction, and will integrate it there. Currently, i don't know of any.
Seriously, though... is it possible to baksmali in recovery mode somehow ? Can one run patch, sed and similar utilities there ? If yes, can i see an example ? Cause if that's possible, it can make a "flashable zip" for stuff like that possible.
hmm, so if i have these files in my app folder:
systemui.apk
systemui.odex
I cannot just add/replace the code as described?
reprazent said:
hmm, so if i have these files in my app folder:
systemui.apk
systemui.odex
I cannot just add/replace the code as described?
Click to expand...
Click to collapse
You can deodex, patch the smali while having it handy during deodexing, and, possibly, reodex it back into an odex file and replace just the odex. Never did it myself, though. I find odexed roms to be too much of a hassle while modding stuff to use those.
Is it ok if i ask help too?
InfX said:
You can deodex, patch the smali while having it handy during deodexing, and, possibly, reodex it back into an odex file and replace just the odex. Never did it myself, though. I find odexed roms to be too much of a hassle while modding stuff to use those.
Click to expand...
Click to collapse
I been trying for days...help, i go crazy with those popups
Thats what i have on my rooted S3 I just like Omega rom, tried several others non Samsung based aswell.
Sent from my GT-I9300 using xda app-developers app
GalaxyS3man, your apk is NOT odexed. Took me barely 2 minutes to apply the patch. Here we go...
PS: TBH, i've been under impression people on XDA are perfectly familiar applying and/or finding out this kind of stuff, really

[Q] Nexus screen buttons

Does anyone know if there is a working app mod or hack to enable the incredible2 to have nexus-like on-screen buttons and disabling the lights and functions of the hardware buttons like on ParanoidAndroid has it?
cowboyv said:
Does anyone know if there is a working app mod or hack to enable the incredible2 to have nexus-like on-screen buttons and disabling the lights and functions of the hardware buttons like on ParanoidAndroid has it?
Click to expand...
Click to collapse
This is the main reason I stick with PA. If someone can mod the framework of the rom you are using, it may be option, but most of the roms don't have that built in. You might mention it in the thread of the rom you use and see if someone can hook you up.
Yeah, I'm wondering if maybe you can copy and paste the frameworks folder from PA rom to the other rom and if that would activate the on screen buttons.
I doubt that would be a good idea, but I'm not the one to answer that one.
Sent from my Incredible 2 using xda premium
cowboyv said:
Yeah, I'm wondering if maybe you can copy and paste the frameworks folder from PA rom to the other rom and if that would activate the on screen buttons.
Click to expand...
Click to collapse
Just a warning, that very well may put your phone into a boot loop, if you decide to try it......BACKUP first
Sent from my Incredible 2 using xda app-developers app
@Phantom: according to this thread it's just a matter of decompiling framework-res.apk, making some changes and then recompiling the whole thing, which is why I'm thinking maybe it is as simple as copying/pasting the apk.
@Tricsuit: Yeah, I know. I already learned my lesson and before attempting stupid ideas like this one, I run a full back up of the rim, settings, apparently and data, and then make sure to save the back up file in my box to be able to retrieve it from my computer just in case something else hiccups.
cowboyv said:
@Phantom: according to this thread it's just a matter of decompiling framework-res.apk, making some changes and then recompiling the whole thing, which is why I'm thinking maybe it is as simple as copying/pasting the apk.
@Tricsuit: Yeah, I know. I already learned my lesson and before attempting stupid ideas like this one, I run a full back up of the rim, settings, apparently and data, and then make sure to save the back up file in my box to be able to retrieve it from my computer just in case something else hiccups.
Click to expand...
Click to collapse
Thanks for the share m8, I will try to look into this one more over the weekend. If you decide to give it a go with a copy and past let me know how it works out.
Yeah, I'm on call for the next couple of days so I won't be able to play with the rom, but if I'm able to make it work I'll post it here. :beer:
Welp, I began to toiler around with this, succeed in decompiling res-framework.apk, changing the bools, arrays and dimens values and added the menu images, basically all the way down to step 5, but I can't seem to recompile it back into .apk... uhm... a little help guys? ^^;

Categories

Resources