[HELP] Adding item on Settings.apk - Android Q&A, Help & Troubleshooting

Hi,
I've decompiled settings.apk and add some feature. It's work fine but instead of displaying the text, it displays characters as @xxxxxx
The steps I followed
settings.xml
<PreferenceCategory android:title="@string/my_little_stuff" />
<com.android.settings.IconPreferenceScreen android:title="@string/cm_logcat_extreme_title" settings:icon="@drawable/ic_settings_profiles">
<intent android:targetPackage="scd.lcex" android:action="android.intent.action.MAIN" android:targetClass="scd.lcex.LogcatExtreme" />
</com.android.settings.IconPreferenceScreen>
string.xml
<string name="my_little_stuff">Log cat Extreme</string>
Thank you in advance for your response!!!!

Related

GOlocker

Hi everybody, I have a problem with GOLocker...
I want implement it into my ROM then i copy com.jiubang.goscreenlock-1 in data/app but when i flash the ROM and I boot the phone I have the original lockscreen, why?
EDIT: Solved but now I have another problem, I want change the default settings infact the default setting is that the GoLocker isn't enable then I go to C:\ROMCooking\APKManager\projects\com.jiubang.goscreenlock-1.apk\res\xml and i found lock_setting.xml
Original
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="false" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="true" />
</PreferenceScreen>
Click to expand...
Click to collapse
Edited by me
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen android:title="@string/setting_title"
xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:title="@string/start_go_lock" android:key="@string/start_go_lock_key" android:defaultValue="true" />
<Preference android:title="@string/my_go_lock" android:key="@string/my_go_lock_key" android:summary="需代码动态赋值" />
<CheckBoxPreference android:title="@string/go_lock_sound" android:key="@string/go_lock_sound_key" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/start_emergency_button" android:key="@string/start_emergency_button_key" android:defaultValue="false" />
</PreferenceScreen>
Click to expand...
Click to collapse
Infact if we see the app the first option is that if we want enable GOLocker than I edited the first line changing false to true and the other 2 options but it's not important...
When I install the app the settings aren't changed, it's possible?
Another question: where is Zombie Art By Jack Larson string?
It's in strings.xml?
Upupupupupupupupupupupupupupupupupupup

[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App

[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App
Sorry My Bad English
Apktool Tutorial
http://forum.xda-developers.com/showthread.php?t=2011254
Notepad Plus
http://notepad-plus-plus.org/download
Tutorial Create New Theme
Download test_theme.apk
decomplie test_theme to Apktool
Go to projects test_theme.apk folder Open Android Manifest.xml to notepad Plus
Code:
[/<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.[COLOR="Red"]orochi_2013_tonypanduru_fish[/COLOR].themes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="[COLOR="red"]Fish By Orochi[/COLOR]" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
<service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
</service>
</application>
</manifest>
Edit red Sections
Sample
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.xperia_2011.themes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="xperia 2011 By Orochi" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
<service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
</service>
</application>
</manifest>
And Save Androidmanifest.xml
Go to projects test_theme.apk/smali/com Folder Rename orochi_2013_tonypanduru_fish folder to xperia_2011
go to projetcs test_theme.apk/smali\com\xperia_2011\themes open orochiThemeService.smali to notepad plus
edit First Line
Code:
[COLOR="red"].class public Lcom/orochi_2013_tonypanduru_fish/themes/orochiThemeService;[/COLOR]
to
Code:
[COLOR="red"].class public Lcom/xperia_2011/themes/orochiThemeService;[/COLOR]
save files
Go to test_theme.apk/res/values folder string.xml open notepad plus edit Theme Name
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">[COLOR="red"]Fish[/COLOR]</string>
<string name="orochi_theme_title">[COLOR="red"]Fish[/COLOR]</string>
</resources>
to
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Xperia 2011</string>
<string name="orochi_theme_title">Xperia 2011 </string>
</resources>
Go to projects test_theme.apk/res drawable-mdpi and drawable-land-mdpi Change All İmg
and Finish open APKTOOL Set 14 Create+Sign New App Created Signed_test_theme.apk :good:
Tutorial Convert Defaultthemes App to Normal install App
DefaultThemes.apk Decomplie to Apktool
go to projects DefaultThemes.apk folder Open Android Manifest.xml note pad plus
orginal Android Manifest.xml
Code:
[COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="2.0" package="com.sonyericsson.defaultruntimethemes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application>
<uses-library android:name="com.sonyericsson.privateapis_1p" />[/COLOR]
<service android:label="@string/green_theme_title" android:name=".GreenThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/green_themeinfo" />
</service>
<service android:label="@string/black_theme_title" android:name=".BlackThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/black_themeinfo" />
</service>
<service android:label="@string/orange_theme_title" android:name=".OrangeThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orange_themeinfo" />
</service>
<service android:label="@string/blue_theme_title" android:name=".BlueThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/blue_themeinfo" />
</service>
<service android:label="@string/pink_theme_title" android:name=".PinkThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/pink_themeinfo" />
</service>
<service android:label="@string/rainbow_theme_title" android:name=".RainbowThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/rainbow_themeinfo" />
</service>
<service android:label="@string/red_theme_title" android:name=".RedThemeService">
<intent-filter>
<action android:name="com.sonyericsson.theme.RuntimeThemeService" />
</intent-filter>
<meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/red_themeinfo" />
</service>
</application>
</manifest>
delete red section
Copy New text save xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.new.defaultruntimethemes"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
<application android:label="new Themes" android:icon="@drawable/icon">
<uses-library android:name="com.sonyericsson.privateapis_1p" />
go to DefaultThemes.apk folder res/values/strings.xml Edit Theme Name
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="black_theme_title">[COLOR="Red"]Silk[/COLOR]</string>
<string name="blue_theme_title">[COLOR="red"]Sapphire[/COLOR]</string>
<string name="green_theme_title">[COLOR="red"]Emerald[/COLOR]</string>
<string name="orange_theme_title">[COLOR="red"]Gold[/COLOR]</string>
<string name="pink_theme_title">[COLOR="red"]Ametyhst[/COLOR]</string>
<string name="rainbow_theme_title">[COLOR="red"]Turquiose[/COLOR]</string>
<string name="red_theme_title">[COLOR="red"]Ruby[/COLOR]</string>
</resources>
go to DefaultThemes.apk folder res/values/public.xml add new drawable code
Code:
[COLOR="red"]<public type="drawable" name="icon" id="0x7f020028" />[/COLOR]
Download icon.png Copy projetcs DefaultThemes.apk\res\drawable-mdpi folder or Add your İcon 48x48 or 72x72 png Format İmg
goto projetcs DefaultThemes.apk/smali/com Folder Rename to sonyericsson folder (new)
Go to DefaultThemes.apk/smali/com/new/defaultruntimethemes edit 7 smali files change First line
blackThemeService.smali
blueThemeService.smali
greenThemeService.smali
orangeThemeService.smali
redThemeService.smali
rainbowThemeService.smali
pinkThemeService.smali
Sample
Code:
.class public Lcom/[COLOR="red"]sonyericsson[/COLOR]/defaultruntimethemes/BlackThemeService;
to
Code:
.class public Lcom/[COLOR="red"]new[/COLOR]/defaultruntimethemes/BlackThemeService;
Edit 7 Smali File And
DefaultThemes.apk\res\drawable-mdpi + DefaultThemes.apk\res\drawable-land-mdpi folder Change All İmage
Finish open Apktool Set 14 ( Recomplie+Sign ) new app Created signed_DefaultThemes.apk rename new app install
Thanks again
Great work man,
will try.
Nice tutorial my friend
saqib nazm said:
Nice tutorial my friend [/QUOTE
:good: thanks bro
Click to expand...
Click to collapse
great
great work my friend :good:
Need root?
Scythemore said:
Need root?
Click to expand...
Click to collapse
No Root Acces :good:
Orochixxx said:
No Root Acces :good:
Click to expand...
Click to collapse
i always wondered how do this....but i know now....
btw nice tut

[Q] How do I add a submenu to settings app?

Hello guys!
I´m trying to add a submenu to my Rom. I allready open the apk with APKTool and edited some xmls with notepad++. But now I want to make a new submenu for all Halo settings, but how? Looking at other submenus don´t help!
The submenu xml looks like that at the moment:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/halo_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/halo_settings_header" android:key="halo">
<CheckBoxPreference android:title="@string/halo_hide_title" android:key="halo_hide" android:summary="@string/halo_hide_summary" android:defaultValue="false" />
<CheckBoxPreference android:title="@string/halo_reversed_title" android:key="halo_reversed" android:summary="@string/halo_reversed_summary" android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>
Click to expand...
Click to collapse
and the settings head like this:
<?xml version="1.0" encoding="utf-8"?>
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
<header android:id="@id/wireless_section" android:title="@string/header_category_wireless_networks" />
<header android:icon="@drawable/ic_settings_wireless" android:id="@id/wifi_settings" android:title="@string/wifi_settings_title" android:fragment="com.android.settings.wifi.WifiSettings" />
<header android:icon="@drawable/ic_settings_bluetooth2" android:id="@id/bluetooth_settings" android:title="@string/bluetooth_settings_title" android:fragment="com.android.settings.bluetooth.BluetoothSettings" />
<header android:icon="@drawable/ic_settings_data_usage" android:id="@id/data_usage_settings" android:title="@string/data_usage_summary_title" android:fragment="com.android.settings.DataUsageSummary" />
<header android:id="@id/operator_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</header>
<header android:icon="@drawable/empty_icon" android:id="@id/wireless_settings" android:title="@string/radio_controls_title" android:fragment="com.android.settings.WirelessSettings" android:breadCrumbTitle="@string/wireless_networks_settings_title" />
<header android:id="@id/device_section" android:title="@string/header_category_device" />
<header android:icon="@drawable/ic_settings_sound" android:id="@id/sound_settings" android:title="@string/sound_settings" android:fragment="com.android.settings.SoundSettings" />
<header android:icon="@drawable/ic_settings_display" android:id="@id/display_settings" android:title="@string/display_settings" android:fragment="com.android.settings.DisplaySettings" />
<header android:icon="@drawable/ic_settings_storage" android:id="@id/storage_settings" android:title="@string/storage_settings" android:fragment="com.android.settings.deviceinfo.Memory" />
<header android:icon="@drawable/ic_settings_battery" android:id="@id/battery_settings" android:title="@string/power_usage_summary_title" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<header android:icon="@drawable/ic_settings_applications" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
<header android:icon="@drawable/ic_settings_multiuser" android:id="@id/user_settings" android:title="@string/user_settings_title" android:fragment="com.android.settings.users.UserSettings" />
<header android:id="@id/manufacturer_settings" android:fragment="com.android.settings.WirelessSettings">
<intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
</header>
<header android:id="@id/customization_section" android:title="@string/header_category_customization" />
<header android:icon="@drawable/ic_settings_themes" android:id="@id/themes_settings" android:title="@string/themes_settings_title">
<intent android:targetPackage="com.tmobile.themechooser" android:action="android.intent.action.MAIN" android:targetClass="com.tmobile.themechooser.ThemeChooser" />
</header>
<header android:icon="@drawable/ic_settings_status_bar" android:id="@id/tool_bar_settings" android:title="@string/tool_bar_settings" android:fragment="com.android.settings.paranoid.Toolbar" />
<header android:icon="@drawable/ic_settings_halo" android:id="@id/settings_halo" android:title="@string/settings_halo" android:fragment="com.android.settings.paranoid.Halo" />
<header android:icon="@drawable/ic_settings_lock_screen" android:id="@id/lock_screen_settings" android:title="@string/lock_screen_settings" android:fragment="com.android.settings.paranoid.Lockscreen" />
<header android:icon="@drawable/ic_settings_advanced" android:id="@id/advanced_settings" android:title="@string/advanced_settings_title">
<intent android:targetPackage="com.cyanogenmod.settings.device" android:action="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" android:targetClass="com.cyanogenmod.settings.device.DeviceSettings" />
</header>
<header android:icon="@drawable/ic_settings_hybrid" android:id="@id/hybrid_settings" android:title="@string/hybrid_settings">
<intent android:targetPackage="com.paranoid.preferences" android:action="android.intent.action.MAIN" android:targetClass="com.paranoid.preferences.MainActivity" />
</header>
<header android:id="@id/personal_section" android:title="@string/header_category_personal" />
<header android:icon="@drawable/ic_settings_location" android:id="@id/location_settings" android:title="@string/location_settings_title" android:fragment="com.android.settings.LocationSettings" />
<header android:icon="@drawable/ic_settings_security" android:id="@id/security_settings" android:title="@string/security_settings_title" android:fragment="com.android.settings.SecuritySettings" />
<header android:icon="@drawable/ic_settings_language" android:id="@id/language_settings" android:title="@string/language_settings" android:fragment="com.android.settings.inputmethod.InputMethodAndLanguageSettings" />
<header android:icon="@drawable/ic_settings_backup" android:id="@id/privacy_settings" android:title="@string/privacy_settings" android:fragment="com.android.settings.PrivacySettings" />
<header android:id="@id/account_settings" android:title="@string/account_settings" />
<header android:icon="@drawable/ic_menu_add" android:id="@id/account_add" android:title="@string/add_account_label">
<intent android:action="android.settings.ADD_ACCOUNT_SETTINGS" />
</header>
<header android:id="@id/system_section" android:title="@string/header_category_system" />
<header android:icon="@drawable/ic_action_permission" android:id="@id/superuser" android:title="@string/superuser" android:fragment="com.koushikdutta.superuser.PolicyNativeFragment" />
<header android:icon="@drawable/ic_settings_date_time" android:id="@id/date_time_settings" android:title="@string/date_and_time_settings_title" android:fragment="com.android.settings.DateTimeSettings" />
<header android:icon="@drawable/ic_settings_accessibility" android:id="@id/accessibility_settings" android:title="@string/accessibility_settings" android:fragment="com.android.settings.AccessibilitySettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_about" android:id="@id/about_settings" android:title="@string/about_settings" android:fragment="com.android.settings.DeviceInfoSettings" />
</preference-headers>
Click to expand...
Click to collapse
I added the needed strings to the strings.xml. But what now?? Pls help me!
iWilliBlecha said:
Hello guys!
I´m trying to add a submenu to my Rom. I allready open the apk with APKTool and edited some xmls with notepad++. But now I want to make a new submenu for all Halo settings, but how? Looking at other submenus don´t help!
The submenu xml looks like that at the moment:
and the settings head like this:
I added the needed strings to the strings.xml. But what now?? Pls help me!
Click to expand...
Click to collapse
Recompile and test (I know this post is old but I'm sick of not seeing replies)

[ GUIDE ] how to hide the superuser and open it via settings as AOKP rom and etc

hay Xda
i want to share a simple Guide for newbie like me
oke lets talk about this guide
what are u need?
1. Decompile and recompile...
2. Superuser.apk
3. settings.apk
4. patient
first:
pull your settings.apk from your system
got to here if u dont know
http://forum.xda-developers.com/showthread.php?t=2141817
step 1
- Decompile superuser.apk
i used Superuser from clockworkmod because this is open source
navigate to
androidmnaifest.xml
search this line
Code:
<category android:name="android.intent.category.LAUNCHER" />
change it to
Code:
<category android:name="android.intent.category.DEFAULT" />
recompile and sign
step 2
- Decompile settings.apk
then navigate to
res/xml/settings.xml
then you find like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/settings_label_launcher" android:key="parent"
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="@string/radio_controls_title" settings:icon="@drawable/ic_settings_wireless">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/call_settings_title" android:key="call_settings" settings:icon="@drawable/ic_settings_call">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.CallFeaturesSetting" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/sound_settings_title" settings:icon="@drawable/ic_settings_sound">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SoundSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/display_settings_title" settings:icon="@drawable/ic_settings_display">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DisplaySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/customizedkey_settings_title" android:key="customizedkey_settings" settings:icon="@drawable/ic_settings_customizedkey">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.customizedkey.CustomizedKeySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/security_settings_title" android:key="security_settings" settings:icon="@drawable/ic_settings_security">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SecuritySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/applications_settings" android:key="applications_settings" settings:icon="@drawable/ic_settings_applications">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ApplicationSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/sync_settings" android:key="sync_settings" settings:icon="@drawable/ic_settings_sync">
<intent android:action="android.settings.SYNC_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/privacy_settings" android:key="privacy_settings" settings:icon="@drawable/ic_settings_privacy">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.PrivacySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/storage_settings" settings:icon="@drawable/ic_settings_storage">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Memory" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/language_settings" settings:icon="@drawable/ic_settings_language">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.LanguageSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/voice_input_output_settings" settings:icon="@drawable/ic_settings_speech">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.VoiceInputOutputSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/accessibility_settings" settings:icon="@drawable/ic_settings_accessibility">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.AccessibilitySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/dock_settings" android:key="dock_settings" settings:icon="@drawable/ic_settings_dock">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DockSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/date_and_time_settings_title" settings:icon="@drawable/ic_settings_date_time">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DateTimeSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/about_settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DeviceInfoSettings" />
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>
then add this under
</com.android.settings.IconPreferenceScreen>
Code:
<com.android.settings.IconPreferenceScreen android:title="@string/superuser" settings:icon="@drawable/ic_launcher_superuser">
<intent android:targetPackage="com.koushikdutta.superuser" android:action="android.intent.action.MAIN" android:targetClass="com.koushikdutta.superuser.MainActivity" />
</com.android.settings.IconPreferenceScreen>
and make sure like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/settings_label_launcher" android:key="parent"
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="@string/radio_controls_title" settings:icon="@drawable/ic_settings_wireless">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.WirelessSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/call_settings_title" android:key="call_settings" settings:icon="@drawable/ic_settings_call">
<intent android:targetPackage="com.android.phone" android:action="android.intent.action.MAIN" android:targetClass="com.android.phone.CallFeaturesSetting" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/sound_settings_title" settings:icon="@drawable/ic_settings_sound">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SoundSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/display_settings_title" settings:icon="@drawable/ic_settings_display">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DisplaySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/customizedkey_settings_title" android:key="customizedkey_settings" settings:icon="@drawable/ic_settings_customizedkey">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.customizedkey.CustomizedKeySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/security_settings_title" android:key="security_settings" settings:icon="@drawable/ic_settings_security">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.SecuritySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/applications_settings" android:key="applications_settings" settings:icon="@drawable/ic_settings_applications">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ApplicationSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/sync_settings" android:key="sync_settings" settings:icon="@drawable/ic_settings_sync">
<intent android:action="android.settings.SYNC_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/privacy_settings" android:key="privacy_settings" settings:icon="@drawable/ic_settings_privacy">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.PrivacySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/storage_settings" settings:icon="@drawable/ic_settings_storage">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Memory" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/language_settings" settings:icon="@drawable/ic_settings_language">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.LanguageSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/voice_input_output_settings" settings:icon="@drawable/ic_settings_speech">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.VoiceInputOutputSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/accessibility_settings" settings:icon="@drawable/ic_settings_accessibility">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.AccessibilitySettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/dock_settings" android:key="dock_settings" settings:icon="@drawable/ic_settings_dock">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DockSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/date_and_time_settings_title" settings:icon="@drawable/ic_settings_date_time">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DateTimeSettings" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/superuser" settings:icon="@drawable/ic_launcher_superuser">
<intent android:targetPackage="com.koushikdutta.superuser" android:action="android.intent.action.MAIN" android:targetClass="com.koushikdutta.superuser.MainActivity" />
</com.android.settings.IconPreferenceScreen>
<com.android.settings.IconPreferenceScreen android:title="@string/about_settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DeviceInfoSettings" />
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>
then make a new line inside strings.xml
go to
res/values/strings.xml
Code:
<string name="superuser">[B]Superuser[/B]</string>
or u can change name Superuser to whatever you want
then make a new png with resolution 32x32px (this is for ldpi device) and move ur png to res/drawable-ldpi
info
intent android:targetPackage="com.koushikdutta.superuser" means package installer for superuser
cmiiw
u can change it if u want to apply this to other apps
and this
android:targetClass="com.koushikdutta.superuser.MainActivity" means activity class in android manifest
just search and add .MainActivity
or if you not found it u can search this inside manifest
ex:
android:name=".activity.MainActivity"
android:targetActivity="HomeActivity"> cmiiw bcoz i not familiar with this..u gan google it
ok finish
recompile sign and test
Work in deodex and ussr v10
i have tested
-----May be work in ICS and up----
Moderator please remove this thread if not allowed in xda rules
thanks to
b 16h22
evan
ogy team
Googleh
etc
Thanks to him
Soory Bad english
Reserved 1
ocoot said:
will work on any rom, android version, etc. basicly, this is just hide the app from the launcher and then called that activity from settings
Click to expand...
Click to collapse
Thanks boz
+1
haha nice . will try this
what if in ICS setting .
Lemon_Lime`s said:
+1
haha nice . will try this
what if in ICS setting .
Click to expand...
Click to collapse
hhh i dont know about Cm /ics up
u can tested
Should work on stock ?
Sent from my GT-S5360 using xda app-developers app
GSculerlor said:
Should work on stock ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Ya working perfectly
check my SS
Nice Guide Bro Searching For This Only Well This Guide Is Easier And More Simpler Then The Other Which I Tried
thanks+1 keep it Up
Himan Boro said:
Nice Guide Bro Searching For This Only Well This Guide Is Easier And More Simpler Then The Other Which I Tried
thanks+1 keep it Up
Click to expand...
Click to collapse
yapz
may be u can applying in cm7.2
bcoz im not tested in cm
Himan Boro said:
Nice Guide Bro Searching For This Only Well This Guide Is Easier And More Simpler Then The Other Which I Tried
thanks+1 keep it Up
Click to expand...
Click to collapse
GSculerlor said:
Should work on stock ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Lemon_Lime`s said:
+1
haha nice . will try this
what if in ICS setting .
Click to expand...
Click to collapse
will work on any rom, android version, etc. basicly, this is just hide the app from the launcher and then called that activity from settings
How to decompile Superuser.apk ?
GSculerlor said:
How to decompile Superuser.apk ?
Click to expand...
Click to collapse
Just decompile like normal apk
without install framework
GSculerlor said:
How to decompile Superuser.apk ?
Click to expand...
Click to collapse
Code:
--------------------------------------------------------------------------
|02/04/2014 -- 21:21:45,78|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Ganendra\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=fragment, value=0x0000000a
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
are you already install 1.apk (framework-res.stock) before?
ocoot said:
Code:
--------------------------------------------------------------------------
|02/04/2014 -- 21:21:45,78|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Ganendra\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=fragment, value=0x0000000a
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
are you already install 1.apk (framework-res.stock) before?
Click to expand...
Click to collapse
Yes, why ?
Edit : Complete modding Settings.apk
FOrce Close....Help Yar
Himan Boro said:
FOrce Close....Help Yar
Click to expand...
Click to collapse
may be ure wrong in package installer from superuser
please..read again one by one
Himan Boro said:
FOrce Close....Help Yar
Click to expand...
Click to collapse
I think your problem on main activity
GSculerlor said:
I think your problem on main activity
Click to expand...
Click to collapse
yap .i think i have to put activity befor .Mainactivty
Himan Boro said:
yap .i think i have to put activity befor .Mainactivty
Click to expand...
Click to collapse
if u use superuser from chainsDD
may be u must replace .MainActivity to .HomeActivity
Minions_Army said:
if u use superuser from chainsDD
may be u must replace .MainActivity to .HomeActivity
Click to expand...
Click to collapse
You can check it by creating shortcut on your launcher, select Activities, and you get all your apps with their activities
GSculerlor said:
You can check it by creating shortcut on your launcher, select Activities, and you get all your apps with their activities
Click to expand...
Click to collapse
I Dint Get U..Wil U Explain More Clearly

Help Modify settings.apk MIUI 8 6.9.29

help, I want to disable or hide the button light switch option. is it possible to do that in modifying settings.apk on miui 8. Thanks
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/key_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory android:title="@string/screen_key_press" android:key="screen_key_press">
<ListPreference android:entries="@arRay/screen_key_press_action" android:title="@string/app_switch_key" android:key="menu_press" android:dialogTitle="@string/screen_key_press_action" android:entryValues="@arRay/screen_key_press_action_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/screen_key_long_press" android:key="screen_key_long_press">
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/app_switch_key" android:key="menu_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/home_key" android:key="home_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_action" android:title="@string/back_key" android:key="back_long_press" android:dialogTitle="@string/screen_key_long_press_action" android:entryValues="@arRay/screen_key_long_press_action_value" />
<ListPreference android:entries="@arRay/screen_key_long_press_timeout" android:title="@string/screen_key_long_press_timeout" android:key="screen_key_long_press_timeout" android:dialogTitle="@string/screen_key_long_press_timeout" android:entryValues="@arRay/screen_key_long_press_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/under_keyguard" android:key="under_keyguard">
<CheckBoxPreference android:title="@string/disable_power_key_long_press_under_keyguard" android:key="disable_power_long_press" />
<CheckBoxPreference android:title="@string/pref_volume_wake_title" android:key="pref_volume_wake" android:summary="@string/pref_volume_wake_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/convenience_key_category_title" android:key="convenience_key">
<CheckBoxPreference android:title="@string/fp_nav_center_back_to_home_title" android:key="pref_fingerprint_nav_center_to_home" />
</PreferenceCategory>
<CheckBoxPreference android:title="@string/pref_button_light" android:key="pref_button_light" android:summary="@string/pref_button_light_summary" />
<ListPreference androidersistent="false" android:entries="@arRay/button_light_timeout_entries" android:title="@string/button_light_timeout" android:key="button_light_timeout" android:dependency="pref_button_light" android:dialogTitle="@string/button_light_timeout" android:entryValues="@arRay/button_light_timeout_value" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/status_bar_screen_button_key" android:key="screen_button_category">
<Preference android:title="@string/status_bar_key_position_custom" android:key="screen_button_custom" android:fragment="com.android.settings.screenkey.ScreenKeySettings" />
</PreferenceCategory>
</PreferenceScreen>
I already decompiled the settings.apk and found the xml file key_settings.xml. im wondering which string on the xml file i will delete or modify to disable the menu for button light switch option.

Categories

Resources