Decompiling Settings.apk. Next, look for Settings \ res \ xml \ display_settings.xlm open in Notepad ++
At the end, add the code:
<PreferenceScreen android: title = "@ string / services_dop" android: key = "services_dop">
<intent android: targetPackage = "com.mich.flip_2_mute" android: action = "android.intent.action.MAIN" android: targetClass = "com.mich.flip_2_mute.MainActivity" />
</ PreferenceScreen>
It should look like this:
<? xml version = "1.0" encoding = "utf-8"?>
<PreferenceScreen android: title = "@ string / display_settings"
xmlns: android = "http://schemas.android.com/apk/res/android"
xmlns: settings = "http://schemas.android.com/apk/res/com.android.settings">
<com.android.settings.BrightnessPreference android: persistent = "false" android: title = "@ string / brightness" />
<PreferenceScreen android: title = "@ string / wallpaper_settings_title" android: key = "wallpaper" android: fragment = "com.android.settings.WallpaperTypeSettings" />
<CheckBoxPreference android: title = "@ string / accelerometer_title" android: key = "accelerometer" />
<ListPreference android: persistent = "false" android: entries = "@ array / screen_timeout_entries" android: title = "@ string / screen_timeout" android: key = "screen_timeout" android: summary = "@ string / screen_timeout_summary" android: entryValues ​​= " @ array / screen_timeout_values ​​"/>
<PreferenceScreen android: title = "@ string / screensaver_settings_title" android: key = "screensaver" android: fragment = "com.android.settings.DreamSettings" />
<com.android.settings.WarnedListPreference android: entries = "@ array / entries_font_size" android: title = "@ string / title_font_size" android: key = "font_size" android: summary = "@ string / summary_font_size" android: dialogTitle = "@ string / dialog_title_font_size "android: entryValues ​​=" @ array / entryvalues_font_size "/>
<Preference android: persistent = "false" android: title = "@ string / font_setting_title" android: key = "font_setting">
<intent android: targetPackage = "com.lovelyfonts" android: action = "com.lovelyfonts.activity.mainTab" android: targetClass = "com.lovelyfonts.activity.MainActivity" />
</ Preference>
<CheckBoxPreference android: persistent = "false" android: title = "@ string / notification_pulse_title" android: key = "notification_pulse" />
<PreferenceScreen android: title = "@ string / wifi_display_settings_title" android: key = "wifi_display" android: fragment = "com.android.settings.wfd.WifiDisplaySettings" />
<PreferenceScreen android: title = "@ string / services_dop" android: key = "services_dop">
<intent android: targetPackage = "com.mich.flip_2_mute" android: action = "android.intent.action.MAIN" android: targetClass = "com.mich.flip_2_mute.MainActivity" />
</ PreferenceScreen>
</ PreferenceScreen>
With display_settings.xlm for now.
Now add the translation for our item:
1) in Settings \ res \ values ​​\ strings.xlm add a new line:
<string name = "services_dop">More services</ string>
2) in Settings \ res \ values-ru \ strings.xlm add a new line:
<string name = "services_dop">Add. Services</ string>
On this editing is completed.
We compile the application, replace the original files from the distributor in the original:
-Settings.apk \ resources.arsc,
-Settings.apk \ res \ xml \ display_settings.xlm
Replace in the settings.apk firmware
Add the file to the system \ app firmware
RequeLine.apk(160.31 KB)
.
Everything! Now a new item has appeared in the firmware: Ext. Services