[Q] Launcher2.apk image file edits? - Samsung Galaxy Nexus

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

Related

[Q] De-TouchWizzing MusicPlayer.apk

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...

[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

Multi Mod.

This Is A Request For A Multi DPi MOD
Request Please. I like using Custom DPI whenever i flash A New Rom but the SecPhone, SecContacts and Gallery doesn't always look right.
SO If someone could please create a Multi DPI or 360 DPI hack of of these three system Apps i'd really appreciate it or If someone could give me a walkthrough otherwise i'd appreciate it as well.
If this is in the wrong thread ,Please MOVE, not DELETE
BlackGURU said:
This Is A Request For A Multi DPi MOD
Request Please. I like using Custom DPI whenever i flash A New Rom but the SecPhone, SecContacts and Gallery doesn't always look right.
SO If someone could please create a Multi DPI or 360 DPI hack of of these three system Apps i'd really appreciate it or If someone could give me a walkthrough otherwise i'd appreciate it as well.
If this is in the wrong thread ,Please MOVE, not DELETE
Click to expand...
Click to collapse
There's an app for that. In the Xposed family there's a mod called "Per App DPI". Would that be what you're looking for?
lordcheeto03 said:
There's an app for that. In the Xposed family there's a mod called "Per App DPI". Would that be what you're looking for?
Click to expand...
Click to collapse
I am actually very familiar with that but what I mean is that If I have a 360 Dpi, I want Dialer, Contacts and Gallery as well to be on 360 dpi not 480. Per App DPI gives me the option to scale it down, but it doesn't look right at all, because though the apk dpi changes, the framework-res doesn't change at all...
Thanks for the reply.
BlackGURU said:
I am actually very familiar with that but what I mean is that If I have a 360 Dpi, I want Dialer, Contacts and Gallery as well to be on 360 dpi not 480. Per App DPI gives me the option to scale it down, but it doesn't look right at all, because though the apk dpi changes, the framework-res doesn't change at all...
Thanks for the reply.
Click to expand...
Click to collapse
You are right.
However, it has nothing to do with the framework-res lol. It is the apk itself. (Ie gallery, Contacts etc) i am trying to figure out the camera one, I am not sure but i think it might be a layout inflater which should be relatively easy to fix. just gotta find the xml files. however it may also be programmatically added.
elesbb said:
You are right.
However, it has nothing to do with the framework-res lol. It is the apk itself. (Ie gallery, Contacts etc) i am trying to figure out the camera one, I am not sure but i think it might be a layout inflater which should be relatively easy to fix. just gotta find the xml files. however it may also be programmatically added.
Click to expand...
Click to collapse
Yeah I said that backwards lol..So are you familiar with this, I have done some research and foind some helpful files here on XDA, i have gone adead and downloaded Java, the SDk android tools, apk tool, and pretty much everything necessary to decompile the apk and rebuild. The only thing I need now is a guid or a how to and I'm set to go. Well, that and some time as well. lol.
BlackGURU said:
Yeah I said that backwards lol..So are you familiar with this, I have done some research and foind some helpful files here on XDA, i have gone adead and downloaded Java, the SDk android tools, apk tool, and pretty much everything necessary to decompile the apk and rebuild. The only thing I need now is a guid or a how to and I'm set to go. Well, that and some time as well. lol.
Click to expand...
Click to collapse
Im very familiar with decompiling stuff. However, i usually prefer to stick to source code edits via smali. I dislike themeing or anything in that ball park.
By "finding some helpful files" have you figured out what needs to be edited? And you can use my GUI APK Tool to decompile things and recompile them without a command reference.
elesbb said:
Im very familiar with decompiling stuff. However, i usually prefer to stick to source code edits via smali. I dislike themeing or anything in that ball park.
By "finding some helpful files" have you figured out what needs to be edited? And you can use my GUI APK Tool to decompile things and recompile them without a command reference.
Click to expand...
Click to collapse
Yeah not really into themes myself.. I found some help on some websites, but they didn't relate to the s4, it was mostbly about the s4 and galaxy ace or something of that sort. Lol. I'm still looking into it and if I do ever get it, I will release it for public use, because I know that a lot of people don't like using custom DPI
BlackGURU said:
Yeah not really into themes myself.. I found some help on some websites, but they didn't relate to the s4, it was mostbly about the s4 and galaxy ace or something of that sort. Lol. I'm still looking into it and if I do ever get it, I will release it for public use, because I know that a lot of people don't like using custom DPI
Click to expand...
Click to collapse
can you link me to the stuff you found?
---------- Post added at 08:28 PM ---------- Previous post was at 08:19 PM ----------
Lol i just found
http://forum.xda-developers.com/showthread.php?t=2269483
elesbb said:
can you link me to the stuff you found?
---------- Post added at 08:28 PM ---------- Previous post was at 08:19 PM ----------
Lol i just found
http://forum.xda-developers.com/showthread.php?t=2269483
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1786990
http://forum.xda-developers.com/showthread.php?t=2303535
Don't Forget that Thanks Button

[Q]How to change 'Conversations.apk' background color

Device: Xperia z1c
ROM: D5503_14.2.A.1.114_Generic (deodexed)
I searched forum, tried to decompile and modify Conversations.apk and framework-res.apk, but cant find the files which would affect background ;(.
Attaching what background looks like, and roughly what i want to accomplish(edited screenshot)
Please help
Aculard said:
I searched forum
Click to expand...
Click to collapse
Except for Themes and Apps. - http://forum.xda-developers.com/showthread.php?t=2642634
Yea, ive searched for like 3 hours and didnt find it, yet it was right here. Sorry im inexperienced, and many thanks to you sir.
However is there a way to edit those background colors, its a bit too dark for me.
XperienceD said:
I'm going to turn this thread in to a tutorial instead, given the number of downloads and thanks received it's not really worth the effort these days of modding and testing which is twice the work for me as I theme them to suit my own theme too.
Click to expand...
Click to collapse
That would be awesome, sorry if im being too greedy of your time and will
Thanks again.
Aculard said:
That would be awesome, sorry if im being too greedy of your time and will
Click to expand...
Click to collapse
To change apps from light to dark you need to edit the styles.xml in the values folder of whatever app you want to mod, decompile one of mine and compare it to your stock and that will be your starting point, the rest is usually in the layouts folder and/or pngs to suit. There's a few links in my APK Modding & Theming Thread that will help too.

Categories

Resources