[Q] Modifying SystemUI - One (M7) Q&A, Help & Troubleshooting

I am looking for some information and assistance with attempting to modify the SystemUI.apk or in creating a custom Theme for my HTC One M7 on Android 4.4.3 with Sense 6. I am running the ARHD Rom but I would like a method independent of using Custom ROMs or Xposed framework if possible, requiring root is fine. I have seen some packages that do some of this which contain a vrtheme folder in them but haven't been able to find a tutorial on building one of these and which files are for which icons.
I have tried modifying the background color in res/values/drawable.xml and in res/layout/status_bar.xml files to #ff000000 but the status bar still appears grey on the home screen. This seems to match with the theme I selected from the Personalize menu in Settings. It's my guess that somehow, these theme settings override the systemUI settings. So I would like a way to create my own theme to select which will hopefully also allow me to change the color for selected notifications and the like.
In addition to this, I have a set of icons for the status bar such as battery power, battery charge, wifi signal, cellular signal, mobile data quality, etc.. which I would like to use to replace the systemUI icons for these. However, there seem to be several versions of icons in various drawable folders. So if I could find out the requirements for these files (size, naming, location to replace them at) or if there is a way to replace them as part of a theme that is, again, independent of custom rom or xposed framework if possible.
If anyone knows of a tutorial that already exists for any of these things simply pointing me to that is answer enough, I just didn't have luck finding it when trying to search for it.

Related

[Q] Changing launcher foreground

Trying to customize the bottom ("launcher"?, you know, it has "phone", + and the app list) on htc sense (for now). I've made the background for the launcher transparent but now I want to get rid of the text "Phone". I can't find any image in either framework-res.apk or com.htc.resources.apk that correspond with those foreground icons.
How do I go about changing them? Am I just looking at the wrong set of images or is it time to get into some scripting/layout editing?
And, a much more important question, what's the best resource for me to go about solving future problems like this on my own? Searches don't really turn up good resources (ie, a description of what each folder contains, where to find status bar resources, etc). I'm a rather independant learner but this particular platform is leaving me a little on my knees.

[Q] Changing icons for theme

I'm in the process of making a theme but I have come across an issue I just can't seem to resolve. Basically everything goes fine for my theme except the icons. I downloaded another theme and applied it and the icons in my app drawer change. Yet I don't see where these changed took place in the actual apk when I decompile it. The only changed icon is the com_browser_ic_launcher icon and nothing else. Yet this is the icon that is changed in the app drawer which doesn't make sense because I don't see any related changed in any xml files.
I've been following this guide:
http://forum.xda-developers.com/showthread.php?t=964391
I downloaded the templatebread theme and have been changing what I wanted but now I am stuck on the icons. I can change the launcher icons without any hiccups now I just need to find out how to change the actual icon thats in the app drawer. Any help would be greatly appreciated.
Well obviously its done with xml and its all based on the process names the process names have to be exact. When they are it will work even if you have one error in the process names eclipse will throw an error or should and they wont work... I've never done it but i've read alot about it.
That's what I figured but for some reason after doing a few restarts the icons now appear as they should. I guess that the old icons were cached or something.

App to create an icon pack or extract an icon pack from a theme?

I've used icondy, which will allow me to merge icon packs. I've also used apps that will pull the icons out of a theme and save them as individual graphic files (Themex for instance). I've found some directions on how to create an icon pack. What I'm thinking is:
1. Why isn't there an android app that will pull the icons out of a theme and create a separate icon pack? The theme has all the info needed to properly identify and set up which icons are used for what. NOTE: if this is considered unacceptable and stealing, never mind then.
2. Why isn't there an android app that will let you create an icon pack? I may not understand the process correctly but it appears you have to identify the icon properly and possibly have more than one dpi version, but that seems like something an app could actually handle. You would just need to have the PNG files and then select them as needed for the icon pack and it gets created with the necessary permissions and so on.
Thanks for anyone who can assist, or at least explain why it's not possible to have an app do all or any of the above.

Question about app icons EmotionUI theme

Hello everybody,
I'm trying to figure out if I can create a EmotionUI theme which also changes the icons of individual apps.
Is this possible?
I know some system icons are named as for example: com.android.browser.png
Would I simply have to find the name for the app icon and change it to for example: com.whatsapp.png?
I don't know how to find these values if this is the way to go.
But I would very much like my theme to be able to change ALL icons I could possibly make for the apps I have, not just the system icons.
Also is there some sort of emotionui forum this question should be posted? I couldn't find it...
EDIT: I also found out I am unable to change theme. I can change the appearance of the current theme I'm using by taking stuff from other theme's, but when I apply a other theme the theme will stay on the current one and doesn't switch. This includes the lockscreen theme and some other things I wish to still change like fonts and such.
(This might have something to do with me soft bricking my phone found in this thread: http://forum.xda-developers.com/ascend-p7/help/ive-soft-bricked-phone-p7-l10-t3258350)
EDIT2: Okay it seems like this method is working. I just use an apk extractor to check which value an app has. For whatsapp this was indeed com.whatsapp.png which worked. However for com.android.vending.png which is google playstore, that one doesn't seem to work. I would like to find out why...
This way I can have all my icons in a custom theme
EDIT3: after my factory reset in my other post I couldn't change the themes anymore.

Themes / Apps / Mods ADB Custom Mod Module Maker

For Stock-Rooted Only.
The purpose of this installer is to generate a custom module that can be flashed in Magisk App. It will have all the mods that were selected from the installer menu. You need to be stock with root and of course you need to be attached to your PC. On first installation, a pop-up asking to give ADB shell root permission will show. Please do so. This will only happen once.
I internet speed indicators do not change colors due to light-dark background colors. The colored statusbar icons should.
After Installing this module, your screen will relock after every reboot of your phone. You unlock it the first time, in about a second it will relock itself and you will have to unlock it again. If that is too much for you, don't use this mod. This also will not work with the bootloop protection module. It will disable this module.
This mod uses the SystemUI Patcher Module Template by @Jai_08 By @cool_modules on telegram
Root required
ADB Instructions.
1. Unzip ADB Mods Installer Files.zip on your PC
2. ADB debugging Enabled
3. Run TulsadiverModsInstaller.bat (Give ADB Shell Root Permissions. If missed on first opportunity, turn on in Magisk App superuser)
4. Flash the SystemUI Base First. It provides the necessary smali files and public ID's for everything to work
5. Go through the other options selecting what all mods you want. It is generally best to start at the top and work your way down.
6. Once finished with selections, run "Finish building Module" at the bottom of the menu. This will generate your mymagisk.zip module in a folder called "ozop" on your sdcard.
7. Flash the "mymagisk.zip" in Magisk App.
This mod also installs a QS and settings background overlay option under settings/Display/Device Theme. There are a few QS tile color options with an option to change the settings background to black.
This is firmware specific. If a Pixel firmware update changes either the SystemUIGoogle.apk or Framework-res.apk, this mod will need to be updated. Uninstall this module before updating your phone.
As with anything else you flash on your phone, you run the risk of a bootloop. This might not be compatible with some other modules. Flash at your own risk.
List of MODS Available
Add am/pm to the clock and/or choose right side clock
Internet Traffic Speed Single Indicator
Choose Traffic Speed Indicator Up-Down Colors (default is white)
Navbar Swap
Remove Battery Icon, leave percentage
Swap Battery Icon and percentage
One percent custom battery Mods-a few to choose from
One percent custom battery Text-only-Several to choose from
Colored Statusbar-Navbar Icons
Remove Carrier Text
Smaller LTE Icon
Fonts
ADB SystemUI Module Maker
June Update uploaded 6-17-23
289.11 MB file on MEGA
mega.nz
-------------------------
I'm also including this separate Pixel Launcher mod. Also a ADB Installer. You can change app drawer background-text color (separately for light mode and dark mode), remove Google search bar from the homescreen and all-Apps drawer. Change the number of hot seat icons on home page (and size) as well as change the number of columns in the app drawer.
Instructions are the same as above...Install base, pick options, complete installation. Mymagisklauncher.zip will be in ozop folder.
Remove Google Search Bar
App Drawer background color (Light and Dark Mode)
App Drawer Text Color
Home screen App Text Color
App Icon Sizes 45-50-56 dip (56 is stock)
Hotseat 5-6-7 Icons
Columns (5-6-7)
Rows (5 through 11)
ADB Pixel Launcher Module Maker
June update uploaded 6-17-23
166.29 MB file on MEGA
mega.nz
-----------------------------
Good to see you back in the game!!!
Lughnasadh said:
Good to see you back in the game!!!
Click to expand...
Click to collapse
Thanks! Just barely limping along, lol! Baby steps.
I'm not sure these are useful any more. I might post some stand alone mods if there's anyone interested.
Tulsadiver said:
Thanks! Just barely limping along, lol! Baby steps.
I'm not sure these are useful any more. I might post some stand alone mods if there's anyone interested.
Click to expand...
Click to collapse
Stand alone mods would be cool
March update has been uploaded.
Thanks for posting this! I haven't used your module maker before, but I just spent an hour reading older threads for the Pixel 4XL and 5. I see the mod maker has the ability to change system fonts. That is really the only thing I am after at this point. You actually helped me with a Magisk module back on the Pixel 3a. Is there any chance you could create a stand alone module to change fonts? The attached file is the module you created for Android 10, along with all the custom fonts I wish to use. As I mentioned in another thread, I'm happy make a donation for your time.
Ditamae said:
Thanks for posting this! I haven't used your module maker before, but I just spent an hour reading older threads for the Pixel 4XL and 5. I see the mod maker has the ability to change system fonts. That is really the only thing I am after at this point. You actually helped me with a Magisk module back on the Pixel 3a. Is there any chance you could create a stand alone module to change fonts? The attached file is the module you created for Android 10, along with all the custom fonts I wish to use. As I mentioned in another thread, I'm happy make a donation for your time.
Click to expand...
Click to collapse
I put those fonts into a module installer. It will still relock the screen each time after the phone is rebooted. I don't think this will work without a systemui modification. I put a token PNG file in it along with your font if you would like to try it.
Tulsadiver said:
I put those fonts into a module installer. It will still relock the screen each time after the phone is rebooted. I don't think this will work without a systemui modification. I put a token PNG file in it along with your font if you would like to try it.
Click to expand...
Click to collapse
You are awesome! Can't wait to flash this when I get home.
Edit: Looking through your Module maker, I'm wondering if I need to designate a font as google_sans_clock.ttf in order to replace the clock font?
Ditamae said:
You are awesome! Can't wait to flash this when I get home.
Edit: Looking through your Module maker, I'm wondering if I need to designate a font as google_sans_clock.ttf in order to replace the clock font?
Click to expand...
Click to collapse
On 13 in product/fonts designate one as GoogleSansClock-Regular.ttf
Tulsadiver said:
On 13 in product/fonts designate one as GoogleSansClock-Regular.ttf
Click to expand...
Click to collapse
Okay. Added a font renamed GoogleSansClock-Regular.ttf to \mymagiskFont.zip\system\product\fonts
I assume I don't need to make any changes to the mymagisk.zip file within the mymagiskFont.zip? Sorry for my ignorance.
Ditamae said:
Okay. Added a font renamed GoogleSansClock-Regular.ttf to \mymagiskFont.zip\system\product\fonts
I assume I don't need to make any changes to the mymagisk.zip file within the mymagiskFont.zip? Sorry for my ignorance.
Click to expand...
Click to collapse
No, you should be good to go.
Your module applied, no problem. Only real issue is I'm getting overlap with the lockscreen clock. Tried moving some fonts around to try another in place of GoogleSansClock-Regular. Results with same issue. Also missing the dash in Settings for Wi-Fi, but this has intermittently been a problem with this font for years. Hmm. Might have to play around with it some more later when I have more time.
Ditamae said:
Your module applied, no problem. Only real issue is I'm getting overlap with the lockscreen clock. Tried moving some fonts around to try another in place of GoogleSansClock-Regular. Results with same issue. Also missing the dash in Settings for Wi-Fi, but this has intermittently been a problem with this font for years. Hmm. Might have to play around with it some more later when I have more time.
Click to expand...
Click to collapse
Try a different font for the clock. Which one did you use?
Tulsadiver said:
Try a different font for the clock. Which one did you use?
Click to expand...
Click to collapse
I did try two. I tried the fonts named Roboto-Light and Roboto-Thin. Both are light versions of Helvetica, one is slightly lighter than the other. Both overlapped on the lockscreen. But both did, however, display the colon when the clock switches to a digital version when the user receives a notification on the lockscreen. I remember a lot of these fonts were missing that glyph back in the day too. So that's a plus.
I have to work a couple long shifts the next few days, but I will definitely try some other fonts when I have free time and report back. I really appreciate you getting me started with this module! Many thanks to you!
@Tulsadiver - I'm wondering if you have seen the overlapping behavior on the lockscreen with your custom fonts? I'm also wondering if the stock GoogleSansClock-Regular is a variable font, allowing it to change weights when the user interacts with the phone while the phone is locked (e.g., the double stack clock font is thin and then becomes heavier when the user engages with the device and the background wallpaper image comes into view). I'm thinking maybe my overlapping issue could be related to overwriting a variable font with a static font?
One another note, I'm still seeing what appears to be Roboto font within non-Google applications (e.g., Nova Launcher menu, Solid Explorer menu). I don't see this behavior with the same applications on my Pixel 3 running Android 10. I'm wondering if there is another font I need to overwrite... the only one I can see within Android 13, not present in 10, is RobotoStatic-Regular. Do you think this could be the font used for these app menus, and what do you think about replacing it?
Ditamae said:
@Tulsadiver - I'm wondering if you have seen the overlapping behavior on the lockscreen with your custom fonts? I'm also wondering if the stock GoogleSansClock-Regular is a variable font, allowing it to change weights when the user interacts with the phone while the phone is locked (e.g., the double stack clock font is thin and then becomes heavier when the user engages with the device and the background wallpaper image comes into view). I'm thinking maybe my overlapping issue could be related to overwriting a variable font with a static font?
One another note, I'm still seeing what appears to be Roboto font within non-Google applications (e.g., Nova Launcher menu, Solid Explorer menu). I don't see this behavior with the same applications on my Pixel 3 running Android 10. I'm wondering if there is another font I need to overwrite... the only one I can see within Android 13, not present in 10, is RobotoStatic-Regular. Do you think this could be the font used for these app menus, and what do you think about replacing it?
Click to expand...
Click to collapse
I don't show any overlapping on the fonts I've used and the GoogleSansClock font and AndroidClock are used in mine. I typically use Roboto-Thin to replace them.
There are applications that use their own fonts. I don't see any problem replacing RobertoStatic-Regular though I have not.
Tulsadiver said:
I don't show any overlapping on the fonts I've used and the GoogleSansClock font and AndroidClock are used in mine. I typically use Roboto-Thin to replace them.
There are applications that use their own fonts. I don't see any problem replacing RobertoStatic-Regular though I have not.
Click to expand...
Click to collapse
Okay, so adding a custom font named RobotoStatic-Regular fixed my issue within certain applications (see attached image).
I also just took a look at the stock GoogleSansClock-Regular font, and it is in fact a variable or dynamic font. This could be related to my render/overlap issue. I might keep trying different fonts to see if it works properly with any of my custom fonts. Another thought I had was buying a variable font online and plugging that one in for the lockscreen clock. Thanks for your continued feedback!

Categories

Resources