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