Related
Mod the system ui for lock screen and recent apps in status bar. No extra running app required, just inbuild system keys. It will reduce the use of physical keys a bit.
Thanks hara74 for guide http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
SystemUI.apk\res\layout\tw_status_bar_expanded_header.xml
Added lines in blue colour
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">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="[COLOR="DeepSkyBlue"]#ffffffff[/COLOR]" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="2.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
[COLOR="DeepSkyBlue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/keylockwhite" android:layout_toLeftOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/recentwhite" android:layout_toRightOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" />[/COLOR]
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<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" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="58.0dip" 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/43_notify_quicksettings_normal" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
You can also add home button:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:background="@drawable/tw_quick_panel_setting_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:focusable="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_toRightOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="3" />
long pressing home will show recent apps and long press of keylock will give Device options (Power off, Data network mode, Restart.. etc)
How to install:
1. Rename /system/app/SystemUI.apk to SystemUI.apk.bkp (for backup)
2. Copy the downloaded SystemUI.apk in the /system/app
3. Change permission: rw-r--r--
4. Reboot if required.
Icon layout and bug fixed in new BG trans 50% zip.
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Javho said:
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Click to expand...
Click to collapse
You can put them where you prefer and link them in the xmls
Inviato dal mio GT-I9070 con Tapatalk 2
Javho said:
where you put the images of the new icons ? i can't fin the xhdpi folder ...
Click to expand...
Click to collapse
New icon images are in res\drawable-nodpi\ keylockwhite.png, recentwhite.png and home_normal1.png attached above if required.
Deleted battery indicator?
Deleted battery indicator?
P123456 said:
Mod the system ui for lock screen and recent apps in status bar. No extra running app required its just inbuild system keys. It will reduce the use of physical keys a bit.
Thanks hara74 for guide http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
How to install:
1. Rename /system/app/SystemUI.apk to SystemUI.apk.bkp (for backup)
2. Copy the downloaded SystemUI.apk in the /system/app
3. Change permission: rw-r--r--
4. Reboot if required.
Click to expand...
Click to collapse
arieligena said:
Deleted battery indicator?
Click to expand...
Click to collapse
No.
I ask because I can't see the indicator in your screenshot, isn't it ?
P123456 said:
No.
Click to expand...
Click to collapse
Can you tell me what xml you exactly editted and what in it ?
I have cm and will edit its systemui and try using it with stock
Just check this link http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
Download .png images above (or extract from my modded apk res\drawable-nodpi\ keylockwhite.png and recentwhite.png) rename them as required and put them in res\drawable-nodpi\ folder.
change this in that two copied lines...
android:src="@drawable/ic_sysbar_recent"
to
android:src="@drawable/*" //* is the name given by you to recent .png image without extension
And change
android:src="@drawable/ic_sysbar_lock"
to
android:src="@drawable/*" //* is the name given by you to lock .png image without extension
Save changes and recompile.
Is the background changing to blue on press?
P123456 said:
Just check this link http://forum.xda-developers.com/showpost.php?p=41120123&postcount=3
Download .png images above (or extract from my modded apk res\drawable-nodpi\ keylockwhite.png and recentwhite.png) rename them as required and put them in res\drawable-nodpi\ folder.
change this in that two copied lines...
android:src="@drawable/ic_sysbar_recent"
to
android:src="@drawable/*" //* is the name given by you to recent .png image without extension
And change
android:src="@drawable/ic_sysbar_lock"
to
android:src="@drawable/*" //* is the name given by you to lock .png image without extension
Save changes and recompile.
Click to expand...
Click to collapse
I tried making changes in cm's systemui.apk but it didnt had any tw_xxx file. I made changes in without tw_xxx file. And failed while recompiling. I used apktool to de and recompile. Not abd shell !
VooDoo` said:
Is the background changing to blue on press?
Click to expand...
Click to collapse
Yes now as setting icon.
szzlgupta said:
I tried making changes in cm's systemui.apk but it didnt had any tw_xxx file. I made changes in without tw_xxx file. And failed while recompiling. I used apktool to de and recompile. Not abd shell !
Click to expand...
Click to collapse
Use apk multitool http://forum.xda-developers.com/showthread.php?t=1310151
P123456 said:
Use apk multitool http://forum.xda-developers.com/showthread.php?t=1310151
Click to expand...
Click to collapse
Tomorrow now. Its late, 12:10AM :|
Thanks btw
Please dont have this SystemUI but whit the black backgroung?
Enviado desde mi GT-I9070 usando Tapatalk 2
can someone help me... i am try ing to add recent app buton to statusbar but I cannot recompilate the SystemUI.apk
but if i delete the "systemui:keyCode="187" " i can compilate the SystemUI
the rezult...it shows the button on statusbar but i doesn't do anything...
P.S. I am on CM10
can u mod it so that when we press the last button we get a variety of options like in s4 and not just the settings?
MFaust said:
can someone help me... i am try ing to add recent app buton to statusbar but I cannot recompilate the SystemUI.apk
but if i delete the "systemui:keyCode="187" " i can compilate the SystemUI
the rezult...it shows the button on statusbar but i doesn't do anything...
P.S. I am on CM10
Click to expand...
Click to collapse
You can get this lines in navigation_bar.xml or system_bar.xml (same layout folder) of your systemui. Copy and paste from there.
a strange thing happen...
i found the recent apps lines in "system_bar.xml" i put them in statusbar extended and still nothing
it shows the button but when i press the button nothing happen.. the phone onley vibrate but the recent apps menu dose not appear...
any suggestion?
MFaust said:
a strange thing happen...
i found the recent apps lines in "system_bar.xml" i put them in statusbar extended and still nothing
it shows the button but when i press the button nothing happen.. the phone onley vibrate but the recent apps menu dose not appear...
any suggestion?
Click to expand...
Click to collapse
You need the key code or the button won't know what to do .
Sent from 'The Highlands' with a phone.
This Is My First Guide So Please Forgive Me If I Forget Something
In This Guide I Will Show You How to Make A New Activity Like For example :
- Credits
- About Rom
And Etc.
Requirements:
Any Tool that can Decompile & Recompile with it's requirements
Notepad++ (Will Be Much Easier To Use This)
My Friend Saqib Nazm Has Made A Very Good Guide About How to Add Any Option In Settings.apk Which May Prove Helpful In This Guide : [Complete Tutorial] How to add any App/Option in Settings.apk
I Will Be Using Credits In About Phone As An Example:
First Of All You Should Know How To Decompile Settings.apk ( This Guide May Prove HelpFul : How to Decompile/Recompile Apk with Apk Multitool + Decompile/Recompile Jar Files
First Of All Extract And Decompile Your Settings.apk
_
Now Navigate To /res/xml/ And Open
- device_info_settings.xml (If You Want It In The About_Phone Section)
- Go Here If You Want To Add To Main Menu
Now Go To The End And Add (Or Whereever You Want It To Be)
Code:
<PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />
</PreferenceScreen>
{
"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"
}
_
Now Navigate To /res/values
And Open Strings.xml
Then Add This At The End
Code:
<string name="credits_activity_title">Credits</string>
<string name="device_credit">Credits</string>
<string name="device_credit_summary"></string>
<string name="credit_dev_header">Developed By:</string>
<string name="credit_dev_name">"Name Here"</string>
<string name="credit_header">Thanks To:</string>
<string name="credit_name">"-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here"</string>
Note : \n Is used to add a new line
_
Now Download The File From The Attachment And Paste The Files Into Your Decompiled Directory
_
Now Edit AndroidManifest.xml
And Add This To The End
Code:
<activity android:label="@string/credits_activity_title" android:name=".deviceinfo.Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
_
Now Recompile The Apk And Then Decompile it Again
_
In The Directory You Just Decompiled The Apk Navigate To /res/values/
And Open Public.xml
Search For : device_info_credits
And Copy The ID Beside What You Just Searched
Then Navigate To /smali/com/android/settings/deviceinfo/
And Open Credits.smali
And Find This Code
Code:
.line 20
const v0, [U]0x7f050039[/U]
Change the UnderLined Part To The ID You Just Copied From Public.xml
_
Now You May Recompile Your Settings.apk
Please Remember To Sign The APK
*ScreenShots Are Available Within The Hidden Contents*
*How To Change This For WhatEver You Want*
*Here I Will Be Explaining How You Can Modify This Guide To Include Whatever You Want*
First In /res/xml/device_info_settings.xml *OPTIONAL*
Change The Codes In Red To What You Desire
Change The Code In Green To What You Desire As Well But Be Cautious About This As Most Things Will Use This
Code:
<PreferenceScreen android:title="@string/[COLOR="Red"]device_credit[/COLOR]" android:key="[COLOR="Red"]credits_info[/COLOR]" android:summary="@string[COLOR="red"]/device_credit_summary[/COLOR]">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo[COLOR="Green"].Credits[/COLOR]" />
</PreferenceScreen>
_
Now In /res/values/Strings.xml *IMPORTANT*
Change The Codes In Red To What You Set In The Previous Step
Change The Codes In Green To Whatever You Want To Be Displayed
Code:
<string name="[COLOR="Red"]credits_activity_title[/COLOR]">[COLOR="green"]Credits[/COLOR]</string>
<string name="[COLOR="red"]device_credit[/COLOR]">[COLOR="green"]Credits[/COLOR]</string>
<string name="[COLOR="red"]device_credit_summary[/COLOR]"></string>
<string name="[COLOR="red"]credit_dev_header[/COLOR]">[COLOR="Green"]Developed By:[/COLOR]</string>
<string name="[COLOR="red"]credit_dev_name[/COLOR]">[COLOR="Green"]Name Here[/COLOR]</string>
<string name="[COLOR="red"]credit_header[/COLOR]">[COLOR="green"]Thanks To:[/COLOR]</string>
<string name="[COLOR="red"]credit_name[/COLOR]">"[COLOR="green"]-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here \n
-Name Here[/COLOR]"</string>
_
Now In The Attached File *OPTIONAL*
Rename The Both Files In My Settings.apk
The Smali FIle Rename To What You Set In Step 1 (The One In Green)
Inside the smali file change all the occurences accordingly
in Public.xml to get the ID use the name of the renamed xml file
Now In Android Manifest
Change The Stuff In Red To What You Have Already Set
Code:
<activity android:label="@string/[COLOR="Red"]credits_activity_title[/COLOR]" android:name=".deviceinfo[COLOR="Red"].Credits[/COLOR]">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Edit The xml file in my zip accordingly
And Now Follow My Guide
Ok wait @Sahaab
why to create a thread of you toke an example if this and its already here?
http://forum.xda-developers.com/showthread.php?t=2341389
Pandemic said:
Ok wait @Sahaab
why to create a thread of you toke an example if this and its already here?
http://forum.xda-developers.com/showthread.php?t=2341389
Click to expand...
Click to collapse
Try Creating A new activity with that guide
Right, that's the thing so many people asked me, glad that you made it here. I can just re-direct them here now
saqib nazm said:
Right, that's the thing so many people asked me, glad that you made it here. I can just re-direct them here now
Click to expand...
Click to collapse
Go ahead
And u said to make a guide so here it is
It took a while for me to do this for my ROM so I thought I wud
Sent from my LT18i
Hey
Sahaab
Click to expand...
Click to collapse
so i dont know how to deal with this error, any ideas
/home/dev/adt/apk/Settings/res/xml/device_info_settings.xml:42: error: Error parsing XML: no element found
USEFULL INFO
there is no line 42 , only line 41 (not even empty line 42)
ps i didnt change any of the given codes (too lazy and they are fine how they are , im not going to have a second credits menu am i?)
Pps Here is from line 30 to 41
Code:
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/fcc_equipment_id" android:key="fcc_equipment_id" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
[COLOR="Red"] <Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />[/COLOR]
<Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<com.sonymobile.settings.preference.IncludePreference settings:include="@xml/somc_add_device_info_settings" />
[COLOR="Red"] <PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />[/COLOR]
</PreferenceScreen>
Key
RED=ADDED
Envious_Data said:
so i dont know how to deal with this error, any ideas
/home/dev/adt/apk/Settings/res/xml/device_info_settings.xml:42: error: Error parsing XML: no element found
USEFULL INFO
there is no line 42 , only line 41 (not even empty line 42)
ps i didnt change any of the given codes (too lazy and they are fine how they are , im not going to have a second credits menu am i?)
Pps Here is from line 30 to 41
Code:
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/fcc_equipment_id" android:key="fcc_equipment_id" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
[COLOR="Red"] <Preference android:title="@string/rom_header" android:key="rom_header" android:summary="@string/rom_name" style="?android:preferenceInformationStyle" />[/COLOR]
<Preference android:title="@string/build_number" android:key="build_number" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<com.sonymobile.settings.preference.IncludePreference settings:include="@xml/somc_add_device_info_settings" />
[COLOR="Red"] <PreferenceScreen android:title="@string/device_credit" android:key="credits_info" android:summary="@string/device_credit_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Credits" />[/COLOR]
</PreferenceScreen>
Key
RED=ADDED
Click to expand...
Click to collapse
Either u forgot to edit manifest
Or forgot to paste the files
Sent from my LT18i
Sahaab said:
Either u forgot to edit manifest
Or forgot to paste the files
Sent from my LT18i
Click to expand...
Click to collapse
i did edit android.manifest , and i did paste the files
Lines 933 to lines 939
Code:
<activity android:theme="@style/Theme.Holo.DialogWhenLarge" android:label="@string/credits_activity_title" android:name=".deviceinfo.Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>
EDIT i could send you my Files so you could have a look your self?
Excellent contribution my friend!
Envious_Data said:
i did edit android.manifest , and i did paste the files
Lines 933 to lines 939
Code:
EDIT i could send you my Files so you could have a look your self?
Click to expand...
Click to collapse
Plz give whole decompiled settings here
I will look at them in about 8 hours
Sent from my LT18i
here
Sahaab said:
Plz give whole decompiled settings here
I will look at them in about 8 hours
Sent from my LT18i
Click to expand...
Click to collapse
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Envious_Data said:
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Click to expand...
Click to collapse
Ok atleast not few hours
I am fine with days
Sent from my LT18i
Envious_Data said:
Framework , app and decompiled app included Download below (ps since its a google link it will expire in a few days)
https://doc-0c-8o-docs.googleuserco...0117431&hash=mfc7p0gtv45irjehbs9ij0n0p19cpc91
Click to expand...
Click to collapse
umm it says i am not allowed to access the link :-/
Its working fine. User mistake.
Please read out the errors, apktool tells you everything, its really easy to fix.
jader13254 said:
Its working fine. User mistake.
Please read out the errors, apktool tells you everything, its really easy to fix.
Click to expand...
Click to collapse
Could you plz fix it for him?
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Envious_Data said:
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Click to expand...
Click to collapse
Well iTs 4:30 A.m here so hence I will look at it tmrw
Sent from my LT18i
Envious_Data said:
https://app.box.com/s/ziadp09v9m15pyjc4nwg
Better and less retared
Click to expand...
Click to collapse
okay , so i fixed it and am uploading
had to restart using the settings.apk u gave me so it probably lost the modifications u may have done
the problem was prob one of the mods u had done :-/
Envious data
Sahaab said:
okay , so i fixed it and am uploading
had to restart using the settings.apk u gave me so it probably lost the modifications u may have done
the problem was prob one of the mods u had done :-/
Envious data
Click to expand...
Click to collapse
okay , was it just the aditional text boxes that you removed?? what exactly did you do?
ps go here -> http://enviousdataswebsite.jimdo.com/credits/
Noob wanna share how to modified SystemUI on Galaxy Mega GT-I9152. For others,please compare it with yours.maybe this guide would help you...
I'd made mistake about how to remove Sim Icon on Statusbar,statusbar Expanded & enable Navigation bar. So I update the Guide...
REQUIREMENT: !!!
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
A. HOW TO FIX ERROR WHEN RECOMPILE SYSTEMUI.APKDecompile SystemUI.apk
Go to System/res/value/style.xml
add this line in the end of the line above "</resources>"
HTML:
<style name="SystemBarNotificationText">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">#ff999999</item>
</style>
<style name="SystemBarPanelSettingsRow">
<item name="android:orientation">horizontal</item>
<item name="android:background">?android:listChoiceBackgroundIndicator</item>
<item name="android:paddingRight">16.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">64.0dip</item>
</style>
<style name="SystemBarPanelSettingsIcon">
<item name="android:layout_width">64.0dip</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:scaleType">center</item>
</style>
<style name="SystemBarPanelSettingsContents">
<item name="android:textSize">18.0sp</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:layout_gravity">left|center</item>
<item name="android:layout_width">0.0dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="SystemBarPanelSettingsPanelSeparator">
<item name="android:background">@*android:drawable/divider_horizontal_dark</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">1.0dip</item>
<item name="android:layout_marginRight">0.0dip</item>
</style>
B. HOW TO FIX ERROR WHEN RECOMPILE FRAMEWORK-RES.APKDecompile framework-res.apk
go to framework/res/layout
open all this xml :
HTML:
keyguard_screen_password_landscape.xml
keyguard_screen_password_portrait.xml
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
keyguard_screen_unlock_landscape.xml
keyguard_screen_unlock_portrait.xml
find this in all that xml :
HTML:
@id/transport
in that line you will see :
HTML:
layout="@layout/keyguard_transport_control"
change to :
HTML:
layout="[email protected]/keyguard_transport_control"
do it for all xml I'd mentioned above
try to recompile systemui & framework without modifying anything.if succeed you can try to modifying...
Now,lets modifying...
1. Center ClockDecompile systemUI.apk
go to SystemUI.apk\res\layout\status_bar.xml
find this line & delete it:
HTML:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
then find this :
HTML:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
add this below it :
HTML:
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff339bc1" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" />
2. Remove Icon Sim on Status Bargo to SystemUI.apk\res\layout\signal_cluster_view.xml
Find this :
HTML:
<ImageView android:id="@id/sim_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" />
replace all that line with this :
HTML:
<ImageView android:id="@id/sim_icon" android:layout_width="0.0dip" android:layout_height="0.0dip" />
3. Remove Icon Sim on Status Bar Expandedgo to SystemUI.apk\res\layout\status_bar_expanded.xml
Find this :
HTML:
@id/quickpanel_dualsim_layout
change 0dip android:layout_height with to :
HTML:
0.0dip
4. 1% battery & Animation chargingdownload attached files and copy files to corresponding folders in SystemUI
5. Enable Navigation Bardownload attached files and copy files to corresponding folders in SystemUI if folder does not exist(drawables-xhdpi) create it. then add ic_lock_power_off.png to system/res/drawable hdpi...
Go to system/res/value/ids.xml
add this above </resources>
HTML:
<item type="id" name="quick_launch">false</item>
Go to system/res/value/strings
add this above </resources>
HTML:
<string name="accessibility_capture">Power toggle</string>
YOU MUST EDIT YOUR "build.prop" in folder /system too. if not your SystemUI will fc....
ADD THIS IN THE END OF YOUR "build.prop" :
HTML:
qemu.hw.mainkeys=0
Remove Text and Toggle Status :download attached files and copy files to corresponding folders in SystemUI
Thanks To :
- Allah SWT
- My beloved wife & childs
- @joehanh88
- @gharrington
- @Adi Aisiteru Reborn
- @barikke74
- Budi SemogaDermawan
- XDA forum
Flymeui on gt i9152
1. FrameworkDecompile framework-res.apk
got to framework/res/value/dimens.xml
find this :
HTML:
<dimen name="status_bar_height">
change 0dip to :
HTML:
<dimen name="status_bar_height">40.0dip</dimen>
Recompile
SystemUIDecompile SystemUI.apk
1. Go to System/res/layout/statusbar.xml
Replace all with this :
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<AnalogClock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:ellipsize="marquee" android:gravity="bottom|left|center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="45.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:singleLine="true" />
<ImageView android:id="@id/black_bg" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="45.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="20.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/notification_icon_area_alpha">
<TextView android:textSize="15.0dip" android:textColor="#ff339bc1" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/operatorLogoIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" />
<ImageView android:id="@id/operatorLogoIcon_org" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo_org" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="55.0dip" android:paddingRight="16.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="@dimen/system_icon_area_alpha">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="12.0dip" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="45.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="20.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:background="@drawable/status_bar_bg_tile" 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="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ff99cc00" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:textColor="#ff99cc00" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Recompile
Push your SystemUI first then framework after that...
PS : Fixed annoying black background after restart/reboot.just replace status_bar_bg_tile.png with mine...
here my screenshoot... a little bit different because I add custom background on statusbar & statusbar expanded header...
Sorry for my bad English...
reserved again...
keep it up :thumbup:!
@sitfire,
dear friends...
you're doing great...
nice share bro...
:good::good::good:
Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!
(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)
unclefab said:
Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!
(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)
Click to expand...
Click to collapse
Try to decomplit and complete it back then fix the error when try to complete. ..
Sent from my GT-I9205
---------- Post added at 08:35 PM ---------- Previous post was at 08:33 PM ----------
sitifire said:
reserved again...
Click to expand...
Click to collapse
Did you fine the torchlight and rip with ink effect. ...
Sent from my GT-I9205
unclefab said:
Selamat!
Aku sudah mencoba berbagai cara untuk menimbulkan navbar (mengedit SystemUi alias metode gharrington, mengedit framework-res.apk dll), tapi setiap kali gagal
Padahal aku lumayan tahu pakai apktool, dan tidak ada error waktu recompile, tapi setelah filenya dipush kembali ke dalam system dan hpnya direboot aku mendapat FC.
Kalau anda tidak keberatan mungkin anda bisa mod SystemUI.apk ku?
Linknya:
http://d-h.st/TQN
Terima kasih banyak!
(In english:
hi,
I have aready tried different ways to enable the navbar, (editing the SystemUi ala gharrington, editing framework-res.apk etc.) but everytime it fails.
I'm not too bad at using apktool, and I don't get any recompile errors, but everytime I push the file back into the system and reboot I get FC.
If you don't mind maybe you cold mod my SystemUI?
Here's the link:
http://d-h.st/TQN
Thanks a lot!)
Click to expand...
Click to collapse
did you edit build.prop as I said above?
I'd try with sgm 6.3 too & it works perfectly...
please read the guide slowly & carefully bro...
shazzl said:
---------- Post added at 08:35 PM ---------- Previous post was at 08:33 PM ----------
[/COLOR]
Did you fine the torchlight and rip with ink effect. ...
Sent from my GT-I9205
Click to expand...
Click to collapse
not yet bro...any link as reference,so I can compare it?thanks...
sitifire said:
did you edit build.prop as I said above?
I'd try with sgm 6.3 too & it works perfectly...
please read the guide slowly & carefully bro...
Click to expand...
Click to collapse
Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help
unclefab said:
Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help
Click to expand...
Click to collapse
here's a proved a made a navbar on galaxy mega 6.3.
http://forum.xda-developers.com/editpost.php?do=editpost&p=50488102
download systemui.apk in my post on that thread & compare it with yours.
you have posted in that thread too...and you said you delete the line "qemu.hw.mainkeys=0" and my guide add that line.
I can't download your ui because my data plan limited right now.I wanna upload a huge files now...maybe next time I help you bro...sorry & thanks...
sitifire said:
did you edit build.prop as I said above?
I'd try with sgm 6.3 too & it works perfectly...
please read the guide slowly & carefully bro...
not yet bro...any link as reference,so I can compare it?thanks...
Click to expand...
Click to collapse
for torchlight able follow this guidehttp://forum.xda-developers.com/showthread.php?t=2355931
for ink effect on ripple lockscreen here
i have mode this on my rom CML1... but the torchlight is not a wake i check logcat, i should active the framework file but dont know where to fine it
Mod guide
unclefab said:
Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help
Click to expand...
Click to collapse
the guide work on me i9205
@sitifire see my screen short ink effect...
if you want a small ampm in status bar just add systemui:ampmSmall="true"
SystemUI/res/layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
if you want to make date 2 line in the status bar expanded header
1. add this at SystemUI/res/values/strings.xml
Code:
<string name="status_bar_date_format_day_month">"EEEE
d MMMM yyyy"</string>
<string name="status_bar_date_format_month_day">"EEEE
MMMM d yyyy"</string>
2 add this at SystemUI/res/layout/status_bar_expanded_headerr.xml android:maxLines="2"
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:maxLines="2" />
Thank you
i will help you if i seat in frond my laptop if on my hp sorry to say...
i also have some mod about add 10 battry icon witch 1% incress. using og battry mod HOW TO ( folow this, is as simpele as 123 )
and how to add speed meter on status bar on this Galaxy Mega Themes and Apps.
shazzl said:
the guide work on me i9205
@sitifire see my screen short ink effect...
if you want a small ampm in status bar just add systemui:ampmSmall="true"
SystemUI/res/layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
if you want to make date 2 line in the status bar expanded header
1. add this at SystemUI/res/values/strings.xml
Code:
<string name="status_bar_date_format_day_month">"EEEE
d MMMM yyyy"</string>
<string name="status_bar_date_format_month_day">"EEEE
MMMM d yyyy"</string>
2 add this at SystemUI/res/layout/status_bar_expanded_headerr.xml android:maxLines="2"
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:maxLines="2" />
Thank you
i will help you if i seat in frond my laptop if on my hp sorry to say...
i also have some mod about add 10 battry icon witch 1% incress. using og battry mod HOW TO ( folow this, is as simpele as 123 )
and how to add speed meter on status bar on this Galaxy Mega Themes and Apps.
Click to expand...
Click to collapse
greats...thanks bro...I'll try it,hope get lucky following ink effect's guide...
sitifire said:
greats...thanks bro...I'll try it,hope get lucky following ink effect's guide...
Click to expand...
Click to collapse
It work but ink effect are so little, need more test on it...I dont have much time buzy on dev a kernel.... hey do you want how to build a kernel
unclefab said:
Of course I've edited build.prop!
Some months ago I had followed gharrington's method to enable the navbar on my galaxy grand and it worked, and it's actually an easy mod.
But for some reasons it doesn't work on my mega 6.3.
That's why I uploaded my systemui here, I would be interested to see if you can make it work, and in case you do I'll be even more interested to see how you did it.
Believe me, I've tried different ways and I know how to use apktool, it's not my first mod but still, I couldn't make it work.
Thanks in advance for any help
Click to expand...
Click to collapse
here's bro... http://www.mediafire.com/?xxmaqxo26rsdjka
Don't forget to add
qemu.hw.mainkeys=0
in the end of your build.prop
report back it works or not.thanks...
shazzl said:
It work but ink effect are so little, need more test on it...I dont have much time buzy on dev a kernel.... hey do you want how to build a kernel
Click to expand...
Click to collapse
not test it yet bro...?a bit busy on works... I don't know about making custom kernel...
For your phone I much I easy the are a repo aready u shuld set up you pc to ubuntu 12.04lts and set up android environment...
Sent from my GT-I9205 using xda app-developers app
shazzl said:
For your phone I much I easy the are a repo aready u shuld set up you pc to ubuntu 12.04lts and set up android environment...
Sent from my GT-I9205 using xda app-developers app
Click to expand...
Click to collapse
I don't know anything about linux and ubuntu bro...even in windows I just know office only...
could you make custom kernel for my device please...
sitifire said:
I don't know anything about linux and ubuntu bro...even in windows I just know office only...
could you make custom kernel for my device please...
Click to expand...
Click to collapse
I shuld ask permission k2wl on this first ohter wise it will be a same as i9205 kernel I build....
shazzl said:
I shuld ask permission k2wl on this first ohter wise it will be a same as i9205 kernel I build....
Click to expand...
Click to collapse
ok bro...k2wl ever made a kernel for my device but not add other features yet.same as stock kernel but its works...hope he and you could add others feature like oc and ram management...thanks bro...
SOLVED
Dekill93 said:
hy all ... i want to modify systemui, but I do not understand a bit ... anyone please help me .. :crying: :crying: :crying:
1. how to remove or hide the time and date in the status bar pulldown?
2. how to change the background BBM into a Wi-Fi AP background?
for more details you can see my pictures ..
thank you
Click to expand...
Click to collapse
Number One Solved
IMO bbm background is in bbm app, so you should search for png there
godlesplay said:
IMO bbm background is in bbm app, so you should search for png there
Click to expand...
Click to collapse
I just want to change the background BBM as background Wifi AP ... I've found in the framework-res.apk when I change no change whatsoever ... do you know where to change it?
sory i don't using cm 11
Dekill93 said:
I just want to change the background BBM as background Wifi AP ... I've found in the framework-res.apk when I change no change whatsoever ... do you know where to change it?
sory i don't using cm 11
Click to expand...
Click to collapse
you missunderstand!!!
he said, if u want to change the shown BBM background, you need to change IT IN THE BBM app!!! (not in framework-res)
& i guess with ''sory i don't using cm 11'' you are reffering to his SIGNATURE. its his signature NOT A MESSAGE TO YOU
atleast give him a thx, as he found out that the png is located in bbm app
bejunk said:
you missunderstand!!!
he said, if u want to change the shown BBM background, you need to change IT IN THE BBM app!!! (not in framework-res)
& i guess with ''sory i don't using cm 11'' you are reffering to his SIGNATURE. its his signature NOT A MESSAGE TO YOU
atleast give him a thx, as he found out that the png is located in bbm app
Click to expand...
Click to collapse
you try to see the background ap wifi .. it is in the framework-res.apk when I using a cm 10 background bbm and wifi ap its same .. is there something wrong on my framewok-res.apk have? sorry I think it's a message for me
sory my bad english
paste here your framework and bbm app, I will try find it...
godlesplay said:
paste here your framework and bbm app, I will try find it...
Click to expand...
Click to collapse
oke... wait i think problem on systemui.apk
Solved guys... I have changed script in SystemUI/res/layout/status_bar_notification_row.xml
I change
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="@drawable/status_bar_notification_row_background_color" android:layout_width="fill_parent" android:layout_height="@dimen/notification_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<Button android:id="@id/veto" android:background="@null" androidaddingLeft="8.0dip" androidaddingRight="8.0dip" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginRight="-80.0dip" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/minitab_lt_unselected_press" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<com.android.systemui.statusbar.LatestItemView android:id="@id/content" android:background="@drawable/notification_row_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="64.0dip" android:layout_toRightOf="@id/large_icon" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<View android:background="@drawable/horiz_list_div" android:layout_width="fill_parent" android:layout_height="@dimen/notification_divider_height" android:layout_alignParentBottom="true" />
</RelativeLayout>
to
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="@dimen/notification_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="@drawable/horiz_list_div" android:layout_width="fill_parent" android:layout_height="1.0dip" />
<RelativeLayout android:background="@drawable/notification_item_background_color" android:layout_width="fill_parent" android:layout_height="61.0dip">
<Button android:id="@id/veto" android:background="@null" androidaddingLeft="8.0dip" androidaddingRight="8.0dip" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginRight="-80.0dip" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/notify_panel_notification_icon_bg_tile" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<com.android.systemui.statusbar.LatestItemView android:id="@id/content" android:background="@drawable/notification_row_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="61.0dip" android:layout_toRightOf="@id/large_icon" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
</RelativeLayout>
<View android:background="@*android:color/transparent" android:layout_width="fill_parent" android:layout_height="2.0dip" />
</LinearLayout>
thx for participating..
Hello Today I am Showing How to add Extra Options in Settings CPU Info Screen Resolution Mem Info Swap Mem Info I will Update This Thread with New Options So Let"s Start
Requirement:
Apktool http://forum.xda-developers.com/show....php?t=1755243
Settings.apk From Your Phone
Nice Brain to Understand
Credits:
My Friends Aryne Neil Carlno Cabatan
Instructions:
Step 1 :- Pull Your Settings from Your Phone
Step 2 :- Decompile The Settings.apk
Step 3 :- Merged The Your Settings with My Zip
Step 4 :- Open Values/strings.xml
Step 5 :- Add This
Code:
<string name="cpu_info">CPU info</string>
<string name="mem_info">Mem info (avail/total)</string>
<string name="swap_mem_info">Swap mem info (avail/total)</string>
<string name="device_screen_resolution">Screen resolution</string>
Step 6 :- Open xml/device_info_settings
Step 7 :- Remove All lines
Step 8 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
</PreferenceScreen>
<Preference android:title="@string/model_number" android:key="device_model" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/firmware_version" android:key="firmware_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/baseband_version" android:key="baseband_version" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/kernel_version" android:key="kernel_version" android:summary="@string/device_info_default" />
<Preference android:title="@string/cpu_info" android:key="device_cpu" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/device_screen_resolution" android:key="device_screen_resolution" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/mem_info" android:key="device_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="@string/swap_mem_info" android:key="device_swap_memory" android:summary="@string/device_info_default" style="?android:preferenceInformationStyle" />
<Preference android:title="Guide by" android:key="android_fire_xda" android:summary="AndroidFire" style="?android:preferenceInformationStyle" />
</PreferenceScreen>
Step 9 :- Recompile and Decompile Again
Step 10 :- Go to values/public.xml
Step 11 :- search for device_info_settings Note the id code
Step 12 :- Search for 0x7f040010 Change This according to your public
Step 13 :- Recompile And Sign And Enjoy
My Work
My Work
Android
APP
AF-Root Checker
[APP][4.1+] AF Calendar Widget
[APP][2.3+] AF CPU Widget
GUIDE
[GUIDE][2.3+] How to add AF Volume Panel to Android Phone
AF-Battery Mod
ICS PlatLogo
[GUIDE] How to Disable Scrolling Cache for Smooth
[GUIDE] How to add Extra Options in About Sections
[GUIDE] How to add Colorey Platlogo
[GUIDE] How to add Android L Preview Platlogo
[GUIDE] [TUTORIAL] [GUIDE] How to Play with Screen Title
[GUIDE]How to Replace Checkbox with Switch
ROM
[ROM] AF Firey
TOOL
[TOOL] AF-Apk[TOOL] AF-Signer
Reserved
AF Work
AF Work
Android
APP
[APP][4.1+] AF Calendar Widget
[APP][2.3+] AF CPU Widget
GUIDE
[GUIDE][2.3+] How to add AF Volume Panel to Android Phone
ROM
[ROM] AF Firey
TOOL
[TOOL] AF-Apk[TOOL] AF-Signer
I have an error
Hello there
At first I apologize for my English.
I tried this method but I have a problem with steps 11 and 12
can you help me?
when I do research in device_info_settings .. / values / public.xml
I find 2 id's:
Line 451: <public type="xml" name="device_info_settings" id="0x7f050011" />
Line 2469: <public type="string" name="device_info_settings" id="0x7f0b04a8" />
And I tried with the two solution, I get an error ...
And id 0x7f040010, is:
Line 261: <public type="layout" name="auto_brightness_preview" id="0x7f040010" />
thank you in advance.
daemon1666 said:
Hello there
At first I apologize for my English.
I tried this method but I have a problem with steps 11 and 12
can you help me?
when I do research in device_info_settings .. / values / public.xml
I find 2 id's:
Line 451:
Line 2469:
And I tried with the two solution, I get an error ...
And id 0x7f040010, is:
Line 261:
thank you in advance.
Click to expand...
Click to collapse
First of Thing that What Android Version r using if Your Android Version 2.3 leave step 12 and 13 if are using 3.0+ then find for that ids change valuse according to ur public device_info_settings (xml one not strings) if u get error pls show me logcat logcat will easily to understand ur problem Recommended You to use AF-Apk to Decompile and Recompile Apk If Want it search on google ok
2nd Things No Need to Say Thanks Just Presss the button
AndroidFire said:
First of You What Android Version if Your Android Version 2.3 leave step 12 and 13 if are using 2.3+ then find for that ids change valuse according to ur public device_info_settings (xml one not layout)
2nd Things No Need to Say Thanks Just Presss the button
Click to expand...
Click to collapse
I have a nexus 5
in custom rom 4.4.4
I started in xml, so I don't know by what I must change the id
can you show me an example?
Sorry but I am a beginner.
daemon1666 said:
I have a nexus 5
in custom rom 4.4.4
I started in xml, so I don't know by what I must change the id
can you show me an example?
Sorry but I am a beginner.
Click to expand...
Click to collapse
First things.
can u attach ur public.xml and DeviceInfoSettings.smali I will Do for You
Second Things Thanks Button will more appericated then saying thanks
AndroidFire said:
First things.
can u attach ur public.xml and DeviceInfoSettings.smali I will Do for You
Second Things Thanks Button will more appericated then saying thanks
Click to expand...
Click to collapse
I joined the archive.
Ihave already made steps 1-9
And
I clicked on the button "thanks" and +1 on Google+
daemon1666 said:
I joined the archive.
Ihave already made steps 1-9
And
I clicked on the button "thanks" and +1 on Google+
Click to expand...
Click to collapse
done mind don't kang my work respect my work here is the link just replace the file
https://db.tt/ieOJqB3g
Thx... Again
If something has changed, I'm sorry, I had tried so many things by myself.
What was the problem?
I just tested ..
The first compilation, I have problems compiling
having replaced the device_info_settings.smali well.
I have attached the log
deleted sorry..