[CM12][tuto][theming][how to][video][apktool][Black][GLASS]3Minit Battery...Mods - Galaxy S II Themes and Apps

Hi All , and Happy New Year 2015 with Lollipop on I9100
Its been long time i havent made a thread, this one is only to show you what i have learn around the NET (XDA is my House!) since i have my device .
i show you how to use apktool and decompile/compile process of some apks system from our new CM12.
The essential code to touch is in colors.xml and styles.xml files from decompiled sources , but you too, you have to know what to do with XML code.
I'm not trying to teach you about XML CODE, i just show you how i compare xml code from another theme with code from rom i have on my device and i show you how i try to make/adapt the changement code .
to learn about xml code , see @Goldie thread here :
http://forum.xda-developers.com/gal...de-understanding-creating-smali-mods-t2488033
in my video, i worked on framework-res, systemui and settings .
So you can make you little test a part and show us your change according my video. colors.xml and styles.xml are the best way to begin i think, according my great friend @Vivek_Neel and its thread here :
http://forum.xda-developers.com/android/themes/guide-t2978121/
Hope you have a big device with large screen/displaying to read it as well, 720p is a must
thanks.

My videos result :
3Minit Battery Mod on CM12:
HOW TO : http://forum.xda-developers.com/showpost.php?p=57975609&postcount=4

BLACK our CM12
Inspirations and all credits :
@Vivek_Neel for:
[Guide][How to theme lollipop roms with ease]
http://forum.xda-developers.com/android/themes/guide-t2978121
Euphoria Dark :
http://forum.xda-developers.com/showpost.php?p=58075585&postcount=635
@nicholaschum for :
http://forum.xda-developers.com/galaxy-s3/themes-apps/flashable-material-dark-temasek-t2993376
http://forum.xda-developers.com/galaxy-note-3/themes-apps/flashable-material-dark-temasek-t2992088
@androidous for his post and his autodidactic method i used too
http://forum.xda-developers.com/showpost.php?p=58038461&postcount=399
and his github here :https://github.com/androidous/Material_Black
method of work :
- decompile all stuff from themes in intro.
- decompile all my need from CM12 I9100
- by comparison, change only made on colors.xml and styles.xml in /res and some other little xml in /drawable or /layout
All my CWM Flashable files are here : http://d-h.st/users/skorpion/?fld_id=42551#files
details of files : contacts.apk, dialer.apk, systemui.apk, settings.apk, framework-res.apk and maybe trebuchet (not sure)
FINAL-Material_Black-master-CM12-BETA7.zip
FINAL-Material_Black-master-3MinitBattery-CM12-BETA7.zip
CM12-EUPHORIAbattery.zip
(these two files need that you have installed 3MinitBatterySettings.apk from 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip , see post4 bellow)
STOCK--CM12-BETA7.zip
(return to stock CM12 beta7)
Its not perfect but perfection will come soon, its just my first shoot about complete theming , just try it !
Voilà

3Minit Battery Mod on CM12
Source :
from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
http://forum.xda-developers.com/showthread.php?t=2799958
and
http://forum.xda-developers.com/showpost.php?p=53795131&postcount=4
from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
http://forum.xda-developers.com/showpost.php?p=57646050&postcount=2468
thanks for its SystemUI.apk from CM12.
i decompiled SystemUI.apk from CM12 Note4 to gain MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali files and have learned that i have to change some codes in system_icons.xml instead of status_bar.xml like in @pas2001 thread.
here it is my code for SystemUI/layout/system_icons.xml :
(in red , what i changed)
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="[COLOR="Red"]0.0[/COLOR]dip" android:layout_height="[COLOR="Red"]0.0[/COLOR]dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
You need to download 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip from @pas2001 thread (1rst post) and only take 3MinitBatterySettings.apk from it if you plan to use this mod. Then you will install 3MinitBatterySettings.apk on your device. Personaly, i installed it on /data/app/ , set permissions and reboot.
In attachements, find a little pack containing only 3 smali files you need to add in SystemUI\smali\com\android\systemui\statusbar\policy according 1rst post from @pas2001.
3 files are : MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali .
if you have installed CM12 on your device, you can try my SystemUI.apk in attachment too. (from beta5 or beta6)
Its easy to decompile, make the change and compile too.
Enjoy
thanks
ALL Credits to @gharrington .

Troubadour666 said:
Source :
from @pas2001 for his thread 3Minit Battery Mod Updated: [03/09/14]
http://forum.xda-developers.com/showthread.php?t=2799958
and
http://forum.xda-developers.com/showpost.php?p=53795131&postcount=4
from @davidisflash , here is the working SystemUI.apk for CM12 unofficial rom on Note 4!!
http://forum.xda-developers.com/showpost.php?p=57646050&postcount=2468
thanks for its SystemUI.apk from CM12.
i decompiled SystemUI.apk from CM12 Note4 to gain MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali files and have learned that i have to change some codes in system_icons.xml instead of status_bar.xml like in @pas2001 thread.
here it is my code for SystemUI/layout/system_icons.xml :
(in red , what i changed)
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="[COLOR="Red"]0.0[/COLOR]dip" android:layout_height="[COLOR="Red"]0.0[/COLOR]dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
You need to download 3MinitBatteryModFiles2.2_MD5_2aaf0531d4b8c74b33aacdba79575221.zip from @pas2001 thread (1rst post) and only take 3MinitBatterySettings.apk from it if you plan to use this mod. Then you will install 3MinitBatterySettings.apk on your device. Personaly, i installed it on /data/app/ , set permissions and reboot.
In attachements, find a little pack containing only 3 smali files you need to add in SystemUI\smali\com\android\systemui\statusbar\policy according 1rst post from @pas2001.
3 files are : MinitBattery$1.smali , MinitBattery$ResourceManager.smali and MinitBattery.smali .
if you have installed CM12 on your device, you can try my SystemUI.apk in attachment too. (from beta5)
Its easy to decompile, make the change and compile too.
Enjoy
Click to expand...
Click to collapse
Great job mate. But don't forget the real owner of 3minit battery mod @gharrington. I am only his team member.
BTW you guys can support by buy app in playstore. It up to date with new tabs function.
Thank.

plz when i followed the guide and compile the new systemui.apk
i paste it into \system\private-app\SystemUi
and i set permission to rw-r-r
but when i reboot the device a message pop up and said systemui has stopped and repetted the same thing over and over
can you tell me how did you manage to get it work ?

<T-Rex> said:
plz when i followed the guide and compile the new systemui.apk
i paste it into \system\private-app\SystemUi
and i set permission to rw-r-r
but when i reboot the device a message pop up and said systemui has stopped and repetted the same thing over and over
can you tell me how did you manage to get it work ?
Click to expand...
Click to collapse
its curious, because i always have error that you have but only when i copy apk on system. just a pop up said systemui has stopped .
when i reboot, it never appear again.
When you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ?
- you set permission to rw-r-r and owner and group to root
- and you have 3MinitBatterySettings.apk on your system too ?
you missed smali files
i have tested without and i loose status bar and have constant "systemui has stopped" .

Troubadour666 said:
its curious, because i always have error that you have but only when i copy apk on system. just a pop up said systemui has stopped .
when i reboot, it never appear again.
When you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ?
- you set permission to rw-r-r and owner and group to root
- and you have 3MinitBatterySettings.apk on your system too ?
you missed smali files
i have tested without and i loose status bar and have constant "systemui has stopped" .
Click to expand...
Click to collapse
no , i just replace the systemui.apk that you attached
can you give me plz all file needed to have the look in the screenshots (without changing the white backround for apps drawer) and the method plz
because i don't have time to compile my own

<T-Rex> said:
no , i just replace the systemui.apk that you attached
can you give me plz all file needed to have the look in the screenshots (without changing the white backround for apps drawer) and the method plz
because i don't have time to compile my own
Click to expand...
Click to collapse
ha, i cant share because its personal use and i made many change on it
and you will need my modded framework-res and settings for beta5 too.
its bad idea if you have though to use my systemui in attachment without 3MinitBatterySettings.apk installed just to gain 'black' ui like me.
you can follow this thread
http://forum.xda-developers.com/android/themes/guide-t2978121/
and try to adapt it and yes you will need to compile too. sry.
maybe, if i have time, i will make a post with all my XML changes on beta6 to give it a black ui .
thanks.

Troubadour666 said:
ha, i cant share because its personal use and i made many change on it
and you will need my modded framework-res and settings for beta5 too.
its bad idea if you have though to use my systemui in attachment without 3MinitBatterySettings.apk installed just to gain 'black' ui like me.
you can follow this thread
http://forum.xda-developers.com/android/themes/guide-t2978121/
and try to adapt it and yes you will need to compile too. sry.
maybe, if i have time, i will make a post with all my XML changes on beta6 to give it a black ui .
thanks.
Click to expand...
Click to collapse
please create full dark material theme decksclock, mms, calendar, calculator and others. thanks

hen you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ? YES
- you set permission to rw-r-r and owner and group to root : YES
- and you have 3MinitBatterySettings.apk on your system too ? NO I D'ONT HAVE THIS APP
you missed smali files / WHAT YOU MEAN BY I MISSED THOSE FILES
i have tested without and i loose status bar and have constant "systemui has stopped" .

<T-Rex> said:
hen you have compiled, did you manage META-INF folder and AndroidManifest.xml in new SystemUI.apk ? YES
- you set permission to rw-r-r and owner and group to root : YES
- and you have 3MinitBatterySettings.apk on your system too ? NO I D'ONT HAVE THIS APP
you missed smali files / WHAT YOU MEAN BY I MISSED THOSE FILES
i have tested without and i loose status bar and have constant "systemui has stopped" .
Click to expand...
Click to collapse
i'm talking about the smali files pack in attachments post4.
you habe to install 3MinitBatterySettings.apk from @pas2001 thread too. you have FC because you missed smali files added before compilation. see again post 4.
thanks.

3Minit Battery Mod on Resurrection Remix 5.2.8 now , post4 updated
thanks

is it working on cm 12 lysergic acid? Thanks

Yakap said:
is it working on cm 12 lysergic acid? Thanks
Click to expand...
Click to collapse
see attachments post4

sweet job glad i was able to help at least a bit keep it up man :good::good:

androidous said:
sweet job glad i was able to help at least a bit keep it up man :good::good:
Click to expand...
Click to collapse
i have idea to create theme.material.dark definitions in framework-res.apk and see what i can do with it (similar from theme.material.light) , could be a sad work
and playing with android:theme="@style/ on <activity in AndroidManifest.xml maybe .

Good going @Troubadour666! Looking good

Thank great guide sorry my bad english

CM12 Material_Black Theme
Hi,
this is my last theming with Material_Black theme , following post4
CWM-I9100-CM12-Beta8-Material_Black-master-3MinitBatteryINCLUDE .zip - 22.02 MB
i have themed black Dialer.apk and Contacts.apk
ABOUT MY SystemUI.apk , you have to install 3MinitBatterySettings.apk as describe in post3 and post4.
Also , i have added networkspeedindicator from @thanhfhuongf in my SystemUI.apk too.
(his this thread here http://forum.xda-developers.com/galaxy-note-3/themes-apps/guide-lollipop-network-status-bar-t2998932)
for all of the followers insterested by theming it BLACK , i will post my colors.xml and style.xml soon, for all apk.
there are some other xml to modify too and png/jpg to change.
i'm open for other things if you have some ideas. i'm not moding but just theming, i mean, only colors and png images.
give a try and report.
thanks.
UPDATE :
NEW CWM package : 3MinitBattery and network speed indicator have been removed from SystemUI.apk.
I9100-CM12-Beta8-Material_Black-master.zip - 22.05 MB
or download SystemUI.apk in attachement, replace in CWM-I9100-CM12-Beta8-Material_Black-master-3MinitBatteryINCLUDE .zip if you have downloaded it before and reflash.

Related

[Q] Different wallpaper for Lock & normal Screen

Hey Guys,
I know it was asked a lot but I can't find a solution.
I want to have a different wallpaper for Lockscreen than the normal (unlocked screen).
I know that there is a way with root explorer ( I did this in past) but that is a long time a go.
I'm on O$$ram's SGBS 2.8
Someone knows how to do this without use a lockscreen replacement ( like Wodgetlocker) ?
Wrong post -.-'
davebugyi said:
Originally Posted by smaberg
to set different wallpaper to lock screen add this line in LS_LockScene_480x800.cpr
after tag
<?xml version="1.0" encoding="utf-8"?>
<Form Width="480" Height="800">
<LS_LockScene ID="Scene">
that would look like this after
<?xml version="1.0" encoding="utf-8"?>
<Form Width="480" Height="800">
<LS_LockScene ID="Scene">
<Image ID="Background" Opacity="1.0" Left="0" Top="0" Width="480" Height="800" Source="\windows\LockScreen\Wallpaper.png" />
enjoy this
Click to expand...
Click to collapse
I didn't found LS_LockScene_480x800.cpr
Can you explaine me were I find this ?
Would be nice
Forget that post.
If you want to replace the default lockscreen on SENSE, you need to replace the png files inside of the framework-res.apk (/system/framework).
They are located under drawable-hdpi folder.
But that is all I can remember, it may not work on sense 2.1.
davebugyi said:
Forget that post.
If you want to replace the default lockscreen on SENSE, you need to replace the png files inside of the framework-res.apk (/system/framework).
They are located under drawable-hdpi folder.
But that is all I can remember, it may not work on sense 2.1.
Click to expand...
Click to collapse
Ok i was there,such a lot png files.
Hmm but i searched those but don't found one png with wallpaper...
I think i have to seach more

Statusbar mods collection galaxy y

Hello everyone,
It has been quite a time on xda and i found that there are a number of tweaks availble for our mini GALAXY Y especially for the status bar.
But the problem is that all these tweaks are located in different threads which makes them a lot more messy.
Therefore I present you a compilation of the common but most used tweaks for galaxy y.
THREADS WILL BE UPDATED.........SO LOOK OUT FOR NEW AMAZING TWEAKS !!!!!!!!!!!!!!
Click to expand...
Click to collapse
PLEASE PM ME IF YOU FIND ANY OTHER TWEAKS FOR OUR GALAXY Y AND I WILL ADD IT HERE
CREDITS :--
@marcussmith2626
 @dcsms
 @jpdesuasido
[Guide] [Mod] How to make any gingerbread or cm7 status bar transparent​There's two ways to make the statusbar bar Transparent and I'll post them both
One way works with any gingerbread rom (deodex & rooted) and one with cyanogen 7.
I have not tried it on ics or jelly bean but you can try (for people who stumble across this thread who are not galaxy y users) ..
Please dont ask for support unless you are using a custom rom on galaxy y.:good:
Any other phones please goto your own phone forum for support.
You also need a launcher that is capable of transparency .:angel:
Adw works but you need to disable wallpaper hack in settings .
Holo launcher works.
any other launcher if it doesn't work look in it's settings & try & disable wallpaper hack or manage internally .
1-)Method one for non cm
You need apk tool installed - if you don't know how to use it see marcussmith2626's guide here --
http://forum.xda-developers.com/showthread.php?t=2206938
Once you have decompiled SystemUI.apk using apk tool goto res/layout Open status_bar.xml in notepad
1.Find the following line
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background="#000000"[/COLOR] android:focusable="true" android:descendantFocusability="afterDescendants"
Notice android:background is normally a hexadecimal value or it could be an @drawable value
either way change it to the following
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background=" [user=3944923]@drawab[/user]le/nameofpng" [/COLOR]android:focusable="true" android:descendantFocusability="afterDescendants"
Notice that android:background is now a @drawable value
2.Detete the space between the " and the @
(the is because the forum has changed the @ to mentions and I cant work out how to stop it doing it)
3.Change nameofpng to the name of your transparent background image (just the name - do not include the file extension .png)
4.Place this image with the same name as the @drawable value in res/drawable-ldpi
(of course other devices might be in mdpi or hdpi)
5.Recompile and sign apk
Put in a flashable zip and flash with system mounted
6.You can download and use the pngs in the attachment (for ldpi like galaxy y) or create your own
To create a transparent status bar image just take a non Transparent one and edit it in a photo application to make it Transparent (make sure image dimensions stay the same and is for your phone resolution)
2-)Method two for cm7
Note you will need apk tool installed and notepad++ installed
1.Download the patcher tool by Z25
2.Unzip the contents to a folder
3.Place your SystemUI.apk and framework-res.apk in files_to_patch
4.Run patcher.bat
5.Select status bar tweaks and enable only transparent status bar
6.Edit the smali file as described in the text file that pops up
7.Select option build and sign
8.Select option to create zip files
You now have a zip file called patch.zip
Flash this in cwm to enable transparency
To actually make it Transparent you need to apply a theme with a transparent status bar
First disable wallpaper hack from adw launcher settings
Then either download a transparent Theme from playstore for theme chooser and apply in theme chooser
Or create your own theme
Goto UOT kitchenhttp://uot.dakra.lt/kitchen
Code:
1.Take cyanbread.apk from the app folder of your cm7 rom & place on pc (or any other Theme Chooser Theme you wish to make transparent)
2.Rename it to what you want to call theme
3.Upload it to kitchen (under cm7 theme in file upload)
I4.n status bar tweaks set background transparency to around 70% Transparent and any other settings you need like carrier or footer - don't forget to generate preview once done
5.Make sure you have selected ldpi in statusbar tweak settings and ldpi/mdpi for theme chooser preview in file upload (other devices may vary) and in file upload change update binary to galaxy
6.Then goto summary section
7.If everything is green create the theme
8.If not make sure you have clicked generate preview on status bar tweaks
kitchen will then create theme for you
Once it's done download it flash in cwm with system mounted & then apply it in theme chooser
here are some of the statusbar my marcussmith2626--
http://forum.xda-developers.com/showthread.php?t=2123899
r
[GUIDE]How to add EDT Tweak support on your SystemUI
Hi guys
This time I will make a tutorial on how to add "EDT" tweak support on your SystemUI:fingers-crossed::fingers-crossed:
Features of EDT Tweaks
1.Battery Options
Show/Hide Battery Icon (Doesn't work)
Battery Text Style (Regular,Hide and Small %)
Prepend/Append Battery Text
Change Charging Color (For Battery Text)
Change Regular Color (For Battery Text)
Change Medium Level Color (For Battery Text)
Change Low Level Color (For Battery Text)
2.Clock Options:laugh:
Show AM/PM
Small AM/PM
Hide AM/PM
Hide Clock
3.Signal Options
Show Signal Bars (Doesn't work)
Show Signal Strength (Not available yet)
Show dBm Text (Not released)
Bug List
1.Show/Hide Battery Icon
2.Show Signal Bars
3.Show Signal Strength
4.Show dBm Text
Click to expand...
Click to collapse
Requirements
1.EDT Files (download in attachment)
2.EDT Tweaks apk (download in attachment)
3.SystemUI.apk
4.Apktool or similar
Click to expand...
Click to collapse
How to Install
1.Download the EDT Files zip package on your Computer and extract it anywhere in your desktop
2.Now on your phone, Pull your SystemUI.apk and paste it on your sd card
3.Now connect your phone to your Computer and Connect USB Storage
4.Copy the pulled SystemUI.apk and paste it on your apktool folder
5.Decompile your SystemUI.apk (You know how to do it right?)
6.Now copy the extracted smali from the EDT Files zip package and paste it on smali/com/android/systemui/statusbar/. Replace if asked
7.Go to res/layout/ and open status_bar.xml
8.Copy this code
Code:
[COLOR="Purple"]<com.android.systemui.statusbar.BatteryText android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />[/COLOR]
9.Paste it belowabove this code
Code:
[COLOR="Purple"]com.android.systemui.statusbar.Clock[/COLOR]
10.Compile the SystemUI.apk (You know how to do it right?)
11.On your phone, push the SystemUI.apk to system/app using Root Explorer or similar.
12.Now install EDT.apk and you can now use it's features
rr
[GUIDE]How to add lidroid 14 statusbar toggle buttons for Galaxy Y​All Credits belongs to dcsms
Please refers to lidroid original thread below
http://forum.xda-developers.com/showthread.php?t=1289896
Requirements :--
1. A Computer with JAVA DEVELOPMENT KIT [JDK] installed
2. Apktool
3. Notepad++ / other UNIX editor
4. Knowledge about how to compile/decompile apk (dont ask me.. just use the search bar.. there a bunch of tuts how to do that)
Click to expand...
Click to collapse
firstly download this file :
1. lidroid-res
http://forum.xda-developers.com/attachment.php?attachmentid=750399&d=1318661697
2. LidroidSystemUI
http://forum.xda-developers.com/attachment.php?attachmentid=750756&d=1318701014
3. QuickPanelSettings
http://forum.xda-developers.com/attachment.php?attachmentid=751238&d=1318747162
Click to expand...
Click to collapse
Procedure :--
1. Download LidroidSystemUI.apk and decompile it with apktool, then you get LidroidSystemUI dir.
2. Pull and Decompile your SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.
3. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, change codes below
Code:
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030002
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 352
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
with
Code:
const v7, 0x3030003
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;
.line 352
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
4. Compile SystemUI with apktool,
5. open up your SystemUI.apk with winrar or 7zip
6. locate to SystemUI/build/apk/ and find classes.dex onto the winrar/7zip
7. Then Push it into /system/app/
5. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.
Click to expand...
Click to collapse
More mod :
Originally Posted by [email protected]
To have 6 visible toggles : edit : SystemUI/smali/com/lidroid/systemui/quickpanel/PowerWidget.smali
change :
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x5
to
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6
Code:
div-int/lit8 v2, v2, 0x5
to
Code:
div-int/lit8 v2, v2, 0x6
Note: i skip editing androidmanfest.xml (cuz when we do this... we should sign all of the apk in /system/app and /system/framework. ..but if u insist.. please see the original thread above how to do that...unless if u dont do editing androidmanifest.xml u'll got FC when pressing Flashlight button. anyway i dont need it.. so its not a big deal)
DONT FORGET TO PRESS ATHANKS :laugh::laugh::laugh:
[GUIDE]BRIGHTNESS SLIDER IN STATUS BAR​
UPDATE ZIP FILES FOR JELLY BLAST ND HYPERION ADDED CHK AT THE END OF POST
GUYS THOSE WHO ARE TRYING IT AFTER COMPILNG UR APP PLZ DECOMPILE AND CHK WHETHER TAT ""in"" FOLDER IS IN SMALI FOLDER
REQUIREMENTS :--
1> DECOMPILING/ COMPILING TOOL (LIKE VTS OR APKTOOL OR APKMULTITOOL OR ANY OF UR CHOICE
2>UR SYSTEMUI.APK
3>STATUSBARGREEPER( PLZ SEARCH XDA FOR ITS DOWNLOAD LINKS)
Click to expand...
Click to collapse
STEPS
1) DECOMPILE UR SYSTEMUI.APK
2)NAVIGATE TO res/layout/status_bar_expanded.xml
3) OPEN IT FOR EDITING
4) SEARCH FOR THE FOLLOWING CODE
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
[COLOR="Indigo"]
[/COLOR]
5) PLACE THE FOLLOWING CODE ABOVE CODE U SEARCHED ABOVE
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.SlideBrightness android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
6) ADD THE FOLLOWING FOLDER IN smali/*here*
DOWNLOAD HERE--
IN.ZIP
7)RECOMPILE THE THE SYSTEMUI APP ND PUSH IT........
8) RESTART UR DEVICE ND UR DONE..:
9) ND YADO INSTALL STAUSBARGREEPER APK
Click to expand...
Click to collapse
FOR JB FLASH VIA CWM--
1)HYPERION----HERE
2)JB--->>>HERE
DO VISIT THIS POST TOO
http://forum.xda-developers.com/showthread.php?t=2084127​
Its much better to actually link to the orig thread and just have an index type thread instead of just posting the entire guide here
this is because threads are updated and its also much eaiser for people to get support from the person who wrote the thread then just having spam "help me" stuff here
also you didnt seek permission to repost all these guides - well at least you didnt ask me
creating a thread which indexes guides is fine and links to the thread but just copy and past the entire guide is not good
you can get an idea of what an index thread is by clicking on the link in my signature as that will take you to my index thread
Bro You Could give Links to original thread instead of re posting all guides..its look messy
Thread Closed as it is nothing but duplication of existing work present in the device forum.
A.cid
Forum Moderator

[GUIDE] Brightness Slider Guide Stock GB CM7/CM9/CM11 - Rewritten Easy To Follow

Brightness Slider Guide
For CM11 See My Guide - Here​
I have re-written the guide by @evanlocked with his permission as some people had trouble following his guide so I'll try to make it simple to follow steps
Full credit goes to him for the original guide and steps - All I have done is present it and re-write it in a different way to make it more understandable and iv also added steps for different layouts depending on what rom you are using
The original thread can be found
http://forum.xda-developers.com/showthread.php?t=2152370
1 - Download the attachment and unzip the folder
2 - Decompile your SystemUI.apk with apktool
3 - Open the downloaded attachment and copy the files within to the following locations to your decompiled SystemUI folder
Note if you dont have the folder for the smali eg lidroid just create it
smali\com\lidroid\systemui\quickpanel
BrightnessSlider$BrightnessSettingsObserver.smali
BrightnessSlider.smali
smali\com\android\systemui\statusbar
SlideBrightness$1.smali
SlideBrightness$2.smali
SlideBrightness.smali
smali\com\android\systemui\statusbar\quickpanel
BrightnessSettingsView$1.smali
BrightnessSettingsView$AutomaticObserver.smali
BrightnessSettingsView$BrightnessObserver.smali
res\drawable
brightness_seekbar.xml
res\layout
qp_brightness.xml
quickpanel_brightness_settings.xml
res\drawable-ldpi (or -mdpi and so on depending on your phone res)
brightness_bg.png
ic_brightness.png
quickpanel_brightness_icon.png
4 - Open res/values/strings.xml with notepad++
above </resources> place the following
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5 - Open res/values/ids.xml with notepad++
above </resources> place the following (note cm9 dont add <item type="id" name="brightness">false</item> as its already defined)
Code:
<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
6 - Open res/layout/status_bar_expanded.xml
This step will vary depending on rom so I will give a few examples
Example 1 - Stock Gingerbread (deodexed)
Under
Code:
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip">
Place
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
Example 2 - CM7
If you have a header you can place it under it like this (note your header name maybe different from StatusBarJellyHeaderView)
Under
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
Place
Code:
<include layout="@layout/qp_brightness" />
Or if you dont have a header or you dont want it within the header you can place it under the power widget
Under
Code:
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Place
Code:
<include layout="@layout/qp_brightness" />
Example 3 - CM9
Above
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
Place
Code:
<LinearLayout android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
7 - This step is optional and is for the icon next to the brightness slider
open res/layout/qp_brightness.xml
Look at
Code:
<ImageView android:paddingLeft="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_brightness" />
This is the line for the image - change it how you like if you want to
note - to change the icon just replace ic_brightness.png that you placed in res/drawable-ldpi (or mdpi and so on) with one of your choice but make sure the filename remains ic_brightness.png
8 - Recompile and sign - if you are using cm7/9 sign the apk with a platform key using zip signer (playstore)
9 - Put in a flashable zip and flash in cwm with system mounted
credits
evanlocked
Will follow this one
EDIT:
thanks @marcussmith2626
workin perfectly
no force close or what
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Ticklefish said:
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Click to expand...
Click to collapse
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
marcussmith2626 said:
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
Click to expand...
Click to collapse
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Ticklefish said:
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Click to expand...
Click to collapse
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
Thanks, I'll have to check them out tomorrow.
Sent from my C6603 using Tapatalk
Easy to follow.Thanx
Sent from my GT-S5360 using Tapatalk 2
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
See san122 guide
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
the png on left is already explained in step 7
the colour of the slider itself is to do with your framework-res in progress_horizontal.xml
the slider icon on the bar is also to do with your framework but I dont know what png it is - I think its a .9.png somewhere - you will have to look through as the names may vary with rom
Mranggapo said:
See san122 guide
Click to expand...
Click to collapse
Thanks for an excellent guide!
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Ticklefish said:
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Click to expand...
Click to collapse
yeah it may well be - if I ever get a 4.3/4.4 device in the future I can look at it properly
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
richard.elgh said:
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
Click to expand...
Click to collapse
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
marcussmith2626 said:
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
Click to expand...
Click to collapse
It wasn't as easy as this though: android:gravity="right"
richard.elgh said:
It wasn't as easy as this though: android:gravity="right"
Click to expand...
Click to collapse
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
marcussmith2626 said:
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
Click to expand...
Click to collapse
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
richard.elgh said:
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
Click to expand...
Click to collapse
this is my layout for comparison - you can see what it looks like in the screenshot of the status bar thread I gave in last post or in my signature
Code:
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
<include layout="@layout/qp_brightness" />
</LinearLayout>
</LinearLayout>

[MOD][LMY47O][5.1] Ambient Display + Extended Power Menu + Center Clock + Battery %

Hey Guys here find you the flashable zip for ambient display mod and extended power menu for Nexus 4 with stock 5.1 LMY47O Rom.
Added Ambient Display + Extended Power Menu + Center Clock + Battery % mod
Update Ambient Display + Extended Power Menu + Center Clock + Battery % mod v.2.0 with doze pulse duration visible value to 12 seconds
Added Ambient Display mod
Added Ambient Display + Extended Power Menu + Center Clock mod
Added Ambient Display + Extended Power Menu + Battery % mod
Added Ambient Display + Extended Power Menu + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added Ambient Display + Extended Power Menu + Center Clock mod with fix overlapping + Battery % mod + 5 Navbar Buttons + Added day next to Clock and format 12h/24h with italic font style
Added All Mods files
Root needed.
Tested on my Nexus 4.
Regards
Thanks to
Ticklefish for center clock mod. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816
raffaele88 for ambient display mod. You can take a look here
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
namin78 from 4pda.ru for edit PhoneStatusBar.smali for hide clock on lockscreen after center clock with best method by Ticklefish. You can take a look here
http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816/page33
garynych for for battery % mod. You can take a look here
http://forum.xda-developers.com/goo...-center-clock-battery-charge-percent-t3003413
and Planters76. You can take a look here
http://forum.xda-developers.com/google-nexus-5/themes-apps/mod-pm-battery-t3082716
Spannaa for AM/PM mod. You can take a look here
http://forum.xda-developers.com/showthread.php?t=2713812
pandza88 for Add/Reorder buttons in Navigation Bar. You can take a look here
http://forum.xda-developers.com/goo...guide-how-to-edit-mod-navigation-bar-t2973512
If You have got stuck on boot loop then do this.
METHOD 1
1. You can first try to flash Revert to Stock 5.1.zip file.
2. Reboot your phone..
3. Go to recovery and flash one of my mod.
4. Reboot your phone and enjoy
METHOD 2
1. You can try to flash first only ambient display mod.
2. Reboot your phone and You should have got ambient display mod installed.
3. After install ambient display mod go to recovery and flash ambient display and power menu mod.
4. Reboot your phone and You should have got ambient display and power menu mod installed.
5. Go to recovery again and flash ambient display-power menu-center clock mod that I added now.
6. Reboot your phone and You should have got ambient display-power menu-center clock mod installed.
7. Last go to recovery again and last flash ambient display-power menu-center clock-battery percent mod.
8. Reboot your phone and enjoy
Tutorial
How add Ambient Display mod.
1. Decompile SystemUI.apk with AdvancedApkTool that You can find here:
http://forum.xda-developers.com/showthread.php?t=2639400
You must use this file for decompile and recompile android 5.1 rom files
http://forum.xda-developers.com/showpost.php?p=59436776&postcount=2812
You just put inside AdvancedApkTool/1-BDFreak/ folder and rename it to apktool.jar (delete old apktool.jar file v. 2.0.0-RC3)
Remember first to install framework-res.apk file and to add your file inside AdvancedApkTool/2-In/ folder
2. Navigate to systemui/res/values/bools.xml and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
3. Save and recompile SystemUI.apk
4. Decompile framework-res.apk
5. Navigate to framework-res/res/values/strings.xml and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
6. Save and close
7. Now in the same folder open bools.xml and with Notepad++ and change this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close
8. Now in the same folder open integers.xml with notepad++ and change this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
9. Save and recompile framework-res.apk
10. Make a backup of your SystemUI.apk and Framework-res.apk files.
11. Create a zip flashable with ZIPme app that You can find here:
https://play.google.com/store/apps/details?id=zip.me&hl=it
Add Aeroplane mode and mute-vibrate-ringer mode to the Power Menu
1. Decompile framework-res.apk
2. Navigate to framework-res/res/values/arrays.xml and open it with notepad++ and change this line:
from
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>bugreport</item>
<item>users</item>
to
PHP:
<string-array name="config_globalActionsList">
<item>power</item>
<item>airplane</item>
<item>bugreport</item>
<item>silent</item>
<item>users</item>
3. Save and recompile framework-res.apk
Add center clock
1. Decompile SystemUI.apk
2. Navigate to systemui/res/layout/status_bar.xml open it with notepad++ and add this line:
PHP:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
immediatly to follow after this line:
PHP:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
and delete this line:
PHP:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
3. Save and close
4. Navigate to systemui/res/values/dimens.xml open it with notepad++ and change this line:
from
PHP:
<dimen name="keyguard_carrier_text_margin">16.0dip</dimen>
to
PHP:
<dimen name="keyguard_carrier_text_margin">156.0dip</dimen>
5. Save and recompile SystemUI.apk
How add Battery Percent
1. Decompile SystemUI.apk
2. Navigate to systemui/smali/com/ and put inside erryy folder (this folder is inside source.zip file)
3. Navigate to systemui/res/layout/keyguard_status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
4. Save and close
5. Now in the same folder open status_bar.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
6. Save and close
7. Now in the same folder open status_bar_expanded_header.xml open it with notepad++ and add this line:
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:gravity="start|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
immediatly to follow after this line:
PHP:
<include layout="@layout/system_icons" />
</FrameLayout>
delete this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
and add this line:
PHP:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
8. Save and recompile SystemUI.apk
Do You like that I do? If You want to show your appreciation then You can donate HERE or click on Donate to Me.
Every donation is really appreciated.
Thanks to everyone
Bootloop after Optimisation of applications
numa0001 said:
Bootloop after Optimisation of applications
Click to expand...
Click to collapse
Same for me..
+1 Me too,3 times i flashed always got bootloop
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
tonysansone said:
Sorry Guys..but it does work for me.. I check many times before to post it. I suggest you to try to flash my mod with TWRP 2.8.5.2 Recovery.
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
ivelramona said:
I use that 2.8.5.2 TWRP,but still bootloop sir... don't know why..
Click to expand...
Click to collapse
Hey mate try this and report please!
Regards
tonysansone said:
Hey mate try this and report please!
Regards
Click to expand...
Click to collapse
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
ivelramona said:
Sory bro,but still same here.. Still got bootloop...
But thanks for your work...:good:
Click to expand...
Click to collapse
Can You try v.2 of my mod and report me please!
I'm sorry mate!
can you make a zip without the center clock?
tonysansone said:
Can You try v.2 of my mod and report me please!
I'm sorry mate!
Click to expand...
Click to collapse
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
ivelramona said:
Again.. Same result sir,still bootloop...:crying:
But,don't know with other,wait for other report..
Click to expand...
Click to collapse
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
tootang said:
can you make a zip without the center clock?
Click to expand...
Click to collapse
I will do it mate!
CyanogenMod 12.1 Ambient Display
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
ahoyboyhoy said:
Will ambient display work on 12.1? I'd be interested to install just ambient display if that's possible.
Click to expand...
Click to collapse
I think yes.. Can You post your framework-res and systemui files and I will do it. But you remember that if You update cyanogenmod rom You will lost ambient display mod. Here You find the tutorial how add ambient display mod
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
take a look
tonysansone said:
Can you post your framework-res.apk and systemui.apk? I will try to add my mod.
Click to expand...
Click to collapse
Here...
ivelramona said:
Here...
Click to expand...
Click to collapse
Can You try this file? It should be works. Only ambient display mod.
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
ahoyboyhoy said:
I'm tried installing that on CM12.1 4.23 nightly and got stuck on the boot animation.
Click to expand...
Click to collapse
Hey Guy my mod does work only on rom stock 5.1. It will doesn't work on cyanogenmod rom.. Cm12.1 has framework-res.apk and systemui.apk files are different. Post your files and I try to add my mod
I flashed and bootloop on 5.1 stock
Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi

[Guide][Lp-MM-N]Adv Rom control in to stock Settings

hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Posting tuts and making settings for them ..... argh.........!
Wasting my time
So i am going to Share you This Easy Preferences.....!
Easy to work with and Easy to use .. thanks to @daxgirl for such a great work... thank you
Using that i had my personal changes to work in built settings and updated color picker and few
Ok lets start on integration of Rom control v1 to your Stock settings ( tested on my Kryptonian Roms )
so here guys, all you need
- Super User Mod ( MM/N, LP )
- Deodexed Stock settings
- Apktools ( i used apktool 2.x )
- and Patience
1. Decompile your Settings.apk
2. Now download this View attachment Settings.apk.zip
3. Extract them and Merge to Stock settings
4. Open Androidmanifest.xml and add these Persmissions
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
5. In Settings.apk/res/values/arrays.xml add this
Code:
<string-array name="dashboard_switches_entries">
<item>Switches off</item>
<item>Switches on</item>
</string-array>
<string-array name="dashboard_switches_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="dashboard_columns_entries">
<item>One</item>
<item>Two</item>
<item>Three</item>
</string-array>
<string-array name="dashboard_columns_values">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
6. In Settings.apk/res/values/attrs.xml add these
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
<attr name="switchClass" format="string" />
7. Open Settings.apk/res/values/colors.xml
add these
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
8. Open Settings.apk/res/values/dimens.xml
add this
Code:
<dimen name="button_size">30.0dip</dimen>
9. Open settings.apk/res/values/string.xml
add these
Code:
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
Save and Close all
Continued in Next post
Final
Continuation
10. open settings.apk/res/xml/dashboard_categories.xml
add this Any where you like ( i had added under personal header setting )
If under Personal Header then follow this
Find this
Code:
<dashboard-category android:id="@+id/personal_section" android:title="@string/header_category_personal" android:key="@string/category_key_personal">
Below that add this
Code:
<dashboard-tile android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
If you want to add any logo then add this ( Example ) android:icon="@drawable/ic_settings_krypton"
it look like this
Code:
<dashboard-tile [COLOR="red"]android:icon="@drawable/ic_settings_krypton"[/COLOR] android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
and then place the icon in drawable folder in name of ic_settings_krypton and done...!
Now compile and Decompile ... now open
Settings.apk\smali\com\android\settings\kryp\krypton.smali
in that change the public id
Code:
<public type="xml" name="[COLOR="red"]krypton_settings[/COLOR]" id="[COLOR="red"]0x7f080089[/COLOR]" />
Done....!
Compile and Replace with your settings and test
And how this works will be explained in next post
Done Forget to mention me if you use my work
Adding more Preference xml layouts
Apologize for my explanation
The Krypton.smali is linked with krypton_settings.xml where it acts as Dashboard Header over settings part
example.smali is a preferenceScreen Fragments which is linked to kryp_example.xml
So handlerpreferences can be run trough the example.smali fragment
How to add more Preference settings in krypton Dashboard preference
1. copy the example.smali and paste in it with different name like.. displaysettings.smali
2. Open that displaysetting.smali and replace all example to displaysettings
3. the same way create a xml ( kryp_example / kryp_displaysettings )
4. Now in displaysetting.smali change kryp_example to kryp_displaysettings and save
and in krypton_settings.xml add this
add this
Code:
<PreferenceScreen android:id="@+id/example_control" android:title="Basic" android:summary="example of basic pref" android:fragment="com.android.settings.kryp.settings.[COLOR="Red"]displaysettings[/COLOR] " />
So in this Way you can add as many you like to have
How Preferences Work:-
Here The Complete mod work on Key preferences
android:key
android:title = write your title
android:defaultValue = it can be "true" (on) "false" (off) / "1" (on) "0" (off) by default
android:summary = summary msg never change on action.. static msg shown
android:summaryOn = summary msg below shown when status is enabled
android:summaryOff = summary msg below shown when status is disabled
android:icon="@null" will show no icon , if its android:icon="@drawable/ic_settings_krypton" then add an icon in drawable in name of ic_settings_krypton.
android:max="24" will end max to 24 from 1
android:min="2" will start from 1 till max given
unitsRight="" units may be dp/ dip / sec Right meant will Show on right side of seek bar pref
unitsLeft="" units may be dp/ dip / sec Right meant will Show on left side of seek bar pref
Switch preference
Code:
<SwitchPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="[COLOR="red"]true[/COLOR]" android:summaryOn="Shown" android:summaryOff="Hidden" />
CheckBox Preference
Code:
<CheckBoxPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="false" android:summaryOn="Shown" android:summaryOff="Hidden" />
SeekBar Preference
Code:
<com.android.settings.kryp.settings.prefs.SeekBarPreference android:max="24" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="1" min="1" unitsRight="" />
ListPreferences
Code:
<com.android.settings.kryp.settings.prefs.MyListPreference android:entries="@array/entries" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="8" android:dialogTitle="Dialog title" android:entryValues="@array/values" />
ColorPreferences color Hex code ff737373 change as you need
Code:
<com.android.settings.kryp.settings.prefs.ColorPickerPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="\#ff737373" alphaSlider="true" />
EditText Preferences
Code:
<com.android.settings.kryp.settings.prefs..MyEditTextPreference android:defaultValue="simpletext" android:key="[COLOR="Red"]Main_key[/COLOR]" android:title="Title" />
ohppppppppppppp.... done.!
Have fun guys
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
+1
Verstuurd vanaf mijn F8331 met Tapatalk
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
Pandemic said:
+1
Verstuurd vanaf mijn F8331 met Tapatalk
Click to expand...
Click to collapse
Its a complete Customized from your part bro
So it vary from device to device
Only so i havent gave any SS
If you want to see How my settings look like
Then Check These Screen shots
https://forum.xda-developers.com/showpost.php?p=68806751&postcount=2
Wow looks nice, status bar its great
When I decompile settings, and try to recompile, it doesnt work. I dont get a log, or anything! It just keeps on recompiling. Any ideas? I have used every version of apktool I could get my hands on.
Thanks
venkat kamesh said:
hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Click to expand...
Click to collapse
great work.... :good:
i got succeeded on this
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Hamidreza2010 said:
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Click to expand...
Click to collapse
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
bro i have supersuer mod
but please tell me how can i do final part ?
https://forum.xda-developers.com/showpost.php?p=70574874&postcount=2
i mean part 10
wait for your help or please update second post.thanks
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
@Hamidreza2010
What Venkat is saying is you need to add new tile on the android-manifest.xml file
it is the project manifest file for any standard android app.
Decompiling an apk would also decompile the manifest file in plain english.
you can look at the file with notepad++ and see that there are many activities and permissions and other primitive android class's objects are being manifested so that the delvik VM can know which class can run their objects and which cant.
Maybe a new tile needs to be mentioned [initialized] there somehow to add it 
 @venkat kamesh can explain the rest i think
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Hamidreza2010 said:
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Click to expand...
Click to collapse
What problem? You can do this on N
panzerox123 said:
What problem? You can do this on N
Click to expand...
Click to collapse
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Hamidreza2010 said:
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Click to expand...
Click to collapse
That I'm not sure of, sorry... I'm still on marshmallow unfortunately...
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Hamidreza2010 said:
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Click to expand...
Click to collapse
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
venkat kamesh said:
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
Click to expand...
Click to collapse
OK bro Thanks
Remember to you later
Have a nice day bro

Categories

Resources