[Q] How to edit the Quick_settings menu of stock rom 2.3.3 for Desire Z - G2 and Desire Z Q&A, Help & Troubleshooting

Hi,
I found that the items of "auto rotation" and "auto brightness" were already compiled judging from the Quick_settings.xml in SystemUI.apk:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.preference.QuickSettings android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?android:textAppearanceLarge" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/title_bar" android:background="@drawable/status_bar_header_background" android:paddingLeft="9.0sp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:text="@string/status_bar_quick_settings" />
<ScrollView android:id="@id/scroll" android:background="#ffffffff" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
[B]<include android:id="@id/rotation" layout="@layout/status_bar_preference" />
<include android:id="@id/brightness" layout="@layout/status_bar_preference" />[/B]
<include android:id="@id/wifi" layout="@layout/status_bar_preference" />
<include android:id="@id/bluetooth" layout="@layout/status_bar_preference" />
<include android:id="@id/hotspot" layout="@layout/status_bar_preference" />
<include android:id="@id/gps" layout="@layout/status_bar_preference" />
<include android:id="@id/network" layout="@layout/status_bar_preference" />
<include android:id="@id/settings" layout="@layout/status_bar_preference" />
</LinearLayout>
</ScrollView>
</com.android.systemui.statusbar.preference.QuickSettings>
but these two items are not shown in the quick settings menu.
and I saw them in quicksettings.smali too:
Code:
.class public Lcom/android/systemui/statusbar/preference/QuickSettings;
.super Landroid/widget/LinearLayout;
.source "QuickSettings.java"
# static fields
[B].field private static final BRIGHTNESS:I = 0x4[/B]
.field private static final BT:I = 0x2
.field private static final GPS:I = 0x7
.field private static final HOTSPOT:I = 0x5
.field private static final ITEM_NUMBER:I = 0x8
.field private static final MOBILE_NETWORK:I = 0x3
[B]
.field private static final ROTATION:I = 0x0[/B]
.field private static final SETTINGS:I = 0x6
.field private static final WIFI:I = 0x1
I prefer to have "brightness" and "rotation" to "hotspot" and "bluetooth".
What can I do to achieve this?
I found somebody else needing this too, but there was no helpful information yet:
http://forum.xda-developers.com/showthread.php?t=1187663
Could someone help me?

nobody knows how to?

Related

(SOLVED) Single line notification date.

I would like to ask if any body knows how to change the date on the notification screen to a single line, rather than 2 lines.
I have a SGS2 with Neat Rom Lite v4.8 XWLSW
What i have done so far
1. Removed clock
2. Moved the settings button to the left of the screen
3. Tried changing <com.android.systemui.statusbar.policy.DateView........ to android:maxLines="1"
Which changes the date to a single line, but only 1 word of the date is shown (see screenshot)
4. Tried changing <com.android.systemui.statusbar.policy.DateView.......android:layout_width="wrap_content" to "150.0dip" to try and make the date container large, (no change)
5. Changed <com.android.systemui.statusbar.policy.DateView.......android:layout_height="wrap_content" to the "39.0dip" the same height as the notification header (no change)
I am thinking that i need to change something in DateView smali, but unfortunatly i do not know smali, and would not know which line to edit.
If anybody could offer any assistance, it would be greatly appreciated.
This is my tw_status_bar_expanded_header.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textSize="18.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="150.0dip" android:layout_height="39.0dip" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="1" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
</LinearLayout>
Mods, if i have posted this in the wrong section, please move accordingly.
Edit:- I finally worked it out
Checkout my tutorial Single Line Notification Date

[GUIDE] Add Ten Tabs Layout to SystemUI

This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005 # Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a # Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001 # your tab 1 drawable id here
const v1, 0x7f020003 # your tab 2 drawable id here
const v1, 0x7f020004 # your tab 3 drawable id here
const v1, 0x7f020005 # your tab 4 drawable id here
const v1, 0x7f020006 # your tab 5 drawable id here
const v1, 0x7f020007 # your tab 6 drawable id here
const v1, 0x7f020008 # your tab 7 drawable id here
const v1, 0x7f020009 # your tab 8 drawable id here
const v1, 0x7f02000a # your tab 9 drawable id here
const v1, 0x7f020002 # your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162 # your tab 1 drawable id here
const v1, 0x7f020164 # your tab 2 drawable id here
const v1, 0x7f020165 # your tab 3 drawable id here
const v1, 0x7f020166 # your tab 4 drawable id here
const v1, 0x7f020167 # your tab 5 drawable id here
const v1, 0x7f020168 # your tab 6 drawable id here
const v1, 0x7f020169 # your tab 7 drawable id here
const v1, 0x7f02016a # your tab 8 drawable id here
const v1, 0x7f02016b # your tab 9 drawable id here
const v1, 0x7f020163 # your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
{
"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"
}
Needed files:
View attachment TenTabsFiles.zip v0.1
Source Codes?
You want to play with the code? Add functions? Explore and Learn? Copy method snippets? You can check it at my GitHub.:good::
Suggestions? Comments? Bugs (I hope none)?
Just post a reply here and I will try to attend to it. (The word "try" always has a "catch" Exception, iykwim.)
thx, now i have 15 tabs
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
Note: I reversed the code above because xda recognizes it as an external link.
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005# Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a# Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001# your tab 1 drawable id here
const v1, 0x7f020003# your tab 2 drawable id here
const v1, 0x7f020004# your tab 3 drawable id here
const v1, 0x7f020005# your tab 4 drawable id here
const v1, 0x7f020006# your tab 5 drawable id here
const v1, 0x7f020007# your tab 6 drawable id here
const v1, 0x7f020008# your tab 7 drawable id here
const v1, 0x7f020009# your tab 8 drawable id here
const v1, 0x7f02000a# your tab 9 drawable id here
const v1, 0x7f020002# your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162# your tab 1 drawable id here
const v1, 0x7f020164# your tab 2 drawable id here
const v1, 0x7f020165# your tab 3 drawable id here
const v1, 0x7f020166# your tab 4 drawable id here
const v1, 0x7f020167# your tab 5 drawable id here
const v1, 0x7f020168# your tab 6 drawable id here
const v1, 0x7f020169# your tab 7 drawable id here
const v1, 0x7f02016a# your tab 8 drawable id here
const v1, 0x7f02016b# your tab 9 drawable id here
const v1, 0x7f020163# your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
View attachment 2884923View attachment 2884924View attachment 2884925
Needed files:
View attachment 2884926 v0.1
Click to expand...
Click to collapse
Tanks i am work in stockrom deodex :thumbup::thumbup:
Sent from my SM-N9000 using XDA Free mobile app
73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Click to expand...
Click to collapse
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
jasper~ said:
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
Click to expand...
Click to collapse
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment TenTabsFilesDecompiledWithapktoolMobile.zip
73R3WY said:
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment 2888827
Click to expand...
Click to collapse
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
Try apktool 4.4 sir , its support smali like this
jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
73R3WY said:
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
Click to expand...
Click to collapse
Ok. Thanks bro
This is what I get.
Sent from my GT-S5360 using XDA Free mobile app
sir can i change tab 1,2,3 with custom text?

"[MOD][GUIDE] Left Signal With Option"

Hello everyone this is my first time to share a guide sorry if the guide is not perfect and too long..
Forked from pxl roms..
thanks to that rom and to all kangstar...
[highlight]tested systemui.apk[/highlight]
custock dxlf1
hyperion 9
evolution x4
heres the guide now..
[highlight]requirement:[/highlight]
apktool or apk multitool
notepad++ or any text editor
systemui.apk
attached files,smalis and apks
now we will make some modification and edit your statusbar.xml and StatusBarPolicy.smali..
so sit back and focus to the guide...
[highlight]step 1[/highlight]
download and extract the attached files
[highlight]step 2[/highlight]
pull your systemui.apk in your system/app and decompile it..
[highlight]step 3[/highlight]
now go to statusbar.xml and open it w/ notepad or any text editor add this line.
HTML:
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
[highlight]after this code[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[highlight]OR compare your statusbar.xml to my statusbar.xml code (custock dxlf1)[/highlight]
[highlight]heres mine[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
[highlight]step 4[/highlight]
now we will remodified your StatusBarPolicy.smali of your decompiled systemui goto
smali/com/android/systemui/policy/StatusBarPolicy.smali
[highlight]and find this line (whole line)[/highlight]
Code:
.method private final updateSignalStrength()V
.
.
.
.
.
.
.
.
.
:pswitch_data_0
.packed-switch 0x2
:pswitch_2
:pswitch_0
:pswitch_0
:pswitch_1
.end packed-switch
.end method
[highlight]step 5[/highlight]
replace it w/ the code from attached files (.method private final updateSignalStrength) the whole code
[highlight]step 6[/highlight]
if your done replacing..
now find this line
Code:
.line 1725
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v1, "wifi"
invoke-virtual {v0, v4, v3}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
goto :goto_1
.end method
[highlight]step 7[/highlight]
and add the codes in attached files and add two space then paste(# virtual method) whole code..
[highlight]step 8[/highlight]
copy and paste the extaracted files in systemui_src/here (just do the said guide)
then recompile and signed..
[highlight]NOTE:[/highlight]
theres a bug if the signal is in left and try to select it in airplane mode and if no signal but,
not totally a bug its the png's they are not showing..just a full or normal signal only shows..
and it is tested that theres no problem to encounter w/ that...
[highlight]i upload my evolutionx4 StatusBarPollicy.smali for the code[/highlight]
[highlight]credits and thanks to:[/highlight]
pxl rom/kangstar
potato inc
lenox rom/dev
hyperion rom/dev
evolution x4 rom/dev
sir j.c aka mariozawa
sir aryne aka pineapple owl
ardi sumardi (custock dxlf1)
sir jose jharlo pagatpatan (tester)
good luck and enjoy...
thanks...
greets:
dennis salazar
[highlight]Samsung Galaxy Young (SGY S5360) PH group[/highlight]
Any screenshot bro? Thanks
den-den-salazar said:
Hello everyone this is my first time to share a guide sorry if the guide is not perfect and too long..
Forked from pxl roms..
thanks to that rom and to all kangstar...
tested systemui.apk
custock dxlf1
hyperion 9
evolution x4
heres the guide now..
requirement:
apktool or apk multitool
notepad++ or any text editor
systemui.apk
attached files,smalis and apks
now we will make some modification and edit your statusbar.xml and StatusBarPolicy.smali..
so sit back and focus to the guide...
step 1
download and extract the attached files
step 2
pull your systemui.apk in your system/app and decompile it..
step 3
now go to statusbar.xml and open it w/ notepad or any text editor add this line.
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" androidaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
after this code
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
(HERE)
OR compare your statusbar.xml to my statusbar.xml code (custock dxlf1)
heres mine
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" androidaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/notificationIcons" androidaddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/statusIcons" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/ticker" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" androidaddingLeft="6.0px" androidaddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
step 4
now we will remodified your StatusBarPolicy.smali of your decompiled systemui goto
smali/com/android/systemui/policy/StatusBarPolicy.smali
and find this line (whole line)
.method private final updateSignalStrength()V
.locals 15
.
.
.
.
.
.
.
.
.
switch_data_0
.packed-switch 0x2
switch_2
switch_0
switch_0
switch_1
.end packed-switch
.end method
step 5
replace it w/ the code from attached files (.method private final updateSignalStrength) the whole code
step 6
if your done replacing..
now find this line
.line 1725
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v1, "wifi"
invoke-virtual {v0, v4, v3}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
goto :goto_1
.end method
step 7
and add the codes in attached files and add two space then paste(# virtual method) whole code..
step 8
copy and paste the extaracted files in systemui_src/here (just do the said guide)
then recompile and signed..
NOTE:
theres a bug if the signal is in left and try to select it in airplane mode and if no signal but,
not totally a bug its the png's they are not showing..just a full or normal signal only shows..
and its tested that theres no problem to encounter w/ that...
credits and thanks to:
pxl rom/kangstar
potato inc
lenox rom/dev
hyperion rom/dev
evolution x4 rom/dev
sir j.c aka mariozawa
sir aryne aka pineapple owl
ardi sumardi (custock dxlf1)
sir jose jharlo pagatpatan (tester)
good luck and enjoy...
thanks...
greets:
dennis salazar
Samsung Galaxy Young (SGY S5360) PH group
Click to expand...
Click to collapse
ive attached the guide w/ other files..thanks
You should post your screenshot so somebody will understand what the guide is. But thanks anyway.
EDIT : Thanks for the Screenshot bro.
I dont have "StatusBarPolicy.smali"
will you find a solution?
the_vanya1 said:
I dont have "StatusBarPolicy.smali"
will you find a solution?
Click to expand...
Click to collapse
Try PhoneStatusBar.smali
nice guide sir, i've been looking for this guide but can u explain it for dual sim mobile like galaxy pocket duos gt-s5302?
den-den-salazar said:
Hello everyone this is my first time to share a guide sorry if the guide is not perfect and too long..
Forked from pxl roms..
thanks to that rom and to all kangstar...
[highlight]tested systemui.apk[/highlight]
custock dxlf1
hyperion 9
evolution x4
heres the guide now..
[highlight]requirement:[/highlight]
apktool or apk multitool
notepad++ or any text editor
systemui.apk
attached files,smalis and apks
now we will make some modification and edit your statusbar.xml and StatusBarPolicy.smali..
so sit back and focus to the guide...
[highlight]step 1[/highlight]
download and extract the attached files
[highlight]step 2[/highlight]
pull your systemui.apk in your system/app and decompile it..
[highlight]step 3[/highlight]
now go to statusbar.xml and open it w/ notepad or any text editor add this line.
HTML:
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
[highlight]after this code[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[highlight]OR compare your statusbar.xml to my statusbar.xml code (custock dxlf1)[/highlight]
[highlight]heres mine[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
[highlight]step 4[/highlight]
now we will remodified your StatusBarPolicy.smali of your decompiled systemui goto
smali/com/android/systemui/policy/StatusBarPolicy.smali
[highlight]and find this line (whole line)[/highlight]
Code:
.method private final updateSignalStrength()V
.
.
.
.
.
.
.
.
.
:pswitch_data_0
.packed-switch 0x2
:pswitch_2
:pswitch_0
:pswitch_0
:pswitch_1
.end packed-switch
.end method
[highlight]step 5[/highlight]
replace it w/ the code from attached files (.method private final updateSignalStrength) the whole code
[highlight]step 6[/highlight]
if your done replacing..
now find this line
Code:
.line 1725
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v1, "wifi"
invoke-virtual {v0, v4, v3}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
goto :goto_1
.end method
[highlight]step 7[/highlight]
and add the codes in attached files and add two space then paste(# virtual method) whole code..
[highlight]step 8[/highlight]
copy and paste the extaracted files in systemui_src/here (just do the said guide)
then recompile and signed..
[highlight]NOTE:[/highlight]
theres a bug if the signal is in left and try to select it in airplane mode and if no signal but,
not totally a bug its the png's they are not showing..just a full or normal signal only shows..
and it is tested that theres no problem to encounter w/ that...
[highlight]i upload my evolutionx4 StatusBarPollicy.smali for the code[/highlight]
[highlight]credits and thanks to:[/highlight]
pxl rom/kangstar
potato inc
lenox rom/dev
hyperion rom/dev
evolution x4 rom/dev
sir j.c aka mariozawa
sir aryne aka pineapple owl
ardi sumardi (custock dxlf1)
sir jose jharlo pagatpatan (tester)
good luck and enjoy...
thanks...
greets:
dennis salazar
[highlight]Samsung Galaxy Young (SGY S5360) PH group[/highlight]
Click to expand...
Click to collapse
Gửi từ GT-S5360 của tôi bằng cách sử dụng Tapatalk Mod by HzDragon
---------- Post added at 07:39 PM ---------- Previous post was at 07:22 PM ----------
den-den-salazar said:
Hello everyone this is my first time to share a guide sorry if the guide is not perfect and too long..
Forked from pxl roms..
thanks to that rom and to all kangstar...
[highlight]tested systemui.apk[/highlight]
custock dxlf1
hyperion 9
evolution x4
heres the guide now..
[highlight]requirement:[/highlight]
apktool or apk multitool
notepad++ or any text editor
systemui.apk
attached files,smalis and apks
now we will make some modification and edit your statusbar.xml and StatusBarPolicy.smali..
so sit back and focus to the guide...
[highlight]step 1[/highlight]
download and extract the attached files
[highlight]step 2[/highlight]
pull your systemui.apk in your system/app and decompile it..
[highlight]step 3[/highlight]
now go to statusbar.xml and open it w/ notepad or any text editor add this line.
HTML:
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
[highlight]after this code[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[highlight]OR compare your statusbar.xml to my statusbar.xml code (custock dxlf1)[/highlight]
[highlight]heres mine[/highlight]
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.PxL.statusbar.PhoneSignal android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_porn_signal" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
[highlight]step 4[/highlight]
now we will remodified your StatusBarPolicy.smali of your decompiled systemui goto
smali/com/android/systemui/policy/StatusBarPolicy.smali
[highlight]and find this line (whole line)[/highlight]
Code:
.method private final updateSignalStrength()V
.
.
.
.
.
.
.
.
.
:pswitch_data_0
.packed-switch 0x2
:pswitch_2
:pswitch_0
:pswitch_0
:pswitch_1
.end packed-switch
.end method
[highlight]step 5[/highlight]
replace it w/ the code from attached files (.method private final updateSignalStrength) the whole code
[highlight]step 6[/highlight]
if your done replacing..
now find this line
Code:
.line 1725
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v1, "wifi"
invoke-virtual {v0, v4, v3}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
goto :goto_1
.end method
[highlight]step 7[/highlight]
and add the codes in attached files and add two space then paste(# virtual method) whole code..
[highlight]step 8[/highlight]
copy and paste the extaracted files in systemui_src/here (just do the said guide)
then recompile and signed..
[highlight]NOTE:[/highlight]
theres a bug if the signal is in left and try to select it in airplane mode and if no signal but,
not totally a bug its the png's they are not showing..just a full or normal signal only shows..
and it is tested that theres no problem to encounter w/ that...
[highlight]i upload my evolutionx4 StatusBarPollicy.smali for the code[/highlight]
[highlight]credits and thanks to:[/highlight]
pxl rom/kangstar
potato inc
lenox rom/dev
hyperion rom/dev
evolution x4 rom/dev
sir j.c aka mariozawa
sir aryne aka pineapple owl
ardi sumardi (custock dxlf1)
sir jose jharlo pagatpatan (tester)
good luck and enjoy...
thanks...
greets:
dennis salazar
[highlight]Samsung Galaxy Young (SGY S5360) PH group[/highlight]
Click to expand...
Click to collapse
Gửi từ GT-S5360 của tôi bằng cách sử dụng Tapatalk Mod by HzDragon
sir im having problem with that

[GUIDE][GB] (Android 5.0) Android L Theme

Android L Expanded
​
{
"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"
}
Please read them all especially the description. Remind me if you find any
mistakes or errors on my guide, I'm not that good at making it and also when I
forgot something. For those who will encounter fcs, no statusbar, bootloops,
provide a logcat as long as possible so we can easily track the bug. Feel free
to suggest but please avoid suggesting for your personal use, suggest things
that is possible, (or maybe impossible xD) and things that will also be liked by
the users. Thank you for your cooperation, and for reading this messy guide xD
PS:
I avoid using smali editing by using method of getting pngs through its png name
and package name, thanks to sir @mariozawa Also, I avoid putting/creating
new pngs to keep the apk size small.
PSS:
You can freely use my customviews but please give the proper credits,
and also dont rename the smalis, ask me first if you want to.
Dont release a guide about my customviews because Ill make
a guide for them. Just ask me first and Ill let you A little respect
for my work because I made it for a couple of days xD
PSSS:
You can download my SystemUI.apk and framework-res.apk at the
attachment so you can easily compare it. Or you can flash it if you
are stock deodex, DXLF baseband
Click to expand...
Click to collapse
Video:
Android L Expanded Video
Description/How to use:
Android L Expanded look. I copy almost the whole interface, also the behavior. Not that much actually, because GB has limitations </3. Tap or hold or touch or slide the header, it will show the toggles and brightness slider. The close drag handle was invisible and it was 50.0px, kinda big, It was still at the bottom so you can close it from the bottom by holding the handle. Swiping the background of toggles will also hide them and will return to header-show only.
Features:
Custom Status Icons (Codes copy from statusbarpolicy to avoid bug and also to update always.)
Brightness Icon? (Hold it for flashlight)
Brightness slider (Codes copy from AOSP settings display brightness slider)
Updating/Clickable toggles
Wifi Name (Click also to update)
Bugs:
None for now. Behavior maybe but not that much.
Pre-requisites/Needed:
Do this guide for notifications and fix for media scanning AuliaYF Android L Notification View
Remove the stock toggles, follow this guide: mariozawa Remove STOCK TW toggles on expandedView or just move it to anywhere
Basic XML knowledge
Steps:
1.) Decompile SystemUI.apk.
2.) Open AndroidManifest.xml and add this code:
Code:
<activity android:name="com.tenten.LFlashLight">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
LOOK LIKE THIS:
Click to expand...
Click to collapse
3.) Save. Download androidL_smalis.zip at the attachment and extract it on smali/com folder.
4.) Download androidL_drawable.zip and extract it to res folder. (Or put/replace the pngs inside the zip to your res/drawable and res/drawable-ldpi)
NOTE:When transferring/replacing pngs, there must not be any png that has the same name. It happens because inside the zip, there was .9patch pngs but with the same name with not patched. It may cause recompiling error.
Click to expand...
Click to collapse
5.) Now... xml begins. Open res/layout/status_bar_tracking.xml
6.) Remove this code:
Code:
<View android:background="#ff8e979f" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<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" />
</com.android.systemui.statusbar.CloseDragHandle>
AND REPLACE THIS CODE TO THAT:
Click to expand...
Click to collapse
Code:
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="50.0px" />
7.) Close and Save. Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
Code:
android:layout_marginTop="2.0dip"
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<LinearLayout android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="70.0sp"
NOW FIND THIS:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.LatestItemView
FIND THE TEXTCOLOR AND MAKE IT LIKE THIS:
Click to expand...
Click to collapse
Code:
android:textColor="#ff000000"
8.)Close and Save. Open quickpanel_quick_settings.xml and delete all codes. (Dont be bother by deleting also ids, because quickpanel_quick_settings_for_datamode.xml has also it ) Replace it with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="vertical" android:id="@id/quickpanel_quick_settings" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.UpDownBoomPaw android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LWifiToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.tenten.LWifiName android:textStyle="bold" android:textSize="13.0sp" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LBluetoothToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LSignalToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.android.systemui.statusbar.CarrierLabel android:textStyle="bold" android:textSize="13.0sp" android:textColor="#ffffffff" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAirplaneToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAutoRotateToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
</com.tenten.UpDownBoomPaw>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
9.) Close and Save. Open status_bar.xml and delete this code:
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
PUT THIS CODE:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.DateView android:textColor="#00000000" android:id="@id/date" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10.) Close and Save. Lastly, Open status_bar_expanded.xml and delete all the codes. Replace with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"]<com.tenten.TogglesButton2 android:orientation="vertical" android:background="@drawable/quickpanel_title_background" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginTop="3.0px" android:layout_alignParentLeft="true">
<com.android.systemui.statusbar.Clock android:textSize="20.0sp" android:textStyle="normal" android:textColor="#ffdfdfdf" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LDateBar android:layout_marginLeft="3.0px" android:layout_marginTop="-2.0px" android:textSize="11.0sp" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="right|center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0px" android:layout_alignParentRight="true">
<com.tenten.LBluetoothBar android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="20.0px" />
<com.tenten.LWifiBar android:paddingLeft="2.0dip" android:layout_width="20.0px" android:layout_height="20.0px" android:scaleType="fitCenter" />
<com.tenten.LSignalBar android:layout_width="wrap_content" android:layout_height="15.0px" />
<com.tenten.LBatteryBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="23.0px" />
<com.tenten.LAlarmBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LSettingsBar android:paddingLeft="4.0dip" android:layout_width="20.0px" android:layout_height="20.0px" />
</LinearLayout>
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="3.0px" />
</com.tenten.TogglesButton2>[/COLOR]
[COLOR="Blue"]<com.tenten.LayoutAnimation1 android:background="@drawable/quickpanel_title_background" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<Button android:id="@id/clear_all_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:text="" />
<com.tenten.LBrightnessBar android:layout_gravity="center_vertical" android:layout_marginLeft="10.0px" android:layout_width="23.0px" android:layout_height="23.0px" />
<com.tenten.LseekBar android:layout_gravity="center_vertical" android:paddingLeft="12.0px" android:paddingRight="12.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginRight="10.0px" android:layout_weight="1.0" style="@style/tentenL_seekbar"/>
</com.tenten.LayoutAnimation1>[/COLOR]
[COLOR="Green"]<com.tenten.LayoutAnimation2 android:background="@drawable/quickpanel_plmn_background" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings" />
</com.tenten.LayoutAnimation2>[/COLOR]
[COLOR="DarkOrange"]<com.tenten.LayoutAnimation3 android:layout_marginRight="5.0px" android:layout_marginLeft="5.0px" android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdgeLength="16.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
</FrameLayout>
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>[/COLOR]
</com.android.systemui.statusbar.ExpandedView>
Explanation: The red code was the header, The blue code was the brightness slider, the green code was the toggles, and the orange code was the notification/ongoing
Click to expand...
Click to collapse
11.) Close and Save. Open values/styles.xml and add this code BEFORE </resources>
Code:
<style name="tentenL_seekbar">
<item name="android:maxHeight">2.0dip</item>
<item name="android:indeterminateOnly">false</item>
<item name="android:minHeight">0.0dip</item>
<item name="android:thumb">@drawable/seek_thumb</item>
<item name="android:indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="android:progressDrawable">@drawable/progress_horizontal</item>
</style>
12.) Save all, recompile your SystemUI and dont forget to sign it. Noooow.... wait there's more! hehe xD (Optional guides)
Optional Guide:
FLAGS:
Dim background (Original Behavior of Android L)
1.) Open smali/com/systemui/statusbar/StatusBarService.smali
Find this line:
Click to expand...
Click to collapse
Code:
.line 1327
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
MAKE .line 1327 to .line 1328
Click to expand...
Click to collapse
NEXT FIND THIS LINE:
Click to expand...
Click to collapse
Code:
.line 1326
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
MAKE .line 1326 to .line 1327
Click to expand...
Click to collapse
NOW INSERT THIS LINE BELOW THIS CODE:
Click to expand...
Click to collapse
Code:
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
INSERT THIS:
Click to expand...
Click to collapse
Code:
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
0x3f00 was the dim amount
Click to expand...
Click to collapse
LASTLY, SCROLL SLIGHTLY TO TOP AND YOU WILL FIND THIS:
Click to expand...
Click to collapse
Code:
const v4, 0x20300
REPLACE 0X20300 to THIS: 0x20302
Click to expand...
Click to collapse
Code:
const v4, 0x20302
YOUR STATUSBARSERVICE.SMALI WILL NOW LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
.line 1315
:goto_0
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x7de
const v4, 0x20302
move v2, v1
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
.line 1324
const/16 v1, 0x37
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
.line 1327
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
.line 1328
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
.line 1329
invoke-static {}, Landroid/view/WindowManagerImpl;->getDefault()Landroid/view/WindowManagerImpl;
move-result-object v1
iget-object v2, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingView:Lcom/android/systemui/statusbar/TrackingView;
invoke-virtual {v1, v2, v0}, Landroid/view/WindowManagerImpl;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 1330
return-void
:cond_0
move v5, v0
goto :goto_0
.end method
2.) Save and Close. When you expand the statusbar, it will make background dim.
or Unique Things AuliaYF [MOD][GUIDE]Blurred StatusBarExpanded
Click to expand...
Click to collapse
FULLSCREEN STATUSBAR: evanlocked [guide]full expanded view jb look for sgy
Swipe to Remove Notifications (because I remove the clear button xD) hansip [HOWTO]Implement Swipe to Remove Notification
Source:
Github Android L Custom Views Source​
CREDITS:​
StackOverFlow.com
Github.com
AOSP
@evanlocked
@PineappleOwl
@mariozawa
@AuliaYF
@jsarunotres
LenoxDevs
PotatoInc​
Android L Changing Color Statusbar [Reserved]
Reserved for android L status bar behavior
Android L Apks [Reserved]
Reserve for android L apks looks
man its hard awesome sir
pitot0909 said:
man its hard awesome sir
Click to expand...
Click to collapse
Read them carefully it's not that hard, you just need to replace replace replace and save save save. haha
Awesome work!! I had seen your video a month ago, and was always wondering, when you'll release! :cheers:
HELP
tentenponce said:
Reserved for android L status bar behavior
Click to expand...
Click to collapse
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
carlo_autor said:
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
Click to expand...
Click to collapse
If you dont have linearlayout, find this <com.android.systemui.statusbar.LatestItemContainer.
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Nice job bro :d
Mranggapo said:
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Click to expand...
Click to collapse
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
kevin_tn said:
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
Click to expand...
Click to collapse
You can apply it also on CM, but you need some knowledge about xml
Looks Good!
Awesome work man! Keep it up, and maybe modify stock apps to Android L look!
tentenponce said:
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
Click to expand...
Click to collapse
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
AuliaYF said:
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
Click to expand...
Click to collapse
I uploaded mine also haha. I got a lot of PMs to give my UI, because I think that if I just give it to them, I teach also how to become lazy. But I dont want to be bombed by "please give me your UI" hahaha. They can compare or simple flash it. By the way, the guide was just long, but it wasnt hard. No smali is included and many users did it on facebook. Just delete copy and replace, delete copy and replace. haha.
Mranggapo said:
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
Click to expand...
Click to collapse
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
HELP
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
carlo_autor said:
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
Click to expand...
Click to collapse
Use apktool 1.5.2
---------- Post added at 11:54 PM ---------- Previous post was at 11:53 PM ----------
tentenponce said:
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
Click to expand...
Click to collapse
Yeah i made it sir :3

G Flex 2 - Glance Feature

So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?
Sounds great! I'd love such a feature, it could be like an alternative to the quickcircle !
+1
Yes, I wanted to post this when I saw the glance feature and hoped somebody ported it.
+1 awesome feature ,would love to have this in my g3
Yeah, this would be one more of those little things that makes the G3 the best phone I've owned!
+1 from me
We have some pretty clever people here. Maybe someone can get into it and port it over
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file
Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
Click to expand...
Click to collapse
Hey @Kickoff great to see you here. Thanks for digging in and taking a look. Interesting that its visible on the G3 but just not populated the same. You think anyone currently theming on the G3 like yourself would be able to master the port?
Judging by the reaction a few people are keen.
Did you watch the video on youtube? I like the feature a lot.
Anybody knows if G3's hardware can actually report any events other than taps when screen is off?..
Maybe bring this thread over to the developers only section and lets work on it jointly.
Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
I put in the request to move.
Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
No real need yet. We need to find out what touchscreen controller Flex 2 is using. If it's the same as in G3 (Synaptics 93528A), then the feature is most likely portable. If not, chances are slim.
Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file
Click to expand...
Click to collapse
LGSystemUI_GFlex2
LGSystemUI\res\drawable\glance_wall_animation.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:id="@id/glance_wall_animation" android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/sunshine_01" />
<item android:duration="200" android:drawable="@drawable/sunshine_02" />
<item android:duration="200" android:drawable="@drawable/sunshine_03" />
<item android:duration="200" android:drawable="@drawable/sunshine_04" />
<item android:duration="200" android:drawable="@drawable/sunshine_05" />
<item android:duration="200" android:drawable="@drawable/sunshine_06" />
</animation-list>
LGSystemUI\res\drawable-xxhdpi
Code:
1- lg_glance_background.png
2- lg_glance_glow.png
3- sunshine_01.png
4- sunshine_02.png
5- sunshine_03.png
6- sunshine_04.png
7- sunshine_05.png
8- sunshine_06.png
LGSystemUI\res\layout\keyguard_simple_host_view.xml
Code:
Line 7: <View android:id="@id/keyguard_glance_background" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
LGSystemUI\res\layout\lg_glance_view_layout.xml
Code:
Line 2: <FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
Line 5: <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
Line 6: <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 11: <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 14: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 15: <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 16: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
Line 17: <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
Line 18: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
Line 21: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
Line 24: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
Line 30: <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 44: <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 58: <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
C:\apktool44\LGSystemUI\res\layout\msim_super_status_bar.xml (1 hit)
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\layout\super_status_bar.xml
Code:
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\values\dimens.xml
Code:
Line 188: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 189: <dimen name="glanceview_clock_height">130.0dip</dimen>
Line 190: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
Line 191: <dimen name="glance_digital_clock_font_size">46.669983dip</dimen>
Line 192: <dimen name="glance_digital_ampm_font_size">13.329987dip</dimen>
LGSystemUI\res\values\ids.xml
Code:
Line 254: <item type="id" name="keyguard_glance_background">false</item>
Line 287: <item type="id" name="glance_view_wall_container">false</item>
Line 288: <item type="id" name="glance_view_glow">false</item>
Line 289: <item type="id" name="glance_view_touch">false</item>
Line 290: <item type="id" name="glance_view_default_clock">false</item>
Line 291: <item type="id" name="glance_view_clock">false</item>
Line 292: <item type="id" name="glance_view_dual_clock">false</item>
Line 293: <item type="id" name="glance_view_dual_local_clock">false</item>
Line 294: <item type="id" name="glance_view_city_clock_view">false</item>
Line 295: <item type="id" name="glance_view_wall">false</item>
Line 296: <item type="id" name="glance_view_wall_animation">false</item>
Line 297: <item type="id" name="glance_view_wall_shade">false</item>
Line 875: <item type="id" name="glance_wall_animation">false</item>
LGSystemUI\res\values\public.xml
Code:
Line 211: <public type="drawable" name="glance_wall_animation" id="0x7f020076" />
Line 2023: <public type="drawable" name="lg_glance_background" id="0x7f0204a5" />
Line 2024: <public type="drawable" name="lg_glance_glow" id="0x7f0204a6" />
Line 2658: <public type="layout" name="lg_glance_view_layout" id="0x7f040043" />
Line 5104: <public type="dimen" name="glanceview_clock_bg_height" id="0x7f0e00b9" />
Line 5105: <public type="dimen" name="glanceview_clock_height" id="0x7f0e00ba" />
Line 5106: <public type="dimen" name="glanceview_effect_wall_height" id="0x7f0e00bb" />
Line 5107: <public type="dimen" name="glance_digital_clock_font_size" id="0x7f0e00bc" />
Line 5108: <public type="dimen" name="glance_digital_ampm_font_size" id="0x7f0e00bd" />
Line 5819: <public type="id" name="keyguard_glance_background" id="0x7f100117" />
Line 5852: <public type="id" name="glance_view_wall_container" id="0x7f100138" />
Line 5853: <public type="id" name="glance_view_glow" id="0x7f100139" />
Line 5854: <public type="id" name="glance_view_touch" id="0x7f10013a" />
Line 5855: <public type="id" name="glance_view_default_clock" id="0x7f10013b" />
Line 5856: <public type="id" name="glance_view_clock" id="0x7f10013c" />
Line 5857: <public type="id" name="glance_view_dual_clock" id="0x7f10013d" />
Line 5858: <public type="id" name="glance_view_dual_local_clock" id="0x7f10013e" />
Line 5859: <public type="id" name="glance_view_city_clock_view" id="0x7f10013f" />
Line 5860: <public type="id" name="glance_view_wall" id="0x7f100140" />
Line 5861: <public type="id" name="glance_view_wall_animation" id="0x7f100141" />
Line 5862: <public type="id" name="glance_view_wall_shade" id="0x7f100142" />
Line 6440: <public type="id" name="glance_wall_animation" id="0x7f100384" />
LGSystemUI\res\values-xhdpi\dimens.xml
Code:
Line 4: <dimen name="glanceview_clock_bg_height">130.0dip</dimen>
Line 5: <dimen name="glanceview_clock_height">110.0dip</dimen>
Line 6: <dimen name="glanceview_effect_wall_height">191.0dip</dimen>
LGSystemUI\res\values-xxhdpi\dimens.xml
Code:
Line 3: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 4: <dimen name="glanceview_clock_height">115.0dip</dimen>
Line 5: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
LGSystemUI\smali\com\android\keyguard\KeyguardSimpleHostView.smali
Code:
Line 635: sget v0, Lcom/android/keyguard/R$id;->keyguard_glance_background:I
LGSystemUI\smali\com\android\keyguard\R$id.smali
Code:
Line 142: .field public static final keyguard_glance_background:I = 0x7f100117
LGSystemUI\smali\com\android\systemui\statusbar\phone\StatusBarWindowView$LGGlanceView$1.smali
Code:
Line 127: .local v2, glanceTime:J
Line 319: .end local v2 #glanceTime:J
LGSystemUI\smali\com\lge\lockscreen\feature\LGFeatureConfig.smali
Code:
Line 1159: const-string v0, "config_feature_glance_view"
LGSystemUI\smali\com\lge\lockscreen\model\KeyguardModel$5.smali
Code:
Line 1902: const-string v9, "[Glance] keyguard get the glance intent first at "
LGLockScreenSettings_GFlex2
LGLockScreenSettings\res\values\bools.xml
Code:
Line 64: <bool name="config_feature_glance_view">true</bool>
LGLockScreenSettings\res\values\public.xml
Code:
Line 295: <public type="bool" name="config_feature_glance_view" id="0x7f09003d" />
This is what I found and tried to adjust .xml and codes smali and always FC.
I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.
Kickoff said:
I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.
Click to expand...
Click to collapse
Now the real question is how long will it take for AT&T to actually give us that update...
I'm still waiting on AT&T to approve the Atrix HD 4.4.2 update Motorola sent them at the end of 2013...
I'd offer to join in and help, but I'm busy with my own project at the moment. When I'm done with that, hopefully in 3 to 5 days, this will be the first thing I do after a reboot menu mod....makes me wish I knew of a way to decompile an app, patch it, and recompile it in an updater script....
bryjenko said:
So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?
Click to expand...
Click to collapse
easy? yo know that you need to mess with the kernel too to get this to work?
suljo94 said:
easy? yo know that you need to mess with the kernel too to get this to work?
Click to expand...
Click to collapse
Fairly easy were my words... I didntsay ot was going to be a walk in the park but compared to climbing everest... ?
Less talk more work guys
Anyway, Glance view is for OLED screens. You can turn on or off each pixel of OLED displays, thats why glance view is productive on G Flex 2. While on LCD screens, if you turn on one pixel, you have to turn on all screen.
That is to say glace view is possible to port, but it might not be as productive as on the lg g flex 2
it will be like the quickcover option... you see only the circle but the screen is all on...
g4 has it
Lg g4 doesnt have amolef but still has it....

Categories

Resources