In The Name of GOD
Hi EveryOne
Here's a Tutorial on How to Customize Ultra Stamina Mode!
{
"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"
}
Requirements:
1.USMHome.apk
2.SuperStamina.apk
3.Notepad++ or any Editor
4.Apktool to Decompile apk
5.A Brain!
Introduction:
in order to change and customize ultra stamina mode you need two main apk: "USMHome.apk" & "SuperStamina.apk"
USMHome.apk is launcher and setting page but SuperStamina.apk control apps in ultra stamina mode
you can find both of them in System/app
Add & Remove app From Launcher:
1.Decompile "SuperStamina.apk"
2.Open res/xml/usm_packages.xml
you can see lots of code but i will explane each one them:
Code:
<package name="com.android.wallpaper" />
this code means you can't access Wallpaper App in Ultra Stamina
Code:
<package name="com.sonymobile.moviecreator" authorizedActivitiesByDefault="true"
this code means you can't see Movie Creator icon app in launcher but you can run it
Code:
<package name="com.android.calendar" authorizedActivitiesByDefault="true">
<launchable-activity name=".LaunchActivity" priority="50" />
</package>
this code means you can see Calendar icon app in launcher and you can run it
Code:
<package name="com.sonyericsson.music">
<authorized-activity name=".picker.MusicPickerActivity" />
</package>
this code means you can run Walkman app but just you can play music with it and other Activities are disable
Code:
<package name="com.android.systemui" authorizedActivitiesByDefault="true">
<unauthorized-activity name=".recent.RecentsActivity" />
</package>
this code means SystemUI is lunchable but you can't access Recent Button
so all you need to do is follow these patterns and you can do want you want!!!
3. i will show you some examples
for example the main code of Movies app is
Code:
<package name="com.sonyericsson.video" />
it means the app is disabled in Ultra Stamina mode but we are going to Change it
how about adding it to launcher?
all you need to do is replace this code with previews one
Code:
<package name="com.sonyericsson.video" authorizedActivitiesByDefault="true">
<launchable-activity name=".browser.BrowserActivity" priority="110" />
</package>
I'm going to explane these codes but first lets add another app
4. lets add MXPlayer to ultra Stamina Launcher
first of all add these codes
Code:
<package name="com.mxtech.videoplayer.ad" authorizedActivitiesByDefault="true">
<launchable-activity name=".ActivityMediaList" priority="120" />
</package>
name="com.mxtech.videoplayer.ad" it's package name of application
name=".ActivityMediaList" it's main Activity (main page of MXPlayer)
authorizedActivitiesByDefault="true" it means that your application can run in Ultra Stamina
<launchable-activity it means that this activity can run but if you use <unlaunchable-activity it won't let that Activity run
priority="110" i didn't understand it well but stock numbers are till 100 and you have to add it 10------so next number is 110 and then 120 and so on....!!! (if "X" app is 110 and "Y" app is 120 so in launcher first show "X" and then "Y")
5. i told you how to add app in launcher but if you want to add lots of app i recommend you to add them n Setting
first of all you need to introduce app to Ultra stamina with step 3 and 4 but like this pattern
Code:
<package name="[B]com.sonyericsson.advancedwidget.clock[/B]" authorizedActivitiesByDefault="true" />
so all you need is app package name that you can find it with MOD EDIT Rule 6 @gregbradley
after you introduce app you need to add app in setting menu
follow this ------------------>TUT<---------------------
6. now you should know how to remove app from launcher or don't let app to run in ultra stamina mode
first of all read step 2 again. you can see the patterns but i show you with some examples!!!
here I'm going to remove camera from launcher:
the main code is:
Code:
<package name="com.sonyericsson.android.camera" authorizedActivitiesByDefault="true">
<launchable-activity name=".CameraActivity" priority="30" />
</package>
you just need to change the code like this:
Code:
<package name="com.sonyericsson.android.camera" authorizedActivitiesByDefault="true" />
but if you want to kill any Activity you must change it to:
Code:
<package name="com.sonyericsson.android.camera" />
Hit Thanks if you find it helpful :good:
Change Lock Screen and Desktop Wallpaper:
1.Decompile "SuperStamina.apk"
2.Go to res Folder
depend on your Phone DPI and Res
Change the Pictures in these Folders:
480 x 854---------------------------------->drawable-sw320dp-hdpi
720 x 1280---------------------------------->drawable-sw360dp-xhdpi
1080 x 1920--------------------------------->drawable-sw360dp-xxhdpi
Add section to Setting:
1.Decompile "USMHome.apk"
2.Open res/xml/settings_headers.xml
3. in this example I'm going to add Developement Setting to Ultra Stamina Setting
first add this code
Code:
<header android:id="@id/development_settings" android:title="@string/development_settings_title" android:icon="@drawable/ic_settings_development" >
<intent android:targetPackage="com.android.settings" android:targetClass="com.android.settings.DevelopmentSettings" />
</header>
android:id="@id/development_settings": Open res/values/ids.xml and add this code
Code:
<item type="id" name="development_settings">false</item>
android:title="@string/development_settings_title": Open strings.xml and add this code
<string name="development_settings_title">Development Settings</string>
android:icon="@drawable/ic_settings_development": set the logo that is going to display in Setting
drawable-hdpi---------------------------------->48*48 Pixels
drawable-mdpi---------------------------------->32*32 Pixels
drawable-xhdpi--------------------------------->64*64 Pixels
drawable-xxhdpi-------------------------------->96*96 Pixels
targetPackage="com.android.settings": this code shows that the Activity That we want is in setting Apk
android:targetClass="com.android.settings.DevelopmentSettings": the Activity that we want to run when we touch it in setting
you can find this in Settings.apk/res/xml/settings_headers.xml
you just need find the option that you are going to add and find the code in android:fragment then copy it to above code.
Adding Toggles to StatusBar:
1.Decompile "SuperStamina.apk"
2.Open res/values/arrays.xml
3.Find this code
Code:
<string-array name="usm_allowed_quick_settings">
<item>autorotate</item>
<item>brightness</item>
<item>sound</item>
<item>bluetooth</item>
</string-array>
3.now you can add Flashlight toggle by adding this code
<item>flashlight</item>
Hit Thanks if you find it helpful :good:
If you have idea or you can help me to improve the TUT say it!!!
i hope you enjoy it :good:
Is this USMHome.apk and SuperStamina.apk mod available/ported for XZR stock 4.4.4?
sourabhp said:
Is this USMHome.apk and SuperStamina.apk mod available/ported for XZR stock 4.4.4?
Click to expand...
Click to collapse
i don't know but if someone ported it so it got to be in one of your custom roms
There was a little mistake in Tutorial
so
Tutorial Updated
Sorry Guys
OMG :fingers-crossed::fingers-crossed::fingers-crossed:
Awesome Tutorial.We can see it in Xda News Portal.Thanks:good::good::good:
excellent!!
gamzekal said:
OMG :fingers-crossed::fingers-crossed::fingers-crossed:
Awesome Tutorial.We can see it in Xda News Portal.Thanks:good::good::good:
Click to expand...
Click to collapse
sh4d1t0 said:
excellent!!
Click to expand...
Click to collapse
URW
thanks for your support
Xposed-able?
Any chance something like this could be done with an xposed mod? As an example, you could use the mod to swap out apps of your choosing. I'm not a dev, but just curious of this was possible for someone far smarter than I.
craigeryjohn said:
Any chance something like this could be done with an xposed mod? As an example, you could use the mod to swap out apps of your choosing. I'm not a dev, but just curious of this was possible for someone far smarter than I.
Click to expand...
Click to collapse
i didn't create any xposed mod so it's better to ask someone that knows this stuff
is possible add whatsapp??
gioiellino said:
is possible add whatsapp??
Click to expand...
Click to collapse
yes it is
but i tried to add wifi and i failed
i add it to setting and set all permission but couldn't turn it on
only with wifi super stamina work... or with mobile data too?
gioiellino said:
only with wifi super stamina work... or with mobile data too?
Click to expand...
Click to collapse
ops
i forgot!!!!
yep you are right
mobile data works in Ultra stamina
How you make temperature on statusbar?
-Mr.freeze- said:
How you make temperature on statusbar?
Click to expand...
Click to collapse
I'm using "Coolify"
SamadiPour said:
I'm using "Coolify"
Click to expand...
Click to collapse
HI... i have question =) ?
Is it possible to mod the USMHome.apk to be regular launcher =) (love that there is not app drawer)???
nomaj said:
HI... i have question =) ?
Is it possible to mod the USMHome.apk to be regular launcher =) (love that there is not app drawer)???
Click to expand...
Click to collapse
I replied you in other thread
nomaj said:
HI... i have question =) ?
Is it possible to mod the USMHome.apk to be regular launcher =) (love that there is not app drawer)???
Click to expand...
Click to collapse
Why don't you use Solo Launcher or MiUi Launcher?
Related
After a week... i read, i learn, i try modding systemui with jelly header/4.2.2 status bar... but i go failed failed and failed.. got fc, status bar gone.. so i want to request more easier guide for making jelly header/4.2.2 status bar... please xda member.. guide me..
Guide 1
For my cm7 status bar I used
http://forum.xda-developers.com/showthread.php?t=1953934
although it should work on stock roms too
Follow guide 1 - its simple just requires add smali and line in status_bar_expanded where you want the header
The header will look like screenshot but without the brightness slider or icon and iv also modded the clear button too so you wont have that - will just be date and time
{
"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"
}
Guide 2
If you want to try something more complicated you can try the following and will look like
and you can add what you like to the second pannel - I made mine look like
Guide is http://forum.xda-developers.com/showthread.php?t=2315342
marcussmith2626 said:
For my cm7 status bar I used
http://forum.xda-developers.com/showthread.php?t=1953934
Click to expand...
Click to collapse
I will try it sir..
EpullSalvatrucha said:
I will try it sir..
Click to expand...
Click to collapse
I updated the post with more complicated guides for advanced stuff - gives second quick pannel but you can just have the header by itself if you want or do the entire guide for the quick pannel as well
marcussmith2626 said:
I updated the post with more complicated guides for advanced stuff - gives second quick pannel but you can just have the header by itself if you want or do the entire guide for the quick pannel as well
Click to expand...
Click to collapse
the guide said find this code:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
but i cannot find in my statusbar expanded.xml...
EpullSalvatrucha said:
the guide said find this code:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
but i cannot find in my statusbar expanded.xml...
Click to expand...
Click to collapse
This is why you cant blindly follow guides - you must have some level of understanding and be able to adapt code to your needs
you can try just putting this
under
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
put
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
put the smali in the given location in the guide
dunno if it will work - if not follow the other more complicated guide for stock roms
without an understanding of what you are doing and how to fix any compiling errors and so on you will not succed - especially if you try guide 2 because you will get errors unless you manage to do everything perfect first time
marcussmith2626 said:
This is why you cant blindly follow guides - you must have some level of understanding and be able to adapt code to your needs
you can try just putting this
under
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
put
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
put the smali in the given location in the guide
dunno if it will work - if not follow the other more complicated guide for stock roms
without an understanding of what you are doing and how to fix any compiling errors and so on you will not succed - especially if you try guide 2 because you will get errors unless you manage to do everything perfect first time
Click to expand...
Click to collapse
wait... i try..
marcussmith2626 said:
without an understanding of what you are doing and how to fix any compiling errors and so on you will not succed - especially if you try guide 2 because you will get errors unless you manage to do everything perfect first time
Click to expand...
Click to collapse
Working perfectly sir!! sir.. my flashlight not working even i edit the androidmanifest.xml in systemui and sign it.. can help me sir?
EpullSalvatrucha said:
Working perfectly sir!! sir.. my flashlight not working even i edit the androidmanifest.xml in systemui and sign it.. can help me sir?
Click to expand...
Click to collapse
in androidmanifest.xml
above
Code:
</application>
put
Code:
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation" />
unzip the attchment and put the smai in smali/com/lidroid/systemui/quickpanel although backup the ones that are already there incase you need to replace them if they are different
sign once recompiled with zipsigner you can get from playstore - use either a testkey or platform key
marcussmith2626 said:
sign once recompiled with zipsigner you can get from playstore - use either a testkey or platform key
Click to expand...
Click to collapse
owh there is smali file? i think just edit the androidmanifest.xml only.. i will try it.. sir.. i want to put app in settings.apk and in the same time i want to hide the app from drawer(like hyperion).. the app is Quickpanelsettings.apk.. how to do it sir?
EpullSalvatrucha said:
owh there is smali file? i think just edit the androidmanifest.xml only.. i will try it.. sir.. i want to put app in settings.apk and in the same time i want to hide the app from drawer(like hyperion).. the app is Quickpanelsettings.apk.. how to do it sir?
Click to expand...
Click to collapse
you should already have the smali if you have lidroid - I was just providing it as a reference if you dont or its different
search for a guide - I cant spoon food you everything - You will have to learn to search and do things yourself - sorry
As a clue - you remove a line from the app you want to hide in androidmanifest.xml and you add some lines into settings apk in xml/settings.xml
marcussmith2626 said:
you should already have the smali if you have lidroid - I was just providing it as a reference if you dont or its different
search for a guide - I cant spoon food you everything - You will have to learn to search and do things yourself - sorry
As a clue - you remove a line from the app you want to hide in androidmanifest.xml and you add some lines into settings apk in xml/settings.xml
Click to expand...
Click to collapse
i understand sir... i will try it...
marcussmith2626 said:
you should already have the smali if you have lidroid - I was just providing it as a reference if you dont or its..
Click to expand...
Click to collapse
Flashlight still not working..
EpullSalvatrucha said:
Flashlight still not working..
Click to expand...
Click to collapse
I would say logcat and solve the error but since you dont have much knowledge I would just download a flashlight app from the playstore
marcussmith2626 said:
I would say logcat and solve the error but since you dont have much knowledge I would just download a flashlight app from the playstore
Click to expand...
Click to collapse
i will try logcat.. but my terminal emulator not working.. i open the app and got something like fc..
{
"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"
}
Hey Xda,
This is my first tutorial
SystemUI
Add gradient effect:
- Decompile SystemUI
- go in res/drawable and paste this file in the archive View attachment gradient_bg.rar
- Now go in res / layout and open status_bar.xml
- looking for " android: background = " and change how it is in the picture.
- now recompile SystemUI and enjoy the gradient effect
Screenshot:
Move the toggle under clock
- Decompile SystemUI
- Go in res/layout and open status Status_bar_expanded_header.xml
- search:
Code:
<LinearLayout android:id="@id/tools_row_0" android:background="@drawable/statusbar_tools_button_frame_top" android:paddingTop="1.0dip" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_tools_row_height" />
<LinearLayout android:id="@id/tools_row_1" android:background="@drawable/statusbar_tools_button_frame_bottom" android:paddingTop="1.0dip" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_tools_row_height" />
<View android:id="@id/statusbar_hr" android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_divider_height" />
Move this code in below:
Code:
<LinearLayout android:id="@id/tools_row_0" android:background="@drawable/statusbar_tools_button_frame_top" android:paddingTop="1.0dip" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_tools_row_height" />
<LinearLayout android:id="@id/tools_row_1" android:background="@drawable/statusbar_tools_button_frame_bottom" android:paddingTop="1.0dip" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_tools_row_height" />
<View android:id="@id/statusbar_hr" android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_divider_height" />
- Now change some "android:background=" you look like in screenshot:
Recompile SystemUI and enjoy.
Screenshot:
Before:
After:
Settings
Change separator background:
- Decompile Settings.apk
- Go in res/drawable and paste this file in the arhive View attachment list_separator_background.rar
- now go in res/values and open styles.xml
- search ListSeparator
- Now change "<item name="android:textColor">" and <item name="android:background"> you look like in screenshot:
Screenshot:
Before:
After:
Sorry this is my first tutorial
Reserved
reserved for features..
Hohoho really great tutorial. Everything's explained clearly.
If this is your first tut, I can't wait to see your next one
-woczarder- said:
Hohoho really great tutorial. Everything's explained clearly.
If this is your first tut, I can't wait to see your next one
Click to expand...
Click to collapse
Thanks bro and sorry for my bad english ..
Nice tut bro for new comers etc
so they can do stuff and mod on thier own :good:
Nice tut
Pandemic said:
Nice tut bro for new comers etc
so they can do stuff and mod on thier own :good:
Click to expand...
Click to collapse
@DanielFlorin
Nice tutorial bro.
but in the second screenshot i saw something transformed in framework (Round Switches)
you should also add this to the tutorial (How to change the text in the switches)
Decompile framework-res.apk
res/values/strings
somb_btn_off (i remember) change it to O
somc_btn_on (i remember) change it to I
:good: :good: :highfive:
Eliminator79 said:
@DanielFlorin
Nice tutorial bro.
but in the second screenshot i saw something transformed in framework (Round Switches)
you should also add this to the tutorial (How to change the text in the switches)
Decompile framework-res.apk
res/values/strings
somb_btn_off (i remember) change it to O
somc_btn_on (i remember) change it to I
:good: :good: :highfive:
Click to expand...
Click to collapse
see here's the link!
http://forum.xda-developers.com/crossdevice-dev/sony/guide-adding-off-buttons-rom-t2835179
---------- Post added at 05:25 PM ---------- Previous post was at 05:09 PM ----------
Cool tut :good:
Nice TUT!
Keepup!
Xperia™ Z (C6602) with Tapatalk.
Nice...:fingers-crossed:
Hey Xda said:
Awesome Bro!
Thanks
And congratz to be featured on Potal :victory: :good:
Here is the page you're featured on : SystemUI, Settings small mods guide thread.
Click to expand...
Click to collapse
Thanks very much
I saw this thread on the italian website HDBlog!
Congrats
Great work mate.
It got featured on portal as well. (Y)
Expect more works from you.
A very concise and easy to understand tutorial...good work! :highfive:
does this also put gradient on the Nav Bar?
EDIT: It doesn't work on Xperia C. I did it clean.
Ok thanks. My phone xperia s work?? And where apk? I can't apktool edit
yakupTR said:
Ok thanks. My phone xperia s work?? And where apk? I can't apktool edit
Click to expand...
Click to collapse
come on @yakupTR
where the apk is?
your OWN SystemUI you need to edit and this is a TUTORIAL howto do it !
You cant? just try and dont say immidiatly: I CANT !
@DanielFlorin: Great tutorial!
Can you create a tutorial for add the toggles?
Thanks in advance.
@DanielFlorin
I can't see values folder in my settings
I'm on Xperia L stock 4.2.2
Rudram Sharma said:
I can't see values folder in my settings
Click to expand...
Click to collapse
You need to decompile it first.
Q&A for [kernel] and Some mods for XXUGBNL8
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [kernel] and Some mods for XXUGBNL8. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Can you remove the lock from status bar??
Thanks
hondactr said:
Can you remove the lock from status bar??
Thanks
Click to expand...
Click to collapse
is not necessary. Use the mod 7, from here:
http://forum.xda-developers.com/galaxy-note-3/development/mods-xxugbnl8-t2986519
it's the same mod, without lock
Hi, when I flash systemUI 1, 2, or 3, always in reboot My System FC with a lock in bar... Why? Thanks
Edit... I solved my problem with a new install of 3minitbattery.apk and reflash system UI...
Thanks [emoji12]
Long press menu button to kill app ?
Fix Screen Mirror
Fix Screen Mirror - Link
@zamcum: about themechooser, you need to edit this line in /etc/floating_feature.xml
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI></SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
to
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>themev2</SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
I prefer dock with app name, especially when theme applied.
khongloi113 said:
@zamcum: about themechooser, you need to edit this line in /etc/floating_feature.xml
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI></SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
to
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>themev2</SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
.
Click to expand...
Click to collapse
Hi
Thanks for your tip, but did not result. You got it with this tip?
i tried with this:
Code:
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>themev2</SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
and this, and nothing good happened:
Code:
<SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>com.sec.android.app.themechooser</SEC_FLOATING_FEATURE_COMMON_CONFIG_CHANGEABLE_UI>
khongloi113 said:
I prefer dock with app name, especially when theme applied.
Click to expand...
Click to collapse
To get back the icons name on the dock, decompile (with apktool2.0 rc3 or another tool), go to /res/values-sw360dp-xxhdpi.
edit styles.xml (with notepad++)
search:
<style name="HotseatIcon" parent="@style/BaseHotseatIcon">
and below
when you have
Code:
<item name="android:textSize">0.0dip</item>
<item name="android:drawablePadding">0.0dip</item>
replace it with:
Code:
<item name="android:textSize">14.0dip</item>
<item name="android:drawablePadding">11.0dip</item>
@zamcum
Don't have to mod Touchwiz launcher. Just need to edit floating_message.xml as I posted. Theme option will be enabled even for stock loliilop touchwiz launcher.
For icon, we have to modify some smali file in framework.jar.
Here is the link to moded one:
dropbox.com /s/fzy52pd5xoj39s1/framework%5B1%5D.jar?dl=0
You can decompile it, copy smali files in smali/sec/samsung/android/theme to your framework file then recompile your one.
khongloi113 said:
@zamcum
Don't have to mod Touchwiz launcher. Just need to edit floating_message.xml as I posted. Theme option will be enabled even for stock loliilop touchwiz launcher.
For icon, we have to modify some smali file in framework.jar.
Here is the link to moded one:
dropbox.com /s/fzy52pd5xoj39s1/framework%5B1%5D.jar?dl=0
You can decompile it, copy smali files in smali/sec/samsung/android/theme to your framework file then recompile your one.
Click to expand...
Click to collapse
Done
truly grateful for your persistence in helping with this dead end:
{
"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"
}
tomorrow i will update the OP with this new mod.
At the moment only for deodexed rom's, until someone figure out a method to reodex in Lollipop
Can I use this for exynos n900?
khongloi113 said:
@zamcum
Don't have to mod Touchwiz launcher. Just need to edit floating_message.xml as I posted. Theme option will be enabled even for stock loliilop touchwiz launcher.
For icon, we have to modify some smali file in framework.jar.
Here is the link to moded one:
dropbox.com /s/fzy52pd5xoj39s1/framework%5B1%5D.jar?dl=0
You can decompile it, copy smali files in smali/sec/samsung/android/theme to your framework file then recompile your one.
Click to expand...
Click to collapse
Hi
after this great win, many thanks for your help, can yoy help us with 2 more mysteries?
1 - how can we have UPSM without the bug of phone ( no sound in call with UPSM):
http://forum.xda-developers.com/gal...t/upsm-emergency-mode-n9005-lollipop-t3007743
2 - Can we have private mode?
I enabled the toggle, but is not possible to activate:
9- Camera: 2nd version
- No limitations on low battery (New feature)
Photo Mode:
- Uncompressed photos
Video Mode:
- No time limit in 4K mode (but limited yet to 4GB per file, so, the limit in time with this bitrate is 8m47s)
- Slightly increased bitrate:
- 65Mbit 4k (not 50Mbit) - (Default 48Mbit)
- 44Mbit 1080/60p - (Default 28Mbit)
- 22Mbit 1080/30p - (Default 14Mbit)
- 192Kbit audio - (Default 128 Kbit)
Click to expand...
Click to collapse
Hello I had multiDPI for this mod on link http://forum.xda-developers.com/showthread.php?t=2986519 (I'm sorry to post here because I'm new to the forum so I do not post on topic)
I tried 320 340 360 380 390 and 480dpi its works fine for me
I don't know if it was done by someone else
Can someone please mirror the kernel in the opening post.
Thanks,
---------- Post added at 05:22 PM ---------- Previous post was at 05:14 PM ----------
byhappyface said:
Can someone please mirror the kernel in the opening post.
Thanks,
Click to expand...
Click to collapse
+1
khongloi113 said:
@zamcum
Don't have to mod Touchwiz launcher. Just need to edit floating_message.xml as I posted. Theme option will be enabled even for stock loliilop touchwiz launcher.
For icon, we have to modify some smali file in framework.jar.
Here is the link to moded one:
dropbox.com /s/fzy52pd5xoj39s1/framework%5B1%5D.jar?dl=0
You can decompile it, copy smali files in smali/sec/samsung/android/theme to your framework file then recompile your one.
Click to expand...
Click to collapse
I am trying to get the icons working on Note 4 (sprint) Is there any chance I could get a copy of those smali files?
good morning
In The Name of GOD
Hi EveryOne
Here's a Tutorial on How to Add "Walkman" & "Movies" to Ultra Stamina Mode
{
"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"
}
Requirements:
1.USMHome.apk
2.Notepad ++ or any Editor
3.Apktool to Decompile apk
4.A Brain!
Tutorial:
1.First you need "USMHome.apk" (you can find it in system/app)
2.Decompile "USMHome.apk"
3.Open res/xml/settings_headers.xml
Add these Lines at the end of codes (like image below!)
Code:
<header android:icon="[B]@drawable/ic_walkman[/B]" android:id="[B]@id/walkman[/B]" android:title="[B]@string/walkman[/B]">
<intent android:targetPackage="com.sonyericsson.music" android:action="android.intent.action.MAIN" android:targetClass="com.sonyericsson.music.MusicActivity" />
</header>
<header android:icon="[B]@drawable/ic_movies[/B]" android:id="[B]@id/movies[/B]" android:title="[B]@string/movies[/B]">
<intent android:targetPackage="com.sonyericsson.video" android:action="android.intent.action.MAIN" android:targetClass="com.sonyericsson.video.browser.BrowserActivity" />
</header>
4. @drawable/ic_walkman & @drawable/ic_movies : This lines set the logo that is going to display in Setting
So you need "Walkman" & "Movies" Icon (you can use any png icon)
If you don't have the icons, you can download them from HERE
Next step is adding icons with right Dimension and Walkman & Moives icon must named ic_walkman & ic_movies in res/drawable-*dpi/
drawable-hdpi---------------------------------->48*48 Pixels
drawable-mdpi---------------------------------->32*32 Pixels
drawable-xhdpi--------------------------------->64*64 Pixels
drawable-xxhdpi-------------------------------->96*96 Pixels
this icon will be show up in settings
5. @string/walkman & @string/movies : The Name that will Show in Setting
Open strings.xml and add this code
Code:
<string name="walkman">Walkman</string>
<string name="movies">Movies</string>
6. @id/walkman & @id/movies
Open res/values/ids.xml and add this code
Code:
<item type="id" name="walkman">false</item>
<item type="id" name="movies">false</item>
7.Recompile your Apk and Sign it
8. Transfer it to system/app and set Permissions
Note:
This Should work with any Xperia Rom that Support Ultra Stamina Mode.
I test it on my Xperia Z1 ST Ultimate Rom and it Worked Perfectly
So Test it on Your Own RISK
Updata:
if it's hard for you just replace this file
http://d-h.st/3Yy
Credits:
Madaditya : For his topic that teached me a lot
Hit Thanks if you find it helpful :good:
Very Nice :good::good:
Awesome mahn you nailed it... Another form we were talking with @niaboc79 about adding this feature in his ROM and looks like you did it ... Can you add whatsapp also ?
shubham meena said:
Awesome mahn you nailed it... Another form we were talking with @niaboc79 about adding this feature in his ROM and looks like you did it ... Can you add whatsapp also ?
Click to expand...
Click to collapse
i didn't try it yet!
but in order to add whatsapp you need wifi connection
i think it's possible to add both of them
but what's the point of ultra stamina if you add wifi and another apps?
i Thought music and movie is more necessary than anything, so i just add them
Nice tutorial.:fingers-crossed:
Nice! Allthough if you're messing with /system/ you also need root, correct?
I believe you should add this requirement to the post (in big red letters) to avoid at least SOME questions in this matter.
sgiannouris said:
Nice! Allthough if you're messing with /system/ you also need root, correct?
I believe you should add this requirement to the post (in big red letters) to avoid at least SOME questions in this matter.
Click to expand...
Click to collapse
for changing it you need PC and flashtool
if you want replace file with Explore you will need root
but you can replace it with a flashable zip (or other ways) "without root"
is this work for 4.3 ?
Can we add user app(installed on /data/app) too?
Sent from my D6503 using Tapatalk 4
devilmaycry2020 said:
is this work for 4.3 ?
Click to expand...
Click to collapse
do you have ultra stamina in 4.3?
if yes, so it must work
hw0603 said:
Can we add user app(installed on /data/app) too?
Sent from my D6503 using Tapatalk 4
Click to expand...
Click to collapse
yes you can but not with this TUT
i will write new TUT for it
actually in new TUT i will tell you have to customize ultra stamina (how to add app in launcher and ......)
so wait for it :good:
yes you can but not with this TUT
i will write new TUT for it
actually in new TUT i will tell you have to customize ultra stamina (how to add app in launcher and ......)
so wait for it :good:[/QUOTE said:
OK Thanks. I gonna wait for that TUT
Click to expand...
Click to collapse
Considering that Internet browsing is disabled in ultra stamina, would FM radio works?
I regularly use the fm radio and it would be real good if it could be used in ultra stamina mode.
HotKillerZzz said:
Considering that Internet browsing is disabled in ultra stamina, would FM radio works?
I regularly use the fm radio and it would be real good if it could be used in ultra stamina mode.
Click to expand...
Click to collapse
i have fm radio in ultra stamina
it's enabled in stock
Very good guide Thanks
I tried to Z2 but I have this message
some ideas?
i have use 23...167 Rom 4.4.4 for Z2
Ambor said:
Very good guide Thanks
I tried to Z2 but I have this message
some ideas?
i have use 23...167 Rom 4.4.4 for Z2
Click to expand...
Click to collapse
yes
there is another guide
but i was busy
can you give me your SuperStamina.apk from System/app
i think i know how to make it work
samadipoor2 said:
yes
there is another guide
but i was busy
can you give me your SuperStamina.apk from System/app
i think i know how to make it work
Click to expand...
Click to collapse
Yes
Ambor said:
Yes
Click to expand...
Click to collapse
just replace and set permission
for preview of new guide
i add Movies to launcher
see it yourself
http://d-h.st/3Yy
samadipoor2 said:
just replace and set permission
for preview of new guide
i add Movies to launcher
see it yourself
http://d-h.st/3Yy
Click to expand...
Click to collapse
Thanks Bro will check
Bro works Thanks. Surely i will mention you in 2.2 MW
Ambor said:
Thanks Bro will check
Bro works Thanks. Surely i will mention you in 2.2 MW
Click to expand...
Click to collapse
you are welcome :good:
hope you and other enjoy it
samadipoor2 said:
you are welcome :good:
hope you and other enjoy it
Click to expand...
Click to collapse
Sure. Again thanks
Hello Guys,
In this tutorial I'm gonna describe you how to make your Notification panel Lollipop Style. I'll try to make it very simple and clear, and feel free to ask any questions.
Developers are free to use this tutorial to mod their Rom but do give me proper credits.
This is the first tutorial about making Notification panel Lollipop style without using Xposed/Modules. So,Copy-Paste is strictly prohibited.
Alright lets begin,
REQUIREMENTS1. APK MultiTool to Decompile/compile Apks [ CLICK HERE FOR TUTORIAL ]
2. SystemUI.apk
3. Notepad+ for editing .xml files
4. akky_ltoggles.xml [File attached at the end of this tutorial]
4. Flashable zip or Root explorer to push the system apk
I'm not going to cover the part about how to Decompile/compile a system apk, a link to the tutorial by @Saqib Nazm about using APKMultiTool is already provided above
Alright Guys lets start :highfive:
STEP 1
Grab your SystemUI.apk and Decompile it.
STEP 2
Open SystemUI.apk/res/layout/tw_status_bar_expanded.xml with Notepad+
Find
Code:
[COLOR="Blue"]<com.android.systemui.statusbar.policy.ToggleSlider[/COLOR]
Before the end tag of this linear layout Just add the below code
Add
Code:
[COLOR="Red"]<include layout="@layout/akky_ltoggles" />[/COLOR]
So your final code for com.android.systemui.statusbar.policy.ToggleSlider will be
Code:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
[COLOR="Red"]<include layout="@layout/akky_ltoggles" />[/COLOR]
</LinearLayout>
It should look like this
Screenshot
{
"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"
}
So, basically what we have done in the above steps is that we have commanded to add a new file for our lollipop style toggle.
STEP 3
Download akky_ltoggles.xml.
Open the folder SystemUI.apk/res/layout And simply paste akky_ltoggles.xml
STEP 4
Compile the SystemUI.apk
Put it into a flashable zip and flash it Or use a root explorer file manager to push it into your system apps.
DOWNLOAD : akky_ltoggles.xml
Note: It's tested on Samsung device. Try this at your own Risk. I'm not responsible for any abnormal behavior after doing the above steps.
SCREENSHOTS
Before
After
hi
what abt the smali edits
you mentioned .com.eboy......and .com.mda......smali
how is it possible to edit only xmls to get the above shown results?
pauldominik said:
hi
what abt the smali edits
you mentioned .com.eboy......and .com.mda......smali
how is it possible to edit only xmls to get the above shown results?
Click to expand...
Click to collapse
Try it buddy, if face any issue, report it here
That's what this tutorial is all about to get it in simple steps, unlike other tutorials
akky26 said:
Try it buddy, if face any issue, report it here
That's what this tutorial is all about to get it in simple steps, unlike other tutorials
Click to expand...
Click to collapse
ok
actly wen i chkd the xml , the two folders eboy and mda are mentioned..and i dont hav those folders inside my smali.com.android.
..chl i wll try it anyway
akky26 said:
Hello Guys,
In this tutorial I'm gonna describe you how to make your Notification panel Lollipop Style. I'll try to make it very simple and clear, and feel free to ask any questions.
Developers are free to use this tutorial to mod their Rom but do give me proper credits.
This is the first tutorial about making Notification panel Lollipop style without using Xposed/Modules. So,Copy-Paste is strictly prohibited.
Alright lets begin,
REQUIREMENTS1. APK MultiTool to Decompile/compile Apks [ CLICK HERE FOR TUTORIAL ]
2. SystemUI.apk
3. Notepad+ for editing .xml files
4. akky_ltoggles.xml [File attached at the end of this tutorial]
4. Flashable zip or Root explorer to push the system apk
I'm not going to cover the part about how to Decompile/compile a system apk, a link to the tutorial by @Saqib Nazm about using APKMultiTool is already provided above
Alright Guys lets start :highfive:
STEP 1
Grab your SystemUI.apk and Decompile it.
STEP 2
Open SystemUI.apk/res/layout/tw_status_bar_expanded.xml with Notepad+
Find
Code:
[COLOR="Blue"]<com.android.systemui.statusbar.policy.ToggleSlider[/COLOR]
Before the end tag of this linear layout Just add the below code
Add
Code:
[COLOR="Red"]<include layout="@layout/akky_ltoggles" />[/COLOR]
So your final code for com.android.systemui.statusbar.policy.ToggleSlider will be
Code:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
[COLOR="Red"]<include layout="@layout/akky_ltoggles" />[/COLOR]
</LinearLayout>
It should look like this
Screenshot
So, basically what we have done in the above steps is that we have commanded to add a new file for our lollipop style toggle.
STEP 3
Download akky_ltoggles.xml.
Open the folder SystemUI.apk/res/layout And simply paste akky_ltoggles.xml
STEP 4
Compile the SystemUI.apk
Put it into a flashable zip and flash it Or use a root explorer file manager to push it into your system apps.
DOWNLOAD : akky_ltoggles.xml
Note: It's tested on Samsung device. Try this at your own Risk. I'm not responsible for any abnormal behavior after doing the above steps.
SCREENSHOTS
Before
After
Click to expand...
Click to collapse
bro im not able to recompile my apk its givin me a lot of errors can u help me ??
or can u do this for me if i give u my systemUI_ESS.apk and framework.res ??? my device doesnt have systemui.apk only systemUI_ESS.apk is there
I don't have the file tw_status_bar_expanded.xml
I don't have the file tw_status_bar_expanded.xml at the location SystemUI.apk/res/layout/tw_status_bar_expanded.xml
I followed all your steps but couldnt find a file named tw_status_bar_expanded.xml at the location specified. I only have a status_bar_expanded.xml file and I have uploaded a screenshot of all the files that start with "tw_" name.
I am using a Galaxy Note 3 10.1 (GT-N8000) Rooted using Kingo Root.
Please reply As Soon as possible.
hi
can anyone help me? I can't get through step 3:crying:
btw..... i'm just a kid:angel:
Boss can you please make me a lollipop system ui for my g360h
Sent from my SM-G360H using XDA-Developers mobile app
Is the reverse possible?
Is the reverse of this possible? KITKAT style notification drawer in lollipop 5.1.1 ?? I am running CM12.1 in my yu yureka plus ...
But why...
Sayak44 said:
Is the reverse of this possible? KITKAT style notification drawer in lollipop 5.1.1 ?? I am running CM12.1 in my yu yureka plus ...
Click to expand...
Click to collapse
I have no idea. btw, why would you even want to do that?
bricklol said:
I have no idea. btw, why would you even want to do that?
Click to expand...
Click to collapse
I like the KITKAT one better....
Well, that could come in handy.
Thanks
bricklol said:
I don't have the file tw_status_bar_expanded.xml at the location SystemUI.apk/res/layout/tw_status_bar_expanded.xml
I followed all your steps but couldnt find a file named tw_status_bar_expanded.xml at the location specified. I only have a status_bar_expanded.xml file and I have uploaded a screenshot of all the files that start with "tw_" name.
I am using a Galaxy Note 3 10.1 (GT-N8000) Rooted using Kingo Root.
Please reply As Soon as possible.
Click to expand...
Click to collapse
Edit the status_bar_expanded.xml, it should work.
I don't have a tw_status_bar_expanded.xml file but I do have a somc_status_bar_expanded.xml and tatus_bar_expanded.xml file, but neither of them have the code '<com.android.systemui.statusbar.policy.ToggleSlider' in them. Do I put the code in one of these files? If so, which file?
I have a Xperia Z1 Compact with kitkat 4.4.4 stock rom. If that helps.
Thanks
---------- Post added at 15:59 ---------- Previous post was at 15:55 ----------
bricklol said:
I don't have the file tw_status_bar_expanded.xml at the location SystemUI.apk/res/layout/tw_status_bar_expanded.xml
I followed all your steps but couldnt find a file named tw_status_bar_expanded.xml at the location specified. I only have a status_bar_expanded.xml file and I have uploaded a screenshot of all the files that start with "tw_" name.
I am using a Galaxy Note 3 10.1 (GT-N8000) Rooted using Kingo Root.
Please reply As Soon as possible.
Click to expand...
Click to collapse
Did you manage to get anywhere with this?
Thanks
Very helpful but when i try to open the xml files in N++ it looks different from your post
SS attached
NearDN said:
Very helpful but when i try to open the xml files in N++ it looks different from your post
SS attached
Click to expand...
Click to collapse
you should decompile it with apktool if you dont xml files doesn't opening
link is broken ?
Link not working
Link not working
fix it
Can't download akky_ltoggles.xml
I can't download akky_ltoggles.xml. could someone reupload it?