[DISCONTINUED][GUIDE]Adding Brightness Slider to ROM[GB][CM7] - Samsung Galaxy Fit GT 5670

Yo peeps, this is my first guide!! So if i am wrong anywhere please help me!!
Click to expand...
Click to collapse
Warning: This method is only working on GB roms, CM7 rom and not for CM9 , CM10 and CM10.1 roms
Click to expand...
Click to collapse
Requirements:​
-Notepad++
-Apktool
-Deodexed SystemUI.apk
-Statusbar Greeper Download Link
Credits:​
-npx123
-Xda
-Google
Instructions:​
-Decompile SystemUI.apk
-Navigate to res/layout/status_bar_expanded.xml
-Open it
Search for :
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
Above that add these:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.SlideBrightness android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
-Now add this file in ur smali folder
-Recompile SystemUI.apk
-Add StatusbarGreeper_1.8.apk to app folder of your rom and replace the SystemUI.apk with the new one.
Your done!!! All the best doing it!!!!

Yeah, thanks but could we see some screens ?

CroVeXx said:
Yeah, thanks but could we see some screens ?
Click to expand...
Click to collapse
i ll be posting a rom soon see in that bro

yeshwanthvshenoy said:
i ll be posting a rom soon see in that bro
Click to expand...
Click to collapse
OK thanks!

Related

Stock lockscreen question

I have been searching around and have not had much luck with finding out a solution for this:
I want to remove the clock from the stock lockscreen. Does anyone know how to do this or anyone have a link to a thread or guide on how to do this?
Widgetlocker, in the Market
go into framework-res.apk/layouts
and take all the .xmls that have keyguard in it
look for and remove the following code
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_below="@id/carrier" android:layout_centerInParent="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
recompile and enjoy
havent personally tried it, just a best guess
About xml editing, I downloaded a free xml editor (editiX - xmleditor) and when I try opening those xml files Im not seeing any codes along what you put. Do I need a different type of xml editor for the android xmls?
EDIT: Ok so I found the AXMLprinter2.jar method but it doesnt work on the keyguard files. Any assistance?
ohh... forgot to tell you to decompile huh....
when working with apks, its just easier to do it if you have decompiled it, use apk manager or something like that and you can find plenty of information about them in the forums(so im not going to repeat anything here because im lazy like that, lol)...
for editing i use notepad++
then once done, recompile 'em
Is there a seperate tool that recompiles the xmls back? cause i get an error using apk manager.
If you are recompiling a system apk within apkmanager there is an option (i think 10 to use dependency apk to decompile and use the moto-res.apk a as a dependency (if on stock moto rom) then make sure you recompile as a system apk. If you try to recompile as a regular apk it wont build correctly.
Hope this helps a little =)
DarkestSpawn said:
Is there a seperate tool that recompiles the xmls back? cause i get an error using apk manager.
Click to expand...
Click to collapse
Sent from my DROIDX using XDA App
NVM I got it. I rechecked my xmls i changed and found an error in the code. Thanks everyone for your help!

Mms theme help

Anyone know what PNG file or XML to change the background color I hate the white n I've tried just about everything to change it n it will not change any help is appreciated
Sent from my SAMSUNG-SGH-I727 using xda premium
+1
I feel the same way
which ROM are you running?
Is it this part? (see: red text on 4th line)
/res/layout/conversation_list_screen.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ListView android:scrollbarStyle="insideOverlay" android:id="@android:id/list" [COLOR="Red"]android:background="@android:color/white"[/COLOR] android:fadingEdgeLength="16.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/white" style="?android:attr/listViewWhiteStyle" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:gravity="center" android:id="@id/empty" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/no_conversations" />
</RelativeLayout>
edit: step-by-step guide here:
[How to] Theme your Mms - A Step by Step Guide (RootzWiki)
seans newest e-6
if it was in there i would try that one but nothing to do with background in that file
Flash the black messaging apk found in the theme and app section
CM9 Skyrocket

[GUIDE][UPDATE] tw30launcher support transparent statusbar + 5 icons drawer

i just create a simple tuts ho to make touchwiz30launcher support transparent statusbar, let's go to check this
Tools:
1. apk manager or other (must know the basic compile-decompile)
2. notepad++ or other
3. touchwiz30launcher deodex
4. ice cube (for people who are confused) hehe :fingers-crossed:
Instructions:
1. decompile touchwiz30launcher using apkmanager
2. go to res/xml-ldpi
3. open launcher_config.xml using notepad++
4. change
Code:
<?xml version="1.0" encoding="utf-8"?>
<config
xmlns:launcher="http://schemas.android.com/apk/res/com.sec.android.app.twlauncher ">
<columnno launcher:menuColumnCount="4" />
<itemno launcher:itemNumOfPage="12" />
<pageindicator launcher:useLargeDrawablesOnly="false" />
<launcher launcher:screenCount="7" launcher:defaultScreenCount="3" launcher:use16BitWindow="true" launcher:useImageMenu="false" />
<product launcher:modelFamily="S1" launcher:model="GT-I5800" />
</config>
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<config
xmlns:launcher="http://schemas.android.com/apk/res/com.sec.android.app.twlauncher ">
<columnno launcher:menuColumnCount="4" />
<itemno launcher:itemNumOfPage="12" />
<pageindicator launcher:useLargeDrawablesOnly="false" />
<launcher launcher:screenCount="7" launcher:defaultScreenCount="3" launcher:use16BitWindow="false" launcher:useImageMenu="false" />
<product launcher:modelFamily="S1" launcher:model="GT-I5800" />
</config>
5. compile again and make sure the error does not occur when compile
6. push to system/app
touchwiz30launcher modded
update support 5 icon drawer​
and this is tuts for change 4 to 5 icons drawer. equipment the same as above, but how to apply is different
steps:
1. go to res/layout-ldpi
2. open launcher.xml with notepad++
3. search
HTML:
<com.sec.android.app.twlauncher.AppShortcutZone android:layout_gravity="bottom|center" android:id="@id/shortcut_zone" android:layout_width="fill_parent" android:layout_height="@dimen/menu_top_item_height" launcher:iconColumnCount="4" />
<com.sec.android.app.twlauncher.DeleteZone android:layout_gravity="bottom|center" android:id="@id/delete_zone" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="50.659973dip" launcher:applyIconHoverColorFilter="false" launcher:drawDeleteZoneBg="true" launcher:inOutAnimationTranslationRatio="1.0" launcher:inOutAnimationDuration="200">
<FrameLayout android:id="@id/remove_zone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="18.659973dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/remove" android:singleLine="true" android:drawableLeft="@drawable/homescreen_remove_icon" android:drawablePadding="6.659973dip" />
</FrameLayout>
chage to
HTML:
<com.sec.android.app.twlauncher.AppShortcutZone android:layout_gravity="bottom|center" android:id="@id/shortcut_zone" android:layout_width="fill_parent" android:layout_height="@dimen/menu_top_item_height" launcher:iconColumnCount="5" />
<com.sec.android.app.twlauncher.DeleteZone android:layout_gravity="bottom|center" android:id="@id/delete_zone" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="50.659973dip" launcher:applyIconHoverColorFilter="false" launcher:drawDeleteZoneBg="true" launcher:inOutAnimationTranslationRatio="1.0" launcher:inOutAnimationDuration="200">
<FrameLayout android:id="@id/remove_zone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="18.659973dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/remove" android:singleLine="true" android:drawableLeft="@drawable/homescreen_remove_icon" android:drawablePadding="6.659973dip" />
</FrameLayout>
4. then, go to smali/com/sec/android/app/twlauncher
5. open AppShortcutZone.smali
6. find text
HTML:
const/4 v8, 0x3
replace 0x3 with 0x4
7. done
touchwiz30launcher.apk
UPDATE​transparent menu
this
thanks to:
-Jono Rinugroho (tester)
-Anri Dicky's (screenshot)
-(Temporary) Official Grup gYoung Indonesia
-You
Press Thanks if Helped :victory:
long time no see you brotha :3
Thanx
Sent from my GT-S5360 using xda app-developers app
It works :S really awesome
But... Do you have touchwiz with 4x4 grid? :3 and folders support..? :3
I'm just asking because tw is really good but folders and grid is very important for me ;]
Thanks
Wysyłane z mojego GT-S5360 za pomocą Tapatalk 2
kurotsugi said:
long time no see you brotha :3
Click to expand...
Click to collapse
haha yes sir, work in the real world makes me too busy doing it so I rarely make it to appear out and now I have a problem that is enough to make me sad, my vga laptop that type vga on board were error this makes me very sad and confused what to do :crying: :crying: :crying:
yousef8824 said:
Thanx
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
ur welcome bro :highfive:
Hrustus said:
It works :S really awesome
But... Do you have touchwiz with 4x4 grid? :3 and folders support..? :3
I'm just asking because tw is really good but folders and grid is very important for me ;]
Thanks
Wysyłane z mojego GT-S5360 za pomocą Tapatalk 2
Click to expand...
Click to collapse
thanks sir maybe will be added soon if i have free time
Someone already posted a tweak similar to the OP at the themes and apps section. Anyway, that tweak should have been posted here. So, thanks OP!
bumslayer said:
Someone already posted a tweak similar to the OP at the themes and apps section. Anyway, that tweak should have been posted here. So, thanks OP!
Click to expand...
Click to collapse
Are you seriously before someone has posted something like this? oh I'm so sorry, I did not even know before. sorry, I'm so sorry :crying:
that was just a discussion between chamath and another member in his thread about modified launcher. no specific thread about this topic in this forum until this thread was created.
kurotsugi said:
that was just a discussion between chamath and another member in his thread about modified launcher. no specific thread about this topic in this forum until this thread was created.
Click to expand...
Click to collapse
means am I wrong? If yes, I am very sorry for this
no...you're doing it right
kurotsugi said:
no...you're doing it right
Click to expand...
Click to collapse
thanks brotha, this makes me a better feeling :highfive:
Idea!
What about text in dock? :->
Have a nice day!
ocoot said:
i just create a simple tuts ho to make touchwiz30launcher support transparent statusbar, let's go to check this
Tools:
1. apk manager or other (must know the basic compile-decompile)
2. notepad++ or other
3. touchwiz30launcher deodex
4. ice cube (for people who are confused) hehe :fingers-crossed:
Instructions:
1. decompile touchwiz30launcher using apkmanager
2. go to res/xml-ldpi
3. open launcher_config.xml using notepad++
4. change
Code:
<?xml version="1.0" encoding="utf-8"?>
<config
xmlns:launcher="http://schemas.android.com/apk/res/com.sec.android.app.twlauncher ">
<columnno launcher:menuColumnCount="4" />
<itemno launcher:itemNumOfPage="12" />
<pageindicator launcher:useLargeDrawablesOnly="false" />
<launcher launcher:screenCount="7" launcher:defaultScreenCount="3" launcher:use16BitWindow="true" launcher:useImageMenu="false" />
<product launcher:modelFamily="S1" launcher:model="GT-I5800" />
</config>
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<config
xmlns:launcher="http://schemas.android.com/apk/res/com.sec.android.app.twlauncher ">
<columnno launcher:menuColumnCount="4" />
<itemno launcher:itemNumOfPage="12" />
<pageindicator launcher:useLargeDrawablesOnly="false" />
<launcher launcher:screenCount="7" launcher:defaultScreenCount="3" launcher:use16BitWindow="false" launcher:useImageMenu="false" />
<product launcher:modelFamily="S1" launcher:model="GT-I5800" />
</config>
5. compile again and make sure the error does not occur when compile
6. push to system/app
thanks to:
-Jono Rinugroho (tester)
-Anri Dicky's (screenshot)
-(Temporary) Official Grup gYoung Indonesia
-You
Press Thanks if Helped :victory:
touchwiz30launcher modded
update support 5 icon drawer​
and this is tuts for change 4 to 5 icons drawer. equipment the same as above, but how to apply is different
steps:
1. go to res/layout-ldpi
2. open launcher.xml with notepad++
3. search
HTML:
<com.sec.android.app.twlauncher.AppShortcutZone android:layout_gravity="bottom|center" android:id="@id/shortcut_zone" android:layout_width="fill_parent" android:layout_height="@dimen/menu_top_item_height" launcher:iconColumnCount="4" />
<com.sec.android.app.twlauncher.DeleteZone android:layout_gravity="bottom|center" android:id="@id/delete_zone" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="50.659973dip" launcher:applyIconHoverColorFilter="false" launcher:drawDeleteZoneBg="true" launcher:inOutAnimationTranslationRatio="1.0" launcher:inOutAnimationDuration="200">
<FrameLayout android:id="@id/remove_zone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="18.659973dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/remove" android:singleLine="true" android:drawableLeft="@drawable/homescreen_remove_icon" android:drawablePadding="6.659973dip" />
</FrameLayout>
chage to
HTML:
<com.sec.android.app.twlauncher.AppShortcutZone android:layout_gravity="bottom|center" android:id="@id/shortcut_zone" android:layout_width="fill_parent" android:layout_height="@dimen/menu_top_item_height" launcher:iconColumnCount="5" />
<com.sec.android.app.twlauncher.DeleteZone android:layout_gravity="bottom|center" android:id="@id/delete_zone" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="50.659973dip" launcher:applyIconHoverColorFilter="false" launcher:drawDeleteZoneBg="true" launcher:inOutAnimationTranslationRatio="1.0" launcher:inOutAnimationDuration="200">
<FrameLayout android:id="@id/remove_zone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="18.659973dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/remove" android:singleLine="true" android:drawableLeft="@drawable/homescreen_remove_icon" android:drawablePadding="6.659973dip" />
</FrameLayout>
4. then, go to smali/com/sec/android/app/twlauncher
5. open AppShortcutZone.smali
6. find text
HTML:
const/4 v8, 0x3
replace 0x3 with 0x4
7. done
touchwiz30launcher.apk
Click to expand...
Click to collapse
Can you plz post more screen shot of your launcher
Sent from my GT-S5360 using xda premium
Noob Question
Hi very nice tut,i am a noob so question is,is there any of the launchers who already have the 5 drawer just to download and push it, i dont know anything of notepad+++ and compieling...
thank you
marinalin85 said:
What about text in dock? :->
Have a nice day!
Click to expand...
Click to collapse
what mean? change the color?
jerryn70 said:
Can you plz post more screen shot of your launcher
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
sorry, i'm use creeds rom and I do not think this rom can't show the launcher (don't know why) so when I'm done editing, I need a tester for test results
denniz05 said:
Hi very nice tut,i am a noob so question is,is there any of the launchers who already have the 5 drawer just to download and push it, i dont know anything of notepad+++ and compieling...
thank you
Click to expand...
Click to collapse
go launcher, adw ex, holo launcher already have the 5 icons drawer bro. whether here yet available keys to compile decompile?
ocoot said:
go launcher, adw ex, holo launcher already have the 5 icons drawer bro. whether here yet available keys to compile decompile?
Click to expand...
Click to collapse
that i know,but i want to keep the stock launcher,but with 5 icon drawer,i pushed number 2 of yours,not the modded one...and it is much faster but need the last icon that i dont know how too

[Q] help recompiling

hey guys i want a help...i was trying to remove the quick settings from jaggyrom5, what i did is just decompiled it from apktools and deleted two files from layout named quick_settings.xml and quick_settings_config.xml then when i was trying to recompile it gives a very big error..wat to do..
manthan808 said:
hey guys i want a help...i was trying to remove the quick settings from jaggyrom5, what i did is just decompiled it from apktools and deleted two files from layout named quick_settings.xml and quick_settings_config.xml then when i was trying to recompile it gives a very big error..wat to do..
Click to expand...
Click to collapse
Why did you want remove the quick settings? :S...
Mmm... You copy META-INF + AndroidManifest.xml from original apk and paste in /SystemUI/build/apk/ and recompile?
Regards .
Edit: Now I read your post, you compiled with "apktool b SystemUI.apk" ?? If is it, remove ".apk" because are compiling the original apk and doesn't the folder with the data of apk... xD
Deic said:
Why did you want remove the quick settings? :S...
Mmm... You copy META-INF + AndroidManifest.xml from original apk and paste in /SystemUI/build/apk/ and recompile?
Regards .
Edit: Now I read your post, you compiled with "apktool b SystemUI.apk" ?? If is it, remove ".apk" because are compiling the original apk and doesn't the folder with the data of apk... xD
Click to expand...
Click to collapse
Thanx for the reply...i want to remove quick settings to make notification bar faster...and ive written apktool b systemui...not apktool b systemui.apk..then also its not recompiling...
Sent from my HTC Explorer A310e using xda app-developers app
manthan808 said:
Thanx for the reply...i want to remove quick settings to make notification bar faster...and ive written apktool b systemui...not apktool b systemui.apk..then also its not recompiling...
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
You try "\SystemUI\smali\com\android\systemui\statusbar\preference\" and remove related with quick settings...
Deic said:
You try "\SystemUI\smali\com\android\systemui\statusbar\preference\" and remove related with quick settings...
Click to expand...
Click to collapse
Ill try that...
Sent from my HTC Explorer A310e using Tapatalk 2
Deic said:
You try "\SystemUI\smali\com\android\systemui\statusbar\preference\" and remove related with quick settings...
Click to expand...
Click to collapse
I deleted the whole folder but then also nothing's happening...
Sent from my HTC Explorer A310e using Tapatalk 2
manthan808 said:
I deleted the whole folder but then also nothing's happening...
Sent from my HTC Explorer A310e using Tapatalk 2
Click to expand...
Click to collapse
Try delete this lines in "\SystemUI\res\layout\status_bar_preference.xml"
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.preference.PreferenceView android:orientation="vertical" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:background="@drawable/status_bar_item_background" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_preference_height">
[COLOR="Red"]<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:layout_width="@dimen/quick_settings_icon_weight" android:layout_height="@dimen/quick_settings_icon_height" android:layout_marginLeft="@dimen/quick_settings_icon_left_margin" android:layout_marginRight="@dimen/quick_settings_icon_right_margin" />[/COLOR]
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@com.htc:dimen/htc_list_item_text_right_margin" android:layout_weight="1.0">
<TextView android:textSize="@com.htc:dimen/list_primary_m" android:textColor="@color/list_item_primary_text" android:id="@id/title" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="@com.htc:dimen/list_secondary_m" android:textColor="@color/list_item_secondary_text" android:id="@id/summary" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.widget.SeekBar android:id="@id/seekbar" android:visibility="gone" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<CheckBox android:layout_gravity="center_vertical" android:id="@id/checkbox" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@com.htc:dimen/htc_list_item_text_right_margin" />
</LinearLayout>
<ImageView android:id="@id/divider" android:background="@drawable/divider_horizontal_light_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
</com.android.systemui.statusbar.preference.PreferenceView>
nothing's happening...deleted the line also...
Deic said:
Try delete this lines in "\SystemUI\res\layout\status_bar_preference.xml"
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.preference.PreferenceView android:orientation="vertical" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:background="@drawable/status_bar_item_background" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_preference_height">
[COLOR="Red"]<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:layout_width="@dimen/quick_settings_icon_weight" android:layout_height="@dimen/quick_settings_icon_height" android:layout_marginLeft="@dimen/quick_settings_icon_left_margin" android:layout_marginRight="@dimen/quick_settings_icon_right_margin" />[/COLOR]
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@com.htc:dimen/htc_list_item_text_right_margin" android:layout_weight="1.0">
<TextView android:textSize="@com.htc:dimen/list_primary_m" android:textColor="@color/list_item_primary_text" android:id="@id/title" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="@com.htc:dimen/list_secondary_m" android:textColor="@color/list_item_secondary_text" android:id="@id/summary" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.widget.SeekBar android:id="@id/seekbar" android:visibility="gone" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<CheckBox android:layout_gravity="center_vertical" android:id="@id/checkbox" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@com.htc:dimen/htc_list_item_text_right_margin" />
</LinearLayout>
<ImageView android:id="@id/divider" android:background="@drawable/divider_horizontal_light_opaque" android:layout_width="fill_parent" android:layout_height="1.0px" />
</com.android.systemui.statusbar.preference.PreferenceView>
Click to expand...
Click to collapse
nothings happening deleted the line also..

[MOD][GUIDE]Add CPU usage in notification panel

I never seen any guide how to add the cpu usage into notification panel to this is a guide how to do it!
Files need modification
Smali
\SystemUI\smali\com\android\systemui\statusbar\policy
XML's
status_bar_expanded_header.xml
id.xml
strings.xml
public.xml
1: Decompile the SystemUI.apk using apktool.
2: Now download the cpu_smali attachment and put the smalis inside the folder \SystemUI\smali\com\android\systemui\statusbar\policy
3: Open the file \SystemUI\res\values\id.xml and scroll down at the bottom and add these lines
Code:
<item type="id" name="cpu">false</item>
<item type="id" name="sys_id">false</item>
4: Open the file \SystemUI\res\values\strings.xml and scroll down at the bottom and add these lines
Code:
<string name="cpu_idle">idle</string>
<string name="cpu_text">CPU Usage</string>
5: Open the file \SystemUI\res\layout\status_bar_expanded_header.xml and look for the line
Code:
<com.android.systemui.statusbar.policy.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" />
<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="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" />
Now we gonna comment out these codes just incase u want the date and clock back in the future so we need to do is replace with these codes
Code:
<!--
<com.android.systemui.statusbar.policy.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" />
<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="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" />
-->
6: Now right under the lince we just comment out we will add these lines
Code:
<LinearLayout android:gravity="left" android:orientation="vertical" android:id="@id/cpu" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:id="@id/sys_id" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/cpu_text" android:layout_marginLeft="@dimen/status_bar_expanded_notification_margin" />
<com.android.systemui.statusbar.policy.CpuUsageView android:textSize="12.0dip" android:textColor="#ffffffff" android:paddingLeft="23.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
7: Now save everything and lets compile the SystemUI.apk and sign it.
8: Take the SystemUI.apk we just compiled and signed and decompile it again using apktool
9: Now we open the file public.xml and look for the line <public type="string" name="cpu_idle" id=" now all we needed is the id inside the id=""
10: Now we open the file \SystemUI\smali\com\android\systemui\statusbar\policy\CpuUsageView$1.smali and search for # virtual methods few lines below you will see const v9, 0x7f0a01ad and all we need to do is change the 0x7f0a01ad to the one we found in public.xml
11: Save everything Compile & Sign and push it inside your system\priv-app.
12: Enjoy
Do you need root for this?
Sent from my SM-N9005 using XDA Premium 4 mobile app
Does ram booster pro actually work??
Sent from my SM-N9005 using XDA Premium 4 mobile app
HaloTwenty3 said:
Do you need root for this?
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes
speedyjay said:
Does ram booster pro actually work??
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes i think been using it since i got my note 3
Awesome job
Hi meawww,
Is it possible to add CPU Freq value like "CPU Usage: @1600mHz"
What toggles are those? They look so nice..
kadiremrah said:
Hi meawww,
Is it possible to add CPU Freq value like "CPU Usage: @1600mHz"
Click to expand...
Click to collapse
Nope
DrawnToLife said:
What toggles are those? They look so nice..
Click to expand...
Click to collapse
Made those while ago and never been released
Can anyone make a vrtheme flashable zip with the modded .xml only please
Sent from my SM-N900A using XDA Premium 4 mobile app
Anyone???
Sent from my SM-N900A using XDA Premium 4 mobile app
---------- Post added at 11:45 PM ---------- Previous post was at 11:41 PM ----------
@dr.ketan pleasee
Why do you only want the xml?
Sent from my SM-G900F using Tapatalk
Goldie said:
Why do you only want the xml?
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
But then you will not have the smali files that do the actual mod and it will just fc
Sent from my SM-G900F using Tapatalk
carlospr21 said:
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Try this
meawww said:
Try this
Click to expand...
Click to collapse
Thank u sir
Sent from my SM-N900A using XDA Premium 4 mobile app
meawww said:
Try this
Click to expand...
Click to collapse
@meawww, once again great job...worked as advertised. One question, is it possible to show the clock/date with the CPU usage? I was thinking about playing with the size (dpi) to see what would happen...perhaps even removing the 'CPU Usage' header just to show the core usages as well.
Also, I think your screen dpi is slightly different than mine as well. I lose the last core reading, see pic
deuce_biggins said:
@meawww, once again great job...worked as advertised. One question, is it possible to show the clock/date with the CPU usage? I was thinking about playing with the size (dpi) to see what would happen...perhaps even removing the 'CPU Usage' header just to show the core usages as well.
Also, I think your screen dpi is slightly different than mine as well. I lose the last core reading, see pic
Click to expand...
Click to collapse
Yes you can add clock date back just edit the xml and my dpi is 320
meawww said:
Yes you can add clock date back just edit the xml and my dpi is 320
Click to expand...
Click to collapse
I never edited out my clock and date in the xml file. It just didn't show up (must be overlapping with the cpu usage). I'm wondering if I need to increase the size of my status bar header??
nice guide master..thank you
carlospr21 said:
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
meawww said:
Try this
Click to expand...
Click to collapse
Would that theme work with Sprint NAC 4.42? Some themes don't because they don't include Wifi Calling, Hotspot, Mobile Data, Torch, etc... Thanks in advance.

Categories

Resources