Finally I made Rom - Samsung Galaxy Fit GT 5670

Hey guys finally I made a rom.. I am really very happy.. but still I have to work on it.
{
"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"
}
Well I still want to know that how to add .apk in settings? ?
Please help I want to release this rom

Base Parundtz ROm ?
I mean both have the same kernel !
mm,.. adding apk to settings ? what do u mean ?
try settings from this thread if that is what you meant
http://forum.xda-developers.com/showthread.php?t=1526925
---------- Post added at 10:00 AM ---------- Previous post was at 09:59 AM ----------
PS : What is the launcher used ?

dhananjaipai said:
Base Parundtz ROm ?
I mean both have the same kernel !
mm,.. adding apk to settings ? what do u mean ?
try settings from this thread if that is what you meant
http://forum.xda-developers.com/showthread.php?t=1526925
---------- Post added at 10:00 AM ---------- Previous post was at 09:59 AM ----------
PS : What is the launcher used ?
Click to expand...
Click to collapse
Lol I mean how to add application in setting .. As in creeds rom "no frill CPU control" us there in setting, so how to add that in setting ..

LOL, just decompile anything you want to learn )

Avilove.Cullen said:
Lol I mean how to add application in setting .. As in creeds rom "no frill CPU control" us there in setting, so how to add that in setting ..
Click to expand...
Click to collapse
mm,.. i dont have creeds' setings.apk..
if u can give me the apk and a few hours time,. i will tell u the trick :highfive:

zcop said:
LOL, just decompile anything you want to learn )
Click to expand...
Click to collapse
But when I don't know how to add .apk in settings then what's the use of decompiling

dhananjaipai said:
mm,.. i dont have creeds' setings.apk..
if u can give me the apk and a few hours time,. i will tell u the trick :highfive:
Click to expand...
Click to collapse
Ok I will give you the settings.apk when I get on to my laptop

Avilove.Cullen said:
Ok I will give you the settings.apk when I get on to my laptop
Click to expand...
Click to collapse
owkay :good:

dhananjaipai said:
owkay :good:
Click to expand...
Click to collapse
If you some stuffs then you can help me alot ;(
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que

Avilove.Cullen said:
If you some stuffs then you can help me alot ;(
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que
Click to expand...
Click to collapse
yea i will help u
i have read inside out of ROMs now

Compare /res/xml/settings.xml
you cant compare 2 decompiled apks by Kdiff3 or WinMerge. 2 software is free.
Kdiff3 best at find different director,files( it tell exacted what director,files 're different) and it's very useful when compare 2 or 3 large file( like framework.jar)
WinMerge best at compare 2 file( better than Kdiff3)
And just the Setting.apk not enough. you need to know about app to call
EXample:
you have aviPart.apk. Decompile it. Open Androidmanifest.xml
look for
Code:
[COLOR="Red"]package=[/COLOR]"what.ever.its.name"
look for all activity it has
Code:
[COLOR="Red"]<activity android:label="@string/cpu_settings_title" android:name=".cpuconfig.CPUConfigActivity"[/COLOR]>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:label="@string/cpu_settings_title" android:name=".activities.CPUActivity"[/COLOR]>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:name="what.ever.its.name.PowerWidgetActivity">[/COLOR]
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:name=".PowerWidgetOrderActivity">[/COLOR]
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Ok this APK has 4 activities for CPU config( like Nofrill CPU), CPU monitor, Lidroid toogle manager, Lidroid widget button order
If you want to call lidroid widget manager in Setting.apk
add this to settings.xml
Code:
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Lidroid Widget" settings:icon="@drawable/ic_bt_laptop">
<intent android:targetPackage="[COLOR="red"]what.ever.its.name[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="Blue"]what.ever.its.name.PowerWidgetActivity[/COLOR]" />
</com.android.settings.IconPreferenceScreen>
The Blue is the part to PowerWidgetActivity.smali(or called java class part)
Code:
smali/what/ever/its/name/PowerWidgetActivity.smali
You can see above some activity just have
Code:
<activity android:name=".PowerWidgetOrderActivity"
It not show the whole part because the pakage name is totally the same with the part
EX: pakage name - com.zcop.part
Decompile it you have smali/com/zcop/part

Hey zcop sir,.. one doubt,.
do i have to include the smali files into the settings.apk before re-compiling ?

zcop said:
Compare /res/xml/settings.xml
you cant compare 2 decompiled apks by Kdiff3 or WinMerge. 2 software is free.
Kdiff3 best at find different director,files( it tell exacted what director,files 're different) and it's very useful when compare 2 or 3 large file( like framework.jar)
WinMerge best at compare 2 file( better than Kdiff3)
And just the Setting.apk not enough. you need to know about app to call
EXample:
you have aviPart.apk. Decompile it. Open Androidmanifest.xml
look for
Code:
[COLOR="Red"]package=[/COLOR]"what.ever.its.name"
look for all activity it has
Code:
[COLOR="Red"]<activity android:label="@string/cpu_settings_title" android:name=".cpuconfig.CPUConfigActivity"[/COLOR]>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:label="@string/cpu_settings_title" android:name=".activities.CPUActivity"[/COLOR]>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:name="what.ever.its.name.PowerWidgetActivity">[/COLOR]
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[COLOR="red"]<activity android:name=".PowerWidgetOrderActivity">[/COLOR]
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Ok this APK has 4 activities for CPU config( like Nofrill CPU), CPU monitor, Lidroid toogle manager, Lidroid widget button order
If you want to call lidroid widget manager in Setting.apk
add this to settings.xml
Code:
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="Lidroid Widget" settings:icon="@drawable/ic_bt_laptop">
<intent android:targetPackage="[COLOR="red"]what.ever.its.name[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="Blue"]what.ever.its.name.PowerWidgetActivity[/COLOR]" />
</com.android.settings.IconPreferenceScreen>
The Blue is the part to PowerWidgetActivity.smali(or called java class part)
Code:
smali/what/ever/its/name/PowerWidgetActivity.smali
You can see above some activity just have
Code:
<activity android:name=".PowerWidgetOrderActivity"
It not show the whole part because the pakage name is totally the same with the part
EX: pakage name - com.zcop.part
Decompile it you have smali/com/zcop/part
Click to expand...
Click to collapse
After reading all this , i have dropped my idea of including .apks in settings
It's too hard ..

it's not including apk to setting, it's just call some extenal activity.
You have A.apk and B.apk
You can call A.apk from B.apk just use above method
And about merge A.apk to B.apk you have C.apk have all fearture of A an B just like Status Bar tweak i had shared in Theme Section
I merged EDTtweak.apk to Settings.apk. This way takes longerrrrrrr time )
And i do for fun - learning android.
@dhananjaipai
No need to add other smali when you call an activity from another apk
Need if your plant merge apk - and add activity to Androidmanifest.xml

zcop said:
it's not including apk to setting, it's just call some extenal activity.
You have A.apk and B.apk
You can call A.apk from B.apk just use above method
And about merge A.apk to B.apk you have C.apk have all fearture of A an B just like Status Bar tweak i had shared in Theme Section
I merged EDTtweak.apk to Settings.apk. This way takes longerrrrrrr time )
And i do for fun - learning android.
@dhananjaipai
No need to add other smali when you call an activity from another apk
Need if your plant merge apk - and add activity to Androidmanifest.xml
Click to expand...
Click to collapse
I too want to learn but it's too hard, any ways will u help me ?
I will tell you each and every step what i do ..
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que

Ok if I want to add a launcher in setting.apk then what should I do?
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que

Avilove.Cullen said:
Ok if I want to add a launcher in setting.apk then what should I do?
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que
Click to expand...
Click to collapse
launchers have different settings,.. i recommend u not to meddle with the launcher settings in the ROM
coz,. if i unistall the launcher n install a new one,. the settigns will give FC's or the options will be buggy ! :/

dhananjaipai said:
launchers have different settings,.. i recommend u not to meddle with the launcher settings in the ROM
coz,. if i unistall the launcher n install a new one,. the settigns will give FC's or the options will be buggy ! :/
Click to expand...
Click to collapse
Ok if I want to add any apk in settings then what should I do?
As the tutorial by zcop is very difficult
I can't understand .. Can you do that?
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que

Avilove.Cullen said:
Ok if I want to add any apk in settings then what should I do?
As the tutorial by zcop is very difficult
I can't understand .. Can you do that?
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que
Click to expand...
Click to collapse
Well his tutorial was the best if u ask me !
If i were U i would have already thanked him 100times !
He had correctly explained everything in detail
Yea,.. i can make it for u

dhananjaipai said:
Well his tutorial was the best if u ask me !
If i were U i would have already thanked him 100times !
He had correctly explained everything in detail
Yea,.. i can make it for u
Click to expand...
Click to collapse
I have thanked him also
And thanks for saying that you will support me
Si usted le da sentido a continuación, obtener el respeto .. Mi mente joven que

Related

Help Theming soft keys

So as the title suggests, Is there a way to theme the softkeys in CM or Stock roms. I need to theme the background of the status bar as i dont like black. Can some one help me??
As i know the easiest way is to use aokp rom work best if you have 3113 or 5113 their are already roms for both
Sent from my GT-P5100 using xda app-developers app
For stock. Decompile systemUI.apk and edit \res\drawable-sw600dp-mdpi\tw_status_bar_background.9 All of the other assoiciated images are in the same location. My location knowledge is based off of a 7" and the 10" is prolly in the drawable-sw800dp-mdpi folder.
good day.
Now as a side bar, I run a stock tw rom on my tab2 7 (I love the ir blaster so aosp is out for me ) but I do some personal tweaking for my taste. You can change the order and add a custom button with this quick breeze over.
{
"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"
}
I added a power button and changed order of recent and home buttons plus edited all of the pressed images (also de-touch wizzed the crap out of the notif panel and got rid of the text under toggles and made line indicator line smaller and found all the powder blue text colors via xml edits). But on to adding power button and changing order.
decompile systemUI.apk and navigate to \res\layout-sw600dp\tw_status_bar.xml
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
Above is the way the lines appear in the stock xml and you can simply reorder lines so that they will appear in set order. But I added a new line and changed order seen in code below.
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_power" android:contentDescription="@string/accessibility_home" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
I added a new home line and changed the sytem key value to power from this reference http://developer.android.com/reference/android/view/KeyEvent.html and you also need to add new @drawable references as well. Next is creating 2 brand new images using gimp in \res\drawable-sw600dp-mdpi\ tw_ic_sysbar_power_normal.png and tw_ic_sysbar_power_press.png. It is also needed to create the "new" drawable xml for the 2 new images. In res\drawable\ create a new xml file named tw_ic_sysbar_power.xml with included content from below.
Code:
<?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/tw_ic_sysbar_power_press" />
<item android:drawable="@drawable/tw_ic_sysbar_power_normal" />
</selector>
<?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/tw_ic_sysbar_power_press" />
<item android:drawable="@drawable/tw_ic_sysbar_power_normal" />
</selector>
* edit * for some reason using the code paste it left off the last </selector> line as seen as a direct paste above.
compile apk and push to device.
Steps can be used to add any command. i.e. persistent play and skip media buttons.
good day.
:laugh: Thanks. Will try that and tell .
chopper the dog said:
Now as a side bar, I run a stock tw rom on my tab2 7 (I love the ir blaster so aosp is out for me ) but I do some personal tweaking for my taste. You can change the order and add a custom button with this quick breeze over.
Click to expand...
Click to collapse
Dont suppose you would happen to know about the actual navigation bar at all ? I'm under the impression that its in \framework-res\res\drawable-hdpi and named ab_bottom_solid_dark_holo.9.
I have decompiled it in VTS and extracted it and edited it. checked the 9 was ok with the 9patch tool and recompiled it . Pushed it back into my device and after a reboot nothing changes . wiped the cache and dalvik but no dice.
Also tried this one
Any ideas please ?
Thanks for the information on the softkeys , great tutorial ! :good:
Even i would love to have semi-transparent bar at bottom. With headset icon if possible
silentvisitor said:
Even i would love to have semi-transparent bar at bottom. With headset icon if possible
Click to expand...
Click to collapse
Thats what im hoping to do , just kinda stuck at the moment tho
Sean_Seany said:
Dont suppose you would happen to know about the actual navigation bar at all ? I'm under the impression that its in \framework-res\res\drawable-hdpi and named ab_bottom_solid_dark_holo.9.
I have decompiled it in VTS and extracted it and edited it. checked the 9 was ok with the 9patch tool and recompiled it . Pushed it back into my device and after a reboot nothing changes . wiped the cache and dalvik but no dice.
Any ideas please ?
Thanks for the information on the softkeys , great tutorial ! :good:
Click to expand...
Click to collapse
I dont have it decompiled atm but if you changed something and dont see a affect it prolly means theres another drawable folder its pulling it from. You can check the other drawables and see if you see the same file in them. Hell i change emm all most times lol
RomsWell said:
I dont have it decompiled atm but if you changed something and dont see a affect it prolly means theres another drawable folder its pulling it from. You can check the other drawables and see if you see the same file in them. Hell i change emm all most times lol
Click to expand...
Click to collapse
AHA i see , cool thanks for the tip :good: I will give it a shot.

[GUIDE] duplicate activity at settings.apk

hi guys I'll give you a way to create a apk like the creed parts.apk without creating file apk like on screenies:
{
"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"
}
File Required:
1. Settings.apk
2. Tools to compile/decompile
3. Brain
Tuts:
1. decompile then compile again your settings.apk to check if there is an error or not
2. after it, decompile again
3. go to folder \smali\com\android\settings
4. copy 2 file smali TestingSettings.smali, TestingSettingsBroadcastReceiver.smali
5. just copy it there will appear -copy.smali
6. then rename. for example: Octo1.smali, Octo2.smali
7. open octo1.smali, find and replace com/android/settings/TestingSettings to com/android/settings/Octo1
8. find TestingSettings.java, replace to Octo1.java
9. open Octo2.smali, find and replace com/android/settings/TestingSettingsBroadcastReceiver to com/android/settings/Octo2
10. find and replace com/android/settings/TestingSettings to com/android/settings/Octo1 then find TestingSettingsBroadcastReceiver.java rename to Octo2.java. save
11. open res/xml
12. copy and paste Testing_Settings.xml and there will appear -copy.xml
13. rename to octo1.xml
14. delete all on octo1.xml and then write this. for example i use DSP Manager
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/tittle"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.IconPreferenceScreen android:title="DSPManager" android:summary="Setting Sound Equalizer" settings:icon="@drawable/ic_settings_dsp">
<intent android:targetPackage="com.bel.android.dspmanager" android:action="android.intent.action.MAIN" android:targetClass="com.bel.android.dspmanager.activity.DSPManager" />
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>
Click to expand...
Click to collapse
15. then save
16. open public.xml
17. enter the name of the new xml that we make to the public. +1 of the largest on the xml id. for example
<public type="xml" name="tab_settings" id="0x7f04003c" />
<public type="xml" name="octo1" id="0x7f04003d" />
Click to expand...
Click to collapse
18. the new id of octo1 copy to octo1.smali
19. then, open androidmanifest. find "TestingSettings"
20. copy this 2 parts:
<activity android:label="@string/tittle" android:name="TestingSettings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="TestingSettingsBroadcastReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SECRET_CODE" />
<data android:scheme="android_secret_code" android:host="4636" />
</intent-filter>
</receiver>
Click to expand...
Click to collapse
21. TestingSettings rename to Octo1, TestingSettingsBroadcastReceiver rename to Octo2, android:host="4636" rename to android:host="666"
22. final step, open settings.xml. paste this everywhere you want
<com.android.settings.IconPreferenceScreen android:title="@string/tittle" settings:icon="@drawable/ic_settings_octo">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.IllegalSettings" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
23. android:targetClass="com.android.settings.IllegalSettings" replace to android:targetClass="com.android.settings.Octo1"
24. compile. make sure you don't get error
25. sign-in settings
26. flash
sorry if my english is bad. thanks
fully credit to Rata Bila Bagi
Gonna try this! Reserved!
Can i make 3 tabs using duplicating the octo1 again?
TheDemiGod said:
Gonna try this! Reserved!
Click to expand...
Click to collapse
good luck bro
3r41nl33n said:
Can i make 3 tabs using duplicating the octo1 again?
Click to expand...
Click to collapse
no. this tuts just to create a apk like creedparts without make apk. please see screenshot
ocoot said:
no. this tuts just to create a apk like creedparts without make apk. please see screenshot
Click to expand...
Click to collapse
Oh sorry. I thought it was. Because in the screenies at the left has a two tabs.
3r41nl33n said:
Oh sorry. I thought it was. Because in the screenies at the left has a two tabs.
Click to expand...
Click to collapse
no problem
up
ocoot said:
up
Click to expand...
Click to collapse
Hi, I found 2 com/android/settings/TestingSettings, are they both of them need to replace?
please follow the tuts
Awesome sir ocoot:thumbup:
22. final step, open settings.xml. paste this everywhere you want
23.android:targetClass="com.android.settings.IllegalSettings" replace to android:targetClass="com.android.settings.Octo1"
24. compile. make sure you don't get error
25. sign-in settings
26. flash
Im stuck at step 22.... I would like ask regarding the step 22..
I have not found any file with a filename settings.xml. Does it mean any of example xxxxx_settings.xml files i can paste your code? Please help.
Sent from my LT18i using xda premium
Not Working I am Getting Problem in apktool
shadman0 said:
Not Working I am Getting Problem in apktool
Click to expand...
Click to collapse
try using apk multitool
Pls update the SS
the_vanya1 said:
Pls update the SS
Click to expand...
Click to collapse
This guide is actually similar like this one http://forum.xda-developers.com/showthread.php?t=2166315 from @Didact74

(guide)How to add Owner pic in settings About Panel

Here is My guide how to add Owner pic in settings about Panel​
{
"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"
}
Always backup any original file before modifying. If your phone doesn't boot push that backup to your phone.**
REQUIRED:
--Android SDK
--APK Tool
--WinZIP
--NOTEPAD
STEPS:-​-- Download the attached ZIPowner.zip
--Decompile your Setting.apk folder
​--and replace mine res folder with yours
Code:
<PreferenceCategory android:layout="@layout/preference_category" android:title=" INFO " />
<Preference android:focusable="false" android:clickable="false" android:layout="@layout/lenox_pic" />
Below this line
xmlns:android="http://schemas.android.com/apk/res/android">
Click to expand...
Click to collapse
IT will look like this
​
Open res/values/ids.xml and add these at the end
<item type="id" name="image">false</item>
<item type="id" name="owner">false</item>
<item type="id" name="linear_layout">false</item>
<item type="id" name="profile_pic">false</item>
<item type="id" name="layout1">false</item>
<item type="id" name="change_picture_text">false</item>
<item type="id" name="photo_picker">false</item>
<item type="id" name="linear_layout1">false</item>
<item type="id" name="layout2">false</item>
<item type="id" name="name_field">false</item>
<item type="id" name="name_edit">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="profile_name">false</item
Click to expand...
Click to collapse
Open strings.xml and add these strings
<string name="change_pic">Change profile picture</string>
<string name="profile_pic">SET PROFILE PICTURE</string>
<string name="profile_name">CHANGE PROFILE NAME</string>
Click to expand...
Click to collapse
Now recompile the apk and decompile it again. Now open the public.xml and find these ids.These may not be the same in your apk
-- Now, Copy the "b16h22" folder to \smali\com\(here)
Below are the most imp. steps:
This step is for matching the codes found in public.xml with that in smali foder.
1. Open each Smali files one by one which you copied now.
2. Also open Open the PublicPre.xml provided by me and Public.xml of ur current ROM in which u had registered the ID's.
3. In your smali files, find the id codes like 0x.......
4.Search dis in PublicPre.xml.
5.Copy the Item name related to dis code and search dis in ur current Public.xml.
6. And finally copy the Id of that ITEM name and replace with that in your Smali file.
7. Do the above steps with each ID codes in each Smali..
Now open the res/xml/ settings.xml
and add this iconpreferencescreen.You can add it anywhere you want.I'm assuming you have basic knowledge about preference xmls.
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
Now open the res/xml/ Open AndroidManifest.xml and add this
[QUOTE]<activity android:label="@string/change_pic" android:name="com.b16h22.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[/QUOTE]
10. Now you are done with modifications. Recompile and sign the settings.apk with kitchen​
Here is the last step
you have to disable signature check otherwise settings will not work
Here is My Guide
Decompile /system/framework/services.jar,
open com/android/server/packagemanagerservice.smali, look for
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/SignatureI
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
Click to expand...
Click to collapse
and add the red part
method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/SignatureI
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
const/4 v6, 0x0
return v6
Click to expand...
Click to collapse
Credit
b16h22
MARK
if u like my guide then press thanks button​
​
​
​
nice guide
thanks.. nice guide bro
Sent from my Micromax A57 using xda app-developers app
welcome Sir
very nice mod.... i will sure include this in my rom....& ofcourse ur & author's credit will be there...
Hi @SK(SurajKumar), will this work on 4.1.2 jelly bean as well ?
limyuyang said:
Hi @SK(SurajKumar), will this work on 4.1.2 jelly bean as well ?
Click to expand...
Click to collapse
sir did not try on 4.1 android and other high version!!
but you can try !!
and tell me result
and bro i am using 2.3.5:victory:
SK(SurajKumar) said:
sir did not try on 4.1 android and other high version!!
but you can try !!
and tell me result
and bro i am using 2.3.5:victory:
Click to expand...
Click to collapse
Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.
Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
limyuyang said:
Hmm.....okay. I guess this mod will only work on GB because this code is only for GB, not for JB.
Code:
<com.android.settings.IconPreferenceScreen android:title="Owner Profile" settings:icon="@drawable/ic_settings_owner">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" />
</com.android.settings.IconPreferenceScreen>
Click to expand...
Click to collapse
sir
may be it will work
Code:
<header android:icon="@drawable/ic_settings_owner" " android:title="Owner Profile" >
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.b16h22.Profile" / />
</header>
Would it be worthwhile trying to create a collections of settings.apk files for various phones on various networks? Then the uninitiated, like myself, would be able to try this too
Is this an APK teardown of Hyperion?
CarlDeanCatabay said:
Is this an APK teardown of Hyperion?
Click to expand...
Click to collapse
Bro,I posted this guide long before him.I got this idea from your rom.
So,I gave you credits you can check my thread.
He just copied my thread.
I will report to the moderator.He didn't gave you credits and saying that he made this guide.
plz tell me, about guide multypanel settings for JB 4.1 Samsung Touchwiz
I hope you come out with an update guide fir kitkat. Thanks though as this is fabulous
dugeriss said:
plz tell me, about guide multypanel settings for JB 4.1 Samsung Touchwiz
Click to expand...
Click to collapse
TecknoFreak said:
I hope you come out with an update guide fir kitkat. Thanks though as this is fabulous
Click to expand...
Click to collapse
Check out my thread for 4.1 to 4.4.Check owner profile in about phone bro.
nightwalker said:
Check out my thread for 4.1 to 4.4.Check owner profile in about phone bro.
Click to expand...
Click to collapse
Ok i will once I'm on PC as i cant navigate into your threads from the xda app to get link
Thanks
This is nothing more than a copy and past thread that was stolen from @nightwalker
Please check out the original thread here
http://forum.xda-developers.com/showthread.php?t=2591100
Thread Closed

[HOW TO] 100% battery mod with stock percentage battery text

For you today a detalied tutorial x adding stock battery percentage over the stock kitkat battery:
{
"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"
}
First, you have to know how to push files and decompile apk, or even create a flashable x it. Tutorial is for advanced users, developers and themers
This thread is not intended to provide zips, due to various roms around, so a wrong flashable will maybe lead to a fc or loosing some mods, or better if someone will do it, i will add it on first post (if comfirmed working).... credits given
let's start with it:
U need SystemUI.apk of course, decompile it.
1. go to \res\values\arrays.xml
<array name="batterymeter_color_values">
<item>#ffff3300</item>
<item>#ffffffff</item>
<item>#ffffffff</item>
</array>
<integer-array name="batterymeter_bolt_points">
<item>130</item>
<item>-146</item>
<item>392</item>
<item>-146</item>
<item>201</item>
<item>259</item>
<item>442</item>
<item>259</item>
<item>10</item>
<item>783</item>
<item>157</item>
<item>334</item>
<item>0</item>
<item>334</item>
</integer-array>
Click to expand...
Click to collapse
here you can set colors of battery for various levels, i leaved red when less then 5%, and white for others.
Battery meter bolt pints builds the thunder when charging, so i made it bigger, copy all like above
2. go then to \res\values\colors.xml
<color name="batterymeter_frame_color">#ff999999</color>
<color name="batterymeter_charge_color">#ffffffff</color>
<color name="batterymeter_bolt_color">#f21eff00</color>
Click to expand...
Click to collapse
change above values as your likings, frame color is the grayed frame of the battery i have setted solid light grey insted of a semi trasparent stock, charge color tells you enough, no explanation needed
Bolt color is thunder color when charging, i putted a 95% trasparent green(u can put whatever color you like)
3. now focus on \res\values\dimens.xml
<dimen name="status_bar_battery_text_size">11.0dip</dimen>
<dimen name="battery_icon_width">11.66dip</dimen>
<dimen name="battery_icon_height">17.33dip</dimen>
<dimen name="battery_icon_bottom_margin">0.33000004dip</dimen>
<dimen name="status_bar_battery_text_marginStart">0.0dip</dimen>
Click to expand...
Click to collapse
first value it is text dimension, ignore it as i mod it in last step
second and third value is for battery dimension, i make it bigger as x screen to fit my bigger signal icon, u can do as x your needings
ignore fourth value(just copy paste it)
set last value to 0.0 as above
4. now open \res\values\strings.xml and find the string
<string name="status_bar_settings_battery_meter_format">%d</string>
Click to expand...
Click to collapse
modify is as above as it will remove percentage from battery text
5. last point go to \res\layout\status_bar.xml
<LinearLayout android:gravity="center" android: orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android: paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:importantForAccessibility="no" android:fontFamily="sans-serif" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:layout_marginStart="3.0dip" />
</LinearLayout>
Click to expand...
Click to collapse
and paste this:
<LinearLayout android:gravity="center" android: orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android: paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="3.0dip" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/battery_icon_width" android:layout_height="@dimen/battery_icon_height" android:layout_marginBottom="@dimen/battery_icon_bottom_margin" android:layout_marginStart="3.0dip" />
<TextView android:textSize="10.33dip" android:textStyle="bold" android:textColor="#ff000000" android:layout_marginStart="-12.0dip" android: paddingTop="1.0dip" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:importantForAccessibility="no" android:fontFamily="sans-serif" />
</LinearLayout>
Click to expand...
Click to collapse
in the textview content u can modify regarding your needings, text size,color, font and format.
Be Aware, for emoji reasons(otherwise above u will see emoji instead of code) remove the space in pasted text from :
android: orientation
android: paddingStart
android: paddingTop
Recompile it and it is done
Mod will work even u have applied imaged battery mod, so you can just add your preferred image battery
hope you enjoy.
Feel free to use this tutorial, it will work on other devices too , just some position corrections needed.
I will just ask credits, thanks.
mine
_alex74_ said:
mine
Click to expand...
Click to collapse
this work on i9500 right?
ice.modding said:
this work on i9500 right?
Click to expand...
Click to collapse
it will work on every device, the code is nearly the same even on my LG L9 II
@_alex74_ can u make it as a flashable zip .. I tried on my systemui.apk I got failed ..
& this my SystemUI.apk
https://mega.co.nz/#!lUogWJyQ!V2eM53FuGqEWF8mIzEJvk3B0xP70o0v1VXhh9sxHo20
Sent from my SM-G900F using Tapatalk
thereassaad said:
@_alex74_ can u make it as a flashable zip .. I tried on my systemui.apk I got failed ..
& this my SystemUI.apk
https://mega.co.nz/#!lUogWJyQ!V2eM53FuGqEWF8mIzEJvk3B0xP70o0v1VXhh9sxHo20
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
sure lemme do it
Which rom u use?
_alex74_ said:
sure lemme do it
Which rom u use?
Click to expand...
Click to collapse
DN3 V5.2 N2
Sent from my SM-G900F using Tapatalk
thereassaad said:
DN3 V5.2 N2
Click to expand...
Click to collapse
S5 Rom?
uploading x you few zips. send links via PM as up.
report here if works as i will add on thread then(If S5 rom will open thread there )
_alex74_ said:
S5 Rom?
uploading x you few zips. send links via PM as up.
report here if works as i will add on thread then(If S5 rom will open thread there )
Click to expand...
Click to collapse
Bro N2 Custom Rom everything from S5 rom & okay send me pm & will report here & im wait
Sent from my SM-G900F using Tapatalk
---------- Post added at 01:40 PM ---------- Previous post was at 01:12 PM ----------
Bro its working VR but when I put my on charging I got thats like on
& thats working
Sent from my SM-G900F using Tapatalk
---------- Post added at 01:47 PM ---------- Previous post was at 01:40 PM ----------
& this u edit mine one but the number of percentage its very big & same issues when charging
Sent from my SM-G900F using Tapatalk
thereassaad said:
Bro its working VR but when I put my on charging I got thats like on
Click to expand...
Click to collapse
yep i know this, i will work on it trying to add animation when charging
thereassaad said:
this u edit mine one but the number of percentage its very big
Click to expand...
Click to collapse
yep i'm aware even of this, will solve it easily i think.
btw during all normal live(from 99 to 1 percent is working), so small issue under work
this is how i fixed it... in fact u can choose whatever color u will want for bolt when battery charging.
_alex74_ said:
this is how i fixed it... in fact u can choose whatever color u will want for bolt when battery charging.
Click to expand...
Click to collapse
Bro this my screen
Sent from my SM-G900F using Tapatalk
Updated post with charging fix.
about not centered 100 percent number in battery has to think about it, as it is dinamix text and layouted from right not from center.
So small bug as u will kepp 100% just for a while
will try to fix in these days
B&W KK444 theme !!
_alex74_ said:
Updated post with charging fix.
about not centered 100 percent number in battery has to think about it, as it is dinamix text and layouted from right not from center.
So small bug as u will kepp 100% just for a while
will try to fix in these days
Click to expand...
Click to collapse
Look _alex74_ the picture of you new KK444 theme ..can you fix the problem ( pop-up display )...
Work fine thanks

[Guide] [Mod] New Style of Stock Battery Layout

!! Hello XDA !!
=====================
Last update: 1-16-2017​
STOCK (BATTERY PERCENTAGE OFF)
{
"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"
}
STOCK (BATTERY PERCENTAGE ON)
MOD (BATTERY PERCENTAGE OFF)
MOD (BATTERY PERCENTAGE ON)
What have I done ??
Created a new layout structure, so that it looks different, when we choose the percentage mode on or off.
Created a new battery icon pack
Colored the stock battery icon pack
How to?
1. First, yes right!! Decompile your SystemUI.apk please (i'm using THIS GREAT TOOL by @Ticklefish || thanks )
2. Open your msim_system_icons.xml for Dual-SIM devices or system_icons.xml for Single-SIM devices. (res/layout/here)
Find this lines:
PHP:
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
Change to be like this:
PHP:
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip" android:gravity="center_vertical" >
<ImageView android:id="@id/status" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingBottom="1.0dip">
<TextView android:layout_width="wrap_content" android:layout_height="12.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:text="POWER -" android:id="@+id/text_bat_add" android:textSize="7.0dip" android:gravity="center_vertical" android:paddingRight="2.0dip" />
<com.erryy.BatteryText android:layout_width="wrap_content" android:layout_height="12.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="7.0dip" android:gravity="center_vertical" android:layout_gravity="right|top" android:paddingRight="3.0dip" />
<ImageView android:layout_gravity="center_horizontal|bottom" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_horizontal|bottom" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
3. Copy my icons to the correct directory (look at attachment)
4. Copy smali codes to the correct directory. This is for adding battery percentage (look at attachment or check this LINK for original thread) || Thanks to @Erhany
FIXING IN EXPANDED HEADER (FOR DUAL-SIM ONLY)
Open your status_bar_expanded_header.xml, and find this line :
PHP:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/system_icons" />
</FrameLayout>
Change to be like this :
PHP:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
5. Recompile and done !!
NOTE :
I'm running on Z5 STYLE ROM || base 5.1 || D2302 (Dual-SIM)
[*]If you want to try my codes in different devices or OS or ROM, please adapted with your codes
[*]If you want to change the icons, i suggest to adjust the size of icons that I made. Because I using FrameLayout, not LinearLayout for icons re-position
Excellent work, my friend! :good:
And I love the icons, especially the blue ones! They look great!
Sent from my Sony Xperia Z3 Compact using XDA Labs
Ticklefish said:
Excellent work, my friend! :good:
And I love the icons, especially the blue ones! They look great!
Sent from my Sony Xperia Z3 Compact using XDA Labs
Click to expand...
Click to collapse
Yap! Nice words. Thanks, sir [emoji3]
You can take my icons if you want
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app
FunSucker said:
Yap! Nice words. Thanks, sir [emoji3]
You can take my icons if you want
Click to expand...
Click to collapse
Thanks! Just send them my way and I'll add them to the next Icon Pack. :highfive:
Sent from my Sony Xperia Z3 Compact using XDA Labs
Can u make mod for me? I dont know how mod smali. Stock blue battery is nice.
Ticklefish said:
Thanks! Just send them my way and I'll add them to the next Icon Pack. :highfive:
Click to expand...
Click to collapse
Great news, i'll be waiting, sir [emoji106]
djborek said:
Can u make mod for me? I dont know how mod smali. Stock blue battery is nice.
Click to expand...
Click to collapse
Yes, sure. I'll try to help you when i coming home.
Not needed changing the smali codes, just simply copy the smali files in OP to your systemui. Thats all, sir
=======================
EDIT
=======================
Please backup first before push this systemui.
I'm not sure this is works / not, because your running on odex ROM. But, let me know.
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app
FunSucker said:
Great news, i'll be waiting, sir [emoji106]
Yes, sure. I'll try to help you when i coming home.
Not needed changing the smali codes, just simply copy the smali files in OP to your systemui. Thats all, sir
=======================
EDIT
=======================
Please backup first before push this systemui.
I'm not sure this is works / not, because your running on odex ROM. But, let me know.
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app
Click to expand...
Click to collapse
Fail on odex se screen? M2 is HDPI u copy icons to good folder?
EDIT:
This is from z5style make this but i have too this rom
djborek said:
Fail on odex se screen? M2 is HDPI u copy icons to good folder?
EDIT:
This is from z5style make this but i have too this rom
Click to expand...
Click to collapse
In my systemui, still works in xhdpi folder
I made it with 2 version method, with decompile and without decompile.
AND, i put the icons in hdpi folder, in both. i hope it works.
try this
Its with decompile.Look icon its work but %battery is not good show.
Without decompile. Maybe works when only change icon? But numbers too much going to left siede.
bro can you make flashable zip ?
djborek said:
Without decompile. Maybe works when only change icon? But numbers too much going to left siede.
Click to expand...
Click to collapse
oke, i try to resize the icons. try this, sir.
Tamilselvan.love said:
bro can you make flashable zip ?
Click to expand...
Click to collapse
for same device model & ROM with me, i can.
It works bro but can u make version without decompile to white %battery?
djborek said:
It works bro but can u make version without decompile to white %battery?
Click to expand...
Click to collapse
yes, sure. try this.
where should i put the smali?
Biakjosh said:
where should i put the smali?
Click to expand...
Click to collapse
Decompile your SystemUI.apk first, and then you can see the smali folder.
Sent from my XPERIA M2 Dual using XDA-Developers mobile app
After decompiling, There was no smali folder so I just put the extracted smali folder there but doesn't work. does this method work on odex rom?
Biakjosh said:
After decompiling, There was no smali folder so I just put the extracted smali folder there but doesn't work. does this method work on odex rom?
Click to expand...
Click to collapse
Absolutely not, sir. Sorry.
I said in OP, I'm running on Z5 Style ROM and thats ROM using deodexed patch.
Sent from my XPERIA M2 Dual using XDA-Developers mobile app
hi @FunSucker thanks for this guide :good:
can you share how to change the text % battery for this mod?
what code should I change in file BatteryText.smali or BatteryText $ 1.smali?
Mirza_H said:
hi @FunSucker thanks for this guide :good:
can you share how to change the text % battery for this mod?
what code should I change in file BatteryText.smali or BatteryText $ 1.smali?
Click to expand...
Click to collapse
You can change it by simply changing or adding android: textAppearance values with your choice.
Find this line in your system_icons.xml / msim_system_icons.xml , and then change the blue text
Code:
<TextView [COLOR="Red"]android:textAppearance[/COLOR][COLOR="Blue"]="@style/TextAppearance.StatusBar.Clock" [/COLOR]android:textSize="7.0dip" android:gravity="center_vertical" android:id="@id/text_bat_add" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="12.0dip" android:text="POWER -" />
<com.erryy.BatteryText [COLOR="Red"]android:textAppearance[/COLOR][COLOR="Blue"]="@style/TextAppearance.StatusBar.Clock"[/COLOR] android:textSize="7.0dip" android:gravity="center_vertical" android:layout_gravity="center|right|top" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="12.0dip" />

Categories

Resources