[Q] Help need with modifying the SystemUI - Verizon Samsung Galaxy S III

hello i need your help with modifying the systemui.apk from touchwiz.
to start off i have decomplied the systemui.apk and framework-res.apk in my android dev linux vmware machine, i did load in the framworks + the twframework.
what i am trying to do is remove the brigness slider and the quick setting toggles from the notifaction bar and i did so by removing these lines from layout/tw_status_bar_expaneded.xml and i edited it on eclipse
<com.wanamlite.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_height" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel androidrientation="horizontal" android:id="@id/quicksetting_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
and
<LinearLayout androidrientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
after i did that i recomiled it with apktool and it had no problems, i copyed the orignal androidmanifest and meta-inf into the modified apk, zipaligned and made a flashable zip
when i booted the phone i had no status bar and the systemui was crashing so i restored it and i got it back but now i have no mtp connection to the computer nor do i have adb

Related

Removal of Carrier from Notification Bar

So far all my searches on how to remove the carrier from the drop down notification bar focus on changing the string value to something else or blanking it out. I would like to remove that whole section. I am on Rogers and my carrier is not listed in eri.xml, so that is not an option anyway.
I found some interesting info on this site:
http://www.absolutelyandroid.com/ui-tweaks-on-cm6-a-tutorial/
which explained some bits inside status_bar_expanded.xml from the framework-res.apk. I am not that familiar with the code (yet) but wondered what would happen if I removed the chunk that refers to "plmnLabel" and "spnLabel"? Could I safely remove that wasted space that tells me what I already know (that I'm on Rogers network).
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.ExpandedView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:directionality="leftToRight"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:background="@drawable/status_bar_header_background" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="Red"]<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0">
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>[/COLOR]
<TextView android:textSize="14.0sp" android:textColor="#ff000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.server.status.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/noNotificationsTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/ongoingTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/latestTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.server.status.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.server.status.ExpandedView>
The only reason I don't intend to remove the next level of nested FrameLayout tags is because the Clear button appears in it. I'm not sure what to do about that.
Eventually, I would like to figure out how to add power control toggles to this are (much like some other themes/roms have done).
Any thoughts?
I found a little more info (not directly helpful to what I want to do) that will help blank the carrier if that is all you want to do.
My carrier is not listed in my eri.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<EriFile VersionNumber="1357" NumberOfEriEntries="12" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="64" IconIndex="1" IconMode="0" EriText="T-CDMA 64" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="65" IconIndex="65" IconMode="0" EriText="T-CDMA 65" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="66" IconIndex="1" IconMode="0" EriText="T-CDMA Ext 66" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="67" IconIndex="67" IconMode="0" EriText="T-CDMA Ext 67" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="68" IconIndex="68" IconMode="0" EriText="T-CDMA Roam 68" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="69" IconIndex="69" IconMode="1" EriText="T-CDMA Ext 69" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="70" IconIndex="70" IconMode="1" EriText="T-CDMA Roam 70" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="71" IconIndex="1" IconMode="0" EriText="T-CDMA Ext 71" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="72" IconIndex="72" IconMode="0" EriText="T-CDMA Ext 72" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="73" IconIndex="73" IconMode="0" EriText="T-CDMA Roam 73" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="74" IconIndex="74" IconMode="1" EriText="T-CDMA Ext 74" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="75" IconIndex="75" IconMode="1" EriText="T-CDMA Roam 75" CallPromptId="0" AlertId="0" />
</EriFile>
But I did find a file located on my phone that lists many providers with their details (from all continents):
/etc/customization/content/com/sonyericsson/r2r/client/preloaded_config.xml
Gonna take a browse through that and look for "Rogers".

GUIDE - [Tab SystemUI][ALL]

Good day devs, I have something new here not new but I think it is. It works in higher API than GB that I was running, So I willpost it here.
If there is a problem with this post, kindly PM me sir.
What we will be doing is somehow like this, the picture at the left is my modified UI, and the right picture will be our outcome.
{
"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"
}
As I was inspired by Sir [email protected]'s SystemUI, I want to make it tab also, as I cant decompile his UI and study the code, I thought about Sir b16h22 for his Multipanelflipper, but it was text so I made it on my own class and follow some trick from evox-4 x SystemUI by the use of custom views and sorta intents like what he did. Let we mod again.
Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt. Thanks.
What we will be needed:
Patience
APK-Tool
Algorithm
Basic smali and xml
Your very own SystemUI
Know how to decompile APK
Instruction:
1. Download the zip file from the download link.
2. Decompile your very own SystemUI.
3. Extract the download link and paste it in your UI.
4. At the ids, add these before </resources> at ids.xml under values folder
Code:
<item type="id" name="tabbutton">false</item>
5. Now we will modify your expanded,
Below this code,
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
Add this,
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
6. And before this line
Code:
</com.android.systemui.statusbar.ExpandedView>
Add this,
Code:
</com.pineapple.TabUI.TabsContent>
7. Now this is the tricky part, as I am not familiar with the particular name of this (LinearLayout, RelativeLayout FrameLayout) ehh, you understand me what I am saying right sir?
Make the Expanded something like this,
Code:
<com.pineapple.TabUI.TabButton........../>
<com.pineapple.TabUI.TabButton...........>
<LinearLayout>First Layout</LinearLayout>
<LinearLayout>Second Layout</LinearLayout>
<LinearLayout>Third Layout</LinearLayout>
</com.pineapple.TabUI.TabsContent>
If you cant follow sirs, kindly compare it with my stock.
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="140.0dip" android:layout_height="42.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/flipper" android:background="#00000000" 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:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.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="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.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="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<Button android:textSize="13.0sp" android:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="Clear" android:layout_alignTop="@id/dateview" android:layout_alignParentRight="true" style="?android:attr/buttonStyleSmall" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- SecondLayout -->[/B]
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- ThirdLayout -->[/B]
</ScrollView>
</com.pineapple.TabUI.TabsContent>
8. Save it, and recompile.
9. Decompile the APK again (We only did these because we register the added resources)
10. Go to public.xml and find these (the ids are bit different than yours,)
Code:
<public type="drawable" name="tab1" id="0x7f02009c" />
<public type="drawable" name="tab2" id="0x7f02009d" />
<public type="drawable" name="tab3" id="0x7f02009e" />
<public type="id" name="tabbutton" id="0x7f090029" />
11. Now here comes the smali part, Now go to smali/com/pineapple/TabUI/*
Find this smali file, TabsContent.smali
at the TabsContent.smali, find this
0x7f050001 and change it to the public id of your "<public type="id" name="tabbutton" id="0x7f090029" />" So in mine I will change 0x7f050001 to 0x7f090029
12. Open the smali file, TabButtons.smali and find this ids.
0x7f020001 and change it according to the ids of tab1, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020001 to 0x7f02009c
0x7f020002 and change it according to the ids of tab2, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020002 to 0x7f02009d
0x7f020003 and change it according to the ids of tab3, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020003 to 0x7f02009e
13. Save everything and compile your SystemUI and push or flash it, I recommend flashing.
Download Link:
PINEAPPLEOWL
Note/Ads: Lenox V2.1 have this kind of UI.
Credits:
b16h22 for some comparison with his very own MultiPanelSwitcher
serajr for inspire for his awesome UI
LenoxDevs for there support
android.developers.com
thanks for the guide but this is double post with http://forum.xda-developers.com/showthread.php?t=2526114
My phone don't have
Code:
com.android.systemui.statusbar.ExpandedView
what's file name?
nhymxu said:
My phone don't have
Code:
com.android.systemui.statusbar.ExpandedView
what's file name?
Click to expand...
Click to collapse
check where your layouting of expanded is sir.
Sent from my GT-S5360 using Tapatalk 2
thanks. It's work.
But I don't need 3 tab. 2 is enough.
Can you modify smali code to 2 tab, tab button is toggle button like android 4.2
Thanks
Force close while clicking tabbuttons
E/AndroidRuntime( 289): java.lang.RuntimeException: Error receiving broadcast Intent { act=pineappleTabUI2 } in [email protected]
E/AndroidRuntime( 289): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
E/AndroidRuntime( 289): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 289): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 289): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 289): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 289): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 289): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 289): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
E/AndroidRuntime( 289): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
E/AndroidRuntime( 289): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:112)
E/AndroidRuntime( 289): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 289): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 289): at com.pineapple.TabUI.TabsContent$2.onReceive(TabsContent.java:27)
E/AndroidRuntime( 289): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
E/AndroidRuntime( 289): ... 10 more
D/DATA ( 318): [DSST(0)] pollstate() : reason = data network state changed
D/zfn ( 318): pollStateDone,smsCounter is null
I/TelephonyRegistry( 202): notifyServiceState: 0 home Vodafone T.N. Vodafone T.N. 40443 EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
D/DATA ( 318): [DSST(0)] Poll ServiceState done: oldSS=[0 home null null null EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] newSS=[0 home null null null EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false]
D/CallManager( 318): handleMessage (EVENT_SERVICE_STATE_CHANGED)
V/PhoneApp( 318): Action intent recieved:android.intent.action.SERVICE_STATE
D/NotificationMgr( 318): updateNetworkSelection()...state = 0 new network
Solved ... didn't added the id in tabcontent :silly:
PineappleOwl said:
check where your layouting of expanded is sir.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
sir, how can define state of selected tab? in your guide with 3 png image that using to show the tab, but it's not easy to know the tab that focused and selected. plz tell me how to add state to the selected tab.
sorry for bad english and thanks for your guide :good:
awesome
NYC guide bro....
can u tell me the difference between
http://forum.xda-developers.com/showthread.php?t=2577709
this & ur guide
---------- Post added at 07:38 AM ---------- Previous post was at 07:16 AM ----------
Oohhlala said:
sir, how can define state of selected tab? in your guide with 3 png image that using to show the tab, but it's not easy to know the tab that focused and selected. plz tell me how to add state to the selected tab.
sorry for bad english and thanks for your guide :good:
Click to expand...
Click to collapse
u can add that urself its just an XML work....
don't put the PNG name directly
just make an XML in drawables
put this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/PNG_name" />
<item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/PNG_name_pressed" />
<item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/PNG_name_pressed" />
<item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/jb_normal" />
<item android:state_pressed="true" android:drawable="@drawable/PNG_name_pressed" />
</selector>
just name that XML to any name & use that name instead of PNG name

[GUIDE] JB/KK style close drag handle on ICS

Hello!
i wanted to share a guide on how to make JB/KK styled close drag handle.
If you don't know what it means take a look at the screenshots below.
Things Required
1)how to decompile and recompile apk
2)SystemUI.apk which you want to mod
3)notepad++
4)a good working brain
so first decompile systemUI.apk and navigate into res/layout
and open status_bar_tracking.xml
replace This code
HTML:
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:id="@id/closeImg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
with this
HTML:
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="35.0dip">
<ImageView android:layout_gravity="bottom" android:background="@drawable/status_bar_close" android:clickable="true" android:layout_width="fill_parent" android:layout_height="35.0dip" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
then download the res.zip from the attachments and merge(place it) it to the specified folders in \res
now recompile and flash or push and Enjoy

Guide How To Natively Change Lock Screen Carrier Label Text Verizon S5

Guide How To Natively Change Lock Screen Carrier Label Text Verizon S5
First thing you need to do is decompile Keyguard.apk located in system/privapp
Find keyguard_emergency_carrier_area.xml in res/layout-sw360dp.
Look for line: "should be line 8"
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceMedium" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/carrier_text" androidaddingBottom="5.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#7f000000" android:shadowDy="2.0" android:shadowRadius="2.0" android:textAllCaps="@bool/kg_use_all_caps" android:fontFamily="roboto-regular" style="@style/keyguard_text_shadow" />
Change to and save file
<TextView android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" androidaddingBottom="5.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:text="@string/mytext" android:singleLine="true" android:shadowColor="#7f000000" android:shadowDy="2.0" android:shadowRadius="2.0" android:textAllCaps="@bool/kg_use_all_caps" android:fontFamily="roboto-regular" style="@style/keyguard_text_shadow" />
Then open res/values/strings.xml
Look for line 304. Add a line right below line 304 as follows:
<string name="tts_temperature">Degree</string>
303 <string name="keyguard_guest_mode_help_text">"Swipe to switch to %s's home screen"</string>
304 <string name="keyguard_clock_with_battery">%s battery power</string>
305 <string name="mytext">PUT YOUR TEXT HERE</string>
306 </resources>
Where it says "PUT YOUR TEXT HERE" is where you enter whatever you want it to say on your lock screen.
Save file and compile Keyguard.apk
Push to System/privapp and Enjoy!!!

[Q]remove SIM Switcher from notification panel ?

Someone can point me to the XML file to MOD LGSystemUI and remove SIM switcher from notification panel ?
LG G2 mini D618 Stock 5.0.2
compared between the two status_bar_expanded
the msim_status_bar_expanded => when there is two sim card
the status_bar_expanded => when there is one sim card 2nd sim slot is empty
found two difference
- the first one
in status_bar_expanded those two lines :
Code:
<LinearLayout android:layout_gravity="top" android:id="@id/mascot_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/mascot_display_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
are replaced in msim_status_bar_expanded with those 3 lines :
Code:
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/msim_carrier_label" />
<include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" layout="@layout/subs_label" />
<include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
- 2nd one :
in status_bar_expanded this line
Code:
1<include android:visibility="invisible" layout="@layout/keyguard_status_bar" />
is replaced with this line in msim_status_bar_expanded
Code:
1<include android:visibility="invisible" layout="@layout/msim_keyguard_status_bar" />
any one knows with XML ??
tried replace contante of msim_status_bar_expanded with the one of the status_bar_expanded and i got FC

Categories

Resources