[Guide] Adding Ram in Recents with toggles - Android General

Hello guys
here i am back with a new guide on adding Ram Info on Recents.
Before starting this guide make sure you have tried this. Because this guide is based on that guide.
[This guide is only for 5.0+]
Credit:-
KachalkinGeorg (The GK)
Requirement (Deodexed):-
1.Settings.apk
2.SystemUI.apk
3.NotePad++
4.Patience.. if you dont have try to get it
First part ( Settings.apk )
1.Decompile Settings.apk
2.Download ramsettings.zip from attachment. Extarct and copy files to your Decompiled Settings
3.Open Settings\res\xml\gk_recents_panel_settings.xml
add below preference
Code:
<PreferenceScreen android:title="@string/recents_panel_title" android:key="recents_panel" android:fragment="com.android.settings.gk.RecentsPanel.RecentsPanelSettings" />
4.Open Settings\res\values\arrays.xml
add below arrays
Code:
<string-array name="recents_clear_all_location_entries">
<item>@string/recents_clear_all_location_top_right</item>
<item>@string/recents_clear_all_location_top_left</item>
<item>@string/recents_clear_all_location_top_center</item>
<item>@string/recents_clear_all_location_bottom_right</item>
<item>@string/recents_clear_all_location_bottom_left</item>
<item>@string/recents_clear_all_location_bottom_center</item>
</string-array>
<string-array name="recents_clear_all_location_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</string-array>
5.Open Settings\res\values\strings.xml
add below strings
Code:
<string name="recents_panel_title"><b>Recents</b></string>
<string name="recents_panel_category">Recents panel</string>
<string name="recents_button_show_clear_all_title">Clear all button</string>
<string name="recents_button_show_clear_all_summary">Show clear all button</string>
<string name="recents_clear_all_location_title">Clear all location</string>
<string name="recents_clear_all_location_top_right">Top right</string>
<string name="recents_clear_all_location_top_left">Top left</string>
<string name="recents_clear_all_location_top_center">Top center</string>
6.Recompile and Decompile Settings (For id's)
7.Open Settings\com\android\settings\gk\RecentsPanel\RecentsPanelSettings.smali
find
Code:
0x7f09042c
replace with below id
Code:
<public type="string" name="recents_clear_all_location_top_right"
find
Code:
0x7f09042d
replace with below id
Code:
<public type="string" name="recents_clear_all_location_top_left"
find
Code:
0x7f09042e
replace with below id
Code:
<public type="string" name="recents_clear_all_location_top_center"
find
Code:
0x7f09042f
replace with below id
Code:
<public type="string" name="recents_clear_all_location_bottom_right"
find
Code:
0x7f090430
replace with below id
Code:
<public type="string" name="recents_clear_all_location_bottom_left"
find
Code:
0x7f090431
replace with below id
Code:
<public type="string" name="recents_clear_all_location_bottom_center"
find
Code:
0x7f06004b
replace with below id
Code:
<public type="xml" name="gk_recents_panel"
8.Recompile Settings and move to your device
Continued on next post.

Continued.
Final part ( SystemUI.apk )
1.Decompile SystemUI.apk
2.Go to "SystemUI\smali\com\android\systemui\recents"
find "RecentsActivity$5.smali". if you found this smali download this. Extract and copy files to your decompiled SystemUI
if you didnt find "RecentsActivity$5.smali" in "SystemUI\smali\com\android\systemui\recents" Download this. Extract and copy files to your decompiled SystemUI
Click to expand...
Click to collapse
3.Open SystemUI\res\values\ids.xm
add below id's
Code:
<item type="id" name="recents_membar">false</item>
<item type="id" name="recents_memory_bar">false</item>
<item type="id" name="recents_memory_text">false</item>
<item type="id" name="floating_action_button">false</item>
4.Open SystemUI\res\values\dimens.xml
and add below demens
Code:
<dimen name="floating_action_button_height">54.0dip</dimen>
<dimen name="floating_action_button_width">54.0dip</dimen>
<dimen name="floating_action_button_translation_z">12.0dip</dimen>
<dimen name="floating_action_button_margin_side">32.0dip</dimen>
<dimen name="floating_action_button_margin_bottom">45.0dip</dimen>
5.Open SystemUI\res\values\colors.xml
add below colours
Code:
<color name="fab_color">#ffdc4c3c</color>
<color name="floating_action_button_icon_color">#ffffffff</color>
6.Recompile and Decompile SystemUI (For id's)
7.Open SystemUI\smali\com\android\systemui\recents\RecentsActivity.smali
find
0x7f0a0000 - <public type="id" name="clear_recents"
Click to expand...
Click to collapse
( Two Times )
replace with
0x7f0f00e2 - <public type="id" name="floating_action_button"
Click to expand...
Click to collapse
8.Open SystemUI\smali\com\android\systemui\recents\views\RecentsView.smali
Find
Code:
0x7f0f016f
replace with below id
Code:
<public type="id" name="floating_action_button"
find
Code:
0x7f0f00db
replace with below id
Code:
<public type="id" name="clear_recents"
find
Code:
0x7f0f016e
replace with below id
Code:
<public type="id" name="recents_memory_text"
find
Code:
0x7f0f016d
replace with below id
Code:
<public type="id" name="recents_memory_bar"
find
Code:
0x1050011
replace with below id
Code:
<public type="dimen" name="status_bar_height"
( Two Times)
find
Code:
0x7f090038
replace with below id
Code:
<public type="dimen" name="status_bar_header_height"
9.Recompile and move to your device
Enjoy...

Related

(01-17-13)Batch Themer V1.5RLS

This is a two-part thread. First part will cover my Batch Theme script I created for the Galaxy S III. The second part is a guide of where all major png's are located and what Png's still need to be found.
Batch Theme script
It copies one png and renames the copy to every PNG within framework-res.apk that has the same dimensions. So far it can create about 60 png's in about a second. As simple as it is, this script will save any themer at least an hour of work if not more. My goal will be to batch theme framework-res.apk in a couple seconds. Here's a quick video of what the script is capable of:
You can download the script here:
RLS1.5
Changelog:
*Batch theme folder added(Just modify the PNG's in test folder then copy those to the primary folder, run batch...enjoy
*Added more png's to main script. (currently up to 134 PNG's on batch theme)
Media Link: http://www.mediafire.com/?jc3d41eu63gdbcn
Changelog-Batch Theme Script
Primary PNG's/9.png's needed to run batch script (Currently 13 below will generate 115 png's)
ab_stacked_solid_dark_holo.9.png
btn_default_normal_holo.9.png
btn_default_normal_holo_dark.9.png
btn_radio_off.png
btn_radio_on.png
dialog_full_holo_dark.9.png
dialog_full_holo_light.9.png
dialog_middle_holo.9.png
switch_thumb_activated_holo_dark.9.png
toast_frame_holo.9.png
tw_dialog_bottom_holo_dark.9.png
tw_dialog_bottom_medium_holo_dark.9.png
tw_menu_hardkey_panel_holo_dark.9.png
PNG location's for Galaxy SIII
With the help of other themers, I'm hoping we can get some coordination going so themes can be completed in a much quicker time-frame.
I'll do the best I can to post tutorials, screen-shots and whatever else I can to aid in them development.
Credits:
jonathanphx1-))
)))))))))))))))))))))-Huge Thanks to both these devs for putting together a nice hack to allow for three NEW png's we can use in our themes. Make sure you hit them up with some thanks.
Gunthermic's-))
PNG's That need to be located.
Menu popup press png
{
"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"
}
PNG that have been located and their location(These PNG's took hours to find)
status_bar_item_background_normal (Seen here when pressing on the dropdown menu) Found!-Huge thanks to jonathanphx1& Gunthermic's for the hack. Without them, THIS WOULD NOT BE POSSIBLE
Instructions for modifying XML:
jonathanphx1-
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile
SystemUI->values->drawable.xml
Click to expand...
Click to collapse
Code:
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff11111 1</item>
[COLOR="Magenta"][B]<drawable name="notification_item_background_color_pressed"> @drawable/status_bar_item_background_normal</drawable>[/B][/COLOR]
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
[COLOR="Magenta"][B]<drawable name="status_bar_background">@drawable/statusbar_background</drawable>[/B][/COLOR]
<item type="drawable" name="status_bar_recents_background_solid">#b30000 00</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background" >#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color ">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color"># ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
[COLOR="Magenta"][B]<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>[/B][/COLOR]
All png's that follow are located in framework-res.apk
Menu Popup. (When pressing hard menu)
Location: framework-res.apk/xdpi/tw_menu_hardkey_panel_holo_dark.9.png
Power Menu: (Found when holding down power. This is the bottom part of that menu)
tw_dialog_bottom_holo_dark.9.png
Screenshot:
Small Toaster Popup (The box that pop's up when the phone boots to homescreen. This usually says, Super User has been granted Root access in very small font)
toast_frame_holo.9.png
Screenshot:
Popup Top Menu ( Found when the screen loads and a popup menu is displayed. This is the top portion )
dialog_top_holo_dark.9.png
Screenshot:
Pop up Bottom Rest Toaster Box (Found in wifi Explorer as the popup box)
dialog_button_bottom_holo_dark.9.png
Popup Bottom Toaster Box ( The bottom PNG you see when the phone initially boots up )
tw_menu_dropdown_panel_holo_dark.9.png
Pop up Bottom png rest for restart menu ( Found when selecting Power Menu,Restart
tw_dialog_bottom_medium_holo_dark.9.png
Great post Thanks.
Nice job!
what I would like to know, is people who are successfully decompiling, recompiling and then using a systemui.apk, what apktools they are using.
I can decompile, recompile, and use framework-res.apk and twframework-res.apk but cannot do the same with systemui.apk
nosympathy said:
what I would like to know, is people who are successfully decompiling, recompiling and then using a systemui.apk, what apktools they are using.
I can decompile, recompile, and use framework-res.apk and twframework-res.apk but cannot do the same with systemui.apk
Click to expand...
Click to collapse
No problem bud. Prddog1 hooked me up with the latest apktool.
Good bye HTC Rezound, hello Galaxy S3!
I look forward to giving this a shot.
Sent from my SCH-I535 using Xparent ICS Tapatalk 2
AndroidGraphix said:
No problem bud. Prddog1 hooked me up with the latest apktool.
Good bye HTC Rezound, hello Galaxy S3!
Click to expand...
Click to collapse
Yeah I thank you again for your help. Having one of those blonde moments haha.
Sent from my SCH-I535 using xda app-developers app
PNG's That need to be located.
Dropdown Menu Press.png
I'm looking for the press.png found for the drop down menu. I've been told it's in drawable.xml under SystemUI.apk but I've modified it to no end with zero results. Please advise.
Raider found it with Gunthermic's help. Other treasures in that xml too.
SystemUI,->values->drawables.xml...
jonathanphx1 said:
PNG's That need to be located.
Dropdown Menu Press.png
I'm looking for the press.png found for the drop down menu. I've been told it's in drawable.xml under SystemUI.apk but I've modified it to no end with zero results. Please advise.
Raider found it with Gunthermic's help. Other treasures in that xml too.
SystemUI,->values->drawables.xml...
Click to expand...
Click to collapse
Thanks buddy. Can you paste and bold the line of code I need to edit? I've honestly changed it at least three times with no luck. I was trying to redirect the xml to a png by inserting @drawable/status_bar_background but it didn't work. Any ideas?
Good bye HTC Rezound, hello Galaxy S3!
AndroidGraphix said:
Thanks buddy. Can you paste and bold the line of code I need to edit? I've honestly changed it at least three times with no luck. I was trying to redirect the xml to a png by inserting @drawable/status_bar_background but it didn't work. Any ideas?
Good bye HTC Rezound, hello Galaxy S3!
Click to expand...
Click to collapse
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
jonathanphx1 said:
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
#ffffffff
#ff111111
@drawable/status_bar_item_background_normal
#ff1d1d1d
@drawable/statusbar_background
#b3000000
#88000000
#ff090909
#ff000000
#d8000000
#99ffffff
#ffaaaaaa
#00000000
@drawable/status_bar_item_background_normal]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
Click to expand...
Click to collapse
Awesome bro. Thanks a million for posting you and Gunthermic's hack. I'll post this in the op in an hour.
Now all we need is to insert xml code to allow for a status_bar_background_rest
Good bye HTC Rezound, hello Galaxy S3!
EDIT
If anyone can help. I tried the above mod in drawable.xml but when I flash the zip, nothing happens.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0083">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0084">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0085">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0086">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0087">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0088">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0089">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ab">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fb">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fc">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ff">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0100">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0105">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0106">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0118">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0119">false</item>
<item type="drawable" name="APKTOOL_DUMMY_016a">false</item>
</resources>
I've inserted the png's into drawable-XDPI folder.
I also don't know if the first code posted was correct or if my modifed xml below is how it should be written:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<item type="drawable" drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<item type="drawable" drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<item type="drawable" drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0083">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0084">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0085">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0086">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0087">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0088">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0089">false</item>
<item type="drawable" name="APKTOOL_DUMMY_008a">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ab">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fb">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00fc">false</item>
<item type="drawable" name="APKTOOL_DUMMY_00ff">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0100">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0105">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0106">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0118">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0119">false</item>
<item type="drawable" name="APKTOOL_DUMMY_016a">false</item>
</resources>
looking forward to using this!
Having issues recompiling SystemUI.apk. Any help?
I have been themeing my own stuff for awhile but did each file individually and have never ran scripts so I was wondering if anyone has a few minutes if you would mind explaining how to get this to work.
thanks
jdpeck said:
I have been themeing my own stuff for awhile but did each file individually and have never ran scripts so I was wondering if anyone has a few minutes if you would mind explaining how to get this to work.
thanks
Click to expand...
Click to collapse
Best thing to do is match the PNG's used in the script then add those png's to the main folder followed by running the script. You only need to match the first png.
Sent from my SCH-I535 using xda premium
Batch Themer updated to RLS 1.5. :laugh: OP has been updated.
Raider rocks
Glad to see you back in the game homie and sharing your knowledge. Thanks also to all those that have shared with you so that you can share with us. (ie: jonathanphx1 and team Average Joe's) :good:
jonathanphx1 said:
That's what I did and it worked fine. Also got rid of the black status bar and am directing it to a png instead of a color code as you can see from the pic.
Sure here.... this is in the SystemUI->values->drawable.xml
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<drawable name="notification_item_background_color_pressed">@drawable/status_bar_item_background_normal</drawable>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<drawable name="status_bar_background">@drawable/statusbar_background</drawable>
<item type="drawable" name="status_bar_recents_background_solid">#b3000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#d8000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
<item type="drawable" name="tw_notification_background_null">#00000000</item>
<drawable name="tw_notification_background_pressed">@drawable/status_bar_item_background_normal</drawable>]
I directed it to status_bar_item_background_normal ( a png I added) but you can direct it to what ever you want. Make sure you add the desired png into the xhdpi folder in the SystemUI and recompile.
---------- Post added at 03:14 AM ---------- Previous post was at 03:01 AM ----------
Raider reread my post above about the status bar background. was editting it when you were reading it
Click to expand...
Click to collapse
nice work guys. thanks for all your help. i would be totally clueless without you knowledge. gonna see if i can get the nano dialer over to the dark horse rises therme for my phone. gonna be tough on a noob to this...
pop up
hi there awsome work!! just wondering if u cud plz tell me name of this popup, i cant seem to find it , plz
litlnicky said:
hi there awsome work!! just wondering if u cud plz tell me name of this popup, i cant seem to find it , plz
Click to expand...
Click to collapse
Its in framework-res.apk.... I can't remember off hand but is something like... search dropdown... It's a 9 file
HAHA...I bet you thought there was gonna be something awesome here, but it's just a regular old signature
GalaxyMOD spilled ink on my MulitiWindows

decompile APK

I have decompile the apk using apktool and on public.xml I found something like the following.
<public type="drawable" name="border" id="0x7f020001" />
<public type="drawable" name="button1" id="0x7f020006" />
<public type="drawable" name="button1_1" id="0x7f020007" />
<public type="drawable" name="button2" id="0x7f020008" />
<public type="drawable" name="button2_1" id="0x7f020009" />
<public type="drawable" name="button3" id="0x7f02000a" />
<public type="drawable" name="button3_1" id="0x7f02000b" />
<public type="drawable" name="button4" id="0x7f02000c" />
<public type="drawable" name="button4_1" id="0x7f02000d" />
Click to expand...
Click to collapse
Is there anyway to decompile these values? or if I need to add more, I can compile using the same algorithm?
thanks,
public.xml is not used so much by regular applications.
aapt scans the resources and generates arbitrary numeric identifiers.
It generates R.java which is used to compile these values into your Java code.
When you apktool d an apk, you get smali code with numeric ids for resources.
apktool generates public.xml so you can reference by the same value as the existing code.
It's should be possible to simply add new resources.
The aapt should take note of public.xml and not reissue any of the used numeric ids.
Renate NST said:
public.xml is not used so much by regular applications.
aapt scans the resources and generates arbitrary numeric identifiers.
It generates R.java which is used to compile these values into your Java code.
When you apktool d an apk, you get smali code with numeric ids for resources.
apktool generates public.xml so you can reference by the same value as the existing code.
It's should be possible to simply add new resources.
The aapt should take note of public.xml and not reissue any of the used numeric ids.
Click to expand...
Click to collapse
so how do I understand what is
<public type="drawable" name="button1" id="0x7f020006" />
in this case it is just the button id.
What I was more interested to know what this
<public type="string" name="client_id" id="0x7f08000d" />
is there anyway for me to know the decompile value of the client_id?
-greenboy- said:
<public type="string" name="client_id" id="0x7f08000d" />
is there anyway for me to know the decompile value of the client_id?
Click to expand...
Click to collapse
Um, it's 0x7f08000d.
That means when it was initially compiled that aapt thought that 0x7f08000d was a pretty value for it.
Somebody's original Java code said:
Code:
String secret = getString(R.string.client_id);
Which is exactly the same (given the id assignments) as:
Code:
String secret = getString(0x7f08000d);
If you are looking for the string itself, it's in res/values/strings.xml
Just search for client_id, it's plain as day.

Failed to add Listview Animation on Mediatek Rom

I tried so many time to add list view animation.
but every time i failed.
Please help me......
i followed those thread.
Link:
http://forum.xda-developers.com/showthread.php?t=2685334
http://forum.xda-developers.com/android/themes/guide-how-to-port-mokee-listview-t2808288
Advance thanks
sorry bad english
And how about you tell your progress?
Any logcat . why it did not work?
Vivek_Neel said:
And how about you tell your progress?
Any logcat . why it did not work?
Click to expand...
Click to collapse
I followed this progress
Adi Aisiteru Reborn said:
Guide for CyanogenMod11 KOT49H
HOW TO PORT "Mokee ListView Animations" for CyanogenMod11 only !!
Hello guys, I want to share to you smali Guide how to port with settings. custom Mokee ListView Animation,.
credit to Mokee rom
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk and JAR file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
Settings.apk
Decompile your CM11 Settings.apk
1. Settings.apk\res\values\arrays.xml
add this to end of it before
Code:
</resources>
so it will be like this
Code:
<string-array name="listview_animation_entries">
<item>@string/listview_off</item>
<item>@string/listview_wave_left</item>
<item>@string/listview_wave_right</item>
<item>@string/listview_scale</item>
<item>@string/listview_alpha</item>
<item>@string/listview_stack_top</item>
<item>@string/listview_stack_bottom</item>
<item>@string/listview_unfold</item>
<item>@string/listview_fold</item>
<item>@string/listview_translate_left</item>
<item>@string/listview_translate_right</item>
<item>@string/listview_rotate</item>
</string-array>
<string-array name="listview_animation_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
</string-array>
<string-array name="listview_interpolator_entries">
<item>@string/listview_off</item>
<item>@string/listview_accelerate_interpolator</item>
<item>@string/listview_decelerate_interpolator</item>
<item>@string/listview_accelerate_decelerate_interpolator</item>
<item>@string/listview_anticipate_interpolator</item>
<item>@string/listview_overshoot_interpolator</item>
<item>@string/listview_anticipate_overshoot_interpolator</item>
<item>@string/listview_bounce_interpolator</item>
</string-array>
<string-array name="listview_interpolator_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
</string-array>
[COLOR="Blue"]</resources>[/COLOR]
2. Settings.apk\res\values\strings.xml
add this to end of it before
Code:
</resources>
so it will be like this
Code:
<string name="listview_animation_title">ListView animation</string>
<string name="listview_off">Off</string>
<string name="listview_wave_left">Wave (left)</string>
<string name="listview_wave_right">Wave (right)</string>
<string name="listview_alpha">Alpha</string>
<string name="listview_scale">Scale</string>
<string name="listview_stack_top">Stack (top)</string>
<string name="listview_stack_bottom">Stack (bottom)</string>
<string name="listview_unfold">Unfold</string>
<string name="listview_fold">Fold</string>
<string name="listview_translate_left">Translate (left)</string>
<string name="listview_translate_right">Translate (right)</string>
<string name="listview_rotate">Rotate</string>
<string name="listview_interpolator_title">ListView interpolator</string>
<string name="listview_accelerate_interpolator">Accelerate</string>
<string name="listview_decelerate_interpolator">Decelerate</string>
<string name="listview_accelerate_decelerate_interpolator">Accelerate decelerate</string>
<string name="listview_anticipate_interpolator">Anticipate</string>
<string name="listview_overshoot_interpolator">Overshoot</string>
<string name="listview_anticipate_overshoot_interpolator">Anticipate overshoot</string>
<string name="listview_bounce_interpolator">Bounce</string>
[COLOR="Blue"]</resources>[/COLOR]
3. Settings.apk\res\xml\system_ui_settings.xml
add this line
Code:
<PreferenceScreen android:title="@string/listview_animation_title" android:key="listview_animation_settings" android:fragment="com.android.settings.adi.ListViewSettings" />
this is the example :
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/system_interface_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:title="@string/status_bar_title" android:key="status_bar" android:fragment="com.android.settings.cyanogenmod.StatusBar" />
<PreferenceScreen android:title="@string/quick_settings_panel_title" android:key="quick_settings_panel" android:fragment="com.android.settings.quicksettings.QuickSettings" />
<PreferenceScreen android:title="@string/notification_drawer_title" android:key="notification_drawer" android:fragment="com.android.settings.cyanogenmod.NotificationDrawer" />
<PreferenceCategory android:title="@string/power_menu_expanded_desktop" android:key="expanded_desktop_category">
<ListPreference android:persistent="false" android:entries="@array/expanded_desktop_entries" android:title="@string/expanded_desktop_style" android:key="expanded_desktop" android:entryValues="@array/expanded_desktop_values" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/expanded_desktop_system_bars_visibility" android:key="expanded_desktop_system_bars_visibility" android:summary="@string/expanded_desktop_system_bars_visibility_summary" android:defaultValue="false" />
</PreferenceCategory>
<Preference android:key="touch_screen_gesture_settings">
<intent android:targetPackage="com.cyanogenmod.settings.device" android:action="com.cyanogenmod.action.LAUNCH_TOUCHSCREEN_GESTURE_SETTINGS" android:targetClass="com.cyanogenmod.settings.device.TouchscreenGestureSettings" />
</Preference>
[COLOR="Red"]<PreferenceScreen android:title="@string/listview_animation_title" android:key="listview_animation_settings" android:fragment="com.android.settings.adi.ListViewSettings" />[/COLOR]
<PreferenceScreen android:title="@string/ram_bar" android:key="recents_panel" android:fragment="com.android.settings.adi.RecentsPanelSettings" />
<PreferenceCategory android:title="@string/navigation_bar_category">
<CheckBoxPreference android:title="@string/navbar_enable_bar" android:key="enable_nav_bar" android:summary="@string/navbar_enable_bar_summary" android:defaultValue="true" />
<PreferenceScreen android:title="@string/navbar_style_dimen_title" android:key="navbar_dimen_settings" android:dependency="enable_nav_bar" android:fragment="com.android.settings.adi.NavbarDimenSettings" />
<PreferenceScreen android:title="@string/navigation_bar_title" android:key="navigation_bar" android:dependency="enable_nav_bar" android:fragment="com.android.settings.cyanogenmod.NavBar" />
<PreferenceScreen android:title="@string/navigation_ring_title" android:key="navigation_ring" android:dependency="enable_nav_bar" android:fragment="com.android.settings.cyanogenmod.NavRing" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/navigation_bar_left_title" android:key="navigation_bar_left" android:summary="@string/navigation_bar_left_summary" android:dependency="enable_nav_bar" android:defaultValue="false" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/hw_keys_title" android:key="hw_keys_on_navbar">
<CheckBoxPreference android:title="@string/key_back_enabled" android:key="key_back_enabled" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/key_menu_enabled" android:key="key_menu_enabled" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/key_home_enabled" android:key="key_home_enabled" android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>
4. Download attached file and merge to your decompiled Settings.apk, done and recompile it
5. Decompile the newly Recompiled APK again
- Next go to res/values/public.xml
open it with Notepad++
search for this line
Code:
<public type="xml" name="adi_mokee_listview_animations" id="[COLOR="Red"]??????????[/COLOR]" />
and pay attention to this ??????????
leave it, but keep it open
6. from the second decompiled Settings.apk , go to Settings.apk\smali\com\android\settings\adi\ListViewSettings.smali
search for this line
Code:
const v6, 0x7f050076
change this ids value 0x7f050076 in the smali
from here
Code:
<public type="xml" name="adi_mokee_listview_animations" id="[COLOR="Red"]??????????[/COLOR]" />
7. Done and recompile your settings.apk
Click to expand...
Click to collapse
Adi Aisiteru Reborn said:
framework.jar
1. Decompile your CM11 framework.jar
go to framework.jar\classout\android\widget\
remove all AbsListView.smali and its subs file
replace them with attached file
2. Decompile your CM11 framework-res.apk
go to \framework-res.apk\res\values\public.xml
search for this lines :
Code:
<public type="attr" name="absListViewStyle" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="style" name="Animation.TypingFilter" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="style" name="Animation.TypingFilterRestore" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="layout" name="typing_filter" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="drawable" name="list_selector_background" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="accelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="decelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="accelerate_decelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="anticipate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="overshoot_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="anticipate_overshoot_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
Code:
<public type="anim" name="bounce_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
pay attention to the red highlight the last 5 digits of each line 0x010?????
3. open AbsListView.smali file I gave
and search for this
- const v0, 0x101006a
change the last 5 digits ids 1006a in the smali according to your own have in
Code:
<public type="attr" name="absListViewStyle" id="0x010[COLOR="Red"]?????[/COLOR]" />
do it too to all of line below
- const v2, 0x10301ed
Code:
<public type="style" name="Animation.TypingFilter" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10301ee
Code:
<public type="style" name="Animation.TypingFilterRestore" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v1, 0x10900b8
Code:
<public type="layout" name="typing_filter" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v1, 0x1080062
Code:
<public type="drawable" name="list_selector_background" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0005
Code:
<public type="anim" name="accelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0006
Code:
<public type="anim" name="decelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0004
Code:
<public type="anim" name="accelerate_decelerate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0007
Code:
<public type="anim" name="anticipate_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0008
Code:
<public type="anim" name="overshoot_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a0009
Code:
<public type="anim" name="anticipate_overshoot_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
- const v2, 0x10a000a
Code:
<public type="anim" name="bounce_interpolator" id="0x010[COLOR="Red"]?????[/COLOR]" />
4. Done and compile your framework.jar
Click to expand...
Click to collapse
Vivek_Neel said:
And how about you tell your progress?
Any logcat . why it did not work?
Click to expand...
Click to collapse
i haven't logcat but i will get you soon

[Completed] Cannot change the status bar color on Samsung GIO 5660

Hello everyone, I want to change the color of my status bar to transparent on my phone. So I used "apktool" to modify the codes, went to the directory: apktool/systemUI/res/values/drawables.
this is the code that i came across:
<item type="drawable" name="APKTOOL_DUMMY_000d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0060">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0061">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0062">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0063">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0064">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0067">false</item>
<item type="drawable" name="shade_bgcolor">#ff282828</item>
<item type="drawable" name="notification_header_text_color">#ff969696</item>
<item type="drawable" name="notification_number_text_color">#ffffffff</item
so apparently I'm missing some part of the code which is defined as APKTOOL_DUMMY_...
how can i get the missing parts of the code?
and next, how can i edit the code in order to set my status bar color to "transparent" ?
any kind of help would be greatly appreciated. many thanks in advance..
Insomnia1 said:
Hello everyone, I want to change the color of my status bar to transparent on my phone. So I used "apktool" to modify the codes, went to the directory: apktool/systemUI/res/values/drawables.
this is the code that i came across:
<item type="drawable" name="APKTOOL_DUMMY_000d">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005e">false</item>
<item type="drawable" name="APKTOOL_DUMMY_005f">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0060">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0061">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0062">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0063">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0064">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0065">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0066">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0067">false</item>
<item type="drawable" name="shade_bgcolor">#ff282828</item>
<item type="drawable" name="notification_header_text_color">#ff969696</item>
<item type="drawable" name="notification_number_text_color">#ffffffff</item
so apparently I'm missing some part of the code which is defined as APKTOOL_DUMMY_...
how can i get the missing parts of the code?
and next, how can i edit the code in order to set my status bar color to "transparent" ?
any kind of help would be greatly appreciated. many thanks in advance..
Click to expand...
Click to collapse
Greetings and welcome to assist. The value that is dummy is something that is defined somewhere else in the framework. Have you installed framework-res, Touchwizz framework-res and systemui when decompiling ?
Regards
Sawdoctor
sawdoctor said:
Greetings and welcome to assist. The value that is dummy is something that is defined somewhere else in the framework. Have you installed framework-res, Touchwizz framework-res and systemui when decompiling ?
Regards
Sawdoctor
Click to expand...
Click to collapse
Hello, and thanks for the response Yes, I had already done these steps before but there is no "framework" under the Touchwizz directory. What would your suggestion be at this point?
Regards,
Insomnia1
Insomnia1 said:
Hello, and thanks for the response Yes, I had already done these steps before but there is no "framework" under the Touchwizz directory. What would your suggestion be at this point?
Regards,
Insomnia1
Click to expand...
Click to collapse
There is always twframework-res.apk and framework-res.apk in the framework folder of every touchwizz rom unless you are using the new nougat beta
Regards
Sawdoctor
Sent from my SM-N930F using Tapatalk

[Guide] How to Port Pixel Navigation Bar With Animation to Android 7.1.2

Before starting let me clear that this is not my work ! I'm here to share the knowledge and information to much wider audience. :angel:​
Thanks to the Charles' Guide of porting till 7.1.1 HERE
Thanks to @ginger_evil , he helped me porting this on Android 7.1.2​
Lets Get Started
Note :- This only works for CM/AOSP based Roms. Though you can try on any ROM
Tools Needed : APKtool
If you are on odexed ROM you need Baksmali tool too. It is explained in Charles' tutorial so i wont touch this topic​
Step 1 Decompile your ROM's SystemUI.apk
Code:
apktool d SystemUI.apk
Step 2 Extract the Pixel-XX-7.1.2 zip in attachment.
Step 3 Copy/Replace every file in it with your decompiled SystemUI files.
Step 4 Open SystemUI\res\values\dimens.xml and add this code at the end before "</resources>".
Code:
<dimen name="halo_inner_radius">10.0dip</dimen>
<dimen name="halo_thickness">1.0dip</dimen>
<dimen name="halo_diameter">22.0dip</dimen>
<dimen name="opa_dot_diam">10.0dip</dimen>
<dimen name="opa_diamond_translation">16.0dip</dimen>
<dimen name="opa_line_y_translation">16.0dip</dimen>
<dimen name="opa_line_x_trans_ry">15.0dip</dimen>
<dimen name="opa_line_x_trans_bg">30.0dip</dimen>
<dimen name="opa_line_x_collapse_bg">46.0dip</dimen>
<dimen name="opa_line_x_collapse_ry">15.0dip</dimen>
<dimen name="opa_overshoot_translation">8.0dip</dimen>
<dimen name="opa_return_translation">-1.0dip</dimen>
<dimen name="opa_rest_to_collapse">7.0dip</dimen>
Step 5 Open SystemUI\res\values\id.xml and add this code before "</resources>".
Code:
<item type="id" name="red">false</item>
<item type="id" name="blue">false</item>
<item type="id" name="green">false</item>
<item type="id" name="yellow">false</item>
<item type="id" name="white">false</item>
<item type="id" name="home_button">false</item>
<item type="id" name="halo">false</item>
Step 6 Open SystemUI\res\values\styles.xml and add this code before “</resources> ”.
Code:
<style name="DotStyle">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_centerHorizontal">true</item>
<item name="android:layout_centerVertical">true</item>
</style>
Step 7 Open SystemUI\res\xml\tuner_prefs.xml and search for
Code:
<Preference android:title="@string/nav_bar" android:key="nav_bar" android:fragment="com.android.systemui.tuner.NavBarTuner" />
if it is present there, skip this step, if not add this code before
Code:
<Preference android:title="@string/other" android:key="other" android:fragment="com.android.systemui.tuner.OtherPrefs" />
if you cant even find this line, skip this step.
Step 8 Now compile SystemUI.
Code:
apktool b SystemUI -c
Step 9 Go to SystemUI/dist/ You'll find the SystemUI.apk, this is the modded apk. Rename it to SystemUImod.apk and copy it in apktool folder.
Step 10 Now Decompile SystemUImod.apk
Code:
apktool d SystemUImod.apk
THE TRICKY PART​
Step 11 Open \SystemUIGoogle\res\value\public.xml and search for
Code:
IN DIMEN
<public type="dimen" name="halo_inner_radius" id="0x7f1002a1" />
<public type="dimen" name="halo_thickness" id="0x7f1002a2" />
<public type="dimen" name="halo_diameter" id="0x7f1002a3" />
<public type="dimen" name="opa_dot_diam" id="0x7f1002a4" />
<public type="dimen" name="opa_diamond_translation" id="0x7f1002a5" />
<public type="dimen" name="opa_line_y_translation" id="0x7f1002a6" />
<public type="dimen" name="opa_line_x_trans_ry" id="0x7f1002a7" />
<public type="dimen" name="opa_line_x_trans_bg" id="0x7f1002a8" />
<public type="dimen" name="opa_line_x_collapse_bg" id="0x7f1002a9" />
<public type="dimen" name="opa_line_x_collapse_ry" id="0x7f1002aa" />
<public type="dimen" name="opa_overshoot_translation" id="0x7f1002ab" />
<public type="dimen" name="opa_return_translation" id="0x7f1002ac" />
<public type="dimen" name="opa_rest_to_collapse" id="0x7f1002ad" />
Code:
IN ID
<public type="id" name="red" id="0x7f1200c9" />
<public type="id" name="blue" id="0x7f1200ca" />
<public type="id" name="green" id="0x7f1200cb" />
<public type="id" name="yellow" id="0x7f1200cc" />
<public type="id" name="white" id="0x7f1200cd" />
<public type="id" name="home_button" id="0x7f1200ce" />
<public type="id" name="halo" id="0x7f1200cf" />
Code:
IN DRAWABLE
<public type="drawable" name="halo" id="0x7f020073" />
<public type="drawable" name="ic_sysbar_opa_blue" id="0x7f02012d" />
<public type="drawable" name="ic_sysbar_opa_green" id="0x7f02012e" />
<public type="drawable" name="ic_sysbar_opa_red" id="0x7f02012f" />
<public type="drawable" name="ic_sysbar_opa_yellow" id="0x7f020130" />
Code:
IN STYLE
<public type="style" name="DotStyle" id="0x7f13022b" />
Copy Them Somewhere. Don't Worry If Your IDs Doesn't Match Mine.
Step 12 open SystemUI\smali\com\google\android\systemui\OpaLayout.smali with sublime text or notepad++.
IMAGE :-
HERE
Now For Example in the above image the id of "red" is "0x7f1202cd". Search for "0x7f1202cd" in OpaLayout.smali and replace this id with Your red's id (Remember you copied it somewhere).
Do The Same For All The IDs.
Step 13 Recompile SystemUImod
Code:
apktool b SystemUImod -c
You'll get the file in SystemUImod/dist/SystemUImod.apk
Rename It - SystemUI.apk
Copy to Device - /system/priv-app/SystemUI/
Reboot And Enjoy
mohit sethi said:
Before starting let me clear that this is not my work ! I'm here to share the knowledge and information to much wider audience. :angel:​
Thanks to the Charles' Guide of porting till 7.1.1 HERE
Thanks to @ginger_evil , he helped me porting this on Android 7.1.2​
Lets Get Started
Note :- This only works for CM/AOSP based Roms. Though you can try on any ROM
Tools Needed : APKtool
If you are on odexed ROM you need Baksmali tool too. It is explained in Charles' tutorial so i wont touch this topic​
Step 1 Decompile your ROM's SystemUI.apk
Code:
apktool d SystemUI.apk
Step 2 Extract the Pixel-XX-7.1.2 zip in attachment.
Step 3 Copy/Replace every file in it with your decompiled SystemUI files.
Step 4 Open SystemUI\res\values\dimens.xml and add this code at the end before "</resources>".
Code:
<dimen name="halo_inner_radius">10.0dip</dimen>
<dimen name="halo_thickness">1.0dip</dimen>
<dimen name="halo_diameter">22.0dip</dimen>
<dimen name="opa_dot_diam">10.0dip</dimen>
<dimen name="opa_diamond_translation">16.0dip</dimen>
<dimen name="opa_line_y_translation">16.0dip</dimen>
<dimen name="opa_line_x_trans_ry">15.0dip</dimen>
<dimen name="opa_line_x_trans_bg">30.0dip</dimen>
<dimen name="opa_line_x_collapse_bg">46.0dip</dimen>
<dimen name="opa_line_x_collapse_ry">15.0dip</dimen>
<dimen name="opa_overshoot_translation">8.0dip</dimen>
<dimen name="opa_return_translation">-1.0dip</dimen>
<dimen name="opa_rest_to_collapse">7.0dip</dimen>
Step 5 Open SystemUI\res\values\id.xml and add this code before "</resources>".
Code:
<item type="id" name="red">false</item>
<item type="id" name="blue">false</item>
<item type="id" name="green">false</item>
<item type="id" name="yellow">false</item>
<item type="id" name="white">false</item>
<item type="id" name="home_button">false</item>
<item type="id" name="halo">false</item>
Step 6 Open SystemUI\res\values\styles.xml and add this code before “</resources> ”.
Code:
<style name="DotStyle">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_centerHorizontal">true</item>
<item name="android:layout_centerVertical">true</item>
</style>
Step 7 Open SystemUI\res\xml\tuner_prefs.xml and search for
Code:
<Preference android:title="@string/nav_bar" android:key="nav_bar" android:fragment="com.android.systemui.tuner.NavBarTuner" />
if it is present there, skip this step, if not add this code before
Code:
<Preference android:title="@string/other" android:key="other" android:fragment="com.android.systemui.tuner.OtherPrefs" />
if you cant even find this line, skip this step.
Step 8 Now compile SystemUI.
Code:
apktool b SystemUI -c
Step 9 Go to SystemUI/dist/ You'll find the SystemUI.apk, this is the modded apk. Rename it to SystemUImod.apk and copy it in apktool folder.
Step 10 Now Decompile SystemUImod.apk
Code:
apktool d SystemUImod.apk
THE TRICKY PART​
Step 11 Open \SystemUIGoogle\res\value\public.xml and search for
Code:
IN DIMEN
<public type="dimen" name="halo_inner_radius" id="0x7f1002a1" />
<public type="dimen" name="halo_thickness" id="0x7f1002a2" />
<public type="dimen" name="halo_diameter" id="0x7f1002a3" />
<public type="dimen" name="opa_dot_diam" id="0x7f1002a4" />
<public type="dimen" name="opa_diamond_translation" id="0x7f1002a5" />
<public type="dimen" name="opa_line_y_translation" id="0x7f1002a6" />
<public type="dimen" name="opa_line_x_trans_ry" id="0x7f1002a7" />
<public type="dimen" name="opa_line_x_trans_bg" id="0x7f1002a8" />
<public type="dimen" name="opa_line_x_collapse_bg" id="0x7f1002a9" />
<public type="dimen" name="opa_line_x_collapse_ry" id="0x7f1002aa" />
<public type="dimen" name="opa_overshoot_translation" id="0x7f1002ab" />
<public type="dimen" name="opa_return_translation" id="0x7f1002ac" />
<public type="dimen" name="opa_rest_to_collapse" id="0x7f1002ad" />
Code:
IN ID
<public type="id" name="red" id="0x7f1200c9" />
<public type="id" name="blue" id="0x7f1200ca" />
<public type="id" name="green" id="0x7f1200cb" />
<public type="id" name="yellow" id="0x7f1200cc" />
<public type="id" name="white" id="0x7f1200cd" />
<public type="id" name="home_button" id="0x7f1200ce" />
<public type="id" name="halo" id="0x7f1200cf" />
Code:
IN DRAWABLE
<public type="drawable" name="halo" id="0x7f020073" />
<public type="drawable" name="ic_sysbar_opa_blue" id="0x7f02012d" />
<public type="drawable" name="ic_sysbar_opa_green" id="0x7f02012e" />
<public type="drawable" name="ic_sysbar_opa_red" id="0x7f02012f" />
<public type="drawable" name="ic_sysbar_opa_yellow" id="0x7f020130" />
Code:
IN STYLE
<public type="style" name="DotStyle" id="0x7f13022b" />
Copy Them Somewhere. Don't Worry If Your IDs Doesn't Match Mine.
Step 12 open SystemUI\smali\com\google\android\systemui\OpaLayout.smali with sublime text or notepad++.
IMAGE :-
HERE
Now For Example in the above image the id of "red" is "0x7f1202cd". Search for "0x7f1202cd" in OpaLayout.smali and replace this id with Your red's id (Remember you copied it somewhere).
Do The Same For All The IDs.
Step 13 Recompile SystemUImod
Code:
apktool b SystemUImod -c
You'll get the file in SystemUImod/dist/SystemUImod.apk
Rename It - SystemUI.apk
Copy to Device - /system/priv-app/SystemUI/
Reboot And Enjoy
Click to expand...
Click to collapse
HI:mohit sethi
you said 0x7f1202cd is red
move-result-object v0
iput-object v0, p0, Lcom/google/android/systemui/OpaLayout;->mBlue:Landroid/view/View;
.line 159
const v0, 0x7f1202cd mRed i think is mBlue
invoke-virtual {p0, v0}, Lcom/google/android/systemui/OpaLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/google/android/systemui/OpaLayout;->mRed:Landroid/view/View;
.line 160
const v0, 0x7f1202d0 mYellow
invoke-virtual {p0, v0}, Lcom/google/android/systemui/OpaLayout;->findViewById(I)Landroid/view/View;
last id is const v0, 0x7f1202d2 mHome or mHalo
iD have problem
can you give me the public.xml
may be rhe first ID is RED
iget-object v5, p0, Lcom/google/android/systemui/OpaLayout;->mRed:Landroid/view/View;
iget-object v6, p0, Lcom/google/android/systemui/OpaLayout;->mCollapseInterpolator:Landroid/view/animation/Interpolator;
.line 496
const v7, 0x7f0c02c5 Red
Hey I follow your guide exactly. I got the animation working but my navbar looks like this. I have a lot stylo 2 plus running unofficial lineage os 14.1.
Locke706 said:
Hey I follow your guide exactly. I got the animation working but my navbar looks like this. I have a lot stylo 2 plus running unofficial lineage os 14.1.
Click to expand...
Click to collapse
Edit #1:
Nevermind
Should i remove or hide the Google search orb? I'm trying to figure out why after a reboot when i press home and it does the old animation, then start using the pixel one.
Help for Oreo 8.1
There's someone how can help me updating this tutorial for Oreo 8.1?? I wanna try this on LineageOS 15.1
Will it work on 8.1.0?
this pops up
C:\Users\Rl\Desktop\PixelROM>apktool b SystemUI -c
I: Using Apktool 2.3.4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_system) failed
W: fakeLogOpen(/dev/log_crash) failed
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit
code = 1): [C:\Users\Rl\AppData\Local\Temp\brut_util_Jar_10759170936442044448.t
mp, p, --forced-package-id, 127, --min-sdk-version, 25, --target-sdk-version, 25
, --version-code, 25, --version-name, 7.1.2, --no-version-vectors, -F, C:\Users\
Rl\AppData\Local\Temp\APKTOOL13565213843037562078.tmp, -0, arsc, -0, png, -0, re
s/drawable-ldrtl-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhd
pi-v4/lb_card_shadow_focused.9.png, -0, res/drawable-xhdpi-v4/lb_card_shadow_nor
mal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/d
rawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/no
tification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pre
ssed.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, r
es/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xx
hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_ca
b_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_m
trl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res
/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/
abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_ho
lo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.
9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -
0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawab
le-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/ab
c_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_tra
ck_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png,
-0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-
xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tex
tfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_defa
ult_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_
mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_a
lpha.9.png, -0, res/drawable-xxhdpi-v4/ic_notification_overlay.9.png, -0, res/dr
awable-xxhdpi-v4/lb_action_bg_focused.9.png, -0, res/drawable-xxhdpi-v4/lb_in_ap
p_search_bg.9.png, -0, res/drawable-xxhdpi-v4/lb_in_app_search_shadow_focused.9.
png, -0, res/drawable-xxhdpi-v4/lb_in_app_search_shadow_normal.9.png, -0, res/dr
awable-xxhdpi-v4/nav_background.9.png, -0, res/drawable-xxhdpi-v4/recents_lower_
gradient.9.png, -0, res/drawable-xxhdpi-v4/recents_status_gradient.9.png, -0, re
s/drawable-xxhdpi-v4/recents_task_shadow.9.png, -0, res/drawable-xxhdpi-v4/scree
nshot_panel.9.png, -0, res/drawable-xxhdpi-v4/search_bg_transparent.9.png, -0, r
es/drawable-xxhdpi-v4/status_background.9.png, -0, ogg, -0, arsc, -I, C:\Users\R
l\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Rl\Desktop\PixelROM\System
UI\res, -M, C:\Users\Rl\Desktop\PixelROM\SystemUI\AndroidManifest.xml]
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_crash) failed

Categories

Resources