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
Related
Ok i will say by now i have become ok at decompiling and recompiling apks....... It took some time to see what i was doing wrong
This guide is for people who want to get mods like 1% battery, on screen ics buttons etc....
I am not a dev so i wouldn't be able to answer all your questions if you have any.....
This is for ics only as GB handles it's resources differently
Btw this isn't necessarily the right way to do it but it the fastest I think and it works for me every time
If you still need help or it still don't work for you PM me and i will try help when am free .....
Credit to _calum_ and memnoc for their awesome guides on decompiling and recompiling ics apks that showed me what i was doing wrong and thanks to xavierjohn22 by making autoapktool makes modding so much faster and easier.
Thanks to [] AL [] for his easy to follow guide which i used for inspiration
Software needed
Download and install 7-zip if you haven't already from here
Download notepad++ from here
It's a great text editor
Download autoapktool from here it's the second post make sure to thank xavierjohn22 for his amazing work -
Unzip it to your local disk you can name the folder whatever you want.
For example - C:\AutoAPKTool2.0.0
Ok Now we can start modding
Guide to editing systemui.apk
1% Battery icons
First search and get your favourite battery icon set... There should be 204 pngs
Now pull your systemUI.apk from system/app and copy it to _INPUT_APK in the autoapktool folder.... You can do this manually with adb commands or use android commander from here - http://androidcommander.com/
Make sure to make a backup just incase this mod doesn't work for you
Now go to the apktoolfolder and run AutoAPKToolMain.bat
Select option 21 and then 3
Make sure it says you're using apktool 1.4.1
Now select option 6 and follow the instrutions
Once it's decompiled navigate back to the _INPUT_APK folder
Open the systemUI folder then res then drawable-hdpi
Now copy all the 204 pngs into this folder
Now go back and copy stat_sys_battery.xml, stat_sys_battery_charge.xml into the drawable folder.
Download files from here
Now go back to AutoAPKToolMain.bat rerun it if you close it
Select option 7 follow the instructions....
Once it's finished recompiling navigate to SystemUI folder dist and you will see your new systemUI.apk...... Important don't push this back to your phone yet.
Now right click on the systemUI.apk.... 7-Zip --> Open archive
Now navigate back to the _INPUT_APK right click on your original systemUI.apk... 7-Zip --> Open archive
Now drag the res folder from the systemUI.apk(the one from the dist folder) into your original systemUI.apk.... click yes to updated then close it.
Now extract the resources.arsc from the systemUI.apk(the one from the dist folder)
Now rename you original systemui.apk (the one in the _INPUT_APK folder) to systemUI.zip
Now right click on the resoruces.arsc 7-Zip --> Add to archive... select your systemUI.zip folder...... Make sure archive format is zip, compression level is store and update mode is add and replace files....
Finally rename the systemUI.zip back to systemUI.apk
Now push systemUI.apk to system/app on your phone and make sure permissions are set to -rw-r-r
If your using android commander select push then select your systemUI.apk from your computer and push it to system/app....
you may get a error don't worry click ok
then rightclick on your systemUI.apk(the one on your phone now) and click properties make sure owner is set to read and write and group and all to read... If it's right it will say -rw-r-r chmod 644
Now reboot and enjoy your work
Awesomeness of ICS
Enabling On screen buttons
Credit to evilisto for his guide
Pull Framework-res.apk from system/framework on your phone using android commander or adb pull if you know how to use that
Copy it to _INPUT_APK folder in the autoapktool folder.
Run AutoAPKToolMain.bat and select option 1
Then select option 6 and follow the instrutions
Once it's decompiled navigate to the _INPUT_APK folder
Open the Framework-res folder then res then values then open bools.xml
Now find the line "config_showNavigationBar" and change it to true and save.
Then find "navigation_bar_height" and change it to 37.0 in dimens.xml
Now go back to AutoAPKToolMain.bat rerun it if you close it
Select option 7 follow the instructions....
Once it's finished recompiling navigate to Framework-res folder dist and you will see your new Framework-res.apk...... Important don't push this back to your phone yet.
Now right click on the Framework-res.apk.... 7-Zip --> Open archive
Now navigate back to the _INPUT_APK right click on your original Framework-res.apk... 7-Zip --> Open archive
Now drag the res folder from the Framework-res.apk(the one from the dist folder) into your original Framework-res.apk.... click yes to updated then close it.
Now extract the resources.arsc from the Framework-res.apk(the one from the dist folder)
Now rename your original Framework-res.apk (the one in the _INPUT_APK folder) to Framework-res.zip
Now right click on the resoruces.arsc 7-Zip --> Add to archive... select your Framework-res.zip folder...... Make sure archive format is zip, compression level is store and update mode is add and replace files....
Finally rename the Framework-res.zip back to Framework-res.apk
Now push Framework-res.apk to system/app on your phone and make sure permissions are set to -rw-r-r
If your using android commander select push then select your Framework-res.apk from your computer and push it to system/framework on your phone....
you may get a error don't worry click ok
then rightclick on your Framework-res.apk(the one on your phone now) and click properties make sure owner is set to read and write and group and all to read... If it's right it will say -rw-r-r chmod 644
Now reboot and enjoy your work
Mix and match???
Getting custom on screen buttons...
By now you should know what your doing so this will be short
Credit to atticus182 for his guide and amazing collection.... Thank him and download from http://forum.xda-developers.com/showthread.php?t=1413582
For This one you need systemUI.apk so decompile it and go to res folder then drawable-hdpi
Now copy the images you want from your favourite collection or you can mix them P.S you don't need the search since it's not enabled on our rom
Make sure for each one you choose it should be two pngs....
For example to change the home icon you need ic_sysbar_back.png and ic_sysbar_back_land.png....
Now recompile and push to your phone
Reboot and enjoy
Here is an example of what I have done
http://dl.xda-developers.com/attachdl/fdb1e0e2ef2659f9cd1577378f6088b5/4f52f12d/9/3/0/5/4/5/Screenshot_2012-03-02-19-42-08.jpg
http://dl.xda-developers.com/attachdl/5047d9e539ae988f59e8c546557ae4aa/4f52f132/9/3/0/5/4/6/Screenshot_2012-03-04-04-29-58.jpg
http://dl.xda-developers.com/attachdl/cc4c1d633e4d569c068b41f6d02d05d5/4f52f136/9/3/0/5/4/7/Screenshot_2012-03-04-04-30-17.jpg
And one for me
Sent from my MB525 using XDA App
[ACS][MOD][ICS]Status Bar Animation/Transparent/Themed Mods/ by shane637
Sidz4u said:
And one for me
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
Looool......
Found a new awesome mod tutorial tomorrow
Here is a preview-
http://www.youtube.com/watch?v=PaW-jzbMs6o&feature=player_embedded
http://forum.xda-developers.com/showthread.php?t=1406729
CM9 Reloaded Statusbar Mod - Toggles page, centered clock and more by rob43
http://forum.xda-developers.com/showthread.php?t=1531222
Another one confirmed to be working on our defy by nogoodusername, Gazm4n and me.... If you have any mods you will have to reapply them
Change ICS lockscreen animation to different styles by evilisto
Credit and Thanks to evilisto for his awesome work and guide. Thank him here
evilisto said:
2) much easier way
1) decompile you rom's framework.jar using apktool.
2) go to framework.jar/smali/com/android/internal/widget/multiwaveview
3) download this file.
- for stock, AOSP or CM9 based rom : http://www.mediafire.com/?1wkbjt1bxsqsjnr
- for AOKP based rom : http://www.mediafire.com/?zb4mm1aaas1c8oc
this zip contain MultiWaveView.smali. replace original file with this one.
4) recompile.
5) done
-----------------------------------------------------------------------------
time to theme
: you have to replace lockscreen related PNGs in framework-res.apk.
framework-res.apk/res/drawable-hdpi or mdpi or xhdpi...
- ic_lockscreen_chevron_down.png
- ic_lockscreen_chevron_left.png
- ic_lockscreen_chevron_right.png (important)
- ic_lockscreen_chevron_up.png
and if you want, change lockscreen handle too.
- ic_lockscreen_handle_normal.png
- ic_lockscreen_handle_pressed.png
all my works are here (for hdpi).
1) default honeycomb ripple : http://www.mediafire.com/?7ktduz5dhsmzq6p
2) chrome logo :
download : http://www.mediafire.com/?osjng768zznfeh6
3) android logo
download : http://www.mediafire.com/?56sjs541bij3ygu
4) AT Field style (octagonal ripple)
download : http://www.mediafire.com/?t8lrdkr23nex7pc
5) Google Play logo
download : http://www.mediafire.com/?1vbc3ctdc7p94j4
Click to expand...
Click to collapse
Problem with recompiling....
Hey mate...a very nice tutorial...mm i went in a bit of problem.
i successfully pulled framework-res.apk and decompiled it. I edited the xml files too usin notepad++ then the problem came....while i recompile the folder, a notepad windows opens up showing errors.....any ideas how to fix that...?
Change ICS App Switcher to Windows Phone 7 Style
Full credits and thanks to evilisto for awesomes mods.....
Thank him here
evilisto said:
WP7(Mango?) app switcher is like this :
and i made similar thing by modifying ics app switcher layout.
preview :
flashable mod is originally posted in nexus s theme forum.
[MOD] Change ICS App Switcher to Windows Phone 7 Style
this mod is related to framework-res.apk and SystemUI.apk so making universal version for any devices is difficult. so i write this simple guide for other rom / device users.
-----------------------------------------------------------------------------
* framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
Code:
<dimen name="thumbnail_height">305.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
these values are wvga devices only. if you have mdpi or xhdpi device, you have to adjust these values suitable to your screen size.
* SystemUI.apk
- /res/values/bools.xml
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- /res/values/drawables.xml
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
- /res/values/dimens.xml
Code:
<dimen name="status_bar_recents_thumbnail_width">192.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height">305.0dip</dimen>
- /res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="100.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
and you'd better to edit landscape layout too..
- /res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="115.0dip" android:layout_height="183.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
- /res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
-----------------------------------------------------------------------------
Thanks to brucekey in rootzwiki
(this mod is based on his WEBAOKP mod.)
-----------------------------------------------------------------------------
Click to expand...
Click to collapse
If you are anything like me and get annoyed by battery percentage being displayed, annoyed because you constantly check it and get a little paranoid when it gets low.... Here is a quick mod for you.
Removing Battery Percentage from Statusbar
Decompile SystemUI.apk
Open systemui/res/layout/status_bar.xml.
Find the line :
Code:
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android: paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
Change that line to:
Code:
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android: paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" [B]android:visibility="gone"[/B] style="@style/StatusBarNotificationText" />
Save the file.
Compile SystemUI.apk
Copy Meta-Inf and AndroidManifest.xml from stock SystemUI.apk to your modded one.
That's it.
Then copy it to /system,set permissions to -rw-r-r.
Then copy it to /system/app.
Reboot the phone.
That is just a copy/paste from http://forum.xda-developers.com/showthread.php?t=1930377
Verified as working fine for me. About bloody time.
Also, battery icon mods are a piece of cake using Rom Toolbox.
And, don't forget to use your stock framework apk and install it properly with apktool.
(apktool if framework.apk)
There are many great howto guides for apktool if you get stuck.
Cheers
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>
Yow Guys, Im kimkimkim09. Today Im Going to Teach you how to add Five Tabs On SystemUI.I Did This Mod on an AOSP statusbar. This can be implemented om GB Devices.The smali files were owned by my master PineappleOwl.So, big credits and thousand thanks for his permission.
Alright,Here We Go:
- First DOWNLOAD the zip file I Linked Below
LINK: http://upfile.mobi/597884
-Then EXTRACT that zip file I provided/linked above.
-Then, DECOMPILE your very own SystemUI.
-After that, MERGE the files that the zip file contains to your SystemUI.
NOTE: Here will be the noob-friendly guide of merging the files that my zip file contains.
-Put the "pineapple" folder to smali/com/pineapple
-Put these files inside your systemUI's layout folder
*kimmy_tab2.xml
*kimmy_tab3.xml
*kimmy_tab4.xml
*kimmy_tab5.xml
NOTE:This files were inside my zip
-Put these file into your systemui's drawable folder.These is the directory "systemui_src/res/drawable"
*tab_indicator.xml
NOTE:This file were inside my zip also.
-Put these png files inside your systemUI's drawable-ldpi , drawable-mdpi etc. folders.
*tab1.png
*tab2.png
*tab3.png
*tab4.png
*tab5.png
*tab_normal.png
*tab_pressed.png
NOTE:This pngs were also inside my zip.
-Open up your status_bar_expanded.xml and add this code.
Code:
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true">
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<include layout="@layout/kimtot" />
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
</FrameLayout>
NOTE:The Kimtot layout were the first layout.I separated it from status_bar_expanded.xml to make it neat.But You can directly code your first layout there in the place of the kimtot layout.
-Add this to ids.xml
Code:
<item type"id" name="tabbutton">false</item>
-Recompile Your Work.
-Then Decompile It Again for the smali part.
-Open Up TabButton.smali and search for this value :
0x7f0202f1
And change it with the value of tab_indicator in your public.xml
NOTE:There are several 0x7f0202f1 inside this smali. Be sure to change it ALL with the value of tab_indicator in your public.xml
Then search this value:
0x7f0202fd
And change it with the value of tab1 in your public.xml
-Search these value also:
0x7f0202ff
And change it with the value of tab2 in your public.xml
-Search this also:
0x7f020301
And change it with the value of tab3 in your public.xml
-Search this value:
0x7f020320
And change it with the value of tab4 in your public.xml
-Search this value:
0x7f0202fe
And change it with the value of tab5 in your public.xml
-This will be the last part of the guide. Open up TabsContent.smali and search
0x7f0c00ef
And change it with the value if tabbutton in your public.xml
Recompile It And Sign It. Then Push!!
Thats all guys. This is my first guude here so sorry for the informality.
Press the thanks button guys, I cant accept donations coz I dont have credit card or anything.
Special Thanks to Master PineappleOwl For allowing me to make this guide.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
uhh where is the expanded code sir ?
Mranggapo said:
uhh where is the expanded code sir ?
Click to expand...
Click to collapse
Oh sorry about that. Im on the mobile app. Ill fix it. Please wait im going to change clothes.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Mranggapo said:
uhh where is the expanded code sir ?
Click to expand...
Click to collapse
Fixed It
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Fixed It
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
Wrap your code sir, so people doesnt confused
Mranggapo said:
Wrap your code sir, so people doesnt confused
Click to expand...
Click to collapse
Done. Heres a screeny guys.
kimkimkim09 said:
Done. Heres a screeny guys.
Click to expand...
Click to collapse
how about putting it in the bottom of status bar expanded?
jasper~ said:
how about putting it in the bottom of status bar expanded?
Click to expand...
Click to collapse
Putting the tab buttons at the bottom?
kimkimkim09 said:
Putting the tab buttons at the bottom?
Click to expand...
Click to collapse
Yeah. Is it possible?
jasper~ said:
Yeah. Is it possible?
Click to expand...
Click to collapse
Yeah its possible I think.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Yeah its possible I think.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
How do I put the toggles in other tab? For Example, in second tab.
jasper~ said:
How do I put the toggles in other tab? For Example, in second tab.
Click to expand...
Click to collapse
Place its code on kimmy_tab2.xml
kimkimkim09 said:
Place its code on kimmy_tab2.xml
Click to expand...
Click to collapse
From what code it started and end ?
jasper~ said:
From what code it started and end ?
Click to expand...
Click to collapse
Just cut the code if toggles from where you put it at the present and paste it in the other layouts.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Yow Guys, Im kimkimkim09. Today Im Going to Teach you how to add Five Tabs On SystemUI.I Did This Mod on an AOSP statusbar. This can be implemented om GB Devices.The smali files were owned by my master PineappleOwl.So, big credits and thousand thanks for his permission.
Alright,Here We Go:
- First DOWNLOAD the zip file I Linked Below
LINK: http://upfile.mobi/597884
-Then EXTRACT that zip file I provided/linked above.
-Then, DECOMPILE your very own SystemUI.
-After that, MERGE the files that the zip file contains to your SystemUI.
NOTE: Here will be the noob-friendly guide of merging the files that my zip file contains.
-Put the "pineapple" folder to smali/com/pineapple
-Put these files inside your systemUI's layout folder
*kimmy_tab2.xml
*kimmy_tab3.xml
*kimmy_tab4.xml
*kimmy_tab5.xml
NOTE:This files were inside my zip
-Put these file into your systemui's drawable folder.These is the directory "systemui_src/res/drawable"
*tab_indicator.xml
NOTE:This file were inside my zip also.
-Put these png files inside your systemUI's drawable-ldpi , drawable-mdpi etc. folders.
*tab1.png
*tab2.png
*tab3.png
*tab4.png
*tab5.png
*tab_normal.png
*tab_pressed.png
NOTE:This pngs were also inside my zip.
-Open up your status_bar_expanded.xml and add this code.
Code:
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true">
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<include layout="@layout/kimtot" />
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
</FrameLayout>
NOTE:The Kimtot layout were the first layout.I separated it from status_bar_expanded.xml to make it neat.But You can directly code your first layout there in the place of the kimtot layout.
-Add this to ids.xml
Code:
<item type"id" name="tabbutton">false</item>
-Recompile Your Work.
-Then Decompile It Again for the smali part.
-Open Up TabButton.smali and search for this value :
0x7f0202f1
And change it with the value of tab_indicator in your public.xml
NOTE:There are several 0x7f0202f1 inside this smali. Be sure to change it ALL with the value of tab_indicator in your public.xml
Then search this value:
0x7f0202fd
And change it with the value of tab1 in your public.xml
-Search these value also:
0x7f0202ff
And change it with the value of tab2 in your public.xml
-Search this also:
0x7f020301
And change it with the value of tab3 in your public.xml
-Search this value:
0x7f020320
And change it with the value of tab4 in your public.xml
-Search this value:
0x7f0202fe
And change it with the value of tab5 in your public.xml
-This will be the last part of the guide. Open up TabsContent.smali and search
0x7f0c00ef
And change it with the value if tabbutton in your public.xml
Recompile It And Sign It. Then Push!!
Thats all guys. This is my first guude here so sorry for the informality.
Press the thanks button guys, I cant accept donations coz I dont have credit card or anything.
Special Thanks to Master PineappleOwl For allowing me to make this guide.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
where is the kimtot layout ?
carlo_autor said:
where is the kimtot layout ?
Click to expand...
Click to collapse
You can replace that with your own layout that will gonna be the first tab. And next time, please do not qoute the whole post. Thanks!
Hey guys I know a lot of people are missing center clock for oreo. So I found a substratum theme called dark infusion which allows u to change location. I'm not really comfortable flashing other mods so I can't say if they work or not. But I have seen a few. I'm just verifying that this theme (paid) does work as u can see below. If anyone else wants to share other working mods pz do. I wanna thank @NepoRood for this find as he showed me.
There's a Substratum module called "Clock Tweaks for O" that will center the clock and also allow you to change the font and size.
Found another which I'm sure a lot of u know about but gravity box for Oreo works great on los 15.1 and crdroid. Not so good on benzo. For some reason I was having lag issues on stock also. But for those who don't you can move clock and there's a ton of other options. Make sure you install beta 2 of xposed the first one is buggy. Then search gravity or search Oreo under downloads section. Look for gravity box (o) and install activate and restart it has as many if not more customizations as any custom ROMs have fun
joeeboogz said:
Found another which I'm sure a lot of u know about but gravity box for Oreo works great on los 15.1 and crdroid. Not so good on benzo. For some reason I was having lag issues on stock also. But for those who don't you can move clock and there's a ton of other options. Make sure you install beta 2 of xposed the first one is buggy. Then search gravity or search Oreo under downloads section. Look for gravity box (o) and install activate and restart it has as many if not more customizations as any custom ROMs have fun
Click to expand...
Click to collapse
I'm running stock 8.1, magisk, with Gravity Box [O] and center clock is up and running
Gravity box as magisk module? Without xposed?
Please share link. Inside magisk there is no such module.
Send from D6603 with Tapatalk
makes2068 said:
Gravity box as magisk module? Without xposed?
Please share link. Inside magisk there is no such module.
Click to expand...
Click to collapse
I think he means xposed magisk version
For those that don't want to stock up on third party apps, a center clock is a fairly simple mod.
Tulsadiver said:
For those that don't want to stock up on third party apps, a center clock is a fairly simple mod.
Click to expand...
Click to collapse
Go on.....
dbama1 said:
Go on.....
Click to expand...
Click to collapse
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<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="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<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="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
You are the man! Thank you for sharing and for your work. :good:
Thanks
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<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="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
dunno why, but I can't scan that qr code
tiro_uspsss said:
dunno why, but I can't scan that qr code
Click to expand...
Click to collapse
You have to copy- paste.
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<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="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
Dear Sir, can you please tell me where to find the "SystemGoogleUI.apk" , thank you in advance.
suey86 said:
Dear Sir, can you please tell me where to find the "SystemGoogleUI.apk" , thank you in advance.
Click to expand...
Click to collapse
system/product/priv-app/SystemUIGoogle
Tulsadiver said:
system/product/priv-app/SystemUIGoogle
Click to expand...
Click to collapse
still can't found the folder, FYI Im using Masik x 5.2, thank you very much for ur respond
suey86 said:
still can't found the folder, FYI Im using Masik x 5.2, thank you very much for ur respond
Click to expand...
Click to collapse
Sorry, that was for Q. Pie is just system/priv-app/SystemUIGoogle but a custom rom is going to be just SystemUI, not SystemUIGoogle.
Tulsadiver said:
Sorry, that was for Q. Pie is just system/priv-app/SystemUIGoogle but a custom rom is going to be just SystemUI, not SystemUIGoogle.
Click to expand...
Click to collapse
one more question Sir if i may,, what app u are using for decompile it ?
suey86 said:
one more question Sir if i may,, what app u are using for decompile it ?
Click to expand...
Click to collapse
Ticklemyandroid
Tulsadiver said:
Ticklemyandroid
Click to expand...
Click to collapse
thank you so much Sir..