Related
It is expected that those following this guide should have prior knowledge of
1)How to use adb and/or terminal emulator to edit system files.
2)How to fix permissions using root explorer.
3)What to do if system process crashes or the phone hangs after replacing system files- pull battery and power on.
4)If you are an advanced user you can also first modify the systemui.apk first.Replace it in the cm7_update.zip file.Sign the new zip file so generated and install it.Then no need to go through many of the following steps
This is by far the simplest method to get a transparent notification bar. Some parts of this thread have been taken from the following source:http://www.lazytrap.com/?tag=systemui-apk
What you would think is simple though, isn’t quite. You would THINK that just updating the PNG files would be enough. It’s not. I tried it a million times while trying all those other bad ideas. After the PNG files are modified, you also need to edit the file, classes.dex, which is in the root of SystemUI.apk. Turns out, .dex is yet another format only native to the Android platform. You can decompile and recompile them using smali/baksmali. Once you have decompiled the .dex file, you’ll be left with a bunch of files. For transparency on the statusbar to work, we need to edit two entries in StatusBarService.smali. After the 2 entries are changed, we save the file then recompile classes.dex, update the SystemUI.apk, then put it on our android device. That’s it. So while it’s not as simple as just editing the PNG files and updating the SystemUI.apk archive, it’s still a hell of a lot simpler than all these forum posts lead on. Actual instructions below.
Instructions:
• Copy /system/app/SystemUI.apk to your sdcard and then to your computer where you can edit it(use root explorer or adb to pull it to your computer)
• Install 7-Zip if you do not already have it. 7-Zip can browse into .apk files and let you update them easily.
• Open SystemUI.apk in 7-Zip, do not extract it, just open it.
• Browse to the folder res/drawable-hdpi/, then find all the png files that start with “status_bar” & "statusbar_background.9". Drag them into a folder on your desktop.
• Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
• Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
• Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file
• Press Backspace a couple times in 7-Zip to go back up to the root folder in the .apk, you should see classes.dex sitting there.
• Drag classes.dex out to a folder
• Download smali and baksmali from here: http://code.google.com/p/smali/downloads/list, put them in the same dir you put classes.dex
• Open a CMD prompt and change to that directory
• Type the following (replace 1.2.6 with whatever version it was you dl’d):
• java -jar baksmali-1.2.6.jar -o classout/ classes.dex
• Back in the folder, go into the new classout directory that was created.
• Find the file named StatusBarService.smali, open it in a text editor.use notepad or notepad++(easier)
• Search for .line 1519, the line just under it should read: const/4 v5, -0×3. If it does not, but instead reads const/4 v5, 0×1 or const/4 v5, 0×2, change it.
• Search for invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V; a line above you should see const/4 v5, 0×2. Change it to const/4 v5, -0×3 also.
• Save the file and exit.
• Go back to your CMD prompt and enter this command (this recompiles the .dex file with your changes):
• java -jar smali-1.2.6.jar classout -o classes.dex
• Add classes.dex back to where you got it from in SystemUI.apk.
• Take your updated SystemUI.apk file and place it on your SD card. If you took it out, put the SD card back in your Android device. (instead of using a SD card you could use something else to move the files around, like dropbox).
• Open up Terminal on your Android device, change to the directory you put the update SystemUI.apk file. ex: cd /sdcard/myupdate/
• Type the following commands:
• mount -o remount,rw /system/
• cp -f SystemUI.apk /system/app
The above command probably just crashed Launcher. Press Force Close . Now, go to root explorer and fix permission for systemui.apk to rw-r--r-- and Reboot your device.
After making the update, make sure to turn off Wallpaper Hack. It’s under Settings->ADW Launcher->System Preferences->Wallpaper Hack – Not doing so will result in the transparency only working with Live Wallpapers and not others
That’s it. You should now have a transparent status bar.
Now, you can use only such themes that come with a transparent notification bar or glass effect as well as the 3 default themes included with cm7 theme chooser. But you won’t be able to use other themes i.e. they will continue to show a black notification bar and not a transparent one
WORKAROUND: But we can get transparent notification bar with ANY theme. Here’s how:
1)download the theme’s apk to your computer
2)open it with 7zip as an archive (Don’t extract it)
3)Go to res/drawable-hdpi and drag the following files to any folder:
com_android_systemui_statusbar_background.9.png; com_android_systemui_status_bar_background.9.png; com_android_systemui_status_bar_close_on.9.png
4) Open the PNG files in Paint.Net, Gimp, Photoshop, or whatever your favorite editor is capable of png transparency.
• Delete the background. It’s now transparent. If you want semi-transparency, do that instead.
Select all of your modified PNG files and drag them back into same spot you got them from in the Theme.apk file in 7zip and close 7zip
5)This will give you your new apk for the theme with a transparent statusbar .But you will need to sign it to be able to use it
6)use drag2sign_apk to sign your new apk file.
7)Transfer it to your phone and install apk using any file explorer. (If you did not sign the new apk then installation will FAIL)
8) Go to theme chooser and apply your New theme. That’s it you will now have a Transparent notification bar
This method can be used to get a transparent notification bar with ANY theme
Here I'm attaching the SystemUI.apk of cm7_rc1.5 which I'm currently using with transparent statusbar.I recommend using adb to push it.
In command prompt first change directory to the one containing the patched SystemUI.apk
Use this command: adb remount (to allow editing the system files)
next command: adb push SystemUI.apk /system/app/SystemUI.apk
Then fix permission using root explorer.
Reboot.
Don't forget to uncheck wallpaper hack in ADW settings
THOSE WHO FIND THIS THREAD USEFUL DON'T FORGET TO HIT THANKS
I had to update my system and hence had to create a new systemui.apk. This one is of cm-7.1.0-11 stable release. Here I'm uploading it for your convenience
thx for the instruction.
but anyhow, i cannot make it work on my latest nightly builds. status bar was dismissed after modification file pushed to system.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can go to this website http://uot.dakra.lt/kitchen/ and upload your framework-res and systemui and do all kinds of stuff to it including transparencies. check it out its pretty easy. You can also upload a theme.apk and modify that also. Here is a thread for asking questions and getting help for that site http://forum.xda-developers.com/showthread.php?t=990829
matchung said:
thx for the instruction.
but anyhow, i cannot make it work on my latest nightly builds. status bar was dismissed after modification file pushed to system.
Click to expand...
Click to collapse
Did you fix permissions after pushing the systemui.apk and reboot ?
Also did you uncheck the wallpaper hack in ADW setting?
Are you using any different launcher ?this method works for adw
Did you apply a theme with transparent statusbar or not ?
request: flashable systemUI with only transparent status enabled !
Ok, i tried it, but my status bar is always black
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.
Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.
thanks for your time and help
-hanu
hanu_blr said:
Ok, i tried it, but my status bar is always black
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.
Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.
thanks for your time and help
-hanu
Click to expand...
Click to collapse
Hi.. try these patch.. You must apply the patch twice..
hanu_blr said:
Ok, i tried it, but my status bar is always black
I tried others methods, which are posted here, CM7 Theme Patcher v1.6, Transparent glass Theme CM7 RC1.5+Tutorial, still no luck.
Can some plz do this for me.
I just need the transparent status bar only, nothing else
am on cm7.1 rc1.5 defy.
just post me SystemUI.apk file which i can flash in recovery.
thanks for your time and help
-hanu
Click to expand...
Click to collapse
check the first post I've attached the SystemUI.apk
@tegezan, thanks for your help, it wrked, i was able to see the transparency when i set live wallpaper, and am using this theme GingerBlur-trans.apk
http://forum.xda-developers.com/showthread.php?t=1021507
And am using go launcher ex.
if i dont want to use live wallpaper, then i shd use wall-paper with transparency ?, where to get this ?
@krd_medico, thanks, may be patch and undo recover files will be easier. anyways tegezan has attached it already
Edit:
Also in screen lock mode, i see more transparency, but on home screen its less transparent, is this ok ?
@hanu_blr
note from zdunex25 theme..
Wallpaper & transparency:
As you should know not each launchers supports
transparent statusbar, but if we will use
MiltiPicture Live Wallpaper we can get
transparent statusbar using any launcher
btw, I am used go launcher ex.. no need to use live wallpaper, just uncheck wallpaper hacks..
@tegezan,
in go launcher ex, where is the wallpaper hack settings, i coudnt find it
but its available in AWD, i hv disabled it, but am not using awd.
hanu_blr said:
@tegezan,
in go launcher ex, where is the wallpaper hack settings, i coudnt find it
but its available in AWD, i hv disabled it, but am not using awd.
Click to expand...
Click to collapse
nothing to change in Go Ex, let it as is.
i dont know whats wrong with my modified theme file, it can be done by using other stock themes. here is theme Zdunex25 applied.
@krd_medico, i think u ment theame.apk, not SystemUI.apk.. in the WORKAROUND section. am i rt ?
"Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file in 7zip and close 7zip"
hanu_blr said:
@krd_medico, i think u ment theame.apk, not SystemUI.apk.. in the WORKAROUND section. am i rt ?
"Select all of your modified PNG files and drag them back into same spot you got them from in the SystemUI.apk file in 7zip and close 7zip"
Click to expand...
Click to collapse
Thanks for pointing out. I have edited my first post.
Am hving issues with go launcher ex, with this i dont see transparency in home screen, its rather 10% or semi-transparency with black color, in lock screen its clear transparent.
At times i saw full transparency in home screen, but lock/unlock made it to go back to 10% trans with black color.
If i change to AWD, even in home screen i see full transparency . Dont know wats going on
finally,, i can make it work. i did the modification by using apk_manager b4, but seems not.
running CM7, on Go Launcher Ex, with modified Zdunex25's Meizu theme
Is there any chance to make this?
forum.xda-developers.com/showthread.php?p=17582887#post17582887
Sent from my MB525 using xda premium
for me works very fine... thanks
@matchung,
can u try installing the gingerblur-trans.apk form http://forum.xda-developers.com/showthread.php?t=1021507, and see if u see full transparent in GO lauhcher ex ?.
I guess gingerblur-trans.apk, is semi trans with black. If u see semi trans black, can u make it full trans for this gingerblur-trans.apk ?.
I did try to make gingerblur-trans.apk full trans with paint.net.
I took all statusbar* pngs from the gingerblur-trans.apk file, then opened it in paint.net, under layer window, layer properties, opacity was set 255, made it 0, this changed the image with small white_gray square pattern image, guess this is transparent image, save it as png, with bit depth auto-detect, then replaced all those statusbar* file in the original gingerblur-trans.apk, then resigned it. After installing it, still i see black bar in home screen, and full trans in lock screen, if i use live wallpapers, both home/screen lock is transparent, this is with go launcher ex,
if i use AWD, both home and lock screen is full trans . I dont like AWD much. Can u try and if it wrks fine on go laucnher ex, can u post the modified gingerblur-trans.apk file here plz ?
thanks for u time
NOTE: i didnt xtract gingerblur-trans.apk, just opened in winrar, tookout the png files, edited it and pushed back to gingerblur-trans.apk.
waterfish.. amazing..
i should try it..
hanu_blr said:
@matchung,
can u try installing the gingerblur-trans.apk form http://forum.xda-developers.com/showthread.php?t=1021507, and see if u see full transparent in GO lauhcher ex ?.
I guess gingerblur-trans.apk, is semi trans with black. If u see semi trans black, can u make it full trans for this gingerblur-trans.apk ?.
Click to expand...
Click to collapse
untouch theme. wanna full transparent?
[Advice/Reference/Guide] The Definitive APK Modding & Theming Thread... [12/08/13]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
XperienceD said:
This is why I love Virtuous Ten, as you can install multiple resources.
Click to expand...
Click to collapse
jacknb1ack said:
wow, i didnt know there is tools like that
Click to expand...
Click to collapse
After reading jacknb1ack's comment I felt compelled to re-write this whole thread to accommodate for the various PC Programs that you use to do all of your apk modding which can and do make things a hell of a lot quicker. I've wrote this as something I would have liked to have come across when I first joined because I know there is a lot to take in, and hearing you need to decompile, edit this or that xml, recompile, sign etc etc etc can be off putting for some especially if you struggle to get a program or apktool setup to begin with.
Knowing how to use command prompts will be beneficial in the long run so I've wrote a detailed guide below which covers it from start to finish along with how to Sign and Zipalign your apks, pulling them from the computer and so on. I've also covered some Theming basics with links to everything you're ever going to need, which will be extra handy if you're just getting started.
Minimum Requirements:
A Rooted Phone.
Java SE Runtime Environment
Java SE Development Kit
Any of the apk modifying methods below.
7-Zip or WinRar
Theming Requirements:
Notepad++
Photoshop, GIMP or any other image editing software.
Patience. :silly:
To avoid any java not found issues you need to set up the PATH for it in Environment Variables, you can find a short Guide on how to HERE. This is how mine looks...
Code:
[B]C:\Program Files (x86)\Java\jre6\bin;[/B]
I would advise that you also install the Android SDK but if you don't want to you can download this APK_Mod.zip that you can extract to a folder and place it anywhere you want on your Computer (I recommend C:\APK_Mod) and run any adb, apktool, zipalign or signing command prompts from it. You can find a more detailed guide for this method below.
But first off all here are some of the most common Programs that you can use to modify and theme your apks, and I'll start with one of the best...
Virtuous Ten Studio (VTS)
Virtuous Ten Studio (VTS) is the ultimate solution for the modification of android applications.
This program allows you to manage entire Android projects within an easy to use and familiar environment.
The intended group of users covers anyone from a themer over ROM devs up to the smali gods known for their awesome mods of existing apks.
The modifcation of smali code is one of the biggest features in VTS. You can easily decompile, edit and recompile any apk or jar file.
However, the application is not limited to smali files. You can edit almost any file found inside an apk or jar.
Virtuous Ten Studio is also the official successor to the highly important M10Tools released last year by the Virtuous Team.
You can easily edit any m10 file from Sense apps in order to resize or change them.
Additionally VTS brings support for un- and repacking of boot images (boot.img), a job that previously required a cygwin installation with the dsixda kitchen.
Since VTS' own implementation is a native windows solution, which means you don't need dsixda or cygwin anymore.
VTS has been designed to run on Windows, has been in development for nearly two years and has gone through many stages of testing.
Today VTS is a highly respected full blown Android IDE (Integrated Develoment Environment) suited for all your reverse engineering tasks.
Click to expand...
Click to collapse
- www.virtuous-ten-studio.com
AndroidSuite 2013
AndroidSuite 2013 what it does
Decodes and encodes Dex files
Decodes and encodes APK files (Previously bugged in APKManager)
Gives a console output
Flash boot.img (fastboot)
Flash update.zip (fastboot)
reboot/reboot fastboot mode
Sign unsigned apks
Click to expand...
Click to collapse
- (App) Androidsuite 2013 v117 (01/04/2013) Jelly Bean Support!
Tickle My Android 5.4
Tickle My Android, or TMA for short, is a command line tool for Windows that uses apktool to help you pull and decompile files from your Android phone or tablet.
But it can also:
change the battery icon,
change the WiFi icon,
change the signal icon,
change the emoticons,
change the notification toggles,
change the transparency of the statusbar (if the rom allows it),
add Ice-Cream Sandwich-style transitions
zipalign apk files,
sign new apk files,
sign recompiled apk files in the same way as the original,
deodex apk and jar files,
backup personal data and transfer to a brand new device,
resize and change boot animations,
change fonts,
add sounds from other devices,
create backup-generating flashable zip files
..and now comes in Portuguese and French!!
Click to expand...
Click to collapse
- [TOOL]Tickle My Android 5.4 - DE/RECOMPILE APPS, CHANGE ICONS...AND MORE!!!!
ApkManager V6.1
1. Based on ApkManager 4.9 by Daneshm90 (Big thanks to him)
2. Updated Apktool V1.5.2 by iBotPeaches & Brut.Alll
3. Updated Aapt v0.2
4. Default compression level set to “0?
5. 512Mo as default allowed heap size
6. 3 ready for use fake frameworks : “other\wanam1.apk”… (for Lidroid framework editing)
7. Add a “Decompile all files” feature (option 25)
Click to expand...
Click to collapse
- wanamlite.com
Command Prompt Editing
Basically this is just manually doing what all of the programs above need to do in order to decompile, recompile, sign and zipalign apks so it's worth knowing how to modify apks this way for occasions when the above programs for whatever reason gives you issues.
Use Linux or a Mac?
See the following threads for more information on using apktool on other Operating Systems...
APK Manager for Mac OS X
[Linux][UTILITY][TOOL] APK Multi-Tool
[tutorial] decompiling,recompiling and signing in linux (27-01-2013)
How to install and use Apktool with Ubuntu
Getting APKs To Your PC
You have two options here...
1. Use a file manager on your Phone to copy and paste files to your SD, then connect to your PC and use Windows Explorer to copy and paste to your desired location.
2. ADB. Open a command prompt window in the ADB folder (see below) and type/copy the following command...
Code:
adb pull /system/app/ Original_apps
...which will pull the whole app folder to your computer and create a new folder called Original_apps, which you can then simply copy apps to the main folder ready to be modified (keep the Original_apps folder as a backup). Then do the same for your framework folder...
Code:
adb pull /system/framework/ Original_framework
...want to pull your Phones whole system...
Code:
adb pull /system/ Xperia_Z_System
...you can rename "Xperia_Z_System" to whatever you want.
Further Information: [WINDOWS][TUT]ADB tutorial, setting up ADB, usefull commands, collecting debug info.
This is a zip of the apktool folder I currently use - APK_Mod.zip - which as said above also contains the ADB files needed to pull and push apps from your Phone, or you can check out the following links...
[Tool] ADB Fileexplorer
[TOOL][WINDOWS] Android Apktool
Installing Resources
For apktool to work you need to install the resources needed by your apks for de and recompiling, and those resources are other apks, the first apk regardless of your Phones manufacturer is going to be your framework-res.apk. The second apk you need is dependent on the manufacturer so you need to check your framework folder for another apk such as twframework.apk or SemcGenericUXpres.apk, in some cases it might even be the SystemUI.apk but you would need to check if you have issues with the other two. Put those two apks in the APK_Mod folder to begin with then open a command prompt window. The easiest way for me is holding the shift key then right clicking the mouse and selecting Open command window here, but if you're not able to do that then click your Start button and search for Command Prompt, then open it. You then need to point it to the relevant folder, so type cd then copy and paste the location of the folder (cd C:\APK_Mod) and hit enter.
The install commands are...
Code:
[B]apktool if[/B] framework-res.apk
...and for the second...
Code:
[B]apktool if[/B] SemcGenericUXpres.apk
Decompiling
The command for decompiling is...
Code:
[B]apktool d[/B] framework-res.apk
...and so on for each individual apk you want to modify. A new folder will be created that is named after the apk you are modding, then you can edit xmls, smali files and .9png images. You'll notice that there are a lot more folders when you decompile an apk, that's normal as those folders are from the resources.arsc and where you'll find the xml files you may need to edit to make the changes you want.
Recompiling
When you've done editing it's time to recompile, using the command...
Code:
[B]apktool b[/B] -insert folder name-
...and if you've edited your files correctly then it should compile with no errors and create a folder named dist in the decompiled folder along with a new apk.
Signing
Before using the new apk you will need to sign it, to do this you need to extract (open the apk and simply drag and drop them to the dist folder) from the original apk the resources.arsc (only if you haven't changed anything in the values folder, the AndroidManifest.xml and META-INF folder (if it exists), then copy them into the new apk. In WinRar it will give you the option to choose the compression method, and it's vital that you choose Store as the compression method because if you don't then you WILL BOOT LOOP after restarting your Phone!
NOTE: If you have edited anything in the values folder then extract the resources.arsc from the new apk and copy (drag and drop) it back in the same manner described above.
Alternatively you can use the following command...
Code:
[B]java -jar signapk.jar testkey.x509.pem testkey.pk8[/B] framework-res.apk.apk framework-resS.apk
...notice the extra "S", the output name has to differ from the input name otherwise it will give an error, if done right it will create a new apk called framework-resS.apk, just remember to rename it back to the original before using it on your Phone.
Signing For The Play Store
If you plan on Publishing a Theme or any other app/apk to the Play Store then using the above method to sign your apks just wont work because you need to give it an individual signature that is unique to you, thankfully @AndroidGraphix has written a great guide that will show you how, it's a bit more fidgety than the above method but simple enough to follow...
AndroidGraphix said:
Click to expand...
Click to collapse
- Noobs guide to signing an APK with a Private Key
Zipaligning
DISADVANTAGES OF UNALIGNED APKs
Quite understandably, situation would be reserved for unaligned application packages. Resource reading would be slow and memory usage would be on the higher end of the spectrum. It would also depend on how many unaligned applications are present. For example, if less number of applications with an unaligned home application, you’d see slower application launch times. This is the best case scenario. For a worst case scenario, having a number of unaligned applications will result in the system repeatedly starting and killing processes, struggling with lags and huge battery drain.
Click to expand...
Click to collapse
- SOURCE
The command for zipaligning is...
Code:
[B]zipalign -v 4[/B] framework-res.apk ZAframework-res.apk
...notice the "ZA", again that can be anything you want so long as it differs from the original name, I use ZA for an obvious reason, and again don't forget to rename it before using on your Phone.
Getting apks back to your Phone
It's just a reversal of how you got them off your Phone to begin with, use a file explorer and put your apk on your SD Card, then move it to the Phones System folder and change it's permissions to rw-rw-r, then move and replace it with the original. Most apps should continue to work but if you change your framework-res or SystemUI you will most likely need to reboot. Or you can use adb to push and install them. Check the previous link for the commands.
If all the above has worked correctly you should now have your modified apk installed with the changes you've made displayed on your Phone.
Theming & Modifying
This is where the fun begins, once you've got setup to decompile your apks then obviously you're going to want to mod them, so here's a few pointers to clear up what seems like a daunting process to new comers...
To start with you'll probably just want to start with replacing images, so if that's all you want to do for now then here's a quick tip, you DON'T need to decompile or sign your apks!, simply edit and rename your replacment images on you computer, preferably using the same or similar dimensions then drag and drop them back into the right folders in the apk, always using Store as the compression method, but PLEASE NOTE; .9 pngs can be replaced in the same way, but if you want to edit them in Photoshop for example then you need DO need to decompile them.
A few things to note...
Smali code is real Developer territory, it's Matrix code to me , thankfully there's usually a guide to follow so you can simply copy and paste code without having to fully understand how it works, so don't fret about this.
.9pngs are simply png images with a 1 pixel border. You can edit anything within that border but anything on or over will give errors when building. Unless you're creating an image from scratch then you can leave the border as it is, it's that simple! Sure there's a bit more to .9png editing but you can find a few links below that go into more detail about .9s and how they work.
xmls are relatively simple and edited with Notepad++, much simpler to understand than smali and again, there's usually a guide to be found for most mods you may want to make yourself, but if you're feeling brave you can experiment with it when you have a basic understanding of how it works.
Restoring modified files if you mess up is easier and quicker with a CWM.zip, especially if you're modifying any framework apks! Just because an apk might build with no errors doesn't mean it won't give you any when installed to the Phone.
.9png Editing
I hope after reading this explanation you're left wondering what all the fuss is about, as it really is quite simple. I'll use the following two images, btn_default_pressed_holo.9 & status_bar_close_off.9 to illustrate the basic point of the borders...
Decompiled .9pngs:
Recompiled .9pngs:
Those borders control which part of the image is stretched, and we'll use Draw 9-patch which is for editing the borders of decompiled .9pngs and lets you see how the image, when stretched, will be displayed on the Phone. Notice that the borders are different sizes, well that's because I only want/need a certain part of the image to stretch to get the desired look on the Phone.
...in the image below the left side shows the stretched image and desired effect should look on the Phone and the right side shows how it would look if I had edited the borders incorrectly or used none at all...
You can get away by not using a border but you would need to edit your image to specific dimensions to accommodate for the stretching, for example it might look fine for a simple OK button but it might not look right if you used the same .9png for a screen press which stretches the whole length of the screen, so you're better off just using them to begin with, plus you'll more than likely get errors down the line while decompiling or recompiling your apk.
The use of the border is made even more clear when you add text to an image. For my status_bar_close_off.9 I've filled all four sides of the image (except for an empty pixel in all four corners as that is the max amount of border you can use) as I need it to stretch the image just how I've edited it...
...but if I used the same sized left side border as the btn_default_pressed_holo.9 then this is how it would look on the Phone...
...which is obviously not the look I'm trying to achieve, as the left side border is causing the image to stretch incorrectly.
So that's basically it, depending on the image you're editing you can usually leave the borders alone but if you create one from scratch then you might need to play about with them if your images doesn't look quite right when used on the Phone. Here's a few links that will assist you further, especially the batch editing...
How to edit .9.pngs
[TUTO] Create your 9.png !
[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]
How to draw NinePatch images with Photoshop - .9.PNG
[TOOL][Multi-Platform][.9.png][ALL DPIs] Android Resizer Tool
[Tutorial][Commentary] How To Batch Edit .9PNG/PNG Images
Xposed Framework
rovo89 said:
In this thread, I'm presenting a framework which gives you the possibility to modify your ROM - without modifying any APK (developers) or flashing (users)!
...
Advantages:
No need to modify any APKs. This means:
No need to decompile, change things in smali, compile, sign, ...
It will work for odexed and deodexed ROMs.
Your mod is not bound to a specific version of the ROM. Unless there is a major change in the methods called for a certain functionality, your mod will continue to work even when you upgrade your ROM. Hell, it will probably even work with different ROMs.
Multiple mods can be installed at the same time, even if they change the same package. So you can use these battery icons and those quick toggles. Even hooking the same method twice is possible. Of course, this only works properly if the mods are not trying to do incompatible things.
It does its magic at runtime. That means you can implement options to let the user decide if they prefer the bikeshed to be painted in red or blue. Or you can have some extra logic for certain ROMs without building different mod versions.
It can be disabled easily without having to reflash.
It's open source.
Click to expand...
Click to collapse
- [FRAMEWORK ONLY!] Xposed - ROM modding without modifying APKs
[Guide] Porting XTheme themes
[Guide] Xposed Framework/TabletUI (Noob-Friendly)
[INDEX][WiP] List of APPs & MODs that use XPOSED Module
[MOD][XPOSED][4.0+] XThemeEngine beta5 - Theme engine for any rooted phone
CyanogenMod Theme Chooser
Annex1 said:
CM10.1-THEME_BOOK
Theme book was created by Annex and Ebs512. I've been asked alot of questions from how to get started? what do I need to get started? to What Graphics program do I use? etc. We made a real simple theme guide to help get you started. This is in Layman Terms.. Nothing fancy.
ONLY THING FANCY IS MY FLASH BOOK
YOU MUST HAVE A FLASH PLAYER INSTALLED TO VIEW THIS!!!
Click to expand...
Click to collapse
- [GUIDE] HOW TO THEME CM10.1 - Animated Book
[Tool] [Theme Creator] [CM/Avatar] Theme creator tool
[Tool] nhnt11's XML Generator Revived V2+Extended UPDATED!
[DEV/GUIDE]Creating APKs for use with TMobile Theme engine
[GUIDE] T-mobile theme engine for the faint at heart (non-linux users)
[1/30/2013] Mega 4.2.1 BlackBean Theme Template [XXHDPI/XHDPI/HDPI/TVDPI]
-·=»‡«=·-[JB][CM10] Theme Engine Template Updated To V4 [8-7-12][XHDPI/HDPI]-·=»‡«=·-
See a few post below for more...
thnaks
thank you so much
very hepful guide
looking for dis
Thank you so much,
This should be sticky!
Make a noob, into a senior user.
Sent from my Anzu using xda premium
Flashable Clockwork Mod (CWM) zip
ClockworkMod Recovery zips are used for flashing individual files to whole ROMS and can be a life saver if you push a badly edited apk to your Phone that results in a bootloop. There's also a few programs that can assist you with that too, but if all you're doing is replacing a few files all you really need is a template, then it's just a matter of creating the Phones folder setup in the zip which is simply creating folders: system\app - system\media\audio etc then dragging and dropping your files into it. A basic understanding of the updater script is essential, a ROM.zip will more than likely wipe your Phone whereas a Theme.zip may just replace files but it might delete some also.
See below for a CWM.zip Template but first some helpful links...
ERRORS encountered in CWM Recovery
[Tool]easy flasher v4 (ur own update.zip)
[TUT] [for NOOB] editing updater-script for noobs!
[TUTORIAL] Making Flashable ZIPs, EDIFY Script, ZIP Signing & Key Creation
[Utility-Tool][DEVandThemers]CWMflashpack.zipCreatorV1{TheCollective}w/EdifyScripting
This is my Theme_CMW_Template.zip which is set up so you can add your own files to the framework and apps folders in the main system location, but you can easily add other folders to it if you want to add things like fonts, tones or anything else, just remember to add folders within folders if that's where the files you want to include are such as tones, media\audio\alarms for example.
If you navigate to META-INF\com\google\android you will find the updater-script which controls how the zip works and the text you see when you run it in CWM. As this zip is just for basically over writing files you don't need to edit anything except for a few lines...
...this is how I've edited it for my Ice Green ResMods theme...
...so just edit it using Notepad++ to your liking.
When adding files to your zip add them using Normal as the Compression Method...
...and that's pretty much it. Remember to remove the text files I've added otherwise they will be flashed to your folders too.
Deodexing
The first thing I do when installing the latest firmware is Deodex it, mainly because having a deodexed ROM is easier to modify and you'll find a lot of the modifications that are are in the Themes And Apps sections require you to have a deodexed ROM. I use the dsixda's Android Kitchen to deodex and @pankaj88 has written a great guide here - [GUIDE] How to DEODEX stock ODEXED ROM using dsixda's kitchen - so you can do it yourself, or you can give the following tools a try.
philos64 said:
The differences between Odex and Deodex Files...
In Android file system, applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space The odexed file structure works well as an optimization tool. Since these .odex files contain preliminary load information about each system app, the OS knows what to expect when it’s booting up, and consequently, loads all these apps faster.
On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.
For instance, on a non-rooted device you’ll find
system/app/Phone.apk ===> as well as ===> system/app/Phone.odex
Click to expand...
Click to collapse
- [GUIDE] - The differences between Odex and Deodex Files
[TOOL][WINDOWS]Universal Deodexer[ALL DEVICES!!]
abcdjdj said:
Hi everyone,
Alokbina and I have created a tool which allows users to very easily deodex apks from a rom. This tool is very useful for Rom developers too. For now only windows is supported but we will try our best to make the same tool for linux too and make the tool as user friendly as possible. And, please don't forget to thank alokbina too.
NOW EVEN ON XDA PORTAL - http://www.xda-developers.com/android/deodex-all-the-things-with-universal-deodexer/
Requirements:-
--->Java installed on your PC
--->system/framework folder from your rom
--->apks from that SAME ROM with the respective .odex file
--->Patience and a calm head (common sense included)
You can watch this video for setting up and using the tool -
Click to expand...
Click to collapse
[FIXED][UPDATE - V3][TOOL][WINDOWS]Universal Deodexer[ALL DEVICES!!]
adityaf said:
CARBONITE TOOL
Features
1)Deodex your stock ROM (android 2.x 3.x 4.x)
2)This tool automatically pull your apps from phone to PC
3)One click deodexer,
4)Just click Deodexer_from_phone
5)All apps and framework will be deodexed.
6)Automatically makes .zip file flash from CWM.
BUGS
Sometimes it does not deodex androidpolicy.jar just run script once again!
Click to expand...
Click to collapse
- [TOOL]CARBONITE TOOL [Dedeoxder tool][All devices]
And that's pretty much it, the only way you're really going to learn is by reading then putting into practice what you've read and picking stuff up along the way, fortunately this far into the history of Android there are numerous guides for numerous mods and tools to help with a variety of tasks and the following links are going to be a big help...
U.I Modding
Tutorial :- Changing App Icons
[TUTORIAL]How to Theme Your MMS
[How-to] Edit the "About Phone" display
How To Colorize Lock Screen Clock in Jellybean
[TUTORIAL] How to add various framework/Settings mods
[TUTORIAL] Where to find the colors for making a theme
[TUT][JB] HOW TO THEME SystemUI.apk for TOTALLY newbie!
[TUTORIAL][ICS][GB][JB]How to change Android's black background
Text...
Text Color Guide
[GUIDE][REF]Changing System Text Settings
Statusbar...
[MOD][TUT] Merge The WiFi And Signal Icons
[GUIDE][MOD][SYSTEMUI] How to add 0.0K/s meter on statusbar ICS/JB
[TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!
[How-To]Removing Battery Percentage, Adding Toggles,Battery Circles to Statusbar
Misc...
Some Extra Theming and Moving the Power Widget Down
[HOWTO] Integrating/Adding applications to the settings menu
[GUIDE] How to get Transparent App Drawer [Launcher2.apk or Trebuchet.apk]
[GUIDE][Mods][All Devices]How to add/ Change Clocks to Analog/ Digital with Seconds
Various Tools...
[TOOL][BETA]Miui Theme Converter/Convert apk Themes!!!
[TOOL][JAVA]"The Rom Fumbler" aka "The Battery Icon Creator"[V29.0]
[TOOL]Boot Animation Factory-Create,Preview and Manage Boot Animations
Useful Links
findicons.com
colorschemer.com
[GUIDE] Tips for themers
Ultimate Online Theme Kitchen
[GUIDE] Want to learn how to theme?
[GUIDE] Smali coding guide for beginners
General Questions about Themes GO HERE!!!!!
[Guide] How to port themes to T-Mobile Theme Chooser
[Collection] ICON SETS | Over *750* different Icon Packs
[TOOL] Remote Theme Injector - theme your favorite paid apk
[TEMPLATE] Icon Packs/Themes for Apex, Nova, Holo, ADW, and more!!
[INFO] Custom framework-res.apk resources.arsc using vendor overlays
If you feel something more should be added to this thread please feel free to suggest it.
Credits & Thanks:
@_calum_
@Diamondback
@ebs512
@Rizal Lovins
@Ticklefish
@wanam
@rovo89
@Annex1
@ebs12
And not forgetting @iBotPeaches and @Brut.all for making it possible with - [UTIL][Feb 02 2013] Apktool v1.5.2 - a tool for reverse engineering apk files
one query
after i decompile the apk,i edit the my xmls in project folder....then what to do next?
EDIT:- I figured it out
abhisheak.bansal said:
one query
after i decompile the apk,i edit the my xmls in project folder....then what to do next?
Click to expand...
Click to collapse
Continue editing or recompile and test your changes.
Wow!! It should be sticky. Really usefull guide, it explain so much things... thanks again
Useful Guide, Thanks
soooo happy u came out with this
will u add how to make it a theme that someone else can flash?
keep up the good work
zainthesnipe said:
soooo happy u came out with this
will u add how to make it a theme that someone else can flash?
keep up the good work
Click to expand...
Click to collapse
Thanks, glad to see it's helping some People, and I will add that yes.
zainthesnipe said:
will u add how to make it a theme that someone else can flash?
Click to expand...
Click to collapse
Done.
Could you make a short guide to show
how to zipalign using dsixda's Android Kitchen
When I select zipalign all...
It says no working folder found...
what does it mean...?
Kajendran said:
When I select zipalign all...
It says no working folder found...
what does it mean...?
Click to expand...
Click to collapse
You haven't set up the folder. http://forum.xda-developers.com/showpost.php?p=5626300&postcount=3
Updated.
Thx For Guide:laugh:
when i try to install the resources i get this error:
Code:
'java' is not recognized as an internal or external command,
operable program or batch file.
i have java installed, what am i doing wrong?
Setup the path for it. See an "adb for noobs" guide for setting the path up.
Sent from my CM9'd Arc
XperienceD said:
Setup the path for it. See an "adb for noobs" guide for setting the path up.
Sent from my CM9'd Arc
Click to expand...
Click to collapse
i already did that, maybe i did it wrong, ill check again.
---------- Post added at 09:55 AM ---------- Previous post was at 09:51 AM ----------
ok i did it wrong, now i fixed it and it still doesn't work
any ideas?
i just need to sign a zip
OverLo4d said:
any ideas?
i just need to sign a zip
Click to expand...
Click to collapse
I'd remove Java then reinstall it, add your path then try again.
Suppose you want to place a png on status_bar_expanded but do not want to keep in SystemUI/res/drawable-ldpi/ as that would cause transportation issues and increase risk of stealing pngs even if you give the SystemUI.apk to anyone only for study. Or have color xmls that if stolen can spoil your Rom surprises or TUTS
Well what would you want to do,, modify some smalis and place it in your own res.apk like lidroid-res,, etc,, but that would be too bulky and big hell of a job
It would be much better only if we could place these drawable xmls,, color xmls,, drawable pngs etc in framework-res.apk,, Well that is a trick only manufacturers use generally,, Well But since the developers/modders/themers works also need to safe guard their work, heres how we can place color xmls,, drawable xmls and drawable pngs in framework-res.apk and still make it work for other apps like SysUI, etc
-=--------Let us begin simple ----=-----------------------How to safe guard status_bar_tracking background png----------------------------------------------------------
1) decompile SystemUI.apk
2) Open status_bar_tracking.xml in res/layout
3) find its background attribute ( android:background="@drawable/x" )
4) now change it to android:background="@android:drawable/x"
5) Now delete x png from drawable-ldpi (<----------skip if u facing error recompiling)
6) Now open ur framework-res.apk with winrar and place x.png in drawable-ldpi
7) pUSH BOTH
--------------------------===---------------------------------------------------Safe guard a color xml------------------------__-==------------------------------------------------------------
Suppose you have seen my last tut regarding how to make any text change its color when you put your finger on it,, now similarly you perform the work on some other text,, say the quick panel toggle text so it turns blue when toggle is on and white when off,,, etc Now your problem is that if you give your lidroid-res.apk to anyone even for study,, he/she may steal ur color folder xml regarding toggle text dynamics and release it as his own TUT,, so what do you do,, hide the color xml regarding toggle text dynamics in framework-res.apk
1) Decompile lidroid-res.apk
2) copy the <toggle text dynamics xml name>.xml to somewhere safe
3) Open the xml that has android:textColor="@color/<toggle text dynamics xml name>"
and change it to android:textColor="@android:color/<toggle text dynamics xml name>"
4) Now decompile framework-res.apk,, place <toggle text dynamics xml name>.xml in color folder and recompile properly
This way,, safeguard whatever the hell you want
Just remember,, decompile framework-res for xmls and open using and archive opener for pngs
------------------------------------------------------------Remember to press thanks if i helped you---------------------------------------------------------------------------------------:good:
Nice bro :good:
Nice idea for ROM/Theme devs...
Regards,
Ganesh
Hi
Very please help
The rom 4.1.2 I could using winrar for simple to change png to another png
Now I'm on 4.4.2 (DittoNote 5.2).
I want to change the png (tw_quick_panel_quick_setting_button_bg_normal.9 ???)
I think it is png a background toogles
I change my png i using winrar but nothing changes.
It is still the old png and no new png.
For what is this happening?
png's ending with 9 are not ordinary png's, they are 9-patch png's and in order to edit them you must DECOMPILE the APK, edit and then RECOMPILE. Anyway, simple adding with winRAR is nota good idea if you don't do ZIPALIGN because it slows down the reading of images....
Ah, and why post a question in app section, isn't Q&A more logical choice?
So I should do this in the Q & A - my mistake.
Ok thanks for the information.
delanik - this is just an example:
I'm trying to change the png in Note 5.2 Ditto 4.4.2
Is the file is tw_quick_panel_quick_setting_button_bg_normal.9 is background switches?
I exchange tw_quick_panel_quick_setting_button_bg_normal.9 another png
with another theme rom Note 2 but nothing has changed.
As I said - pngs with 9 at the end CAN'T be edited without recompiling. Use APKTOOL to decompile APK, then edit, then RECOMPILE. Then from recmpiled APK, copy PNGs (or whole res\drawable folder) to original APK.
If it doesn't change (and it should even when you don't do recompile - it should show BAD image) then you are not editing correct image.
Thank you very much dalanik
I SystemUi decompile framework-res.apk and now the rom DN4 v2.
It will be very difficult for me because there is a lot of files QMG
There is no custom QMG files (icons, button ....) in other roms or themes
to replace them in my rom DN4 v2
Hello,
i'd like to share instructions for a mod that lets you use custom images (.png) as icons for apps system-widely (in recents menu, in launchers, included One UI home) in stock-based samsung roms.
This works fine on Android Pie 9 rom (it might work also on Android 10 Q if the engine hasn't changed).
Story:
I was searching a way to get rid of adaptive icons (i hate small icons inside white circles, i simply can't find my apps) and get back freeform legacy icons. Unfortunately OneUI home launcher does not allow custom icons, while using third-paty launchers only lets you change icons on the launcher side and not in the whole android system.
Samsung has created a great theme engine but they like to protect their things from personal use too (seriously: who's still making money from theming nowadays?).
Basis:
You need to edit the theme_app_icons.xml file in framework-res.apk from system/framework folder and the only way I found is by replacing framework-res.apk with a modded one (ROOT needed).
I made several attempts to create a working overlay (root-less) for this particular file in framework-res but it seems that strangely this file cannot be overlayed using the Resource Overlay framework (Samsung restrictions? So far it seems that other themers could not find a way, too).
So, for ROOT-LESS users, you can only customize predefined samsung/google apps icons (apps listed in theme_app_icons.xml).
INSTRUCTIONS:
1) decompile framework-res.apk (i used TickleMyandroid https://forum.xda-developers.com/showthread.php?t=1633333)
2) go to decompiled res/xml folder, open and edit theme_app_icons.xml adding new entries for the apps you want. For editing you can use Notepad++, avoid Windows notepad.
You need to add the package name of the app and an ic_xxxxxx custom icon name you'll use later.
For example, if you want to customize the icon of the XDA app you'll add this line:
Code:
<ThemeApp className="com.xda.labs" iconId="ic_xda" />
3) save, recompile (for recompilation errors you need to look in the error log and delete duplicate entries in styles.xml similarly to what is described here https://forum.xda-developers.com/showpost.php?p=78541190&postcount=838 )
Then drag and drop the theme_app_icons.xml FROM the recompiled apk TO the original framework-res.apk, because if you use directly the recompiled apk you might have bootloop (apktool problem with res folders, happens also for other system apks)
4) now -directly replace- or -system-lessly replace using a Magisk module- the framework-res.apk with the modded one and reboot
5) Open the Galaxy Theme store, download a random icon pack but DO NOT APPLY IT, export the apk (you can find it in data/app folder), decompile it and replace and add icons in res/drawable-xxxxdpi folder with your custom PNG icons (you can also replace default .qmg files with .png ones).
Now recompile the modded icon pack apk and replace the downloaded one on the phone with the recompiled pack
(you can A- directly install it over the original one if you have the "Core Patch" edxposed module/Smali patcher signature mod magisk module or B- uninstall the original pack using the terminal command "pm uninstall packagename" and immediately install the recompiled one.
The same concept can be used to install custom themes, for example these or using the "Custom Themes Installer for OneUI Pie" app )
6) Finally apply the icon pack using Galaxy theme store and you are done.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(my freeshape/touchwiz style drawer)
NOTES:
-The modded icon pack might disappear from the personal list in Galaxy theme store after a reboot, but the icons will stay there (and also the installed icon package).
-Every app still has its legacy icon in res/mipmap folders, so you can extract and use it in your icon pack
- you can adjust the icon size using the "icon_scale_size" integer inside the icon pack (max 100)
Hope you enjoy, i've been experimenting a lot during this lockdown time. I'll try also to answer the questions and give help.
This looks promising! is there anyway that the icon shape can be changed too?
Archmag3 said:
This looks promising! is there anyway that the icon shape can be changed too?
Click to expand...
Click to collapse
Thanks,
Do you mean this ? :
https://source.android.com/devices/tech/display/adaptive-icons#implementation
I have tried everything and any 3rd app and nothing worked (hex themed part of the apps) , coffee app doesn't work at all , hope this method will work on Android 10 , will try later.
ninestarkoko said:
Thanks,
Do you mean this ? :
https://source.android.com/devices/tech/display/adaptive-icons#implementation
Click to expand...
Click to collapse
Yes, more or less on those lines. I personally hate the squarecicle icons, can something like rounded rectangle be achieved? something that miui, huawei etc has
ninestarkoko said:
Hello,
i'd like to share instructions for a mod that lets you use custom images (.png) as icons for apps system-widely (in recents menu, in launchers, included One UI home) in stock-based samsung roms.
This works fine on Android Pie 9 rom (it might work also on Android 10 Q if the engine hasn't changed).
Story:
I was searching a way to get rid of adaptive icons (i hate small icons inside white circles, i simply can't find my apps) and get back freeform legacy icons. Unfortunately OneUI home launcher does not allow custom icons, while using third-paty launchers only lets you change icons on the launcher side and not in the whole android system.
Samsung has created a great theme engine but they like to protect their things from personal use too (seriously: who's still making money from theming nowadays?).
Basis:
You need to edit the theme_app_icons.xml file in framework-res.apk from system/framework folder and the only way I found is by replacing framework-res.apk with a modded one (ROOT needed).
I made several attempts to create a working overlay (root-less) for this particular file in framework-res but it seems that strangely this file cannot be overlayed using the Resource Overlay framework (Samsung restrictions? So far it seems that other themers could not find a way, too).
So, for ROOT-LESS users, you can only customize predefined samsung/google apps icons (apps listed in theme_app_icons.xml).
INSTRUCTIONS:
1) decompile framework-res.apk (i used TickleMyandroid https://forum.xda-developers.com/showthread.php?t=1633333)
2) go to decompiled res/xml folder, open and edit theme_app_icons.xml adding new entries for the apps you want. For editing you can use Notepad++, avoid Windows notepad.
You need to add the package name of the app and an ic_xxxxxx custom icon name you'll use later.
For example, if you want to customize the icon of the XDA app you'll add this line:
Code:
<ThemeApp className="com.xda.labs" iconId="ic_xda" />
3) save, recompile (for recompilation errors you need to look in the error log and delete duplicate entries in styles.xml similarly to what is described here https://forum.xda-developers.com/showpost.php?p=78541190&postcount=838 )
Then drag and drop the theme_app_icons.xml FROM the recompiled apk TO the original framework-res.apk, because if you use directly the recompiled apk you might have bootloop (apktool problem with res folders, happens also for other system apks)
4) now -directly replace- or -system-lessly replace using a Magisk module- the framework-res.apk with the modded one and reboot
5) Open the Galaxy Theme store, download a random icon pack but DO NOT APPLY IT, export the apk (you can find it in data/app folder), decompile it and replace and add icons in res/drawable-xxxxdpi folder with your custom PNG icons (you can also replace default .qmg files with .png ones).
Now recompile the modded icon pack apk and replace the downloaded one on the phone with the recompiled pack
(you can A- directly install it over the original one if you have the "Core Patch" edxposed module/Smali patcher signature mod magisk module or B- uninstall the original pack using the terminal command "pm uninstall packagename" and immediately install the recompiled one.
The same concept can be used to install custom themes, for example these or using the "Custom Themes Installer for OneUI Pie" app )
6) Finally apply the icon pack using Galaxy theme store and you are done.
View attachment 4989669 (my freeshape/touchwiz style drawer)
NOTES:
-The modded icon pack might disappear from the personal list in Galaxy theme store after a reboot, but the icons will stay there (and also the installed icon package).
-Every app still has its legacy icon in res/mipmap folders, so you can extract and use it in your icon pack
- you can adjust the icon size using the "icon_scale_size" integer inside the icon pack (max 100)
Hope you enjoy, i've been experimenting a lot during this lockdown time. I'll try also to answer the questions and give help.
Click to expand...
Click to collapse
This is interesting. I just found that theme_app_icons.xml and tried to make an overlay to target it and failed. Then do a bit research lead me to this post. But I still want to find out why the overlay method didn't work. So could you share your steps and method that you use to overlay target that xml? I have a thinking that maybe the level of priority of the overlay is the issue.
well theres 2 minutes im not getting back. -_-
osuki9x said:
This is interesting. I just found that theme_app_icons.xml and tried to make an overlay to target it and failed. Then do a bit research lead me to this post. But I still want to find out why the overlay method didn't work. So could you share your steps and method that you use to overlay target that xml? I have a thinking that maybe the level of priority of the overlay is the issue.
Click to expand...
Click to collapse
I simply edited one of the stock overlays you can find in /vendor/overlay folder. Tried fiddling a bit but was unsuccessful.
Please let me know if you find a solution (as far as i know not even professional themers so far have found the right way)
ninestarkoko said:
Hello,
i'd like to share instructions for a mod that lets you use custom images (.png) as icons for apps system-widely (in recents menu, in launchers, included One UI home) in stock-based samsung roms.
This works fine on Android Pie 9 rom (it might work also on Android 10 Q if the engine hasn't changed).
Story:
I was searching a way to get rid of adaptive icons (i hate small icons inside white circles, i simply can't find my apps) and get back freeform legacy icons. Unfortunately OneUI home launcher does not allow custom icons, while using third-paty launchers only lets you change icons on the launcher side and not in the whole android system.
Samsung has created a great theme engine but they like to protect their things from personal use too (seriously: who's still making money from theming nowadays?).
Basis:
You need to edit the theme_app_icons.xml file in framework-res.apk from system/framework folder and the only way I found is by replacing framework-res.apk with a modded one (ROOT needed).
I made several attempts to create a working overlay (root-less) for this particular file in framework-res but it seems that strangely this file cannot be overlayed using the Resource Overlay framework (Samsung restrictions? So far it seems that other themers could not find a way, too).
So, for ROOT-LESS users, you can only customize predefined samsung/google apps icons (apps listed in theme_app_icons.xml).
INSTRUCTIONS:
1) decompile framework-res.apk (i used TickleMyandroid https://forum.xda-developers.com/showthread.php?t=1633333)
2) go to decompiled res/xml folder, open and edit theme_app_icons.xml adding new entries for the apps you want. For editing you can use Notepad++, avoid Windows notepad.
You need to add the package name of the app and an ic_xxxxxx custom icon name you'll use later.
For example, if you want to customize the icon of the XDA app you'll add this line:
Code:
<ThemeApp className="com.xda.labs" iconId="ic_xda" />
3) save, recompile (for recompilation errors you need to look in the error log and delete duplicate entries in styles.xml similarly to what is described here https://forum.xda-developers.com/showpost.php?p=78541190&postcount=838 )
Then drag and drop the theme_app_icons.xml FROM the recompiled apk TO the original framework-res.apk, because if you use directly the recompiled apk you might have bootloop (apktool problem with res folders, happens also for other system apks)
4) now -directly replace- or -system-lessly replace using a Magisk module- the framework-res.apk with the modded one and reboot
5) Open the Galaxy Theme store, download a random icon pack but DO NOT APPLY IT, export the apk (you can find it in data/app folder), decompile it and replace and add icons in res/drawable-xxxxdpi folder with your custom PNG icons (you can also replace default .qmg files with .png ones).
Now recompile the modded icon pack apk and replace the downloaded one on the phone with the recompiled pack
(you can A- directly install it over the original one if you have the "Core Patch" edxposed module/Smali patcher signature mod magisk module or B- uninstall the original pack using the terminal command "pm uninstall packagename" and immediately install the recompiled one.
The same concept can be used to install custom themes, for example these or using the "Custom Themes Installer for OneUI Pie" app )
6) Finally apply the icon pack using Galaxy theme store and you are done.
View attachment 4989669 (my freeshape/touchwiz style drawer)
NOTES:
-The modded icon pack might disappear from the personal list in Galaxy theme store after a reboot, but the icons will stay there (and also the installed icon package).
-Every app still has its legacy icon in res/mipmap folders, so you can extract and use it in your icon pack
- you can adjust the icon size using the "icon_scale_size" integer inside the icon pack (max 100)
Hope you enjoy, i've been experimenting a lot during this lockdown time. I'll try also to answer the questions and give help.
Click to expand...
Click to collapse
I installed an icon pack from galaxy themes store, but the only thing I see in data/app folder is SystemUI.apk, Is it supposed to be SystemUI.apk? what am I missing?