Add Wimax toggle to Power Widget - Android

I have been helping Sinistertensai with his ShenduOS port for the HTC EVO 4G. I got Wimax to work and was wanting to see if anyone knows how to add a Wimax toggle to the power widget dropdown from the status bar. The port is CM7 based. In the SystemUI.apk I see there is WimaxButton.smali. I have tried adding the ids for it in public.xml and creating pngs for the toggle. I get no errors on compile but I get reboots or force closes when I try to bring up the power widget dropdown. I have very limited experience with editing smail code. I have also tried copying over the resources, classes, and xmls to the original apk with the same results. I have researched how to edit smali but I could just be doing it wrong or leaving something out. This has been driving me to madness. If anyone could help out that would be amazing!

Is there a reason you can't rebuild from source with Wimax enabled?
Sent from my SCH-R760 using Tapatalk 2

The ShenduOS SystemUI has been changed drastically and I cannot find the source code. That would require me to completely redo what Shendu has done and is well beyond my capabilities. The functionality for the wimax is there, I just need to find a way to add the toggle button. The actual widget has a wimax toggle which works, just not the one in the status bar.
Sent from my EVO using xda premium

I have only done smali a few times. How I did it was for example get a cm build going. Remove all wimax toggle related noti widget elements. Compile. Now you have a systemui base. Now build with the wimax toggle. You have a wimax toggle systemui.
Then use a program like beyond compare and after apktooling both systemui in their own folders. Compare the smali differences. Should get you pretty close. Of course there will be some trial and error if the systemui is different then that of cm.
Sent from my Galaxy Nexus using xda premium

The code is quite different that the CM7 code. I have found what needs to be edited, it just results in reboots upon clicking on the status bar to open the powerwidget dropdown. Here are the steps I take:
Decompile SystemUI.apk
In PowerWidget.smali -> replace both instances of toggleNetworkMode with toggleWimax
In WimaxButton.smali -> write down ids from method updateState (0x7f0200ca is off, 0x7f0200cb is on)
In public.xml -> Removed bad APKTOOL_DUMMYs for above ids. Add the following lines:
<public type="drawable" name="stat_wimax_off" id="0x7f0200ca" />
<public type="drawable" name="stat_wimax_on" id="0x7f0200cb" />
In res/drawable-hdpi -> Created on/off images and placed them there
In drawables.xml -> Removed bad APKTOOL_DUMMYs for above ids that were set to false. Add the following lines:
<item type="drawable" name="stat_wimax_off">true</item>
<item type="drawable" name="stat_wimax_on">true</item>
Recompiled
Pushed to phone with adb and cleared dalvik cache
Reboot
I have also tried pushing the changes and overwriting the ones in the original using Archive Manager(Ubuntu) with the same issues. If someone could point out what I am doing wrong that would help alot! I could have broken my tools(Android Utility/apktool). Feel free to give it a shot if you want. Once I/someone gets it right I will write up a tutorial.

Related

Set default settings

I'm putting together a custom ROM for the Samsung Captivate and I'm trying to figure out how to configure default settings. As in, I'd like to set Auto Brightness to Off, Audible Selection to Off, etc. This would be in regards to after a flash of the ROM. Any ideas? I can't find information on it anywhere.
Thanks!
Jirv311 said:
I'm putting together a custom ROM for the Samsung Captivate and I'm trying to figure out how to configure default settings. As in, I'd like to set Auto Brightness to Off, Audible Selection to Off, etc. This would be in regards to after a flash of the ROM. Any ideas? I can't find information on it anywhere.
Thanks!
Click to expand...
Click to collapse
You will need to edit the bools XML in the settings apk. They are in other places as well but that's a good place to start
Thanks for the response. I looked in bools.xml and this is what I see:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="has_intrusive_led">false</bool>
<bool name="has_dock_settings">false</bool>
<bool name="config_additional_system_update_setting_enable">false</bool>
</resources>
Do you know the other places I need to look? Thanks again for your help.
OK next I would check the settings apk and settings provider apk in the bools XML. Also look in the framework AOL's depending on model of phone
zelendel said:
OK next I would check the settings apk and settings provider apk in the bools XML. Also look in the framework AOL's depending on model of phone
Click to expand...
Click to collapse
Thank you! SettingsProvider seemed to be the ticket. I did in fact find a couple settings in the framework-res.apk as well. Last one I'm looking for is the setting to turn off the "Audible Selection". Samsung should have disabled that by default.
Thanks a ton for pointing me in the right direction.

Theming battery indicator?

I'm running Cm10 right now and I am doing some minor theming for myself. I am trying to get the battery indicator to change, but no matter where I replace the battery icons I'm still getting the solid blue after flashing over. Everything else is changing as expected, where are the files that I should be changing in framework-res?
gdrocks said:
I'm running Cm10 right now and I am doing some minor theming for myself. I am trying to get the battery indicator to change, but no matter where I replace the battery icons I'm still getting the solid blue after flashing over. Everything else is changing as expected, where are the files that I should be changing in framework-res?
Click to expand...
Click to collapse
Someone correct me if I'm wrong, but I believe for the EVO LTE, the battery icons are in the SystemUI apk.
Sent from my HTC EVO 4G LTE
DNarsingh said:
Someone correct me if I'm wrong, but I believe for the EVO LTE, the battery icons are in the SystemUI apk.
Sent from my HTC EVO 4G LTE
Click to expand...
Click to collapse
you are correct
I have problems with the battery indicator in CM10 nightly on my SGS2 i9100g as well.
The problem is when the phone is off and I connect the charger, it will only show me the battery and a loading symbol, but no progress (green part).
Any ideas if this will be fixed anytime soon? I'd really like to use CM10 but I can't because of this issue.
Thanks a ton Dnarsingh and dased14! I didn't even look for SystemUI in /apps because I thought it was only for Sense. Now I just need to figure out why I can't change the icons for the Phone and Messaging apps :/
@diegoviola that seems like a fairly easy bug to fix; if it isn't fixed in the nightlies I would suggest the following (Only if you know what you are doing...and have nandroids)
1) Decompile the framework-res.apk
2) Goto res/drawable
3) Open stat_sys_battery_charge.xml
There should be a list here with items pointing to the .png and a max level for when they should kick in.
For an example here is the contents of my xml from Deck's CM10
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_charge_anim0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim100" android:maxLevel="100" />
</level-list>
@gdrocks: Please let me know when this is fixed in the nightly. Thanks.
This issue doesn't exist in the CM10 nightly for the HTC Evo 4g LTE. I don't know what's going on with SGS2 phones, never had one.
gdrocks said:
This issue doesn't exist in the CM10 nightly for the HTC Evo 4g LTE. I don't know what's going on with SGS2 phones, never had one.
Click to expand...
Click to collapse
Thanks for letting me know. Do you know who is the maintainer of SGS2 builds, or if he could somewhat test this? I wonder if the maintainer of the SGS2 (i9100g) builds is aware of this problem.
Should I report it to a bug tracker?
Thanks.
@gdrocks
As I mentioned in your other thread you can change the battery icons with theme chooser themes. You can change almost everything with them. Start with a free theme you can find on the market or on xda and see how they are put together. Then start changing the images in the theme and test away until you get what you want.
Sent from my EVO using Tapatalk 2

10 levels battery Status

I'm currently working on my idea of having 10 levels battery status instead of 100%. It'll work as 9s, 8s, 7s etc. 100% of battery levels divided into 10 pieces. I don't like 100% battery percentage. It's like a torture to me. I don't have a problem with who likes it or made it, it's your choice. No issues. But I need help with this. I don't know how to edit SystemUI and make these changes. Anyone who's interested in helping me, please come forward. I'll give you full credit.
http://forum.xda-developers.com/showpost.php?p=31158863&postcount=92
This is that SystemUI.
And finally thanks to vr5411
Vtrendzzy said:
I'm currently working on my idea of having 10 levels battery status instead of 100%. It'll work as 9s, 8s, 7s etc. 100% of battery levels divided into 10 pieces. I don't like 100% battery percentage. It's like a torture to me. I don't have a problem with who likes it or made it, it's your choice. No issues. But I need help with this. I don't know how to edit SystemUI and make these changes. Anyone who's interested in helping me, please come forward. I'll give you full credit.
http://forum.xda-developers.com/showpost.php?p=31158863&postcount=92
This is that SystemUI.
And finally thanks to vr5411
Click to expand...
Click to collapse
in that SystemUI I believe it is a matter of just replacing the right png's
if I give you the pictures to edit would you be able to?
EDIT: when you say 9s 8s etc
do you mean you want it to be 10 then 20 the 30?
or what?
Me‎ said:
in that SystemUI I believe it is a matter of just replacing the right png's
if I give you the pictures to edit would you be able to?
EDIT: when you say 9s 8s etc
do you mean you want it to be 10 then 20 the 30?
or what?
Click to expand...
Click to collapse
It's also editing some xml files. Specifically strings
Sent from my ST25i using xda app-developers app
Andrewasth said:
It's also editing some xml files. Specifically strings
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
not 100% necessary
if OP explains what he means by 9s 8s etc I could do it
That's easy. No need smali editing. But I don't have time for this. Sorry. But, others can help you too
Sent by typing on my Xperia Sola with my fingers using xda premium
I think you should see and read http://forum.xda-developers.com/showthread.php?t=1434061 <<< this!
Enjoy!
p.s.-I changed my battery style with that tool and "evikal" style. :angel:
/heavy modded stock ics inside white sola/
Decompile SystemUI.apk with apktool. Then go to res/drawable folder.
The files you need to edit are stat_sys_battery.xml & stat_sys_battery_charging.xml
Just open them with Notepad++ and add the required Battery Levels you need in the format of each file.
eg : (in 1st file)
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
etc..
After saving both, you need to add each image, stat_sys_battery_10.etc in res/drawable-hdpi or res/drawable-xhdpi folders. (If you want to use for Xperia P, xhdpi folder is must)
Finally, go to res/values/public.xml. The ids like '0x7f020041' are hexadecimal values. (Read Wikipedia if you have doubts) Find the largest hexadecimal id for type="drawable" then add new lines like this underneath :
<public type="drawable" name="stat_sys_battery_30" id="0x7f020042" />
The name should be the same filename you mentioned in the res/drawable xmls and also the files in res/drawable-hdpi folder. And the id's should be in increasing order. If the highest id you found for drawable is 0x7f020042, you need to add in order 0x7f020043, 0x7f020044,.... 0x7f02004a, 0x7f02004b... etc
If you have any doubts, let me know Hapy Modding !
Cheers
Min3r said:
Decompile SystemUI.apk with apktool. Then go to res/drawable folder.
The files you need to edit are stat_sys_battery.xml & stat_sys_battery_charging.xml
Just open them with Notepad++ and add the required Battery Levels you need in the format of each file.
eg : (in 1st file)
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
etc..
After saving both, you need to add each image, stat_sys_battery_10.etc in res/drawable-hdpi or res/drawable-xhdpi folders. (If you want to use for Xperia P, xhdpi folder is must)
Finally, go to res/values/public.xml. The ids like '0x7f020041' are hexadecimal values. (Read Wikipedia if you have doubts) Find the largest hexadecimal id for type="drawable" then add new lines like this underneath :
<public type="drawable" name="stat_sys_battery_30" id="0x7f020042" />
The name should be the same filename you mentioned in the res/drawable xmls and also the files in res/drawable-hdpi folder. And the id's should be in increasing order. If the highest id you found for drawable is 0x7f020042, you need to add in order 0x7f020043, 0x7f020044,.... 0x7f02004a, 0x7f02004b... etc
If you have any doubts, let me know Hapy Modding !
Cheers
Click to expand...
Click to collapse
well this mod includes 100 step battery so all he really needs is to delete lines from the files you mentioned
if I understood what he wanted correctly
No. I mean 10, 9, 8, 7 like this. Suppose the current battery is 95% then it should show 9 only.
What you said is true but you need to delete all the other lines, then the corresponding files & finally edit the public.xml to remove the extra lines.. And trust me, putting in the correct ids in Public.xml is annoying as hell
@Vtrendzzy, just make sure that the image you provide for each case shows only the 9 or 8
No problem mate. You can edit it whenever you've time and release it if you like my idea.
Yes, I deleted those extra lines but when I'm trying to recompile it, it's not working. And honestly, I'm new to this modding subject. I just have this idea but don't have knowledge to apply to it.
OMG! I'll have to take a class for that. Besides i'm a lil busy with my studies. Can you do it? Take full credit. I would've done it but I don't have it's basic knowledge even
Vtrendzzy said:
OMG! I'll have to take a class for that. Besides i'm a lil busy with my studies. Can you do it? Take full credit. I would've done it but I don't have it's basic knowledge even
Click to expand...
Click to collapse
easiest way would be to replace all 70-79 with same pic that says 7
80-89 with same pic that says 8 and so on
without touching any of the xml files
what do you want it to say between 0-9?
Okay I'll try it today. Between 0-9, I call it 1. See the circle around these digits will act as 100% but these digits will change when the voltage drops by 10%. So when it is showing 1, the critical battery level will be shown in red by the circle.
Vtrendzzy said:
Okay I'll try it today. Between 0-9, I call it 1. See the circle around these digits will act as 100% but these digits will change when the voltage drops by 10%. So when it is showing 1, the critical battery level will be shown in red by the circle.
Click to expand...
Click to collapse
I see
ok so 0-9 is 1
10-19 also 1 (?)
20-29 is 2 (?)
...
90-99 is 9 (?)
100 is 10 (?)
Oh I think that's a bug. 0-10 = 1, 11-20 = 2, 21-30 = 3 .... 91-100 = 10 like this.

[How-to] Maximum StatusBar Brightness 4.4.2

[How-to] Maximum StatusBar Brightness 4.4.2
This guide is based on the KK 4.4.2 Galaxy S5 builds.
I noticed that Samsung always make the statusbar notification areas a bit dim. Probably to help with battery conservation.
This requires decompiling SystemUI.apk.
SystemUI/res/values/dimens.xml edit
Code:
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
Note:
Screenshots are best viewed from a PC so you can rapidly swap images to see the difference.
Nice.
Thanks
Weird. I have no values/dimens.xml file. Using to rootexplorer.
cAase said:
Weird. I have no values/dimens.xml file. Using to rootexplorer.
Click to expand...
Click to collapse
As stated in the OP, this requires being able to decompile the system file SystemUI.apk to make the edits.
This thread is now part of the GALAXY S5 UNIFIED MODS THREAD - GUIDES & LINKS. Check it out when you have time.
Where i can find your teme for status bar ?.
Thanks
Great mod tdunham thank you very much for this tutorial. Working on my S3 using your old method found here. This may be the lazy way but it worked a lot easier for me to just make vrtheme flashables for this instead of doing a full release.
The reason they do this i think is not to save battery but to stop screen burn in of the statusbar icons. Doesnt matter on roms that have changeable icons or colors i suppose but doing this on a standard systemui with white icons may increase the chance of burn in.
I may be wrong but thought it worth mentioning
Sent from my SM-G900F using Tapatalk

(Guide) How To Theme Touchwiz 5.0 [SystemUI] [SecSettings.apk] DIY

These are just notes for myself, also to share to others what I've learned. I'll bring updates when I learn more. This can work if you want to port things.
YOU WILL ALSO NEED TO HAVE SOME KNOWLEDGE OF APKS OR THEMING!
Please also credit me if you used some of the things such as inverting the settings apk!
This thread will have different posts containing guides and extra links. It's too much to fit it under this post and will be confusing. Gimme time and yeah.
Just remember, the key to this is Layers. What is layers you ask? Well lollipop contains some internal code in which uses overlays. These are apks in which are used in phones, and many themes have used in lollipop. They are who made theming possible. They made everything 100% easier. Well, you can find layers on xda. Look in the s4 section and you'll see a few. In those layers apks, they tell you everything you need or what to change or even cherry pick. They contain changes that others how made, so even you can use. To sum this up, overlays that you can decompile and learn and see what you need to change in your apk to replicate it.
So, we all know touchwiz is the same on each device. This should work on many touchwiz devices running 5.0 and also a solution to your problems. I'm not an expert since I'm still in middle school but I have learned alot. There may be errors, you need to figure that out.
Let's get started
Tools you need
--------------------------
-Apk tool for touchwiz lollipop
-Notepad++
- A brain
- paint.net or anything like that
-Flashable zip so you can flash
-your systemui.apk or secsettings apk
Below will be links and a separate guide for each apk.
Credits:
-reggie cheeks for teaching me lots of things when kitkat was out.
-layers team/creators for making things a lot easy.
-ykkfive for expert knowledge on layouts xml. (Just a Boss at modding ?)
-names I forget
-DUHA
Links
---------------------------------------
Apk tool I use: http://forum.xda-developers.com/showthread.php?p=58139464 Simply drag your apks to in folder and decompile with program. You start editing stuff in the out folder.
---------------------------------------
FLASHABLE ZIP
Simply just use the advanced apk tool, decompile the apk, recompile with your changes, then add the apk in the zip flashable in the folder. There will be two folders, one framework and one systemui..
Heres the zip download that someone made and I just added the sub folders:https://www.androidfilehost.com/?fid=95916177934546640
That will make things easyier in lollipop
------------------------------------------------
COLOR CODES
When you need to change something likes #ff0000000 or somesort. This website should help you find the right colors. Make sure you LOWERCASE the letters. https://closedxml.codeplex.com/wikipage?title=Excel Indexed Colors
-DUHA
How to theme systemui apk
---------------------------------------
Now all credits go to this dude. I'll just link the thread since I don't want to copy any of his work. Everything you need is there [emoji14]
http://forum.xda-developers.com/showthread.php?p=59725314
Usefull link to understand Material Design
https://developer.xamarin.com/guides/android/user_interface/material_theme/
-DUHA
How to theme settings.apk
-------------------------------------------
Took me weeks to figure out until I found layers.. *facepalm*. Simply decompile your secsettings apk and follow along!
DUHAsianSKILLZ said:
In res/values go into colors.xml and change the text below to what ever you want. If you want black settings then I already filled those in
#ff000000
#ff000000
#ff269dcc
#ff52afce
#ff000000
#ff000000
Now in styles.xml
search for
or
(Depends on device)
and change it to
-----------------------------------------------------------------------------------------------------------------------
RECOMPILE ERROR in theme.material?!?!?! HERES AN ALTERNATIVE! FOLLOW THIS IF YOU HAVE ERRORS Like " cant find theme.material"
then find
and change to
so...... that should fix it. Just leave alone and that should fix it.
END OF ALTERNATIVE
-------------------------------------------------------------------------------------------------------------------
Back onto original instructions....
Now under that add or change (depends per device)
#ff99a9af
#ff0a0a0a
#ffffffff
#ff99a9af
#ffffffff
#ff99a9af
search for
style name="SettingsTheme.Panel" parent= @ANDROID:style/Theme.DeviceDefault.Light.Panel" />
and replace it with
Search for (just scroll up a bit)
and replace with
Now under that you will see @style/ActionbarIconDisable
Now add
#ff000000
Right under @style/ActionbarIconDisable
This is for black settings. I might be forgetting somethings but it should lead you somewhere. There may be some extra things I added by mistake. Hopefully it works fine for you, since I had to figure it out for my Tab S
EDIT: Just updated my post to include alternative incase of errors. Hopefully this leads you somewhere
Click to expand...
Click to collapse
Theming Settings APK Version 2.0
Now this is a revised version of theming settings apk. In styles xml changing a few things to Theme.Material inverts the whole apk to black. This was introduced in material design by default in which is prethemed. Android M allows you to change between light and dark instead of decompiling now lol.
Now to theme each aspect of the part of the apk to a certain color (like background=black and the Tabs to a blue color etc each element basically) is what I am trying to acheive here instead of usiing what google has already done. This is called custom theme in material design.
Ok
Under
and/ or
you can add these right under it (to both settings theme and theme.settings)
#ff333333
#ff333333
#ff3366ff
#ff0a0a0a @ANDROID:color/black
#ffffffff
#ffffffff
Now your wondering.. what does this do? Well this tells what color to be what in the settings apk! Ok so heres what each one means.
{
"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 change the color code to what ever you want. Right now i am trying to figure out which is the text color and such since theres still alot more to go.
Now your probably wondering what color do i use for @ANDROID:color/black
That is the background color of the settings apk. It doesnt use hex color so you have to make a custom color in colors.xml since it reads the color in color.xml. By default, you can use black, cyan, yellow,red , white , blue. Say you want the background to be white. It will look like this @ANDROID:color/white
see just change the to the color name you want in the default list.
BUT WAIT! I WANT TO USE MY OWN CUSTOM COLOR THATS NOT ON THE LIST! Well if you want you to use your own custom color just put in the color you want in colors xml. Please NOTE THIS MAY NOT BE WORKING ATM!
For example in colors.xml add (you can use this in your to)
#3498DB
#77D065
#B455B6
#ffffffff
Change the name to whatever color yours is like my_orange etc. Then input your color code in your custom color. Then now save your color.xml
Now go back to @ANDROID:color/black
and change it to the color you named your color.
@ANDROID:color/my_orange
QUICK NOTE!
<item name="android:colorAccent">#ff800000</item>
That is the color of the battery graph, swiftches and a few more.
-----
res/layout/battery_history_chart.xml
Changes Battery Graph Text
-DUHA
How to port themes (systemui only)
---------------------------------
I have ported many Note 4 and also S4 themes. It's as simple of copy and paste.
Now, download any lollipop theme from the Note 4 or S4 themes and apps section. It must be a themed systemui.apk.
Now right click on the apk you downloaded and open with winrar or 7zip. Now go into res -> drawable-sw800dp-xhdpi or something like that. Somtimes it may look like drawable-sw600dp-xhdpi or something. Find the folder that has something like drawble-sw ....... something. Each device is different soo yeah. Now inside the drawable-sw (something) folder look for pictures named something like tw_quick_panel_ bla bla bla. Highlight all those tw_quick_panel pngs and drag them into (decompiled systemui from your device) your drawble-sw (something) folder. DO NOT COPY THE .9pngs. You will face errors.
Now after copying and pasting those pictures, its time to modify the colors.xml to match the colors of the systemui. Simply just follow this guide http://forum.xda-developers.com/gal...ow-to-theme-tw-systemui-t3065965/post59725314 and change the color codes to whatever the color the theme your trying to port. Then hit save and recompile. Done!
-DUHA
Using layers to full advantage and to help you!
---------------------------------------------------------------------------
Alright alright, we know that layers is really helpful. This thread is an example of one http://forum.xda-developers.com/gal...ers-overlay-rro-dark-settings-5-0-tw-t3073939. You can use that, but ask for permission first! Once you got permission to modify or use theme simply, download one and extract the apk to your apk tool. Now just decompile and yeah. After its decompiled, when you go in res folder, then vaules folder, you will see a few xmls like styles.xml and colors.xml. Those are the changes that are made/overlay changes in which you can use! They tell you exactly where to put what and what has changed to get those colors/ theme.
So so, now go into your decompiled apk (secsettings or systemui from your device) and compare the stuff in your values folder. Lets say you wanted to have a black themed settings you downloaded a black layers/overlay theme with permission. And you want you want to make your settings apk from your device themed black also useing that overlay. So in colors.xml of your settings apk from your device, fill in the stuff/change the color code to match the layers settings apk. MAtch those colors! Now in the styles.xml, all you need to do is find the same things and add stuff or change things like theme.light to theme.material. What Im saying is to try and see if you can match eachother and add things in order to get it themed. Those layers contain whats modded, so all you need to do is fill in the blanks/change yours slightly to match and get it themed.
Heres and example on what im talking about. Lets say your styles.xml has something like this below settings.base <item name="android:colorBackground">#ff181818</item>. and the layers apk has something like <item name="android:colorBackground">#ff000000</item>. So all you would need to do is change the #ff stuff in your settings apk to what ever the themed layers apk has. Somethings you may need to copy and add another line of text below it if your settings apk doesnt have what the layers apk has. Again fill in the blanks, compare eachother, and add them (school taught me this).
Hopefully you get what I mean
-DUHA
Notes to myself
Settings apk
Background of settings apk is <style name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light">
Change to Theme.Material For Darker color.
ActionBar/ Right below status bar color of settings apk
FInd
in values/styles.xml
<style name="Theme.Settings" parent="@style/Theme.SettingsBase">
now add this below it (color code can be waht ever)
<item name="android:colorPrimary">#ff687074</item>
<item name="android:colorPrimaryDark">#ff687074</item>
Now do the same thing for
<style name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light">
<style name="TabTheme" parent="@android:style/Theme.DeviceDefault.Light">
DEMATERILIZE and Get Lollipop Settings Apk to look Holo aka Kitkat
Find or something similrar
<style name="SettingsTheme" parent="@android:style/Theme.DeviceDefault.Light">
Replace With
<style name="SettingsTheme" parent="@android:style/Theme.Holo">
Find
<style name="GridTabTheme" parent="@android:style/Theme.Somethingidk" />
<style name="TabTheme" parent="@android:style/Theme.Somethingidk">
Replace with
<style name="GridTabTheme" parent="@android:style/Theme.Holo" />
<style name="TabTheme" parent="@android:style/Theme.Holo">
You may need to change the text color for popup/dialogs but hopefully this should do it if i remember correctly.
SYSTEMUI
SystemUI Brightness slider Tablets
Slider for both auto and off brightness
<color name="tw_progress_color_control_activated_thumb">#ffffffff</color>
<color name="tw_progress_color_control_activated">#ffffffff</color>
<color name="tw_progress_color_control_disabled">#ffffffff</color>
Slider background
<color name="tw_progress_color_control_normal">#ff6c7174</color>
SYSTEMUI HOLO Volume and swtich on Lollipop
FInd
<style name="systemui_theme" parent="@android:style/Theme.DeviceDefault">
and change to
<style name="systemui_theme" parent="@android:style/Theme.Holo">
Nice thanks you. ..
Sent from my SM-T310 using XDA Free mobile app
Nice Thanks for your Work [emoji6] [emoji6]
Hi @DUHAsianSKILLZ,
if I ask you to theme Note 8's systemUI, you would probably going to say "NO", but asking won't hurt
jazzespresso said:
Hi @DUHAsianSKILLZ,
if I ask you to theme Note 8's systemUI, you would probably going to say "NO", but asking won't hurt
Click to expand...
Click to collapse
Is it lollipop or kitkat? I've been busy with projects in school ? I've got 4 projects due by the end of this month ? I usually don't say no to things but I may say "wait".
Sent from my SM-T800 using Tapatalk
KitKat 4.4.2 , no rush i will wait
In SecSettings there are sometimes two lines of text. A main line and a secondary smaller line with descriptions usually. How to change the color of the text in those lines is what I am trying to do. Any ideas please?
bobfrantic said:
In SecSettings there are sometimes two lines of text. A main line and a secondary smaller line with descriptions usually. How to change the color of the text in those lines is what I am trying to do. Any ideas please?
Click to expand...
Click to collapse
I have no idea. Some of the text for me just magicly turned white. The only thing I can suggest is looking over an layers settings apk that has what you want. That's how I learned how to invert secsettings.
Sent from my SM-T800 using Tapatalk
jazzespresso said:
KitKat 4.4.2 , no rush i will wait
Click to expand...
Click to collapse
Been a while since I was on Kitkat. I have no idea what to theme what anymore. I've been on lollipop to much in which I forgot. Sorry.
Sent from my SM-T800 using Tapatalk
DUHAsianSKILLZ said:
I have no idea. Some of the text for me just magicly turned white. The only thing I can suggest is looking over an layers settings apk that has what you want. That's how I learned how to invert secsettings.
Sent from my SM-T800 using Tapatalk
Click to expand...
Click to collapse
Found it. framework-res go to res/colors/primary and secondary text dark xmls
Galaxy Tab S 8.4 Lollipop update demonstration: https://youtu.be/8Hw9QLOEgOM
DUHAsianSKILLZ said:
How to theme settings.apk
-------------------------------------------
Took me weeks to figure out until I found layers.. *facepalm*. Simply decompile your secsettings apk and follow along!
-DUHA
Click to expand...
Click to collapse
I think i may have found a reason for some of the recompile errors people may be having,
in the section here
search for
style name="SettingsTheme.Panel" parent="@android:style/Theme.DeviceDefault.Light.Panel" />
you are missing the first < so when people are copying and searching it highlights that exact text ( if using notepad++ like me ) so when you then copy and paste the text to replace it you are ending up with a line like ( <<style name="SettingsTheme.Panel" parent="@android:style/Theme.DeviceDefault.Light.Panel" /> ) and due to the double << this will cause compile errors, i had this same issue until i looked through all changes carefully and my notepad++ had highlighted the error text
Hope this help
BongOfWar
---------- Post added at 04:03 PM ---------- Previous post was at 03:26 PM ----------
this is my theme im working for my custom rom, with help of your guide, tyvm
BongOfWar said:
I think i may have found a reason for some of the recompile errors people may be having,
in the section here
search for
style name="SettingsTheme.Panel" parent="@android:style/Theme.DeviceDefault.Light.Panel" />
you are missing the first < so when people are copying and searching it highlights that exact text ( if using notepad++ like me ) so when you then copy and paste the text to replace it you are ending up with a line like ( <<style name="SettingsTheme.Panel" parent="@android:style/Theme.DeviceDefault.Light.Panel" /> ) and due to the double << this will cause compile errors, i had this same issue until i looked through all changes carefully and my notepad++ had highlighted the error text
Hope this help
BongOfWar
---------- Post added at 04:03 PM ---------- Previous post was at 03:26 PM ----------
this is my theme im working for my custom rom, with help of your guide, tyvm
Click to expand...
Click to collapse
Your pictures don't load. But thanks for the tip!
Sent from my SM-T800 using Tapatalk
DUHAsianSKILLZ said:
Your pictures don't load. But thanks for the tip!
Sent from my SM-T800 using Tapatalk
Click to expand...
Click to collapse
hopefully they will show this time bud

Categories

Resources