[GUIDE] Add Ten Tabs Layout to SystemUI - Galaxy Y GT-S5360 General

This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005 # Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a # Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001 # your tab 1 drawable id here
const v1, 0x7f020003 # your tab 2 drawable id here
const v1, 0x7f020004 # your tab 3 drawable id here
const v1, 0x7f020005 # your tab 4 drawable id here
const v1, 0x7f020006 # your tab 5 drawable id here
const v1, 0x7f020007 # your tab 6 drawable id here
const v1, 0x7f020008 # your tab 7 drawable id here
const v1, 0x7f020009 # your tab 8 drawable id here
const v1, 0x7f02000a # your tab 9 drawable id here
const v1, 0x7f020002 # your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162 # your tab 1 drawable id here
const v1, 0x7f020164 # your tab 2 drawable id here
const v1, 0x7f020165 # your tab 3 drawable id here
const v1, 0x7f020166 # your tab 4 drawable id here
const v1, 0x7f020167 # your tab 5 drawable id here
const v1, 0x7f020168 # your tab 6 drawable id here
const v1, 0x7f020169 # your tab 7 drawable id here
const v1, 0x7f02016a # your tab 8 drawable id here
const v1, 0x7f02016b # your tab 9 drawable id here
const v1, 0x7f020163 # your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
{
"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"
}
Needed files:
View attachment TenTabsFiles.zip v0.1
Source Codes?
You want to play with the code? Add functions? Explore and Learn? Copy method snippets? You can check it at my GitHub.:good::
Suggestions? Comments? Bugs (I hope none)?
Just post a reply here and I will try to attend to it. (The word "try" always has a "catch" Exception, iykwim.)

thx, now i have 15 tabs

73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk
Steps:
1. Decompile your SystemUI.apk
2. Download the attachment (it contains the needed drawables and smali files).
3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).
4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>
Code:
<item type="id" name="tentabs">false</item>
5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
Note: I reversed the code above because xda recognizes it as an external link.
OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:
Code:
xmlns:android="diordna/ser/kpa/moc.diordna.samehcs//:ptth">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>
Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE
com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:
Code:
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>
The above code is considered as ONE CHILD VIEW or LAYOUT.
6. Recompile your SystemUI.apk
7. Decompile your new SystemUI.apk into a new location.
8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk
Now for the SMALI part:
1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):
Code:
<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />
Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.
2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for
Code:
const v10, 0x7f060005# Replace 0x7f060005 with your public.xml tentabs public id
As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:
Code:
const v10, 0x7f0a003a# Replace 0x7f060005 with your public.xml tentabs public id
Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.
3. Save your edited TenTabs.smali
4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.
Code:
const v1, 0x7f020001# your tab 1 drawable id here
const v1, 0x7f020003# your tab 2 drawable id here
const v1, 0x7f020004# your tab 3 drawable id here
const v1, 0x7f020005# your tab 4 drawable id here
const v1, 0x7f020006# your tab 5 drawable id here
const v1, 0x7f020007# your tab 6 drawable id here
const v1, 0x7f020008# your tab 7 drawable id here
const v1, 0x7f020009# your tab 8 drawable id here
const v1, 0x7f02000a# your tab 9 drawable id here
const v1, 0x7f020002# your tab 10 drawable id here
Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:
Code:
const v1, 0x7f020162# your tab 1 drawable id here
const v1, 0x7f020164# your tab 2 drawable id here
const v1, 0x7f020165# your tab 3 drawable id here
const v1, 0x7f020166# your tab 4 drawable id here
const v1, 0x7f020167# your tab 5 drawable id here
const v1, 0x7f020168# your tab 6 drawable id here
const v1, 0x7f020169# your tab 7 drawable id here
const v1, 0x7f02016a# your tab 8 drawable id here
const v1, 0x7f02016b# your tab 9 drawable id here
const v1, 0x7f020163# your tab 10 drawable id here
5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.
6. Recompile your SystemUI.apk
7. Push or Flash your SystemUI.apk and see if your mod works.
Credits:
I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.
Screenshots:
View attachment 2884923View attachment 2884924View attachment 2884925
Needed files:
View attachment 2884926 v0.1
Click to expand...
Click to collapse
Tanks i am work in stockrom deodex :thumbup::thumbup:
Sent from my SM-N9000 using XDA Free mobile app

73R3WY said:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.
Click to expand...
Click to collapse
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.

jasper~ said:
Thanks. Can I decompile it with apktool for mobile? If not, can you decompile again the smali files with mobile apktool for mobile apktool users? Advance thanks mate.
Click to expand...
Click to collapse
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment TenTabsFilesDecompiledWithapktoolMobile.zip

73R3WY said:
I think you can still use the smali's from the attached file sir with apktool mobile. but in case it will not work, you can try the attached zip file from this reply with apktool mobile. I decompiled it using apktool mobile armel v4.3.1, there are slight differences from the output ids of the smali so just compare it with the smali above for reference with the guide.
View attachment 2888827
Click to expand...
Click to collapse
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?

jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
Try apktool 4.4 sir , its support smali like this

jasper~ said:
Oh, thanks bro. How about Apktool v4.1 armel. Can I also decompile it?
Click to expand...
Click to collapse
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2

73R3WY said:
yes sir, because apktool mobile v4.1 armel also uses apktool v1.5.2
Click to expand...
Click to collapse
Ok. Thanks bro

This is what I get.
Sent from my GT-S5360 using XDA Free mobile app

sir can i change tab 1,2,3 with custom text?

Related

Remove clock from Satus Bar

I would like the status bar the same as on the Lock screen
I think I found the line to delete in order to get rid of the clock on the status bar, in file SystemUI\res\layout\status_bar.xml, I decode it ok with Android Suite, but encoding gives an error ???
Brut directory PathNotExist Apktool.yml
{
"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"
}
melorib said:
I would like the status bar the same as on the Lock screen
I think I found the line to delete in order to get rid of the clock on the status bar, in file SystemUI\res\layout\status_bar.xml, I decode it ok with Android Suite, but encoding gives an error ???
Brut directory PathNotExist Apktool.yml
Click to expand...
Click to collapse
It is simple you are using this code:
Code:
apktool b SystemUI.apk
but you have to specify the FOLDER name, not the apk name. so it should be
Code:
apktool b SystemUI
LegendK95 said:
It is simple you are using this code:
Code:
apktool b SystemUI.apk
but you have to specify the FOLDER name, not the apk name. so it should be
Code:
apktool b SystemUI
Click to expand...
Click to collapse
Thanks
I think the problem is more complicated, I tried with other SystemUI.apk and it encoded, the one from my ROM doesnt, it must have some errors
HOW TO CENTER CLOCK
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" androidaddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout androidrientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
That's it for the Center Clock. Recompile and if you used apktool sign your new SystemUI.apk using apkmanager (option 16)
Here is an example of how your status_bar.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView androidrientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" androidaddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@id/signal_battery_cluster" androidaddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" androi
Click to expand...
Click to collapse
I did all this, replaced SystemUI\res\Layout\Status_bar but nothing changed
To remove clock from status bar do this:
Decompile SystemUI.apk
edit smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Search for: .method public showClock(Z)V
replace: const/4 v0, 0x0
with: const v0, 0x8
recompile SystemUI
note: the 0x8 value hides the clock
gcrutchr said:
To remove clock from status bar do this:
Decompile SystemUI.apk
edit smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
Search for: .method public showClock(Z)V
replace: const/4 v0, 0x0
with: const v0, 0x8
recompile SystemUI
note: the 0x8 value hides the clock
Click to expand...
Click to collapse
Thank you SIR, unfortunately Apk_Multi_ICS when I re-compile, after doing the change, put it back as it was
melorib said:
Thank you SIR, unfortunately Apk_Multi_ICS when I re-compile, after doing the change, put it back as it was
Click to expand...
Click to collapse
here is the apktool I use.
gcrutchr said:
here is the apktool I use.
Click to expand...
Click to collapse
Thanks, I get this errors and nothing on decompiled smali folder
melorib said:
Thanks, I get this errors and nothing on decompiled smali folder
Click to expand...
Click to collapse
Have u installed the framework of ur rom first?
| Google+ |
AashayS said:
Have u installed the framework of ur rom first?
| Google+ |
Click to expand...
Click to collapse
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
melorib said:
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
Click to expand...
Click to collapse
If u are using apktool ,then to install framework, type in cmd,
Apktool if <path to framework-res.apk>
To decompile apk
Apktool d <path to apk> <path where decompiled apk should be>
Recompile
Apktool b <path to decompiled apk>
| Google+ |
melorib said:
I tried as per instructions I found on the net, but as you can see it didnt work, please show me the commands to install framework, decompile SystemUI.apk, and recompile it, thanks,
Click to expand...
Click to collapse
To decompile the command is:
apktoollics d SystemUI.apk
To compile the command is:
apktoolics b SystemUI
your apkfile will be in SystemUI\dist, but you need to add META_INF folder and AndroidManifest.xml from your original SystemUI.apk into the new SystemUI.apk.
EDIT: if you need to install framework-res, the command is:
java -jar apktool.jar if framework-res.apk
gcrutchr said:
To decompile the command is:
apktoollics d SystemUI.apk
To compile the command is:
apktoolics b SystemUI
your apkfile will be in SystemUI\dist, but you need to add META_INF folder and AndroidManifest.xml from your original SystemUI.apk into the new SystemUI.apk.
EDIT: if you need to install framework-res, the command is:
java -jar apktool.jar if framework-res.apk
Click to expand...
Click to collapse
Same error
melorib said:
Same error
Click to expand...
Click to collapse
Which ROM is this?
Edit: The bad magic value is because you are not using the correct apktool.jar for the SystemUI.apk you are trying to decompile.
Since u are only needing to edit out smali just grab classes.dex from unzipped (not decompiled) apk and then use baksmali.jar to decompile it. Edit smali lines then recompile with smali.jar
After then place new classes.dex in system ui rezip apk and u should be good
gcrutchr said:
Which ROM is this?
Edit: The bad magic value is because you are not using the correct apktool.jar for the SystemUI.apk you are trying to decompile.
Click to expand...
Click to collapse
I am using Dynamic 1.4 LP9
melorib said:
I am using Dynamic 1.4 LP9
Click to expand...
Click to collapse
Post your SystemUI.apk and I will look at it.
gcrutchr said:
Post your SystemUI.apk and I will look at it.
Click to expand...
Click to collapse
Thanks,
http://melorib.com/data/SystemUI.apk
gcrutchr said:
Post your SystemUI.apk and I will look at it.
Click to expand...
Click to collapse
I also tried to remove the Clock line from RES/Layout/Statusbar, but cannot compile back with the mod
melorib said:
I also tried to remove the Clock line from RES/Layout/Statusbar, but cannot compile back with the mod
Click to expand...
Click to collapse
Ok...try this.

How to add dynamic single line status bar close handle

-decompile your sysui.apk
-open status_bar_tracking.xml in res/layout
-find:
<com.android.systemui.statusbar.CloseDragHandle androidrientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
and change to
<com.android.systemui.statusbar.CloseDragHandle android:layout_gravity="bottom" androidrientation="vertical" android:id="@id/close" android:background="#ee000000" android:layout_width="fill_parent" android:layout_height="32.0dip"> <ImageView android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip" android:src="@drawable/status_bar_close" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
-open notepad and paste
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" /> <item android:drawable="@drawable/status_bar_close_off" /></selector>
in it and save as an xml file with name status_bar_close in res/drawable
-open drawable-ldpi and paste
the pngs in this zip
https://www.dropbox.com/s/1c1fdhrvcsjivdx/mvss.rar?m
in res/drawable-hdpi (make a folder named so if absent) (u can also paste in drawable-ldpi but it would look far far better in drawable-hdpi)
-recompile apk
-have fun
__-----____-also know,, by using common sense and what you did in this,, you can replicate this to create any image you touch as a dynamic toggle one-----____---
(as in this case, the status bar handle turns blue when pressed)
[If you paste the status_bar_close_on.png in drawable/mdpi (created) ,, then don’t forget to delete the existing status_bar_close_on.png from drawable-ldpi]
(((((((if any one doesnt yet understand what it does,, just know that it means the status bar pull handle will turn blue when you touch it)))))))
:laugh:
some image?
desde Córdoba, Argentina mil saludos
can you provide some image please ....

[GUIDE][GB] (Android 5.0) Android L Theme

Android L Expanded
​
{
"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"
}
Please read them all especially the description. Remind me if you find any
mistakes or errors on my guide, I'm not that good at making it and also when I
forgot something. For those who will encounter fcs, no statusbar, bootloops,
provide a logcat as long as possible so we can easily track the bug. Feel free
to suggest but please avoid suggesting for your personal use, suggest things
that is possible, (or maybe impossible xD) and things that will also be liked by
the users. Thank you for your cooperation, and for reading this messy guide xD
PS:
I avoid using smali editing by using method of getting pngs through its png name
and package name, thanks to sir @mariozawa Also, I avoid putting/creating
new pngs to keep the apk size small.
PSS:
You can freely use my customviews but please give the proper credits,
and also dont rename the smalis, ask me first if you want to.
Dont release a guide about my customviews because Ill make
a guide for them. Just ask me first and Ill let you A little respect
for my work because I made it for a couple of days xD
PSSS:
You can download my SystemUI.apk and framework-res.apk at the
attachment so you can easily compare it. Or you can flash it if you
are stock deodex, DXLF baseband
Click to expand...
Click to collapse
Video:
Android L Expanded Video
Description/How to use:
Android L Expanded look. I copy almost the whole interface, also the behavior. Not that much actually, because GB has limitations </3. Tap or hold or touch or slide the header, it will show the toggles and brightness slider. The close drag handle was invisible and it was 50.0px, kinda big, It was still at the bottom so you can close it from the bottom by holding the handle. Swiping the background of toggles will also hide them and will return to header-show only.
Features:
Custom Status Icons (Codes copy from statusbarpolicy to avoid bug and also to update always.)
Brightness Icon? (Hold it for flashlight)
Brightness slider (Codes copy from AOSP settings display brightness slider)
Updating/Clickable toggles
Wifi Name (Click also to update)
Bugs:
None for now. Behavior maybe but not that much.
Pre-requisites/Needed:
Do this guide for notifications and fix for media scanning AuliaYF Android L Notification View
Remove the stock toggles, follow this guide: mariozawa Remove STOCK TW toggles on expandedView or just move it to anywhere
Basic XML knowledge
Steps:
1.) Decompile SystemUI.apk.
2.) Open AndroidManifest.xml and add this code:
Code:
<activity android:name="com.tenten.LFlashLight">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
LOOK LIKE THIS:
Click to expand...
Click to collapse
3.) Save. Download androidL_smalis.zip at the attachment and extract it on smali/com folder.
4.) Download androidL_drawable.zip and extract it to res folder. (Or put/replace the pngs inside the zip to your res/drawable and res/drawable-ldpi)
NOTE:When transferring/replacing pngs, there must not be any png that has the same name. It happens because inside the zip, there was .9patch pngs but with the same name with not patched. It may cause recompiling error.
Click to expand...
Click to collapse
5.) Now... xml begins. Open res/layout/status_bar_tracking.xml
6.) Remove this code:
Code:
<View android:background="#ff8e979f" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
AND REPLACE THIS CODE TO THAT:
Click to expand...
Click to collapse
Code:
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="50.0px" />
7.) Close and Save. Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
Code:
android:layout_marginTop="2.0dip"
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<LinearLayout android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="70.0sp"
NOW FIND THIS:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.LatestItemView
FIND THE TEXTCOLOR AND MAKE IT LIKE THIS:
Click to expand...
Click to collapse
Code:
android:textColor="#ff000000"
8.)Close and Save. Open quickpanel_quick_settings.xml and delete all codes. (Dont be bother by deleting also ids, because quickpanel_quick_settings_for_datamode.xml has also it ) Replace it with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="vertical" android:id="@id/quickpanel_quick_settings" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.UpDownBoomPaw android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LWifiToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.tenten.LWifiName android:textStyle="bold" android:textSize="13.0sp" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LBluetoothToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LSignalToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
<com.android.systemui.statusbar.CarrierLabel android:textStyle="bold" android:textSize="13.0sp" android:textColor="#ffffffff" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAirplaneToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
<com.tenten.LAutoRotateToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
</FrameLayout>
</LinearLayout>
</com.tenten.UpDownBoomPaw>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
9.) Close and Save. Open status_bar.xml and delete this code:
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
PUT THIS CODE:
Click to expand...
Click to collapse
Code:
<com.android.systemui.statusbar.DateView android:textColor="#00000000" android:id="@id/date" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10.) Close and Save. Lastly, Open status_bar_expanded.xml and delete all the codes. Replace with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"]<com.tenten.TogglesButton2 android:orientation="vertical" android:background="@drawable/quickpanel_title_background" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginTop="3.0px" android:layout_alignParentLeft="true">
<com.android.systemui.statusbar.Clock android:textSize="20.0sp" android:textStyle="normal" android:textColor="#ffdfdfdf" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LDateBar android:layout_marginLeft="3.0px" android:layout_marginTop="-2.0px" android:textSize="11.0sp" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="right|center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0px" android:layout_alignParentRight="true">
<com.tenten.LBluetoothBar android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="20.0px" />
<com.tenten.LWifiBar android:paddingLeft="2.0dip" android:layout_width="20.0px" android:layout_height="20.0px" android:scaleType="fitCenter" />
<com.tenten.LSignalBar android:layout_width="wrap_content" android:layout_height="15.0px" />
<com.tenten.LBatteryBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="23.0px" />
<com.tenten.LAlarmBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.LSettingsBar android:paddingLeft="4.0dip" android:layout_width="20.0px" android:layout_height="20.0px" />
</LinearLayout>
</LinearLayout>
<ImageView android:layout_width="fill_parent" android:layout_height="3.0px" />
</com.tenten.TogglesButton2>[/COLOR]
[COLOR="Blue"]<com.tenten.LayoutAnimation1 android:background="@drawable/quickpanel_title_background" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
<Button android:id="@id/clear_all_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:text="" />
<com.tenten.LBrightnessBar android:layout_gravity="center_vertical" android:layout_marginLeft="10.0px" android:layout_width="23.0px" android:layout_height="23.0px" />
<com.tenten.LseekBar android:layout_gravity="center_vertical" android:paddingLeft="12.0px" android:paddingRight="12.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginRight="10.0px" android:layout_weight="1.0" style="@style/tentenL_seekbar"/>
</com.tenten.LayoutAnimation1>[/COLOR]
[COLOR="Green"]<com.tenten.LayoutAnimation2 android:background="@drawable/quickpanel_plmn_background" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings" />
</com.tenten.LayoutAnimation2>[/COLOR]
[COLOR="DarkOrange"]<com.tenten.LayoutAnimation3 android:layout_marginRight="5.0px" android:layout_marginLeft="5.0px" android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdgeLength="16.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
</FrameLayout>
</com.tenten.UpDownBoomPaw>
</com.tenten.LayoutAnimation3>[/COLOR]
</com.android.systemui.statusbar.ExpandedView>
Explanation: The red code was the header, The blue code was the brightness slider, the green code was the toggles, and the orange code was the notification/ongoing
Click to expand...
Click to collapse
11.) Close and Save. Open values/styles.xml and add this code BEFORE </resources>
Code:
<style name="tentenL_seekbar">
<item name="android:maxHeight">2.0dip</item>
<item name="android:indeterminateOnly">false</item>
<item name="android:minHeight">0.0dip</item>
<item name="android:thumb">@drawable/seek_thumb</item>
<item name="android:indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="android:progressDrawable">@drawable/progress_horizontal</item>
</style>
12.) Save all, recompile your SystemUI and dont forget to sign it. Noooow.... wait there's more! hehe xD (Optional guides)
Optional Guide:
FLAGS:
Dim background (Original Behavior of Android L)
1.) Open smali/com/systemui/statusbar/StatusBarService.smali
Find this line:
Click to expand...
Click to collapse
Code:
.line 1327
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
MAKE .line 1327 to .line 1328
Click to expand...
Click to collapse
NEXT FIND THIS LINE:
Click to expand...
Click to collapse
Code:
.line 1326
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
MAKE .line 1326 to .line 1327
Click to expand...
Click to collapse
NOW INSERT THIS LINE BELOW THIS CODE:
Click to expand...
Click to collapse
Code:
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
INSERT THIS:
Click to expand...
Click to collapse
Code:
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
0x3f00 was the dim amount
Click to expand...
Click to collapse
LASTLY, SCROLL SLIGHTLY TO TOP AND YOU WILL FIND THIS:
Click to expand...
Click to collapse
Code:
const v4, 0x20300
REPLACE 0X20300 to THIS: 0x20302
Click to expand...
Click to collapse
Code:
const v4, 0x20302
YOUR STATUSBARSERVICE.SMALI WILL NOW LOOK LIKE THIS:
Click to expand...
Click to collapse
Code:
.line 1315
:goto_0
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/16 v3, 0x7de
const v4, 0x20302
move v2, v1
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
.line 1324
const/16 v1, 0x37
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I
.line 1325
const-string v1, "TrackingView"
invoke-virtual {v0, v1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V
.line 1326
const/high16 v1, 0x3f00
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
.line 1327
iget v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingPosition:I
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I
.line 1328
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingParams:Landroid/view/WindowManager$LayoutParams;
.line 1329
invoke-static {}, Landroid/view/WindowManagerImpl;->getDefault()Landroid/view/WindowManagerImpl;
move-result-object v1
iget-object v2, p0, Lcom/android/systemui/statusbar/StatusBarService;->mTrackingView:Lcom/android/systemui/statusbar/TrackingView;
invoke-virtual {v1, v2, v0}, Landroid/view/WindowManagerImpl;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 1330
return-void
:cond_0
move v5, v0
goto :goto_0
.end method
2.) Save and Close. When you expand the statusbar, it will make background dim.
or Unique Things AuliaYF [MOD][GUIDE]Blurred StatusBarExpanded
Click to expand...
Click to collapse
FULLSCREEN STATUSBAR: evanlocked [guide]full expanded view jb look for sgy
Swipe to Remove Notifications (because I remove the clear button xD) hansip [HOWTO]Implement Swipe to Remove Notification
Source:
Github Android L Custom Views Source​
CREDITS:​
StackOverFlow.com
Github.com
AOSP
@evanlocked
@PineappleOwl
@mariozawa
@AuliaYF
@jsarunotres
LenoxDevs
PotatoInc​
Android L Changing Color Statusbar [Reserved]
Reserved for android L status bar behavior
Android L Apks [Reserved]
Reserve for android L apks looks
man its hard awesome sir
pitot0909 said:
man its hard awesome sir
Click to expand...
Click to collapse
Read them carefully it's not that hard, you just need to replace replace replace and save save save. haha
Awesome work!! I had seen your video a month ago, and was always wondering, when you'll release! :cheers:
HELP
tentenponce said:
Reserved for android L status bar behavior
Click to expand...
Click to collapse
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
carlo_autor said:
Boss tenten why i dont have linear layout
on step 7
7.) Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
but unfortunately i dont have the linear layout on status_bar_latest_event.xml pls help me :angel:
thanks
the ss is on the attached files
Click to expand...
Click to collapse
If you dont have linearlayout, find this <com.android.systemui.statusbar.LatestItemContainer.
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Nice job bro :d
Mranggapo said:
Sir tenten, is this appliable to. PxL rom ? Because i thought that would be hard since we must delete stock tw toogles
Click to expand...
Click to collapse
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
kevin_tn said:
awesome guide,sir.
but maybe this guide only for stock-based , not for CM roms.
Click to expand...
Click to collapse
You can apply it also on CM, but you need some knowledge about xml
Looks Good!
Awesome work man! Keep it up, and maybe modify stock apps to Android L look!
tentenponce said:
On PxL, stock toggles was deleted, you just need to put the line <include and 0.0dip all the toggles. Be careful on editing and deleting especially ids. you must not remove any ids, if it has, just 0.0dip it.
Click to expand...
Click to collapse
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
AuliaYF said:
if you guys want the 'easy' way, maybe tomorrow i'll upload my SystemUI Source, and you just need to compile it.
Click to expand...
Click to collapse
I uploaded mine also haha. I got a lot of PMs to give my UI, because I think that if I just give it to them, I teach also how to become lazy. But I dont want to be bombed by "please give me your UI" hahaha. They can compare or simple flash it. By the way, the guide was just long, but it wasnt hard. No smali is included and many users did it on facebook. Just delete copy and replace, delete copy and replace. haha.
Mranggapo said:
but must i do it completely on stock systemui ? forget PxL im never understand it -_-
i have modified theme for stock rom, can i do it ?
Click to expand...
Click to collapse
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
HELP
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
carlo_autor said:
Help pls i got these errors on closedraghandle , i replaced my closedraghadle with tenten's smali , but whats wrong ? it is stock systemUI help plsss:angel:
Click to expand...
Click to collapse
Use apktool 1.5.2
---------- Post added at 11:54 PM ---------- Previous post was at 11:53 PM ----------
tentenponce said:
Haha. Too complicated xD Understanding on xmls Yes this guide is for stock, but as what I said, you can do it as long as you have xml knowledge I uploaded my files too. You can just use it. xD You must be atleast stock deodex DXLF baseband.
Click to expand...
Click to collapse
Yeah i made it sir :3

[MOD][PORT][CM11] How to add custom scrolling animation

hi guys ,
I want to share a MOD that i ported from PAC man ROM..
This will give you ability to customize scroll on your phone.
This is one of the coolest features from PAC Man ROM. I want to remind you that this is NOT my work. I'M NOT what makes this feature.
all I do is port for CM11 to make them work
Anyone is able to use this mod, just please give proper credit to Devs of PAC Man ROM and me if you want
Also I want to give a BIG THANKS to sir @ocoot - for very helpful hints, thanks um
So let's begin
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 ( i use apktool 1.5.2 )
SETTINGS.APK
first DECOMPILE Settings.apk
- Download attached file and merge it to your decompiled Settings.apk
- Go to Settings.apk/res/values/
add this lines to end of it before </resources>
attrs.xml add these :
Code:
<attr name="unitsLeft" format="reference|string" />
<attr name="unitsRight" format="reference|string" />
<attr name="interval" format="integer" />
<attr name="minimum" format="integer" />
<attr name="maximum" format="integer" />
[COLOR="RoyalBlue"]</resources>[/COLOR]
ids.xml add these :
Code:
<item type="id" name="hex">false</item>
<item type="id" name="enter">false</item>
<item type="id" name="white_panel">false</item>
<item type="id" name="black_panel">false</item>
<item type="id" name="cyan_panel">false</item>
<item type="id" name="red_panel">false</item>
<item type="id" name="green_panel">false</item>
<item type="id" name="yellow_panel">false</item>
<item type="id" name="old_color_panel">false</item>
<item type="id" name="new_color_panel">false</item>
<item type="id" name="seek_bar">false</item>
<item type="id" name="seekBarPrefUnitsRightCham">false</item>
<item type="id" name="seekBarPrefValueCham">false</item>
<item type="id" name="seekBarPrefUnitsLeftCham">false</item>
<item type="id" name="seekBarPrefBarContainerCham">false</item>
[COLOR="RoyalBlue"]</resources>[/COLOR]
strings.xml add these:
Code:
<string name="press_color_to_apply">Press on color below to apply</string>
<string name="arrow_right">→</string>
<string name="arrow_down">↓</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
<string name="set">Set</string>
<string name="reset">Reset</string>
<string name="animation_settings_title">Custom animations</string>
<string name="scrolling_title">Scrolling</string>
<string name="animation_fling_velocity_title">Fling Velocity</string>
<string name="animation_scroll_friction_title">Scroll Friction</string>
<string name="animation_overscroll_distance_title">Overscroll Distance</string>
<string name="animation_overfling_distance_title">Overfling Distance</string>
<string name="animation_no_scroll_title">Customizing scroll</string>
<string name="animation_no_scroll_summary_on">Enabled</string>
<string name="animation_no_scroll_summary_off">Disabled</string>
<string name="overscroll_glow_title">Overscroll Color</string>
<string name="animation_settings_reset_message">Reset animations to default?</string>
<string name="animation_duration_summary">Set duration</string>
[COLOR="RoyalBlue"]</resources>[/COLOR]
save...
- Now go to res/xml/display_settings.xml
put this line :
Code:
[COLOR="Red"]<PreferenceScreen android:title="@string/scrolling_title" android:key="interface_animation_scroll" android:fragment="com.android.settings.pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.BrightnessPreference android:persistent="false" android:title="@string/brightness" />
[COLOR="Red"]<PreferenceScreen android:title="@string/scrolling_title" android:key="interface_animation_scroll" android:fragment="com.android.settings.pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
<PreferenceCategory android:title="@string/display_settings_title" android:key="display_prefs">
<PreferenceScreen android:title="@string/display_rotation_title" android:key="display_rotation" android:fragment="com.android.settings.cyanogenmod.DisplayRotation" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
<com.android.settings.FontDialogPreference android:title="@string/title_font_size" android:key="font_size" android:summary="@string/summary_font_size" android:dialogTitle="@string/dialog_title_font_size" />
<PreferenceScreen android:title="@string/screensaver_settings_title" android:key="screensaver" android:fragment="com.android.settings.DreamSettings" />
<PreferenceScreen android:title="@string/wifi_display_settings_title" android:key="wifi_display" android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
</PreferenceCategory>
<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" />
<CheckBoxPreference android:persistent="true" android:title="@string/power_menu_expanded_desktop" android:key="expanded_desktop_no_navbar" />
<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>
<PreferenceCategory android:title="@string/lights_category_title" android:key="lights_prefs">
<PreferenceScreen android:title="@string/notification_light_title" android:key="notification_pulse" android:fragment="com.android.settings.notificationlight.NotificationLightSettings" />
<PreferenceScreen android:title="@string/battery_light_title" android:key="battery_light" android:fragment="com.android.settings.notificationlight.BatteryLightSettings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/advanced_settings" android:key="advanced_display_prefs">
<CheckBoxPreference android:title="@string/adaptive_backlight_title" android:key="adaptive_backlight" android:summary="@string/adaptive_backlight_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/sunlight_enhancement_title" android:key="sunlight_enhancement" android:summary="@string/sunlight_enhancement_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/color_enhancement_title" android:key="color_enhancement" android:summary="@string/color_enhancement_summary" android:defaultValue="true" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/double_tap_to_sleep_title" android:key="double_tap_sleep_gesture" android:summary="@string/double_tap_to_sleep_summary" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/double_tap_to_wake_title" android:key="double_tap_wake_gesture" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/proximity_wake_title" android:key="proximity_on_wake" android:summary="@string/proximity_wake_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/wake_when_plugged_or_unplugged_title" android:key="wake_when_plugged_or_unplugged" android:summary="@string/wake_when_plugged_or_unplugged_summary" android:defaultValue="false" />
<com.android.settings.cyanogenmod.SystemSettingCheckBoxPreference android:title="@string/screen_animation_off_title" android:key="screen_off_animation" android:defaultValue="true" />
<ListPreference android:entries="@array/screen_animation_style_entries" android:title="@string/screen_animation_style_title" android:key="screen_animation_style" android:entryValues="@array/screen_animation_style_values" />
<PreferenceScreen android:title="@string/lcd_density_title" android:key="lcd_density_setup" android:fragment="com.android.settings.interface.fragments.DensityChanger" />
<com.android.settings.hardware.DisplayColor android:persistent="false" android:title="@string/color_calibration_title" android:key="color_calibration" android:summary="@string/color_calibration_summary" android:dialogTitle="@string/color_calibration_title" />
<com.android.settings.hardware.DisplayGamma android:persistent="false" android:title="@string/gamma_tuning_title_head" android:key="gamma_tuning" android:summary="@string/gamma_tuning_summary_head" android:dialogTitle="@string/gamma_tuning_title_head" />
<PreferenceScreen android:persistent="false" android:title="@string/screencolor" android:key="screencolor_settings">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ScreenColorSettings" />
</PreferenceScreen>
<Preference android:title="@string/radio_controls_title" android:key="advanced_display_settings">
<intent android:targetPackage="com.cyanogenmod.settings.device" android:action="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" android:targetClass="com.cyanogenmod.settings.device.DisplaySettings" />
</Preference>
</PreferenceCategory>
</PreferenceScreen>
but you can put the line whereever you like,.
- Recompile your Settings.apk
- Decompile the newly recompiled APK again
go to your secondly decompiled Settings.apk/res/values/public.xml and keep it open
Pay attention to this 0x7f?????? !!!
- Go to Settings.apk/smali/net/margaritov/preference/color picker/ColorPickerDialog.smali
search this -> const v2, 0x7f040103
1. change this -> 0x7f040103 , according to the value you got in your own public.xml
Code:
<public type="layout" name="dialog_color_picker" id="0x7f??????" />
do it too to all lines below, in the smali
2. const v2, 0x7f080c3c
Code:
<public type="string" name="dialog_color_picker" id="0x7f?????? />
3. const v2, 0x7f0d00c5
Code:
<public type="id" name="color_picker_view" id="0x7f?????? />
4. const v2, 0x7f0d0324
Code:
<public type="id" name="old_color_panel" id="0x7f?????? />
5. const v2, 0x7f0d0325
Code:
<public type="id" name="new_color_panel" id="0x7f?????? />
6. const v2, 0x7f0d031e
Code:
<public type="id" name="white_panel" id="0x7f?????? />
7. const v2, 0x7f0d031f
Code:
<public type="id" name="black_panel" id="0x7f?????? />
8. const v2, 0x7f0d0320
Code:
<public type="id" name="cyan_panel" id="0x7f?????? />
9. const v2, 0x7f0d0321
Code:
<public type="id" name="red_panel" id="0x7f?????? />
10. const v2, 0x7f0d0322
Code:
<public type="id" name="green_panel" id="0x7f?????? />
11. const v2, 0x7f0d0323
Code:
<public type="id" name="yellow_panel" id="0x7f?????? />
12. const v2, 0x7f0d031c
Code:
<public type="id" name="hex" id="0x7f?????? />
13. const v2, 0x7f0d031d
Code:
<public type="id" name="enter" id="0x7f?????? />
14. const v1, 0x7f0d0325
Code:
<public type="id" name="new_color_panel" id="0x7f?????? />
- Go to Settings.apk/smali/com/android/settings/pac/SeekBarPreferenceCham.smali
search this -> const v3, 0x7f0d032f
1. change this -> 0x7f0d032f , according to the value you got in your own public.xml
Code:
<public type="id" name="seekBarPrefBarContainerCham" id="0x7f?????? />
do it too to all lines below, in the smali
2. const v4, 0x7f040106
Code:
<public type="layout" name="seek_bar_preference_cham" id="0x7f?????? />
3. const v5, 0x7f0d032d
Code:
<public type="id" name="seekBarPrefValueCham" id="0x7f?????? />
4. const v5, 0x7f0d032c
Code:
<public type="id" name="seekBarPrefUnitsRightCham" id="0x7f?????? />
5. const v5, 0x7f0d032e
Code:
<public type="id" name="seekBarPrefUnitsLeftCham" id="0x7f?????? />
- Go to Settings.apk/smali/com/android/settings/pac/animations/ScrollAnimationInterfaceSettings.smali
search this -> const v1, 0x7f080c28
1. change this -> 0x7f080c28 , according to the value you got in your own public.xml
Code:
<public type="string" name="reset" id="0x7f?????? />
do it too to all lines below, in the smali
2. const v1, 0x7f080c9e
Code:
<public type="string" name="animation_settings_reset_message" id="0x7f?????? />
3. const v1, 0x7f0801e0
Code:
<public type="string" name="ok" id="0x7f?????? />
4. const v1, 0x7f080559
Code:
<public type="string" name="cancel" id="0x7f?????? />
5. const v7, 0x7f05007a
Code:
<public type="xml" name="scroll_animation_interface_settings" id="0x7f?????? />
6. const v1, 0x7f080c28
Code:
<public type="string" name="reset" id="0x7f?????? />
7. const v1, 0x7f0200a8
Code:
<public type="drawable" name="ic_settings_backup" id="0x7f?????? />
- Go to AndroidManifest.xml
add this lines to end of it before </application>
Code:
[COLOR="Red"]<activity android:name=".pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
Code:
- - - - - -
- - - - - -
- - - - - -
<provider android:name="android.support.v4.content.FileProvider" android:exported="false" android:authorities="com.android.settings.files" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
<service android:label="LtoService" android:name=".cyanogenmod.LtoService" android:enabled="true" android:exported="false" />
<service android:name=".search.SearchPopulator" />
[COLOR="Red"]<activity android:name=".pac.animations.ScrollAnimationInterfaceSettings" />[/COLOR]
</application>
</manifest>
- Done and recompile it,
- SIGN it ( you can use signer_keys on attachment )
- Push to system/priv-app/
next step on post #2
FRAMEWORK.JAR
- Decompile / Baksmali your framework.jar
- Download attached file and merge it to your decompiled framework.jar
- Go to smali/android/provider/Settings$System.smali
search
Code:
# static fields
add this :
Code:
.field public static final ANIMATION_CONTROLS_NO_SCROLL:Ljava/lang/String; = "animation_controls_no_scroll"
.field public static final CUSTOM_FLING_VELOCITY:Ljava/lang/String; = "custom_fling_velocity"
.field public static final CUSTOM_OVERFLING_DISTANCE:Ljava/lang/String; = "custom_overfling_distance"
.field public static final CUSTOM_OVERSCROLL_DISTANCE:Ljava/lang/String; = "custom_overscroll_distance"
.field public static final CUSTOM_SCROLL_FRICTION:Ljava/lang/String; = "custom_scroll_friction"
.field public static final OVERSCROLL_GLOW_COLOR:Ljava/lang/String; = "overscroll_glow_color"
- Now decompile your framework-res.apk ( we only need public.xml )
- Go to res/values/public.xml and keep it open
- Now open decompiled framework.jar then go to smali/android/view/ViewConfiguration.smali
search this -> const v12, 0x1110014
ATTENTION! id public for framework.jar
just TAKE the BLUE CODE
and SKIP the RED CODE
1. change this -> 0x1110014 , according to the value you got in your own public.xml of framework-res.apk
Code:
<public type="bool" name="config_ui_enableFadingMarquee" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
2. const v12, 0x1050008
Code:
<public type="dimen" name="config_viewConfigurationTouchSlop" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
- Go to framework.jar.out/smali/android/widget/EdgeEffect.smali
search this -> const v3, 0x10804a5
just TAKE the BLUE CODE
and SKIP the RED CODE
1. change this -> 0x10804a5 , according to the value you got in your own public.xml of framework-res.apk
Code:
<public type="drawable" name="overscroll_edge" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
2. const v3, 0x10804a6
Code:
<public type="drawable" name="overscroll_glow" id="[COLOR="Blue"]0x[/COLOR][COLOR="Red"]0[/COLOR][COLOR="Blue"]???????[/COLOR] />
- Save
- Recompile it
- Push or flash to system/framework/
pertamax sir
ocoot said:
pertamax sir
Click to expand...
Click to collapse
thanks so much sir
do you think , does anyone miss sir ?
woww.. nice bro...
hope work on stockrom
syaeful said:
woww.. nice bro...
hope work on stockrom
Click to expand...
Click to collapse
thanks sir ..
Would you try it ? :fingers-crossed:
thank you, great tutorial u got there dab :good:
just a little request,
if u got a free time, would u mind to share how to add network traffic to status bar ?
for cm / aosp rom.
I see ur work for Armani Multimod is great, but haven't really tried it yet because honestly, all I just need network traffic, LoL
but still, many thanks to you for sharing it
xtro-xda said:
thank you, great tutorial u got there dab :good:
just a little request,
if u got a free time, would u mind to share how to add network traffic to status bar ?
for cm / aosp rom.
I see ur work for Armani Multimod is great, but haven't really tried it yet because honestly, all I just need network traffic, LoL
but still, many thanks to you for sharing it
Click to expand...
Click to collapse
thanks dab
for network traffic on the status bar ,, you can see here
http://forum.xda-developers.com/showpost.php?p=58703754&postcount=1
or
http://forum.xda-developers.com/showthread.php?t=2620272
qoejohn said:
thanks sir ..
Would you try it ? :fingers-crossed:
Click to expand...
Click to collapse
yess. i have to follow your guide this night. but it's give fc on Touchwiz Launcher.. can you post your original ViewConfiguration.smali for compare bro? :laugh:
Sorry no error log :laugh:
Salam Kitul :good:
Click to expand...
Click to collapse
syaeful said:
yess. i have to follow your guide this night. but it's give fc on Touchwiz Launcher.. can you post your original ViewConfiguration.smali for compare bro? :laugh:
Sorry no error log :laugh:
Click to expand...
Click to collapse
ok sir
good luck ... cemungudz
qoejohn said:
ok sir
good luck ... cemungudz
Click to expand...
Click to collapse
thanks... :highfive:
Sir i've try in StockROM KitKat its success and not bootloop but when i try to open apps (that makes Overscroll appear) Its always restarting my phone sir Can you know how to fix sir?
Jawaad_S said:
Sir i've try in StockROM KitKat its success and not bootloop but when i try to open apps (that makes Overscroll appear) Its always restarting my phone sir Can you know how to fix sir?
Click to expand...
Click to collapse
may smali in .jar ..
Just try to compare .. because I 've never tried it in stockrom kitkat :fingers-crossed:
qoejohn said:
may smali in .jar ..
Just try to compare .. because I 've never tried it in stockrom kitkat :fingers-crossed:
Click to expand...
Click to collapse
Already sir but its makes my phone bootloop sir can you tell me what clue in jar name to compare to stock sir?
Jawaad_S said:
Already sir but its makes my phone bootloop sir can you tell me what clue in jar name to compare to stock sir?
Click to expand...
Click to collapse
just compare smali attached in post # 2.
http://forum.xda-developers.com/showpost.php?p=59988770&postcount=2
and this for compare
http://forum.xda-developers.com/showpost.php?p=60112392&postcount=10
Same here, @qoejohn. Tried on Note3 n9005 4.4.2 stock. The selector for overscroll glow color applies fine (modifing EdgeEffect.smali only) but when I mod the ViewConfiguration.smali, the phone gets hot reboot when I click on an app like root explorer. I'll keep on trying. Thanks again!
Enviado desde mi SM-N9005 mediante Tapatalk
thanks for guide sir...but i try on stock toucwiz has stopped
Ih24n said:
thanks for guide sir...but i try on stock toucwiz has stopped
Click to expand...
Click to collapse
try to fix it, and it would be awesome if it is successful in TouchWiz
qoejohn said:
try to fix it, and it would be awesome if it is successful in TouchWiz
Click to expand...
Click to collapse
i will try to fix sir ...berusaha sekuat pikiran tapi

[Guide][CM12]How to Make "Looks Like" Sony Stock Clockwidget on Lockscreen

Hi, i'm gonna tell u how to get Sony lollipop digital clock on CM12 lockscreen
Requirements:
- Knowledge how to decompile recompile
- Advanced ApkTool v4.1.0 By BDFreak (use latest apktool)
- Java installed
- Notepad++
- SystemUI.apk
Steps:
VERTICAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:format12Hour="hh" android:format24Hour="HH" />
</LinearLayout>
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:layout_below="@id/clock" android:format12Hour="mm" android:format24Hour="mm" />
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
vertical clock has layout issue in landscape mode
HORIZONTAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-3.0dip" android:singleLine="true" android:format12Hour="h" android:format24Hour="HH" />
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-10.0dip" android:singleLine="true" android:format12Hour="mm" android:format24Hour="mm" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
will be better if u use this lollipop clockwidget by @vandroid7 http://forum.xda-developers.com/cro...s/original-z3-5-0-clock-widgets-cm12-t3066866
thanks
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
xkeita said:
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
Click to expand...
Click to collapse
Nice ?
To change battery icon, i follow @Erhany & @Ticklefish 's guide here http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361 ?
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
STRYDER~007 said:
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
Click to expand...
Click to collapse
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
idid idamrep said:
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
Click to expand...
Click to collapse
Tutorials and guides are always welcome friend!Keep up the good work.. :highfive::good:
Nice guide bro :good: very helpful post. Thanks for sharing
Hey can you plz help me to port this clock widget on lockscreen vertical one into my xperia s cm12.......i dont know how to recompile or decompile any apks.....can you do it for me mate? ??
Nice Bro thanks
Can you make for me with my system UI? I don't have knowledge to do it
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Black_Eyes said:
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Click to expand...
Click to collapse
Here's my systemui, just extract it ?
https://www.dropbox.com/s/ub5menuj8hew72o/SystemUICM12(7.5).zip?dl=0
Just passing by to confirm that it works too under PA 5.1 (Lollipop 5.1.1) but I'm too lazy to edit the battery icon u.u
yes, it's work with PA 5.1.1 System UI.
anyway how i can change the battery icon ?
can someone guide me thanks
error in recompiling using advanced apktool 4.1 (apktool 2.0.0)
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Sun 17-05-2015 0:26:13.34
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:35: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:36: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:41: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.RatingBar.Indicator'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
------------------------------------------------------
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
ohmygel said:
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
Click to expand...
Click to collapse
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
JaviMotta98 said:
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
Click to expand...
Click to collapse
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
not working on blisspop 3.4 with caf and my lg g2. I tried with signing the systemui, without, with putting in the manifest and meta-inf but nothing works
Work perfect on my Droid razr HD with CM12.1 rom. Many Thanks.
ohmygel said:
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
Click to expand...
Click to collapse
The framework-res.apk is already installed in your phone, as it's a system app. You have to install it in Advanced APKTool. The app is located in /system/framework/framework-res.apk. Copy it to the folder "2-In", open Advanced APKTool, select the first option and install the framework-res.apk.

Categories

Resources