GUIDE TO CHANGE QUICKSETTING TOGGLES ICON THEME
work perfectly in my JB rom 4.1.2 xwlsd based
Before modding do a Nandroid Backup
thanks and credit to Goldie for his help to achieve this mod:good:
thanks and credit to Didact74 for how to add a listpreference:good:
thanks and credit to CNexus for his shared observer code:good:
To achieve you need:
SecSettings.apk
SystemUI.apk
tool for decompile and compile like apktool 1.5.2;
tool for text edit like notepad++:
Start with SecSettings.apk:
Decompile SecSettings.apk ,go in res/xml ,open with text editor display_settings.xml and add the red line
Go in res/value open with text editor arrays.xml and add at the end the red line
Go in res/value open with text editor strings.xml and add at the end this line
Go in smali\com\android\settings\DisplaySettings.smal i and add the following lines in RED
In the same file find .method public onCreate and add the following lines in RED
In the same file find .method public onPreferenceChange then find this code and add the red lines ,in blue line some explanation
Save all changes and compile SecSettings
SystemUI part
Decompile SystemUI.apk ,download this zip Attachment 2623550 and put the drawable png in res\drawable-hdpi
Compile SystemUI and decompile the new SystemUI.apk to obtain the new ids of the new pngs
So open SystemUI\res\value\public and leave it open
Go in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting and open AirplaneModeQuickSettingButton,smali and add the following red lines, in blue lines some explanation
change the code from this
to this
then apply the same code for these others smali file:
AllShareCastQuickSettingButton
AutoRotateQuickSettingButton
BluetoothQuickSettingButton
DoNotDisturbQuickSettingButton
DormantModeQuickSettingButton
DrivingModeQuickSettingButton
LocationQuickSettingButton
MobileDataQuickSettingButton
MultiWindowQuickSettingButton
NfcP2pQuickSettingButton
PowerSavingQuickSettingButton
SBeamQuickSettingButton
SilentModeQuickSettingButton
SmartStayQuickSettingButton
SyncQuickSettingButton
WifiQuickSettingButton
In the SilentModeQuickSettingButton.smali change code from this
to this
For each smali files check each ids with yours in your public.xml
This part add the observer, is to change the icons theme in real time, whitout this part you need to restart device to show the changes
Go in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting and open QuickSettingPanel
find .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V and add the following red lines at the end
then add this entire in red method like this
then add this entire in red method like this
then add this smali file Attachment 2623605 in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting
Save all changes and compile SystemUI, the put SecSettings.apk and SystemUI.apk in your device.
work perfectly in my JB rom 4.1.2 xwlsd based
Before modding do a Nandroid Backup
thanks and credit to Goldie for his help to achieve this mod:good:
thanks and credit to Didact74 for how to add a listpreference:good:
thanks and credit to CNexus for his shared observer code:good:
To achieve you need:
SecSettings.apk
SystemUI.apk
tool for decompile and compile like apktool 1.5.2;
tool for text edit like notepad++:
Start with SecSettings.apk:
Decompile SecSettings.apk ,go in res/xml ,open with text editor display_settings.xml and add the red line
Go in res/value open with text editor arrays.xml and add at the end the red line
Go in res/value open with text editor strings.xml and add at the end this line
Go in smali\com\android\settings\DisplaySettings.smal i and add the following lines in RED
In the same file find .method public onCreate and add the following lines in RED
In the same file find .method public onPreferenceChange then find this code and add the red lines ,in blue line some explanation
Save all changes and compile SecSettings
SystemUI part
Decompile SystemUI.apk ,download this zip Attachment 2623550 and put the drawable png in res\drawable-hdpi
Compile SystemUI and decompile the new SystemUI.apk to obtain the new ids of the new pngs
So open SystemUI\res\value\public and leave it open
Go in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting and open AirplaneModeQuickSettingButton,smali and add the following red lines, in blue lines some explanation
change the code from this
to this
then apply the same code for these others smali file:
AllShareCastQuickSettingButton
AutoRotateQuickSettingButton
BluetoothQuickSettingButton
DoNotDisturbQuickSettingButton
DormantModeQuickSettingButton
DrivingModeQuickSettingButton
LocationQuickSettingButton
MobileDataQuickSettingButton
MultiWindowQuickSettingButton
NfcP2pQuickSettingButton
PowerSavingQuickSettingButton
SBeamQuickSettingButton
SilentModeQuickSettingButton
SmartStayQuickSettingButton
SyncQuickSettingButton
WifiQuickSettingButton
In the SilentModeQuickSettingButton.smali change code from this
to this
For each smali files check each ids with yours in your public.xml
This part add the observer, is to change the icons theme in real time, whitout this part you need to restart device to show the changes
Go in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting and open QuickSettingPanel
find .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V and add the following red lines at the end
then add this entire in red method like this
then add this entire in red method like this
then add this smali file Attachment 2623605 in SystemUI\smali\com\android\systemui\statusbar\poli cy\quicksetting
Save all changes and compile SystemUI, the put SecSettings.apk and SystemUI.apk in your device.
This post is genuinely a pleasant one it helps new internet viewers, who are wishing for blogging.
RépondreSupprimerI am in fact grateful to the owner of this web site who has shared this wonderful piece of writing at at this time.
RépondreSupprimerPretty nice post. I just stumbled upon your blog and wanted to say that I've truly enjoyed browsing your blog posts. In any case I'll be subscribing to your feed and I hope you write again very soon!
RépondreSupprimerDo you mind if I quote a few of your articles as long as I provide credit and sources back to your site? My blog is in the very same niche as yours and my users would really benefit from a lot of the information you present here. Please let me know if this alright with you. Appreciate it!
RépondreSupprimerHi Dear, are you genuinely visiting this web page regularly, if so then you will without doubt take nice knowledge.
RépondreSupprimerKeep on working, great job!
RépondreSupprimerVery soon this web page will be famous among all blog people, due to it's good posts
RépondreSupprimerGreetings! I know this is somewhat off topic but I was wondering which blog platform are you using for this site? I'm getting tired of Wordpress because I've had problems with hackers and I'm looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform.
RépondreSupprimerHmm it seems like your site ate my first comment (it was super long) so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog blogger but I'm still new to everything. Do you have any points for rookie blog writers? I'd certainly appreciate it.
RépondreSupprimerAttractive component to content. I simply stumbled upon your weblog and in accession capital to say that I acquire actually loved account your blog posts. Anyway I will be subscribing on your feeds or even I achievement you access persistently fast.
RépondreSupprimer