Related
This mod is based on Lidroid work so all credits goes to him, he updated his framework (lidroid-res) to api level 16 but he didn't port it to Samsung Jely bean Roms yet, so i decided to try to do it my self.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I packaged needed sources into SystemUI, to make it easy to port on next updates.
Let start, you need to decompile SystemUI.apk (use my repacked Apk_Manager if you get any issue).
Edit "SystemUI.apk\res\layout\tw_status_bar_expanded.xml" and make these changes, this will hide the stock status bar and use the new one:
Code:
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<com.wanamlite.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_height" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
Edit "SystemUI.apk\res\values\ids.xml" and add this Id:
Code:
++ <item type="id" name="exp_power_stat">false</item>
Edit "SystemUI.apk\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali" and make these changes :
Add mPowerWidget field :
Code:
.field mPostCollapseCleanup:Ljava/lang/Runnable;
++.field mPowerWidget:Lcom/wanamlite/systemui/quickpanel/PowerWidget;
.field mQueueLock:Ljava/lang/Object;
Method "addIcon" :
Code:
invoke-virtual {v1, v0, p3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
.line 1086
++iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanamlite/systemui/quickpanel/PowerWidget;
++invoke-virtual {v1}, Lcom/wanamlite/systemui/quickpanel/PowerWidget;->updateWidget()V
return-void
Method "makeStatusBarView" :
Code:
invoke-virtual {v13, v14}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V
++move-object/from16 v0, p0
++iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
++const v14, 0x7f0d0109
++invoke-virtual {v13, v14}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
++move-result-object v13
++check-cast v13, Lcom/wanamlite/systemui/quickpanel/PowerWidget;
++move-object/from16 v0, p0
++iput-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanamlite/systemui/quickpanel/PowerWidget;
.line 716
new-instance v13, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;
Code:
move-object/from16 v0, p0
iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {v1, v13, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
++move-object/from16 v0, p0
++iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanamlite/systemui/quickpanel/PowerWidget;
++invoke-virtual {v13}, Lcom/wanamlite/systemui/quickpanel/PowerWidget;->setupWidget()V
.line 806
sget-boolean v13, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->useTouchWizGUI:Z
Extract attached "wanamlite.zip" and copy both folders "com" & "wanamlite" to your "SystemUI.apk\smali\".
That's all, recompile your SystemUI.
After building, make sure your Id "exp_power_stat" got the public id "0x7f0d0109", if you got a different Id, use your new public Id in the "makeStatusBarView" method.
Download attached "system.zip" , you need to copy Toggle buttons resources "lidroid-res.apk" to "system/framework", and "QuickPanelSettings.apk" to "/system/app" (with permissions 644).
Use this updated guide to mod lidroid-res.
Enjoy!
good job :good:
Awesome
if only there is a flash zip ,will be simpler for non tech like me
Sent from my GT-I9300 using xda app-developers app
noobandroid said:
if only there is a flash zip ,will be simpler for non tech like me
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Already available on my Rom V3.2.
wanam please can u tell me how to use ur apk manager. as decompiling and compiiling a system app. thanks
wanam said:
Already available on my Rom V3.2.
Click to expand...
Click to collapse
I'm still on 3.1 cause the 3.2 make my phone hang when i flash it, tried couple times
Sent from my GT-I9300 using xda app-developers app
Appreciate your work man, thanks
noobandroid said:
I'm still on 3.1 cause the 3.2 make my phone hang when i flash it, tried couple times
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Strange...3.2 is perfect here...D/L fail?
Thanks so much Wanam
thanks wanam, systemui.apk upload please.
Thanks a lot again!!!
Sent from my Nexus 7 using Tapatalk 2
Thanks wanam for sharing this.....
Thanks your one of the best
Sent from my GT-I9300 using xda premium
Great work as always,
thank you for sharing this guide with us my friend
Thanks so much Wanam
Which xml edits to remove brightness slider?
Sent from my GT-I9300 using xda premium
rlorange said:
Which xml edits to remove brightness slider?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
it is located in systemui!
decompile systemui
go to res/layout/tw_status_bar_expanded.xml (open it using notepad++) and scroll down till you see this
PHP:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" [B]android:visibility="gone"[/B] android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
insert the one in the bold letters or (android:visibility="gone") and recompile systemUI!
Thank you Wanam
Thanks great work though 1 request. Can you please add power saving toggle?
About :
This is for make CM7 ROM like Jellybean ROM layout on statusbar.
Credits :
- To Cool
- GDX Team
- DCSMS
- big thanks goes to AChep
Contents :
Post one:
-> Set up
-> Make Clock, date and day
-> Make Network speed on statusbar
-> Customize clear button
Tool used :
-> Apk Tool / Apk Manager / ToolAlite
-> SystemUI.apk
-> Notepad++
Screenshot :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Guide 1.0 : How To Make Date, Time and Day on Status Bar Expanded
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my jelly.zip.. download on attachment below
3. copy 2 files blablablajellyblablabla.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here
4. now you need to modify status_bar_expanded.xml find on SystemUI.apk/res/layout/here
for first you need to find this line :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
paste this code below :
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
5. now recompile your file and push to system/app
=======================================================================================================
Screenshot :
Click to expand...
Click to collapse
Guide 2.0 : How To Create Network Traffic Speed on Status Bar
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my network.zip.. download on attachment below
3. copy folder smali to SystemUI.apk/here
4. now you need to modify status_bar.xml find on SystemUI.apk/res/layout/here
for first you need to find this line :
Code:
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
paste this code below :
Code:
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
5. now recompile your file and push to system/app
=======================================================================================================
Screenshot :
Click to expand...
Click to collapse
Guide 3.0 : How To Make Customization Your Clear Button
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my clearbutton.zip.. download on attachment below
3. copy 3 files to drawable-xxxx (xxxx is by your phone, mdpi, hdpi, ldpi or xhdpi)
4. now you need to modify xxx.xml (create by your self), styles.xml, status_bar_expanded.xml
for first you need to create clear_button.xml on drawable folder and copy this line to your xml file :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/btn_clear" />
<item android:state_pressed="true" android:drawable="@drawable/btn_clear_pressed" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_focused="true" android:drawable="@drawable/btn_clear_focus" />
<item android:drawable="@drawable/btn_clear_focus" />
</selector>
now, open the styles.xml on SystemUI.apk/res/values/here and copy this line in the end before </resources> line :
Code:
<style name="Awesome.Button" parent="@android:style/Widget.Button">
<item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">center</item>
<item name="android:background">@drawable/clear_button</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>
note : this line on red colors is pointed to your new xml file
Code:
<item name="android:background">@drawable/[COLOR="Red"]clear_button[/COLOR]</item>
now, open the status_bar_expanded.xml on SystemUI.apk/res/layout/here and find this line :
Code:
<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button"
modify the line styles or paste my line like this :
Code:
<TextView 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="@style/Awesome.Button" />
5. now recompile your file and push to system/app
Guide 4.0 : How to add settings button on Status Bar Expdanded
1. you need to decompile SystemUI.apk (please dont tell me how to do that)
2. download my zip from here and extract it
3. now you must modify status_bar_expanded.xml
for first you need to find this line :
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
after that line, add this line :
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
now, you must open string.xml and add this line on bottom :
Code:
<string name="accessibility_settings_button">System settings.</string>
open ids.xml and add this line on bottom :
Code:
<item type="id" name="settings_button">false</item>
now, you must extract settingsshortcut.zip.. extract to your decompiled folder and then compile your SystemUI.apk this is for got public id number.. so after compiled, you must decompile again.
open public.xml and StatusBarService.smali. Find this line on public.xml :
Code:
<public type="id" name="settings_button" id="[COLOR="Red"]0x7f090027[/COLOR]" />
the red color may be different
find this line on StatusBarService.smali :
Code:
.field mScrollView:Landroid/widget/ScrollView
and then add this line below :
Code:
.field mSettingsBut:Landroid/view/View;
.field private mSettingsButListener:Landroid/view/View$. OnClickListener;
now, find this line :
Code:
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStopTracing:Ljava/lang/Runnable;
and then add this line below :
Code:
.line 1703
new-instance v0, Lcom/android/systemui/statusbar/StatusBarService$8;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/StatusBarService$8;-><init>
(Lcom/android/systemui/statusbar/StatusBarService;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
return-void.
find this line again :
Code:
iput v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I
If not find, change v7 to v8
and then add this line below :
Code:
.line 333
const v7, [COLOR="Red"]0x7f090027[/COLOR]
invoke-virtual {v1, v7}, Lcom/android/systemui/statusba/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v7
iput-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
.line 334
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
invoke-virtual {v7, v8}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
*for the red color on .line 333 you must change to your settings_button on your public.xml
*if your find iput v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I so v7 change to v8. and the line will be like this :
Code:
.line 333
const v8, 0x7f090029
invoke-virtual {v2, v8}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v8
iput-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
.line 334
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
iget-object v9, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
invoke-virtual {v8, v9}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
now, copy StatusBarService$8.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here after that compile and push to system/app.
================================================== ================================================== ===
Guide 5.0 : How to add carrier label on statusbar close on
1. you need to decompile SystemUI.apk (please dont tell me how to do that)
2. now you must modify status_bar_tracking.xml
for first you need to find this line :
Code:
<com.android.systemui.statusbar.CloseDragHandle
and then paste this line below :
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
re-compile and push to system/app
for update
Nice tutorial
thanks
ariadelvana95 said:
Nice tutorial
thanks
Click to expand...
Click to collapse
with my pleasure..
I would spam your thanks button if you do this status bar for latest minicm7 2.2.1
Sent from my E15i using xda app-developers app
mantap !!! nice tutorial ! i've been searching for this tutorial and now i found it
what cm7 theme your using can u share?
heheh, that's my jelly bean statusbar
Where have I gone wrong?? Clear text is also displayed along with the image.
Have attached SystemUI.apk after doing all the mods (except network thing)
-------------------EDIT-----------------------------------
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Nice..
I like your guide..
Sent from my GT-S5660 using Tapatalk 2
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
m.ali.ozkaya said:
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
Click to expand...
Click to collapse
What is the point of your question??
:what:
Sent from my GT-S5660 using Tapatalk 2
Thanks man! nice guide
Next.....!
Guide 4.0 : How To Make Customization Your Setting Button ^0^
---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------
Xr01d_GT said:
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Click to expand...
Click to collapse
how to edit strings.xml?
thanks
Doesn't work for me unfortunately. CM7 on LG P990. No status bar.
Xr01d_GT said:
Where have I gone wrong?? Clear text is also displayed along with the image.
Have attached SystemUI.apk after doing all the mods (except network thing)
-------------------EDIT-----------------------------------
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Click to expand...
Click to collapse
sorry mate I late for reply just have low connection on Indonesia.. for make dissapear "clear" text on clear button you need to edit string.xml
so, this is guide for it..
Open your string.xml on SystemUI.apk/res/values/here and find this line :
Code:
<string name="blablabla_clear_button">Clear</string>
now, you must modify the syntact like this :
Code:
<string name="blablabla_clear_button"/string>
do the same if you want dissapear the text for Notifications, On Going, No Notifications
Imperticus said:
Doesn't work for me unfortunately. CM7 on LG P990. No status bar.
Click to expand...
Click to collapse
please attach your logcat mate, maybe i can help you
x-dira said:
Thanks man! nice guide
Next.....!
Guide 4.0 : How To Make Customization Your Setting Button ^0^
---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------
how to edit strings.xml?
thanks
Click to expand...
Click to collapse
Yes i will add this guide, but not now.. so wait for my guide updates..
m.ali.ozkaya said:
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
Click to expand...
Click to collapse
This is mod guide, so you can modding systemui.apk by your self.. not flasable.zip
AiphNday said:
Nice..
I like your guide..
Sent from my GT-S5660 using Tapatalk 2
Click to expand...
Click to collapse
thanks mate will update if i not busy
Mockingbird said:
I would spam your thanks button if you do this status bar for latest minicm7 2.2.1
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
just attach your systemui.apk
saldymhmd said:
mantap !!! nice tutorial ! i've been searching for this tutorial and now i found it
Click to expand...
Click to collapse
haha.. sama2 master
english : haha.. your welcome master
dredremon said:
what cm7 theme your using can u share?
Click to expand...
Click to collapse
i use my own rom.. not a theme
AChep said:
heheh, that's my jelly bean statusbar
Click to expand...
Click to collapse
yes mate.. hey everyone give thanks to AChep his owner of jelly layout date, time and day.. on updates i will add your name on OP post.. sorry i forget that.. i just remember you're a part of ginger dx team
Got it to work now
petrukgrinder said:
just attach your systemui.apk
Click to expand...
Click to collapse
Can u share systemui.apk
thanks
Hi mates I just want to share this guide of How to make a Floating Statusbar Like a Phablet/Tablet
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread
Hello, i just try to make my phone like a phablet/tablet with 4.0.4 or 4.1.2 android os last time, but i don't know i can make it a simple or not.
But now i can make it a "pop up manipulation" with some background manipulation too. So, here we go the tutorial will start now!
The first of this tutorial you must know about :
1. How to decompile/compile the apk file (don't ask here, you can search on google how to do that)
2. How to coding a xml file with some code
3. You must have a Apktool/ApkManager/ToolAlite by KuyaGaol
4. You must have a JDK and Latest Net framework for run Apktool/ApkManager/ToolAlite by KuyaGaol
5. You must take a beer! lol
Oke the first method is :
1. Download my Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. Decompile SystemUI.apk
5. Extract my Floating.zip to your drawable directory. (you can extract on "drawable" or "drawable-mdpi" folder).
6. Open status_bar.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"
and add this line code :
Code:
android:background="@drawable/trans"
or paste my line :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="center" android:id="@id/date" android:background="@drawable/trans" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
7. Open status_bar_expanded.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical"
and add this line code :
Code:
android:background="@drawable/bg"
or paste my line :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:background="@drawable/bg" android:focusable="true" android:descendantFocusability="afterDescendants"
8. Open status_bar_tracking.xml from /res/layout/here and find this code. modify and save :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" />
and change to this line :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_weight="1.0" />
Find this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
and change to this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/trans" android:scaleType="fitXY" />
9. Recompile your SystemUI.apk project and push it to your phone to the /system/app directory
Thanks To :
- Rizalien
- Official Group Galaxy Young Indonesia
- Official Group Sony Xperia X8 Indonesia
- Tiny Anastasia Development Group
- DCSMS
@petrukgrinder
- and YOU!
Click to expand...
Click to collapse
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
x-dira said:
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
sorry but i am using different device
Sent from my GT-S5360 using xda premium
can u share guide mode quick panel with volume & brightness... in screenshot
Thanks
Sent from my LG-P500 using xda app-developers app
OK like the title said this guide is for :
- Adding Actionbar back button like in ICS/JB
- Changing titlebar height and settings background
First thing if u want look of ICS/JB Settings go here
Second if u want Wifi/Bt buttons/toggles fo here
Also this, placing a custom icon on the title bar of a certain app here
What Is Required :
? Brain function - but not all function dont worry
? Rooted phone
? Notepad++(for opening build.prop files)
? Android Commander
? Tool for decompiling jar files - apkmanager/apktool/virtous or...
Click to expand...
Click to collapse
Adding Actionbar back button like in ICS/JB :
*This part is for adding back button in "About Phone" section but if u have free time (your gonna need it!)
same metod can be used for rest of Settings categories, just have to find them... like for "Development" changes
have to be made in development_prefs.xml, for Display there is display_settings.xml.. and androidmanifest.xml ofc!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. STEP - DECOMPILE Settings.apk
res/xml/device_info_settings.xml
add this line :
Code:
<CheckBoxPreference android:layout="@layout/actionbar_device_info_preferences" android:title="@string/about_settings" android:key="device_info_ab_settings" />
bellow:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
2. STEP - Open your Android-Manifest.xml and change :
Code:
<activity android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
to this :
Code:
<activity [COLOR="Red"]android:theme="@*android:style/Theme.Black.NoTitleBar"[/COLOR] android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
3. STEP - Download setfiles.rar and push files to your decompiled Settings.apk
4. STEP - Re-sign your apk and push it to system/app.
5. STEP - Because we made change to androidmanifest we have to make change to services.jar also
Decompile /system/framework/services.jar
com/android/server/PackageManagerService.smali, look for
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921 [COLOR="DeepSkyBlue"]- this number could be different in your files[/COLOR]
change it to :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
[COLOR="Red"] const/4 v6, 0x0
return v6[/COLOR]
6. STEP - Re-sign your apk and push it to system/framework.
Changing titlebar height and settings background :
1. STEP - DECOMPILE framework-res.apk
res/values/styles.xml
2. STEP - find this lines :
Code:
<style name="Theme">
bellow that find something like :
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
change it to :
Code:
<item name="windowBackground">@drawable/[COLOR="Red"]mybackground[/COLOR]</item>
then find :
Code:
<item name="windowTitleSize">25.0dip</item>
change it to :
Code:
<item name="windowTitleSize">[COLOR="Red"]48.0dip[/COLOR]</item>
3. STEP - Download framefiles.rar and push files to your decompiled framework-res.apk
4. STEP - Re-sign your apk and push it to system/framework.
If I forgot something dont upset it will be upload.
Credits:
Sniper Killer
Recognized Contributor
SpaceCaker
Recognized Themer / Contributor
reserved
background*
tomgacz said:
background*
Click to expand...
Click to collapse
changed.
help
Vesavoj said:
reserved
Click to expand...
Click to collapse
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
desire1990 said:
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
Click to expand...
Click to collapse
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
thank!!
Vesavoj said:
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
Click to expand...
Click to collapse
thank u so much!!! <3
---------- Post added at 01:55 AM ---------- Previous post was at 01:39 AM ----------
I tried, but failed :crying:
How to add Music VisualizerView - Graphic Equalizer animation style to Notification panel
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
XDA PORTAL : http://www.xda-developers.com/mod-spotlight-graphic-equalizer-for-notification-panel/
Hello good day XDA
This mod is a ported mod from CM11 Tiles, but I guess this mod will work to all device /OS which has Landroid/media/AudioManager.smali and Landroid/media/audiofx/Visualizer.smali
Oke let's start it
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- APKTOOL 2 ++
STEP 1
Decompile SystemUI.apk
Download attached smali and merge to your decompiled SystemUI
STEP 2
go to SystemUI.apk/res/layout/ status_bar_expanded.xml, gemini_status_bar_expanded.xml, tw_status_bar_expanded.xml, status_bar_tracking.xml , depend on your UI
and add the red line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap" android:animateLayoutChanges="false">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<ViewStub android:id="@id/ribbon_settings_stub" android:layout="@layout/ribbon_settings" android:layout_width="fill_parent" android:layout_height="@dimen/notification_min_height" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:padding="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</FrameLayout>
</LinearLayout>
[COLOR="Red"]<com.adi.rom.interface.MusicEqualizerVisualizer android:layout_gravity="bottom" android:id="@id/visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="48.0dip" android:layout_marginBottom="36.0dip">
<LinearLayout android:orientation="vertical" android:id="@id/custom_visualizer_view_panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.adi.rom.interface.VisualizerView android:id="@id/custom_visualizer_view" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</com.adi.rom.interface.MusicEqualizerVisualizer>[/COLOR]
</com.android.systemui.statusbar.phone.NotificationPanelView>
NEXT
SystemUI.apk/res/values/colors.xml
add the red line to end of it before </resources>
Code:
<color name="pie_selected_color">@android:color/holo_blue_light</color>
<color name="pie_long_pressed_color">#ff8ad5f0</color>
<color name="pie_outline_color">#dd0099cc</color>
[COLOR="Red"]<color name="custom_equalizer_fill_color">#96ffffff</color>[/COLOR]
</resources>
SystemUI.apk/res/values/dimens.xml
add the red line to end of it before </resources>
Code:
<dimen name="pie_navbar_height">85.0dip</dimen>
<dimen name="pie_sysinfo_radius">165.0dip</dimen>
<dimen name="pie_sysinfo_height">85.0sp</dimen>
[COLOR="Red"]<dimen name="custom_eqalizer_path_effect_1">6.0dip</dimen>
<dimen name="custom_eqalizer_path_effect_2">1.0dip</dimen>
<dimen name="custom_eqalizer_path_stroke_width">6.0dip</dimen>[/COLOR]
</resources>
SystemUI.apk/res/values/ids.xml
add the red line to end of it before </resources>
Code:
<item type="id" name="notification_inspect_item">false</item>
<item type="id" name="recent_remove_item">false</item>
<item type="id" name="recent_inspect_item">false</item>
[COLOR="Red"]<item type="id" name="custom_visualizer_view">false</item>
<item type="id" name="visualizer_view_panel">false</item>
<item type="id" name="custom_visualizer_view_panel">false</item>[/COLOR]
</resources>
SystemUI.apk/res/values/integers.xml
add the red line to end of it before </resources>
Code:
<integer name="blinds_pop_duration_ms">10</integer>
<integer name="notification_panel_layout_gravity">0x37</integer>
<integer name="settings_panel_layout_gravity">0x37</integer>
[COLOR="Red"]<integer name="custom_equalizer_divisions">4</integer>
<integer name="custom_equalizer_db_fuzz_factor">2</integer>
<integer name="custom_equalizer_db_fuzz">-10</integer>[/COLOR]
</resources>
Done and compile your SystemUI.apk
STEP 3
Decompile the newly recompiled again
next go to systemui/res/values/public.xml
leave it but keep it open
STEP 4
go to -SystemUI.apk/smali/com/adi/rom/interface/MusicEqualizerVisualizer.smali
search for 0x7f??????
Change the value in the smali with the value you got in your own public.xml
0x7f0900db
Code:
<public type="id" name="custom_visualizer_view" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0063
Code:
<public type="dimen" name="custom_eqalizer_path_stroke_width" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0b000e
Code:
<public type="color" name="custom_equalizer_fill_color" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0061
Code:
<public type="dimen" name="custom_eqalizer_path_effect_1" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0e0062
Code:
<public type="dimen" name="custom_eqalizer_path_effect_2" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0012
Code:
<public type="integer" name="custom_equalizer_divisions" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0014
Code:
<public type="integer" name="custom_equalizer_db_fuzz" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0d0013
Code:
<public type="integer" name="custom_equalizer_db_fuzz_factor" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
0x7f0900dd
Code:
<public type="id" name="custom_visualizer_view_panel" id="[COLOR="Red"]0x7f??????[/COLOR]" />
Click to expand...
Click to collapse
STEP 5
AndroidManifest.xml
Add the red line
Code:
<uses-permission android:name="android.permission.READ_DREAM_STATE"/>
<uses-permission android:name="android.permission.WRITE_DREAM_STATE"/>
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
[COLOR="Red"]<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>[/COLOR]
<application android:allowBackup="false" android:allowClearUserData="false" android:hardwareAccelerated="true" android:icon="@android:drawable/platlogo" android:label="@string/app_label" android:persistent="true">
<service android:exported="true" android:name="SystemUIService"/>
STEP 6
- Compile
- Sign it
- Disable Signature check
You can try using any of the keys that come with whatever apk signing tool you use, but you will more then likely end up with a SystemUI.apk that wont show as being installed, you must sign it with platfrom keys from CyanogenMod's android_build github https://github.com/CyanogenMod/android_build/tree/jellybean/target/product/security
Note !
for CM / AOSP from source whic has
STATIC TILES, you need to uncheck/disable Equalizer tile, otherwise the Visualizer will not appear on Notification panel
Screenshot
New Style !
How to add Selectable 8 style Music Visualizer - to Notification panel
http://forum.xda-developers.com/android/themes/guide-how-to-add-selectable-8-style-t3070550
well done om adi.thank you
Awesome :good:
Another Owesome guide from the master :good:
Thnks om, i'll try soon
thanks
awesome guide
you're the best
work fine in lollipop 5.1
in lockscreen.
working perfectly sir.. Thanks
Sir, can you share this visualizer and weather tiles?)
Please don't quote all OPs
and Request is off , sorry , you are out of the topic
the_vanya1 said:
Sir, can you share this visualizer and weather tiles?)
Click to expand...
Click to collapse
Well done @Adi Aisiteru Reborn :thumbup::thumbup::thumbup:
And don't quote the whole of OP, edit your post please @the_vanya1
Sir @Adi Aisiteru Reborn, how to Add Switch on/off to Setting?
sir just a question.
in the source files why dont you use codes like these to assign the parts to ID's in packages?
this will save time in editing all the 0x7f*** etc codes and will work better
Code:
int layoutID = getResources().getIdentifier("customequalizerview","id", "com.android.systemui");
LinearLayout Layoutey = (LinearLayout)findViewById(layoutID);
in the java source code.
i find this easier as all java mods i nowadays code with those codes as thats easier to port for other people.
its doable for images ids layouts etc almost anything its useable.
Just my 2 cents
nice mod bro
A neat idea! Thanks! I'll have to give it a try..
---------------------------------
Sent from Tapatalk
------------------------------
Works on odexed rom?
EDIT: if doesn't work, can i just deodex systemui.apk and apply changes?
Thank you OP. Great MOD. Great tutorial.
HTC One M8 running Sense 7.0 with Android 5.0.1
Can this be made as an xposed module? i think that would be cool if you can!
SpaceCaker said:
sir just a question.
in the source files why dont you use codes like these to assign the parts to ID's in packages?
this will save time in editing all the 0x7f*** etc codes and will work better
Code:
int layoutID = getResources().getIdentifier("customequalizerview","id", "com.android.systemui");
LinearLayout Layoutey = (LinearLayout)findViewById(layoutID);
in the java source code.
i find this easier as all java mods i nowadays code with those codes as thats easier to port for other people.
its doable for images ids layouts etc almost anything its useable.
Just my 2 cents
nice mod bro
Click to expand...
Click to collapse
Interesting sir spacecaker,
you can write it, and I'll post it as optional guide , thanks
FSadino said:
Works on odexed rom?
EDIT: if doesn't work, can i just deodex systemui.apk and apply changes?
Click to expand...
Click to collapse
you should be able to run just the deodexed SystemUI.apk..
just remember to remove the SystemUI.odex..