Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide]How To Add 2 Tab Setting

OP mohawk97

4th May 2014, 04:55 PM   |  #1  
OP Member
Flag Perak
Thanks Meter: 52
 
60 posts
Join Date:Joined: Mar 2014
More
This Guide Is Advance From This Guide

http://forum.xda-developers.com/show....php?t=1900505

Materials:

Apktool

Pc\Laptop


Step:Decompile Your Setting.apk

Open smali\com\android\settings\TabbedSettings.smali

Find This Code .line 68

Delete This:

.line 68
new-instance v0, Landroid/widget/TextView;
invoke-direct {v0, p0}, Landroid/widget/TextView;->(Landroid/content/Context;)V
const-string v1, "Actions"
const-string v2, "PersonalSettings"
invoke-direct {p0, v0, v1, v2}, Lcom/android/settings/TabbedSettings;->setupTab(Landroid/widget/TextView;Ljava/lang/String;Ljava/lang/String;)V


.line 69
new-instance v0, Landroid/widget/TextView;
invoke-direct {v0, p0}, Landroid/widget/TextView;->(Landroid/content/Context;)V
const-string v1, "Google"
const-string v2, "ProgramSettings"
invoke-direct {p0, v0, v1, v2}, Lcom/android/settings/TabbedSettings;->setupTab(Landroid/widget/TextView;Ljava/lang/String;Ljava/lang/String;)V

After That Save.


Step 2:eek:pen The Public.xml

Delete This:

public type="xml" name="personal_settings" id="0x7f04003a"
public type="xml" name="program_settings" id="0x7f04003b"

After That Save.


Step 3:eek:pen Res\Xml

Delete This:

program_settings.xml dan personal_settings.xml

After That Save.

Done And Recompile Back.

Note:If You Want 3 Tab the same way as above only be erased one wrote, there are examples of his personal settings erased the personal settings of all

Credit And Thaxs:

Allah Swt

Group OGY

CoD.<D.J.>

You

If I Put Credit Please Tell me
Last edited by mohawk97; 4th May 2014 at 05:04 PM. Reason: haha
The Following User Says Thank You to mohawk97 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
2 tab setting
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes