[Guides & Links] TOUCHWIZ UNIFIED MODS THREAD

Search This thread

renzetti.s

Senior Member
Jun 15, 2012
2,205
2,327
203
With Huawei and Honor we can only use smali/baksmali...
and mods are good.

With Baksmali Manager and smali 2.0 to 2.1.3 we have a good result.

There isn't a working apktool.

So I can edit only smali files.
Mmm maybe not understand so tma doesn't work?
What mean xml doesn't deco?

Inviato dal mio LG-H850 utilizzando Tapatalk
 

renzetti.s

Senior Member
Jun 15, 2012
2,205
2,327
203
Is there any tut or guide (or even just the tools used) for how to make mods in java and then convert to smali? I know some of you are doing this and want to get in on the action.
Wuby write some about it search some pages back. Sure AS used and have tool to correct java too. This will be so great because how many classes write in github..... If reach could be great if you make guide... [emoji1]

Inviato dal mio LG-H850 utilizzando Tapatalk

---------- Post added at 02:51 PM ---------- Previous post was at 02:50 PM ----------

I think there is a plugin for android studio called java2smali.
Yes this as wuby suggested [emoji106]
Btw nice to see that you big still write here

Inviato dal mio LG-H850 utilizzando Tapatalk
 
  • Like
Reactions: RealWelder

Dark_shadow_007

Senior Member
May 22, 2017
89
123
0
ujjain
HOW TO FIX THIS?

After added battery colors (each 10,20....100% changed battery colors)...

SystemUI\res\values\arrays.xml :

<integer-array name="batterymeter_color_levels_sec">
<item>15</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values_sec">
<item>#ffffffff</item>
<item>#ffffffff</item>
</array>



To:

<integer-array name="batterymeter_color_levels_sec">
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values_sec">
<item>#ffb71c1c</item>
<item>#ffbf360c</item>
<item>#ffe65100</item>
<item>#ffff6f00</item>
<item>#fff57f17</item>
<item>#ffaeea00</item>
<item>#ff33691e</item>
<item>#ff1b5e20</item>
<item>#ff01579b</item>
<item>#ff0d47a1</item>
</array>

and com/android/systemui/BatteryMeterView.smali

mul-int/lit8 v24, v5, 0x2

to

mul-int/lit8 v24, v5, 0xa

This error has occurred!


Tnx
Bro why that not works in my ui????? any guide link for this plz??
 

Dark_shadow_007

Senior Member
May 22, 2017
89
123
0
ujjain

Attachments

  • Screenshot_20170715-185218.png
    Screenshot_20170715-185218.png
    86.6 KB · Views: 186

Zomby77

Senior Member
Feb 7, 2017
244
150
43
Wiena
Bro why that not works in my ui?? any guide link for this plz??

Which rom version did you try... 6.0.1?


Tray this change!

<integer-array name="batterymeter_color_levels">
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values">
<item>@color/battery_low_mode_color_on_status_bar</item>
<item>#ffff0000</item>
<item>#fff0440f</item>
<item>#ffff5900</item>
<item>#ffff6f00</item>
<item>#fff5780a</item>
<item>#ffaeea00</item>
<item>#ff61c738</item>
<item>#ff39c643</item>
<item>#ff0190fe</item>
<item>#ff136aec</item>
</array>

and com/android/systemui/BatteryMeterView.smali

mul-int/lit8 v24, v5, 0x2

to

mul-int/lit8 v24, v5, 0xa

Good luck ;)

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------

Yes now read original post and seems that doesn't work in it too...
Read what ther suggested (post next to original one)
Not remember if possible mul int with lit8 a 0xa....

Inviato dal mio LG-H850 utilizzando Tapatalk

Works bro ;);)
 

Dark_shadow_007

Senior Member
May 22, 2017
89
123
0
ujjain
Which rom version did you try... 6.0.1?


Tray this change!

<integer-array name="batterymeter_color_levels">
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values">
<item>@color/battery_low_mode_color_on_status_bar</item>
<item>#ffff0000</item>
<item>#fff0440f</item>
<item>#ffff5900</item>
<item>#ffff6f00</item>
<item>#fff5780a</item>
<item>#ffaeea00</item>
<item>#ff61c738</item>
<item>#ff39c643</item>
<item>#ff0190fe</item>
<item>#ff136aec</item>
</array>

and com/android/systemui/BatteryMeterView.smali

mul-int/lit8 v24, v5, 0x2

to

mul-int/lit8 v24, v5, 0xa

Good luck ;)

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------



Works bro ;);)
Yes m tring on 6.0.1:rolleyes: on j7 prime
 

Dark_shadow_007

Senior Member
May 22, 2017
89
123
0
ujjain
Which rom version did you try... 6.0.1?


Tray this change!

<integer-array name="batterymeter_color_levels">
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
</integer-array>
<array name="batterymeter_color_values">
<item>@color/battery_low_mode_color_on_status_bar</item>
<item>#ffff0000</item>
<item>#fff0440f</item>
<item>#ffff5900</item>
<item>#ffff6f00</item>
<item>#fff5780a</item>
<item>#ffaeea00</item>
<item>#ff61c738</item>
<item>#ff39c643</item>
<item>#ff0190fe</item>
<item>#ff136aec</item>
</array>

and com/android/systemui/BatteryMeterView.smali

mul-int/lit8 v24, v5, 0x2

to

mul-int/lit8 v24, v5, 0xa

Good luck ;)

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------



Works bro ;);)
My battery icon still that old one:(
 

Attachments

  • Screenshot_20170715-204645.png
    Screenshot_20170715-204645.png
    231.9 KB · Views: 256

koko115

Senior Member
Jul 1, 2012
1,821
334
113


The smalis I do not remember where they are, I have them for a thousand years, if I have to thank someone who says ...

I make it clear that the work is on my S8 + terminal, other models try ...

This mod needs to decompile and compile again for its full function ...

This mod needs to decompile framework-res.apk

Decompile SecSettings2.apk

Extract the zip and copy in the marked direction the * .xml and smalis (these carry the identifiers to later modify)

Go to res/values/ids.xml and add

Code:
<item type="id" name="autostarts_settings">false</item>
<item type="id" name="appName">false</item>

Go to res/values/strings.xml and add

Code:
<string name="autostarts_title">Autostarts</string>
    <string name="autostarts_allowed">Has allowed</string>
    <string name="autostarts_prohibited">Has prohibited</string>
    <string name="autostarts_allow_progress_msg">Being restored boot, please wait...</string>
    <string name="autostarts_prohibit_progress_msg">Prohibit boot, please wait...</string>
    <string name="autostarts_empty_msg">No installation boot applications</string>
    <string name="autostarts_optimize_empty_msg">No optimize the startup items</string>
    <string name="autostarts_optimize_btn_title">Optimize the startup items</string>
	<string name="autostarts_all_btn_title">Automatically Start All Applications</string>

Go to res/values-es-rESstrings.xml (each your language, in my case Spanish) and add

Code:
<string name="autostarts_title">Autoinicio</string>
    <string name="autostarts_allowed">Se ha permitido</string>
    <string name="autostarts_prohibited">Se ha prohibido</string>
    <string name="autostarts_allow_progress_msg">Se esta restableciendo, por favor espere...</string>
    <string name="autostarts_prohibit_progress_msg">Se esta prohibiendo, por favor espere...</string>
    <string name="autostarts_empty_msg">No instalar aplicaciones con autoinicio</string>
    <string name="autostarts_optimize_empty_msg">No optimizar el inicio</string>
    <string name="autostarts_optimize_btn_title">Optimizar el inicio</string>
    <string name="autostarts_all_btn_title">Todas las apps que se autoinician</string>

Go to res/xml/useful_feature.xml (I integrate it here, everyone who can try anywhere) and add line blue

Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
    [COLOR="Blue"]<PreferenceScreen android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:key="Autostarts" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />[/COLOR]
    <Preference android:title="@string/pen_settings_title" android:key="pen_settings_title" android:fragment="com.samsung.android.settings.spen.SPenSettingsMenu" />

Compile and decompile SecSettings2.apk , decompile framework-res.apk
review smalis and compare with public.xml

LewaManageAutostarts$AppAdapter.smali

Code:
const v6, 0x7f040336  ## <public type="layout" name="manage_autostarts_item"
    const v5, 0x7f12009e ## <public type="id" name="icon" id=
    const v5, 0x7f1207f2 ## <public type="id" name="appName"
    const v5, 0x7f12011b ## <public type="id" name="status" 
    const v5, 0x7f1202cf ## <public type="id" name="app_on_sdcard"

LewaManageAutostarts.smali

Code:
const v2, 0x7f0c22cf ## <public type="string" name="autostarts_prohibit_progress_msg"
    const v5, 0x7f0c22cc ## <public type="string" name="autostarts_allowed"
    const v1, 0x7f0c22cd ## <public type="string" name="autostarts_prohibited"
    const v0, 0x7f0c22d3 ## <public type="string" name="autostarts_all_btn_title"
    const v0, 0x7f0c22d2 ## <public type="string" name="autostarts_optimize_btn_title"
    const v1, 0x7f040335 ## <public type="layout" name="manage_autostarts"
    const v1, 0x102000a  ## <public type="id" name="list" in framework-res.apk
    const v1, 0x1020004 ## <public type="id" name="empty" in framework-res.apk
    const v1, 0x7f0c22d0 ## <public type="string" name="autostarts_empty_msg"
    const v2, 0x7f0c22d2 ## <public type="string" name="autostarts_optimize_btn_title"
    const v2, 0x7f0c22d0 ## <public type="string" name="autostarts_empty_msg"
    const v2, 0x7f0c22d3 ## <public type="string" name="autostarts_all_btn_title" 
    const v2, 0x7f0c22d1 ## <public type="string" name="autostarts_optimize_empty_msg"
    const v2, 0x7f0c22ce ## <public type="string" name="autostarts_allow_progress_msg"

If after all this you get closure of the adjustments, check the identifiers ...

Regards

I have secsettings crash after try turn on autostart...
any one have fix ?
 

daxgirl

Senior Member
Jun 30, 2012
4,047
9,165
0
Jerusalem
Is there any tut or guide (or even just the tools used) for how to make mods in java and then convert to smali? I know some of you are doing this and want to get in on the action.
I always create mods in Java and convert to smali. If you're good in Java, it's really easy it takes some time and work to create classes tree. I like to make it precise so I never need to touch smali. With all the lathes already there. And as Troy said, I use the java2smali plugin.

I have a huge systemui mock in my files built all as android studio native project with Java. And the classes I needed converted to smali. In fact, all of my mods are made solely in Java. I am just no good in smali.

Sent from my SM-G955F using Tapatalk
 

RealWelder

Senior Member
Sep 17, 2014
692
291
93
Muncie, IN
I always create mods in Java and convert to smali. If you're good in Java, it's really easy it takes some time and work to create classes tree. I like to make it precise so I never need to touch smali. With all the lathes already there. And as Troy said, I use the java2smali plugin.

I have a huge systemui mock in my files built all as android studio native project with Java. And the classes I needed converted to smali. In fact, all of my mods are made solely in Java. I am just no good in smali.

Sent from my SM-G955F using Tapatalk
I'm not very good at either of them...but I am willing to learn. Lol
 

daxgirl

Senior Member
Jun 30, 2012
4,047
9,165
0
Jerusalem
I'm not very good at either of them...but I am willing to learn. Lol

Google provides several courses, some of them for free, which give you a good basic idea about android development.
I highly recommend getting at least some knowledge, as those things tend to go a long way when you practice. You will not become RomainGuy after the introduction, but you will learn about basic structure, basic ideas and definitely get a basis for extrapolating.
Learn Java as if you never want to see smali again and then mod in smali using your java knowledge.

Here is an example of an inspiration that struck me and @Wuby986 one day a long time ago. When we realized that reverse programming helps in reverse engineering.
A post by a great @serajr
https://forum.xda-developers.com/showthread.php?t=2711852

All the mods I ever made were inspired by the idea I got from him. Of course, you do need to be a java programmer to do that.

To this day I have in image of red clock in my mind when I start modding :)
 

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone