{
"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"
}
Task Manager In Recent Apps
Features:
This MOD gives you the ability to launch and use Task Manager from recent apps. For better understanding, see the screenshots.
Installation:
1. Download the zip file
2. Reboot to recovery
3. Flash the zip file
4. Reboot
Downloads:
CM10.1 Alpha 8
CM10.1 Alpha 7
Thanks To SpaceCaker for helping me
GUIDE
Guide
This is not my work. All the credit goes to SpaceCaker for the Original Guide.
I have modified the guide a bit to work with CM10.1 and instead of ugly buttons, it will show icon like the one in following picture:
1. Decompile SystemUI.apk
2. In res/layout/status_bar_no_recent_apps.xml, add:
Code:
<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />
So it'll look like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@*android:color/holo_blue_light" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
[B]<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />[/B]
</FrameLayout>
3. In res/layout/status_bar_recent_panel.xml, add:
Code:
<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />
So it'll look like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsVerticalScrollView>
<ImageView android:layout_gravity="top|right|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
[B] <ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />[/B]
</com.android.systemui.recent.RecentsPanelView>
4. In res/layout/system_bar_recent_panel.xml, add:
Code:
<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />
So it'll look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/system_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/recents_bg_protect_tile" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginBottom="@*android:dimen/system_bar_height" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="20.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsVerticalScrollView>
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="58.0dip" android:layout_marginBottom="36.0dip" layout="@layout/system_bar_no_recent_apps" />
</FrameLayout>
<com.android.systemui.recent.StatusBarTouchProxy android:id="@id/status_bar_touch_proxy" android:layout_width="fill_parent" android:layout_height="@*android:dimen/system_bar_height" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" />
[B] <ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />[/B]
</com.android.systemui.recent.RecentsPanelView>
5. In res/layout-land/status_bar_recent_panel.xml, add:
Code:
<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />
So it'll look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="right" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<ImageView android:layout_gravity="top|right|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
[B]<ImageView android:layout_gravity="fill_horizontal|top|center" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_task" android:scaleType="center" android:onClick="openTaskManager" />[/B]
</com.android.systemui.recent.RecentsPanelView>
6. In smali/com/android/systemui/recent/RecentsActivity.smali, at the bottom add:
Code:
.method public openTaskManager(Landroid/view/View;)V
.locals 5
.parameter "view"
.prologue
.line 99
.line 100
:try_start_0
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 102
.local v1, intent:Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
.line 105
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 107
const-string v2, "com.sec.android.app.controlpanel"
const-string v3, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
invoke-virtual {p0, v1}, Lcom/android/systemui/SystemUIService;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 109
.line 112
.end local v1 #intent:Landroid/content/Intent;
:goto_0
return-void
.line 115
:catch_0
move-exception v0
.line 117
.local v0, e:Ljava/lang/Exception;
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.end method
7. Download the attached zip file and extract it.
8. Put recents_task_pressed.png and recents_task_unpressed.png in res/drawable-hdpi/
9. Put ic_recents_task.xml in res/drawable/
10. Recompile SystemUI
flashing now... ty
EDIT:Flashed it and phone got ina forever boot.... wiped cache and dalvik no luck so have to flash the base rom again... what could have been the problem?
good to see u got it to work on cm10.1
Sent from my S500 using xda app-developers app
thank you. very very very usefull. I need it.
thank you so much.
Task Manager In Recent Apps
@TopDroid Hi. You can make changes to the MOD for alpha 8? Note the date and time in the status bar. Thank you.
maksimus0021 said:
@TopDroid Hi. You can make changes to the MOD for alpha 8? Note the date and time in the status bar. Thank you.
View attachment 2157766
Click to expand...
Click to collapse
Please download the zip file for Alpha 8 from the OP.
TopDroid said:
Please download the zip file for Alpha 8 from the OP.
Click to expand...
Click to collapse
Thank you Sir for the quick response and for your work!
@TopDroid GUIDE PLEASE :crying::crying::crying:
I know there's many guide about this, but only for CM10, and ONLY YOURS that change the BUTTON to an ICON!
Diaz1999 said:
@TopDroid GUIDE PLEASE :crying::crying::crying:
I know there's many guide about this, but only for CM10, and ONLY YOURS that change the BUTTON to an ICON!
Click to expand...
Click to collapse
Sure.
Please see the Second post for the guide.
TopDroid said:
Sure.
Please see the Second post for the guide.
Click to expand...
Click to collapse
Thank you so much!
1 question, everytime I press clear memory button, why my wallpaper changed to framework-res default_wallpaper?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Diaz1999 said:
Thank you so much!
1 question, everytime I press clear memory button, why my wallpaper changed to framework-res default_wallpaper?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Click to expand...
Click to collapse
Never experienced such an issue. I don't have my phone right now so can't test it.
Hi TopDroid. Did you check problem about call block with turbo boost?
use your guide gave me FC
MR.Volkf said:
use your guide gave me FC
Click to expand...
Click to collapse
No FC for me, please send me your decompiled SystemUI.apk
Donee ma friend
Sent from my GT-I9003 using xda app-developers app
@TopDroid @Diaz1999
hey guys, i done this to for my cm 10.1 everything worked well (of course why not ) but i have a problem with application linking...
so i have the button, but when i press nothing happens, i allready added app links into smali but may these are the wrong one bcuz it even not work -_- (nothing happens on press) my other problem is, im not the xperienced user and have no idea how to find out how this activity is called, i used an app to know how its called but its probably wrong -> not working in my smali so due to i want it work have 2 questions:
1. did i really need 2 strings to point there or is string 2 (green color) enough (remove whole string with red colored activity???)
.method public openTaskManager(Landroid/view/ViewV
.locals 5
.parameter "view"
.prologue
.line 99
.line 100
:try_start_0
new-instance v1, Landroid/content/Intent;
invoke-direct {v1}, Landroid/content/Intent;-><init>()V
.line 102
.local v1, intent:Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/StringLandroid/content/Intent;
.line 105
const/high16 v2, 0x1000
invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
.line 107
const-string v2, "com.android.settings.Settings"
const-string v3, "com.android.settings.Settings$ManageApplicationsActivity"
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/StringLandroid/content/Intent;
invoke-virtual {p0, v1}, Lcom/android/systemui/SystemUIService;->startActivity(Landroid/content/IntentV
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 109
.line 112
.end local v1 #intent:Landroid/content/Intent;
:goto_0
return-void
.line 115
:catch_0
move-exception v0
.line 117
.local v0, e:Ljava/lang/Exception;
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.end method
Click to expand...
Click to collapse
2. how can i find out, how this activity is called (as the app result not work (above)) to intergrate it here so it will work???
EDIT: In ''com.android.settings.Settings$ManageApplicationsActivity'' text theres a '' '' (empty place) ITS ONLY here on xda in my smali all i s fine (some xda bug cant change..) and these smilies are a bug too
thanks in advance and sry for my noobish question, but i dunno where to learn more about smali coding to understand it more and figure out by myself
update tutorial
sorry this tutorial can be updated master whether I want to make progress ram in recent add app but did not find a specific tutorial .. if the host can help by publishing a tutorial ...
I flash this on my Vibrant! Perfectly, all Work.Thank you.
Related
Saw THIS POST yesterday and quite interested to the mod, so I decided to make one.. and boom!! It works with a little bit modification from original post!
- Edited framework-res.apk and also SystemUI.apk taken from InsertCoin ROM, blue battery framework with overscroll enabled, packed into flash-able zip.
- App thumbnails was properly re-sized and app label text are properly aligned to locate below the thumbnail
- Support landscape horizontal scroll too
Here's the screen shots:
{
"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"
}
Works with:
- InsertCoin
- Any other ICS Sense ROMs with 3.32 base
NOTE:
- The SystemUI.apk in zip file was based on Leedroid Tweaks V3 mod by j4n87 and should works with all other ROMs that used the Tweaks
- If you are installing Leedroid Tweaks by your own then you can have this mod to works too
- The framework-res.apk is from InsertCoin with 3.32 base framework, if you experienced boot-loop after installing this mod you can open the zip file and delete the framework-res.apk, the framework is just to controlling the app thumbnail size and should not be a serious matter
- Remember.. MAKE A BACKUP FIRST before installing the mod! I will not taking any responsibility if you got boot-loop with no backup and lost all your data
Credits Goes To:
- evilisto
- brucekey
- baadnewz
- j4n87
- Any other else I forgot or have to mention??
DOWNLOAD: Below the post
Guide to mod for Sense ROM
Now we can make it for any other ICS Sense ROM too.. Here's the guide for mod them to other Sense ROM, thanks to evilisto for his details guide HERE and also brucekey for the original mods for Galaxy Nexus AOKP ROM
* framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
Code:
<dimen name="thumbnail_height">210.0dip</dimen>
<dimen name="thumbnail_width">170.0dip</dimen>
* This is for QHD device only (540 x 960)
* For WVGA (480 x 800) set height to 305 and width to 192
* SystemUI.apk
- /res/values/bools.xml
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- /res/values/drawables.xml
Code:
<item type="drawable" name="status_bar_recents_background_solid">#db000000</item>
* you can change it to any color by adjusting the value by your own
- /res/layout/status_bar_no_recent_apps.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" style="@com.htc:style/title_primary_m" />
</FrameLayout>
- /res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="170.0dip" android:layout_height="210.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="170.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
- /res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
- /res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
Will make more details guide here when I got more free time..
Placeholder 2..
Looks interesting
Sent from my HTC Rezound via Tapatalk
MyColorScreen
Impressive Stuff !
Hi Jerry, nice work. I've applied your file into IC 5.1.7, and after long press the "home", it did show me the recent app in horizontal direction but the app "text" seems too close to the app image itself, therefore the text overlap on top of the app image in the bottom. Is there able to let the text some gap under the app image just like what you show in the thread ? Thanks.
chihliouma said:
Hi Jerry, nice work. I've applied your file into IC 5.1.7, and after long press the "home", it did show me the recent app in horizontal direction but the app "text" seems too close to the app image itself, therefore the text overlap on top of the app image in the bottom. Is there able to let the text some gap under the app image just like what you show in the thread ? Thanks.
Click to expand...
Click to collapse
Are you sure you are using my version rather than the another one in this forum? that one got text alignment problem but mine is aligned properly.. please re-download from this thread again and flash it
Tried the mod from the original post, now i got better thumbnail look Sense 4 style
I installed this zip bit nothing changed ??
Sent from my HTC Sensation 4G with Beats Audio using xda premium
Help
I have tried ur guide and it worked except that when in portrait mode when there is only one app in background i am getting a dark patch alongside the thumbnail and this doesnt seem to appear in landscape mode can anyone help me
After making few ROMS & mods On NOTE I , i thought let me share the few mods as well on NOTE II...so here we go!
{
"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"
}
Must Have
1. Apktool
2. Some knowledge about compiling and decompiling
3. 7zip
4. notepad++
5. backsmali
6. If my code are showing -- then remove those lines in the code and if it shows ++ then add those codes!
How to
Decompile both SystemUI and framework-res,apk using apktool
framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
PHP:
<dimen name="thumbnail_height">267.0dip</dimen>
<dimen name="thumbnail_width">168.0dip</dimen>
Change the dip values the way you want, but for galaxy Note II the above dip's fits correctly.
After this compile back and this is the only change needs to be done in framework-res.apk
* SystemUI.apk
Go to /res/values/bools.xml and make the changes as below:
PHP:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- go to /res/values/drawables.xml and make the following changes
PHP:
<item type="drawable" name="status_bar_recents_background_solid">#00000000</item>
Now you can change any background you want, by modifying the values of#00000000
go to - res/layout/tw_system_bar_no_recent_apps.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <TextView android:textSize="24.0dip" android:textColor="#ffd7d7d7" android:gravity="left" android:layout_gravity="bottom|left|center" android:id="@id/recents_no_apps_string" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="70.0dip" android:text="@string/status_bar_no_recent_apps" />
+ <Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="center" android:id="@id/no_recent_apps_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="55.0dip" android:text="@string/status_bar_recent_launch_task_manager_title" />
+ <TextView android:textSize="20.0dip" android:textColor="@android:color/holo_blue_light" android:gravity="center_horizontal" android:layout_gravity="center" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
go to /res/layout-port/tw_status_bar_recent_panel.xml and make the following changes in the code!
PHP:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
- <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
- <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
- <com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
- <LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
- </com.android.systemui.recent.RecentsVerticalScrollView>
+ <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
+ <ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
+ <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
+ <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
+ </com.android.systemui.recent.RecentsHorizontalScrollView>
<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/shortcut_line" android:visibility="gone" android:layout_width="300.0dip" android:layout_height="1.0dip" android:src="@drawable/shortcut_head_line" android:scaleType="center" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/application_shortcut_layout" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="7.0dip">
go to res/layout-port/status_bar_recent_item.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
+<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <RelativeLayout android:layout_gravity="center_horizontal" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="2.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:scrollHorizontally="true" android:singleLine="true" android:layout_alignTop="@id/app_icon" android:layout_alignParentLeft="true" />
- <FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_toRightOf="@id/app_label" android:layout_alignParentTop="true">
- <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
+ <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
+ <FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
+ <ImageView android:id="@id/app_thumbnail_image" android:paddingTop="60.0dip" android:layout_width="212.0dip" android:layout_height="455.0dip" android:layout_marginTop="30.0dip" android:scaleType="centerInside" />
</FrameLayout>
- <View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
- <ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_toRightOf="@id/app_label" />
- <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/recents_callout_line" android:layout_alignParentLeft="true" />
+ <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="405.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
Go to res/layout-land/status_bar_recent_item.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
- <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
+ <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
+ <FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
+ <ImageView android:id="@id/app_thumbnail_image" android:layout_width="120.0dip" android:layout_height="320.0dip" android:scaleType="centerInside" />
</FrameLayout>
- <ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
- <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
- <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
+ <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="225.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="20.0dip" android:maxHeight="20.0dip" />
+ <TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
go to /res/layout-land/tw_status_bar_recent_panel.xml and make the following changes
PHP:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
- <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
- <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
- <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
- <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
+ <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
+ <ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
+ <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
+ <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/shortcut_line" android:visibility="gone" android:layout_width="450.0dip" android:layout_height="1.0dip" android:layout_marginTop="2.0dip" android:src="@drawable/shortcut_head_line" android:scaleType="center" />
Now open res/values/id.xml and add this one at the end of the file and make the following changes!
PHP:
<item type="id" name="no_recent_apps_launch_button">false</item>
go to smali/com/android/systemui/recent/RecentsPanelView.smali and make the following changes!
Since XDA doesn't allow to add more than 30000 characters , I have attached the difference code for RecentsPanelView.smali. Download it and make the following changes!
Download the code for recentspanelview.smali from here
now re-compile the systemui and framework and then flash the mod!
Credits
------------
1. Evilasato, Legend (SF)
Sense Mod Back.... Nice to see you again in Note2.
thanks , this is great :good:
It's a great work.
Martinhel
Revenge Developer Team
Inviato dal mio GT-N7000 con Tapatalk 2
Awesome like allways
Hugs my friend
Sent from my GT-N7100
Work
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
galaxy1210 said:
Work
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
You are always first in using this mod...:good:
Great work. Is awesome. But when editing "RecentPanelView.smali" gives me error when compiling. And without modifying is as the photo.
Help me please!
Enviado desde mi GT-N7100
galaxy1210 said:
Work
View attachment 1597407
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
which ROM u used??!!
---------- Post added at 09:23 PM ---------- Previous post was at 09:14 PM ----------
galaxy1210 said:
Work
View attachment 1597407
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
which ROM u used??!!
Thanks for great work for me it is work very very well in my rom thanks so good
My taste again comes to picture... Thankq bro....
I know you will be the first man to do this
How similar would this be if trying to use the MOD on the S3?
dr12volt1338 said:
How similar would this be if trying to use the MOD on the S3?
Click to expand...
Click to collapse
It would be similar... I guess someone already done in s3 by following the guide though...
Hey buddy great post...can you please provide a flashable zip for the note 2 (international)....i am getting recompilation error.
rohan999 said:
Hey buddy great post...can you please provide a flashable zip for the note 2 (international)....i am getting recompilation error.
Click to expand...
Click to collapse
I will try to do vrtheme , so that one can Flash irrespective of any rom
Hi, grgsiocl
How are you my friends...??
Im just upgraded from note to note2.
Miss classic rom deeply, hopefully can see classic rom again in note2 forum.
Sent from my GT-N7100 using xda premium
lee yun khong said:
Hi, grgsiocl
How are you my friends...??
Im just upgraded from note to note2.
Miss classic rom deeply, hopefully can see classic rom again in note2 forum.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
grgsiocl said:
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
Click to expand...
Click to collapse
this good:good: news
and am witting for your greaaaaat rom
any ETA
grgsiocl said:
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
Click to expand...
Click to collapse
Very excited mate....my note 1has loaded with classic final V6 before pass to my wife. She just very happy with the stable and great battery performance exist at your rom.
I will waiting with patient... take your time..thank you.
Sent from my GT-N7100 using xda premium
---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------
iphonest said:
this good:good: news
and am witting for your greaaaaat rom
any ETA
Click to expand...
Click to collapse
It seems mr.grgsiocl busy with his work. No choice...wait and patient......by the way you might gonna try pheonix v3.6.
Sent from my GT-N7100 using xda premium
It looks good,but I have some problems when I eidt systemUI.apk:
1.What is the - and + mean? Is that means delete or add ?
2.What is the system version ? 4.1.X or 4.0.4?
THX
This guide is not for a noob in editing.
Tried yourself, first you need to understand relation between public values in smali and xml.
Modified SystemUI for N9005XXUENA6/NA7/NB3 is at post #2 (Flashable)
As we already know, the battery signal of statusbar on Sammy KitKat Firmware is not images but coded one.
That is one of Google's operations in Android 4.4, but make difficulties with theming or customising.
So I modified it back to images to be possible for the methods that you have used on Android 4.3
This guide requires following things:
• APKtool
• Notepad++ (or AcroEdit, etc.)
• deodexed SystemUI.apk
• drawables.zip (attachment)
• smali.zip (attachment)
This guide is based on XXUENB3
All the public value is changable things depended on the kind of firmware build.
(Don't care about that if you're on XXUENB3)
Red text is to be removed
Blue text is to be added
1. Decompile SystemUI.apk using APKtool
2. Extract two folders in drawables.zip
3. Move and overwrite two folders(drawable, drawable-xxhdpi) to SystemUI\res\
4. Open SystemUI\res\layout\status_bar.xml in Notepad++
Find @id/battery
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Red"]<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />[/COLOR]
</LinearLayout>
...
change like this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Blue"]<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="1.0dip" android:layout_marginStart="2.0dip" />[/COLOR]
</LinearLayout>
...
5. Open SystemUI\res\values\public.xml in Notepad++
Find quick_setting_button_divider_bg
Code:
<public type="drawable" name="quick_setting_button_divider_bg" id="0x7f020281" />
<public type="drawable" name="notification_panel_bg" id="0x7f0200a4" />
<public type="drawable" name="tw_quick_panel_quick_setting_button_bg_normal" id="0x7f020228" />
...
add like this
Code:
<public type="drawable" name="quick_setting_button_divider_bg" id="0x7f020281" />
[COLOR="blue"] <public type="drawable" name="tw_stat_sys_battery" id="0x7f020283" />
<public type="drawable" name="tw_stat_sys_battery_charge" id="0x7f020290" />
<public type="drawable" name="tw_stat_sys_battery_not_charge" id="0x7f02029a" />
<public type="drawable" name="tw_stat_sys_battery_red" id="0x7f0202a4" />
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="0x7f0202a5" />[/COLOR]
<public type="drawable" name="notification_panel_bg" id="0x7f0200a4" />
<public type="drawable" name="tw_quick_panel_quick_setting_button_bg_normal" id="0x7f020228" />
...
6. Extract BatteryController.smali in smali.zip
7. Move and overwrite BatteryController.smali to SystemUI\smali\com\android\systemui\statusbar\policy\
(All the public value in BatteryController.smali is matched with values in default public.xml or what we added to public.xml just before.)
8. Open SystemUI\smali\com\android\systemui\statusbar\policy\BatteryController$BatteryStateChangeCallback.smali in Notepad++
Code:
# virtual methods
[COLOR="Red"].method public abstract onBatteryLevelChanged(IZ)V[/COLOR]
.end method
change like this
Code:
# virtual methods
[COLOR="Blue"].method public abstract onBatteryLevelChanged(IZI)V[/COLOR]
.end method
9. Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali in Notepad++
Find Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
[COLOR="blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v26, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
move-object/from16 v25, v0
const v27, [B]0x7f070077[/B]
move-object/from16 v0, v25
move/from16 v1, v27
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;
move-result-object v25
check-cast v25, Landroid/widget/ImageView;
move-object/from16 v0, v26
move-object/from16 v1, v25
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V[/COLOR]
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
0x7f070077 is a public id value of "battery"
<public type="id" name="battery" id="0x7f070077" />
Find iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
[COLOR="blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v25, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
move-object/from16 v26, v0
invoke-virtual/range {v25 .. v26}, Lcom/android/systemui/statusbar/policy/BatteryController;->addLabelView(Landroid/widget/TextView;)V[/COLOR]
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
Editing's all done.
Recompile and put in your Note.
Now we have the battery of JB 4.3
This means you can change battery images,
and make all of 1% batteries as you want!
Imaged Battery Mod for N9005XXUENA6/NA7/NB3
(Updated 15-02-2014)
parkhyb said:
Imaged Battery Mod for N9005XXUENA6
Click to expand...
Click to collapse
thanks mate
Thask for guider
It good for me
Gửi từ SM-N900 của tôi bằng cách sử dụng Tapatalk
nguyenxuanhoa said:
Thask for guider
It good for me
Gửi từ SM-N900 của tôi bằng cách sử dụng Tapatalk
Click to expand...
Click to collapse
Did you complete VN battery already?
Awesome
parkhyb said:
Did you complete VN battery already?
Awesome
Click to expand...
Click to collapse
I have completed .. Thank you again
Gửi từ SM-N900 của tôi bằng cách sử dụng Tapatalk
parkhyb said:
Imaged Battery Mod for N9005XXUENA6
Click to expand...
Click to collapse
:good:
Just as info.
On 360 Dpi I must keep the margin.
without: android:layout_marginStart="5.0dip"
With margin:
tkari4 said:
Just as info.
On 360 Dpi I must keep the margin.[/IMG]
Click to expand...
Click to collapse
Indeed any Dpi
Sent from my SM-N900 using xda premium
How to use the mod
parkhyb said:
Imaged Battery Mod for N9005XXUENA6
Click to expand...
Click to collapse
Hello, sorry I'm a newbie but how to use the "Imaged Battery Mod for N9005XXUENA6" file after you install it?
thank you in advance
stephane091 said:
Hello, sorry I'm a newbie but how to use the "Imaged Battery Mod for N9005XXUENA6" file after you install it?
thank you in advance
Click to expand...
Click to collapse
You have nothing to do, once you install your battery will be same like on 4.3 (if @parkhyb have attached mod is same mod as per said in guide). Basically this guide is more useful to ROM maker and Theme maker rather than end users except you just want to have same battery like on 4.3
You will get extra benefit that after imaged battery mod some Xposed module should work which not supporting battery mod on 4.4
Thanks exactly xposed module battery are ok
stephane091 said:
Thanks exactly xposed module battery are ok
Click to expand...
Click to collapse
Thanks for confirmation
stephane091 said:
Hello, sorry I'm a newbie but how to use the "Imaged Battery Mod for N9005XXUENA6" file after you install it?
thank you in advance
Click to expand...
Click to collapse
1.Download zip to your phone
2.Move into CWM Recovery
3.Install zip
1% Battery for KitKat
I made for me the 1% step battery and I'll share it.
Animated charge included.
Battery under 5%: RED
Battery under 15%: YELLOW
Battery over 15%: GREEN
Attachment includes: Green 100% Icon for the left side; Green-Orange Data traffic arrows.
Isn't flashable zip and can be used only with the mod in the OP.
Thank you. I ported it to our SGS4 Rom's....
Thanks! Good tootorial!
@ parkhyb
Thank you for the mod, work as expected here on stock 4.4.2.
@ tkari4
tkari4 said:
:good:
Just as info.
On 360 Dpi I must keep the margin.
without: android:layout_marginStart="5.0dip"
With margin:
Click to expand...
Click to collapse
Hi tkari4,
As i don't have a deodexed SystemUI.apk, can you share the version where you made the margin correction.
I was unable to decompile the SystemUI.apk in the flashable zip from the OP to edit it, got a lot of errors.
Thanks in advance.
Le [email protected] said:
@ parkhyb
Thank you for the mod, work as expected here on stock 4.4.2.
@ tkari4
Hi tkari4,
As i don't have a deodexed SystemUI.apk, can you share the version where you made the margin correction.
I was unable to decompile the SystemUI.apk in the flashable zip from the OP to edit it, got a lot of errors.
Thanks in advance.
Click to expand...
Click to collapse
Of course..
But mine is modified.
I don't use tw_ in the resource names, so the battery can be changed with older Xposed modules.
But you can't change battery with 4.3 Xposed modul. (only 4.3 includes tw_ in the resource names)
shoman94 said:
Thank you. I ported it to our SGS4 Rom's....
Click to expand...
Click to collapse
Great
waiting for you and jeboo's amazing rom =)
I didn't know that NA7 has been released
actually I don't have note3
Now I'm downloading the latest firmware and will update the mod and guide asap.
Including marginStart, revising marginBottom(I think 1.0dip is better.)
Personally I recommend tkari4's mod:thumbup:
Sent from my SHV-E300S using Tapatalk
***Here are some of my guide/mod links for Samsung ICS Devices***
These guides are specially for GT-S7562. But should work for other Samsung ICS devices also. Values may differ.
New Guide(s) added - 1st April, 2014 - 9:00 PM (GMT +5:30)
Code:
[CENTER][B][U][SIZE="5"]--Contents--[/SIZE][/U][/B]
*******************************[/CENTER]
[SIZE="4"][LIST]
[*]Post #1 - [U]Guide Links[/U]
[*]Post #2 - [U]Small guides[/U]
[*]Post #3 - [U]Reserved for future use[/U]
[*]Post #4 - [U]Reserved for future use[/U]
[/LIST][/SIZE]
[CENTER]*******************************[/CENTER]
AOSP Lockscreen with on/off toggle
Click to expand...
Click to collapse
0-100% Battery Mod
Click to expand...
Click to collapse
Most stable center clock mod for dual sim devices
Click to expand...
Click to collapse
Transparent status bar and pull down notification background
Click to expand...
Click to collapse
Add Hide Time and AM/PM toggle
Click to expand...
Click to collapse
System Black background to Transparent background
Click to expand...
Click to collapse
----------------------------------------------
***More will be there soon***
----------------------------------------------
Don't forget to PRESS THANKS :good: BUTTON
***Here are some of my small guides/mods for Samsung ICS Devices***
***New guide(s) added [29th March, 2014 | 11:57 AM | GMT +5:30]***
----------------------------------------------
Things you need:
Tool for decompiling/compiling work (I will not cover this, there are many guides for this)
Notepad++
Patience
Some common sense
Click to expand...
Click to collapse
Remove Carrier label in AOSP Lockscreen
Decompile framework-res.apk
Open res/layout/keyguard_screen_tab_unlock.xml
edit this line:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="Red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip
Do the same with keyguard_screen_tab_unlock_dual.xml for dual sim phone
edit these lines:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier2" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip
Save it and recompile framework-res.apk
Thats it
Click to expand...
Click to collapse
Disable Auto scrolling animation for notification toggles (quickpanel)
Decompile SystemUI.apk
Open com\android\systemui\statusbar\policy\quicksetting/QuickSettingPanel.smali
Search-
Code:
.method public prepareTranslationX(Z)V
Replace whole method with this
Code:
.method public prepareTranslationX(Z)V
.locals 3
.parameter "isExpanded"
return-void
.end method
Now Search-
Code:
.method public startScrollAnimation()V
Replace whole method with this
Code:
.method public startScrollAnimation()V
.locals 5
return-void
.end method
Save it and recompile SystemUI.apk
Thats it.
Credits:
majdinj
BOOTMGR
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Remove quickpanel toggles from expanded status bar
Decompile SystemUI.apk
Open res/layout/tw_status_bar_expanded.xml
Look for this
Code:
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]"
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.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
Change red part to 0.0dip
On dual sim device
Do the same with res/layout/tw_status_bar_expanded_dual.xml
Now open res/layout/tw_quick_setting_button.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_height[/COLOR]">
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height=[COLOR="red"]"@dimen/quick_setting_button_image_height[/COLOR]" android:layout_marginTop="2.0dip" />
<TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_status_height[/COLOR]" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Change red part to 0.0dip
Save it and recompile SystemUI.apk
Thats it. :good:
Click to expand...
Click to collapse
Remove label text of quickpanel toggles
Decompile SystemUI.apk
Open res/layout/tw_quick_setting_button.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_image_height" android:layout_marginTop="2.0dip" />
<TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_status_height" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Change red part to 0.0dip
Save it.
Open res/values/dimens.xml
Search
Code:
quick_setting_button_height
Now decrease the size of this dimen value to exclude the size of text.(quick_setting_button_text_height)
Example-
If "quick_setting_button_height"=80.dip and "quick_setting_button_text_height"=30.0dip
Then change the value of "quick_setting_button_height" from 80.0dip to 50.0dip
Click to expand...
Click to collapse
Save it and recompile SystemUI.apk
Thats it. :good:
Click to expand...
Click to collapse
Hide Status Bar in expanded view like Jelly Bean
Decompile SystemUI.apk
Open smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
Search for 0x7e1 and replace all with 0x7de
Now search this method
Code:
.method updateExpandedViewPos(I)V
Remove red lines
Code:
.method updateExpandedViewPos(I)V
.locals 12
.parameter "expandedPosition"
.prologue
const/16 v11, -0x2710
const/4 v7, 0x1
[COLOR="Red"].line 2638
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getHeight()I
move-result v3[/COLOR]
.line 2639
.local v3, h:I
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplayMetrics:Landroid/util/DisplayMetrics;
iget v2, v8, Landroid/util/DisplayMetrics;->heightPixels:I
.line 2643
.local v2, disph:I
iget-boolean v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z
if-nez v8, :cond_1
Go some lower or just search
const/16 v8, -0x2711
Click to expand...
Click to collapse
Add blue one
Code:
.line 2644
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateExpandedInvisiblePosition()V
.line 2731
:cond_0
:goto_0
return-void
.line 2650
:cond_1
[COLOR="blue"]const/4 v3, 0x0[/COLOR]
const/16 v8, -0x2711
if-ne p1, v8, :cond_6
.line 2651
move v6, v3
Save it and recompile SystemUI.apk
Thats it.
Enjoy!
Click to expand...
Click to collapse
Transparent status bar on lockscreen
Decompile android.policy.jar
Open com/android/internal/policy/impl/KeyguardViewManager.smali
Search-
Code:
.method public declared-synchronized show()V
Under this method:
Search
Code:
0x10100800
Change this value to
Code:
0x1010900
Recompile android.policy.jar
Thats it:good:
Credits:
xperiacle
Click to expand...
Click to collapse
Click to expand...
Click to collapse
----------------------------------------------
***More will be there soon***
----------------------------------------------
Don't forget to PRESS THANKS :good: BUTTON
Reserved
Reserved....
Appreciation
THank u bro ! very useful for begginers like me :good::good:
Keep updating and adding New guide ,
if u got time plz make a guide about adding default wallpaper in Secsettings.apk
Good...everything at one place
Sent from my GT-S7562 using xda app-developers app
@Mohitash : Tool for decompiling/compiling work
Can you tell which tools we should prefer ? #THANKS
NiTesh said:
@Mohitash : Tool for decompiling/compiling work
Can you tell which tools we should prefer ? #THANKS
Click to expand...
Click to collapse
There are many guides for this.
Use that tool which is best for you
I use ApkMuktiTool its best for me.
Tapatalk Signature
Sent from PMP U751 (GT-S7562)
I am still a noob...
Sharique244777 said:
THank u bro ! very useful for begginers like me :good::good:
Keep updating and adding New guide ,
if u got time plz make a guide about adding default wallpaper in Secsettings.apk
Click to expand...
Click to collapse
Thanks for appreciation
HELP!
Plz Expplain me bro About android.policy.jar
Mohitash said:
There are many guides for this.
Use that tool which is best for you
I use ApkMuktiTool its best for me.
Tapatalk Signature
Sent from PMP U751 (GT-S7562)
I am still a noob...
Click to expand...
Click to collapse
can you upload systemui.apk for expanded view in statusbar
New guide updated :good:
Mohitash said:
New guide updated :good:
Click to expand...
Click to collapse
i am having error while dwcompile systemui.apk
what to do?
This guide is not for a noob in editing.
Tried yourself, first you need to understand relation between public values in smali and xml.
I'm not creator of this mod, i have only ported over s4 from note 3 forum!
This mod was created by @parkhyb here
Big thanks to him
Also thanks to @OlliG for The Battery Icon Creator
Modified SystemUI for I9505XXUFNC9 is at post #2 (Flashable)
View attachment 2742163
{
"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"
}
This guide requires following things:
• APKtool
• Notepad++
• deodexed SystemUI.apk
• drawables.zip (attachment)
• smali.zip (attachment)
1. Decompile SystemUI.apk using APKtool
2. Choose a icon pack and extract two folders in drawables_xxxx_xxx.zip
3. Move and overwrite two folders(drawable, drawable-xxhdpi) to SystemUI\res\
4. Open SystemUI\res\layout\status_bar.xml in Notepad++
Find @id/battery
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Red"] <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />[/COLOR]
</LinearLayout>
...
change like this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Blue"]<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="1.0dip" android:layout_marginStart="2.0dip" />[/COLOR]
</LinearLayout>
...
Now recompile SystemUI to create public ids for the new resurces
Decompil the new SystemUI.apk and navigate to:
res/values and open public.xml with notepad++
Now extract BatteryController.smali in smali.zip and open with notepad++
We must match the IDs from BatteryController.smali wit IDs from public.xml
Find in BatteryController.smali
Code:
.line 46
const v1, [COLOR="Red"]0x7f02028b[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery" id="[COLOR="Blue"]0x7f02028b[/COLOR]" />
Find in BatteryController.smali
Code:
.line 47
const v1, [COLOR="Red"]0x7f0202f4[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_charge" id="[COLOR="Blue"]0x7f0202f4[/COLOR]" />
Find in BatteryController.smali
Code:
.line 67
const v1, [COLOR="Red"]0x7f02036f[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_red" id="[COLOR="Blue"]0x7f02036f[/COLOR]" />
Find in BatteryController.smali
Code:
.line 149
const v9, [COLOR="Red"]0x7f02026b[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_6_level_signal_0" id="[COLOR="Blue"]0x7f02026b[/COLOR]" />
Find in BatteryController.smali
Code:
.line 160
move-object/from16 v0, p0
iget-object v15, v0, Lcom/android/systemui/statusbar/policy/BatteryController;->mContext:Landroid/content/Context;
const v16, [COLOR="Red"]0x7f0a008d[/COLOR]
const/16 v17, 0x1
and replace id with one from public.xml :
Code:
<public type="string" name="accessibility_battery_level" id="[COLOR="Blue"]0x7f0a008d[/COLOR]" />
Find in BatteryController.smali
Code:
.line 103
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 117
:cond_5
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 126
:cond_8
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 166
.local v14, v:Landroid/widget/TextView;
move-object/from16 v0, p0
iget-object v15, v0, Lcom/android/systemui/statusbar/policy/BatteryController;->mContext:Landroid/content/Context;
const v16, [COLOR="Red"]0x7f0a0027[/COLOR]
const/16 v17, 0x1
and replace id with one from public.xml :
Code:
<public type="string" name="status_bar_settings_battery_meter_format" id="[COLOR="Blue"]0x7f0a0027[/COLOR]" />
Now save BatteryController.smali and move and overwrite BatteryController.smali to SystemUI\smali\com\android\systemui\statusbar\policy\
Open SystemUI\smali\com\android\systemui\statusbar\policy\BatteryController$BatteryStateChangeCallback.smali in Notepad++
Code:
# virtual methods
[COLOR="Red"].method public abstract onBatteryLevelChanged(IZ)V[/COLOR]
.end method
change like this
Code:
# virtual methods
[COLOR="Blue"].method public abstract onBatteryLevelChanged(IZI)V[/COLOR]
.end method
Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali in Notepad++
Find Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
[COLOR="Blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v26, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
move-object/from16 v25, v0
const v27, 0x7f070077
move-object/from16 v0, v25
move/from16 v1, v27
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;
move-result-object v25
check-cast v25, Landroid/widget/ImageView;
move-object/from16 v0, v26
move-object/from16 v1, v25
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V[/COLOR]
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
0x7f070078 is a public id value of :
Code:
<public type="id" name="battery" id="0x7f070078" />
Find iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
[COLOR="Blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v25, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
move-object/from16 v26, v0
invoke-virtual/range {v25 .. v26}, Lcom/android/systemui/statusbar/policy/BatteryController;->addLabelView(Landroid/widget/TextView;)V[/COLOR]
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
Editing's all done.
Recompile and put in your S4.
Now we have the battery of JB 4.3
This means you can change battery images,
and make all of 1% batteries as you want!
Sorry my bad english, i am not good in speaking english!
View attachment Drawables_blue_percentaje.zip
View attachment Drawables_cayn_percentaje.zip
View attachment Drawables_green_percentaje.zip
View attachment Drawables_green_without_percentaje.zip
View attachment Drawables_white_percentaje.zip
All flashable zip should work on both roms odex/deodexed
Modded SystemUI.apk for S4 GT-I9505 Snapdragon version
I9505XXUFNC9_Battery_Installer.zip
I9505XXUFNC5_Battery_Installer.zip
I9505VJUFNC2_Battery_Installer.zip
Modded SystemUI.apk for S4 GT-I9500 Exynos version
I9500XXUFNC1_Battery_Installer.zip
iepurasu_poznas said:
This guide is not for a noob in editing.
Tried yourself, first you need to understand relation between public values in smali and xml.
I'm not creator of this mod, i have only ported over s4 from note 3 forum!
This mod was created by @parkhyb here
Big thanks to him
Modified SystemUI for I9505XXUFNC9 is at post #2 (Flashable)
View attachment 2738280
View attachment 2738281
This guide requires following things:
• APKtool
• Notepad++
• deodexed SystemUI.apk
• drawables.zip (attachment)
• smali.zip (attachment)
1. Decompile SystemUI.apk using APKtool
2. Extract two folders in drawables.zip
3. Move and overwrite two folders(drawable, drawable-xxhdpi) to SystemUI\res\
4. Open SystemUI\res\layout\status_bar.xml in Notepad++
Find @id/battery
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Red"] <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />[/COLOR]
</LinearLayout>
...
change like this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" 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" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
[COLOR="Blue"]<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="1.0dip" android:layout_marginStart="2.0dip" />[/COLOR]
</LinearLayout>
...
Now recompile SystemUI to create public ids for the new resurces
Decompil the new SystemUI.apk and navigate to:
res/values and open public.xml with notepad++
Now extract BatteryController.smali in smali.zip and open with notepad++
We must match the IDs from BatteryController.smali wit IDs from public.xml
Find in BatteryController.smali
Code:
.line 46
const v1, [COLOR="Red"]0x7f02028b[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery" id="[COLOR="Blue"]0x7f02028b[/COLOR]" />
Find in BatteryController.smali
Code:
.line 47
const v1, [COLOR="Red"]0x7f0202f4[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_charge" id="[COLOR="Blue"]0x7f0202f4[/COLOR]" />
Find in BatteryController.smali
Code:
.line 67
const v1, [COLOR="Red"]0x7f02036f[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_red" id="[COLOR="Blue"]0x7f02036f[/COLOR]" />
Find in BatteryController.smali
Code:
.line 149
const v9, [COLOR="Red"]0x7f02026b[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_6_level_signal_0" id="[COLOR="Blue"]0x7f02026b[/COLOR]" />
Find in BatteryController.smali
Code:
.line 160
move-object/from16 v0, p0
iget-object v15, v0, Lcom/android/systemui/statusbar/policy/BatteryController;->mContext:Landroid/content/Context;
const v16, [COLOR="Red"]0x7f0a008d[/COLOR]
const/16 v17, 0x1
and replace id with one from public.xml :
Code:
<public type="string" name="accessibility_battery_level" id="[COLOR="Blue"]0x7f0a008d[/COLOR]" />
Find in BatteryController.smali
Code:
.line 103
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 117
:cond_5
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 126
:cond_8
const v9, [COLOR="Red"]0x7f020370[/COLOR]
and replace id with one from public.xml :
Code:
<public type="drawable" name="tw_stat_sys_battery_usb_not_charge" id="[COLOR="Blue"]0x7f020370[/COLOR]" />
Find in BatteryController.smali
Code:
.line 166
.local v14, v:Landroid/widget/TextView;
move-object/from16 v0, p0
iget-object v15, v0, Lcom/android/systemui/statusbar/policy/BatteryController;->mContext:Landroid/content/Context;
const v16, [COLOR="Red"]0x7f0a0027[/COLOR]
const/16 v17, 0x1
and replace id with one from public.xml :
Code:
<public type="string" name="status_bar_settings_battery_meter_format" id="[COLOR="Blue"]0x7f0a0027[/COLOR]" />
Now save BatteryController.smali and move and overwrite BatteryController.smali to SystemUI\smali\com\android\systemui\statusbar\policy\
Open SystemUI\smali\com\android\systemui\statusbar\policy\BatteryController$BatteryStateChangeCallback.smali in Notepad++
Code:
# virtual methods
[COLOR="Red"].method public abstract onBatteryLevelChanged(IZ)V[/COLOR]
.end method
change like this
Code:
# virtual methods
[COLOR="Blue"].method public abstract onBatteryLevelChanged(IZI)V[/COLOR]
.end method
Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali in Notepad++
Find Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
[COLOR="Blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v26, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
move-object/from16 v25, v0
const v27, 0x7f070077
move-object/from16 v0, v25
move/from16 v1, v27
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->findViewById(I)Landroid/view/View;
move-result-object v25
check-cast v25, Landroid/widget/ImageView;
move-object/from16 v0, v26
move-object/from16 v1, v25
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V[/COLOR]
.line 727
new-instance v25, Lcom/android/systemui/statusbar/policy/SmartBondingController;
move-object/from16 v0, p0
...
0x7f070078 is a public id value of :
Code:
<public type="id" name="battery" id="0x7f070078" />
Find iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
add like this
Code:
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
[COLOR="Blue"] move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryController:Lcom/android/systemui/statusbar/policy/BatteryController;
move-object/from16 v25, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryText:Landroid/widget/TextView;
move-object/from16 v26, v0
invoke-virtual/range {v25 .. v26}, Lcom/android/systemui/statusbar/policy/BatteryController;->addLabelView(Landroid/widget/TextView;)V[/COLOR]
.line 731
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
...
Editing's all done.
Recompile and put in your Note.
Now we have the battery of JB 4.3
This means you can change battery images,
and make all of 1% batteries as you want!
Sorry my bad english, i am not good in speaking english!
Click to expand...
Click to collapse
Can you make NC1 I9500 too?
iepurasu_poznas said:
Imaged Battery Mod for I9505XXUFNC9
Click to expand...
Click to collapse
For I9505XXUFNC9 only?
Androiders96 said:
Can you make NC1 I9500 too?
Click to expand...
Click to collapse
This tutorial i think should work on i9500 to but i'm not sure. Post NC1 framework-res.apk and deodexed NC1 sistemul.apk and i will try to make it for you.
Androiders96 said:
Can you make NC1 I9500 too?
Click to expand...
Click to collapse
fongbeery.dx said:
For I9505XXUFNC9 only?
Click to expand...
Click to collapse
Post your deodexed sistemui.apk and i will try to make it for you.
iepurasu_poznas said:
This tutorial i think should work on i9500 to but i'm not sure. Post NC1 framework-res.apk and deodexed NC1 sistemul.apk and i will try to make it for you.
Click to expand...
Click to collapse
I use s5 mod tw framework res and i9500 mod s5 nb3
Can? If can I will upload file
I will try but I'm cannot promise nothing. Upload your tw framework.apk.
Also can you provide me all this files unmodified to!?
Trimis de pe al meu GT-I9505 folosind Tapatalk
iepurasu_poznas said:
I will try but I'm cannot promise nothing. Upload your tw framework.apk.
Also can you provide me all this files unmodified to!?
Trimis de pe al meu GT-I9505 folosind Tapatalk
Click to expand...
Click to collapse
Yes I upload mod and non mod nb3 and fnc1
But sorry my networ very slow
Please be patient
No problem. However i cannot mod until tonight the files because i am to work now.
Trimis de pe al meu GT-I9505 folosind Tapatalk
iepurasu_poznas said:
No problem. However i cannot mod until tonight the files because i am to work now.
Trimis de pe al meu GT-I9505 folosind Tapatalk
Click to expand...
Click to collapse
https://docs.google.com/file/d/0B9HiXg47JmX-bE9ydlJLVHZseWM/edit?usp=docslist_api
Framework-res.apk no s5 mod ( default )
I will upload systemui fnc1
https://docs.google.com/file/d/0B9HiXg47JmX-dTFXemxpemtqZkE/edit?usp=docslist_api
Nc1 systemui ( no mod )
iepurasu_poznas said:
Post your deodexed sistemui.apk and i will try to make it for you.
Click to expand...
Click to collapse
My systemui.apk
SystemUI.apk
fongbeery.dx said:
My systemui.apk
SystemUI.apk
Click to expand...
Click to collapse
From what based rom it's this systemui.apk!? I hope isn't a moded systemui!
iepurasu_poznas said:
From what based rom it's this systemui.apk!? I hope isn't a moded systemui!
Click to expand...
Click to collapse
Based ROM i9500DXUFNB2
iepurasu_poznas said:
Imaged Battery Mod for I9505XXUFNC9
Click to expand...
Click to collapse
Man i get a lot of force closes. I search for a image battery in kitkat for many times. If i upload my systemfui for you, you can make this mod in my file? Please.
Your base rom it's always xxufnc9!? I use exactly same systemui.apk and all works great.
Trimis de pe al meu GT-I9505 folosind Tapatalk
iepurasu_poznas said:
Your base rom it's always xxufnc9!? I use exactly same systemui.apk and all works great.
Trimis de pe al meu GT-I9505 folosind Tapatalk
Click to expand...
Click to collapse
Yes. Omega v28.
Should work. Download and flash again and after flash wipe cache and dalvik cache.
Trimis de pe al meu GT-I9505 folosind Tapatalk
thanks for sharing, quiet a big tutorial for noobs like me.
@fongbeery.dx i need framework-res.apk to!