[Sony Xperia P, U, Sola, Go] FranciscoGool:
Hi all...

I present a guide to port the function Autostarts inside your Settings.

This guide as tested on Xperia JB Settings, Xperia ICS Settings line 2012 and Xperia ICS Settings line 2011.

You need:

¡¡¡¡BEGIN!!!!​

1° Decompile your Settings.

2° Download the zip file in the atchments "ResourcesAutostarts" and decompressed.

-The decompressed file is a folder to name: "Settings".

NOTE: If your decompile Settings have a other name, rename to "Settings" for more easy steps to this guide.

3° Copy and Paste the Settings folder decompressed to ResourcesAutostarts in to your folder to decompile the Settings.apk

-Its for add the resources autostarts in your decompile Settings.

4° Now, in your decompile Settings, navigate to next route: Settings/res/values/ and open ids.xml with your note edit and add in the end the next code:

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

-Save and close the ids.xml

4° On this route, open the Strings.xml and add the next code in the end of file:

<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">All autostarts items</string>

-Save and close the the String.xml

5° Now, navigate to the next route: Settings/res/xml and open the file settings_headers.xml and add the next code in the end... Guide with the screenshot.

<header android:icon="@drawable/ic_settings_autostarts" android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />

NOTE: in this case the access to Autostarts is in the principal menu but is possible add the autostarts in others menus...

-Save and close the file settings_headers.xml

6° NOW, COMPILE YOUR SETTINGS AND AFTER COMPILE, DECOMPILE THE NEW SETTINGS AGAIN.

NOTE 1: In this moment, the next steps is in the new decompile Settings.

NOTE 2: at this time, put attention!!!!!

7° NOW, in the new decompile Settings, navigate to next route System/res/values and only open the file public.xml... this file is your guide for the autostarts fully working.

8° In the new decompile Settings, navigate to next route: System/smali/com/android/settings/autostarts and open with your note edit the file "LewaManageAutostarts$AppAdapter.smali" and:

-Search the line 164 and check this code "0x7f040088"

-In your open file "public.xml" search the next " manage_autostarts_item " and check your respective id...

-Copy the id from "manage_autostarts_item" and replace to the original code in the line 164.

-Save.

-Search the line 174 and check this code "0x7f080028"

-In your open file "public.xml" search the next " icon " and check your respective id...

-Copy the id from "icon" and replace to the original code in the line 174.

-Save.

-Search the line 195 and check this code "0x7f08020a"

-Go to the open file "public.xml" and search the next " appName " and check your respective id...

-Copy the id from "appName" and replace to the original code in the line 195.

-Save.

-Search the line 217 and check this code "0x7f080018"

-Go to the open file "public.xml" and search the next " status " and check your respective id...

-Copy the id from "status" and replace to the original code in the line 195.

-Save.

-Search the next line 236 and check this code "0x7f0800ac"

-Go to the open file "public.xml" and search the next " app_on_sdcard " and check your respective id...

-Copy the id from "app_on_sdcard" and replace to the original code in the line 236.

-Save.

9° NOW, save and close the file "LewaManageAutostarts$AppAdapter.smali".

10° NOW, on this route, open the file "LewaManageAutostarts.smali" and search:

-Search the line 190 and check this code "0x7f0b06b2"

-In your open file "public.xml" search the next "autostarts_allow_progress_msg" and check your respective id...

-Copy the id from "autostarts_allow_progress_msg" and replace to the original code in the line 190.

-Save.

-Search the line 305 and check this code "0x7f0b06af"

-In your open file "public.xml" search the next "autostarts_allowed" and check your respective id...

-Copy the id from "autostarts_allowed" and replace to the original code in the line 305.

-Save.

-Search the line 401 and check this code "0x7f0b06b0"

-In your open file "public.xml" search the next "autostarts_prohibited" and check your respective id...

-Copy the id from "autostarts_prohibited" and replace to the original code in the line 401.

-Save.

-Search the line 584 and check this code "0x7f0b06b6"

-In your open file "public.xml" search the next "autostarts_all_btn_title" and check your respective id...

-Copy the id from "autostarts_all_btn_title" and replace to the original code in the line 584.

-Save.

-Search the line 612 and check this code "0x7f0b06b5"

-In your open file "public.xml" search the next "autostarts_optimize_btn_title" and check your respective id...

-Copy the id from "autostarts_optimize_btn_title" and replace to the original code in the line 612.

-Save.

-Search the line 632 and check this code "0x7f040087"

-In your open file "public.xml" search the next "manage_autostarts" and check your respective id...

-Copy the id from "manage_autostarts" and replace to the original code in the line 632.

-Save.

-Search the line 688 and check this code "0x7f0b06b3"

-In your open file "public.xml" search the next "autostarts_empty_msg" and check your respective id...

-Copy the id from "autostarts_empty_msg" and replace to the original code in the line 688.

-Save.

-Search the line 765 and check this code "0x7f0b06b5"

-In your open file "public.xml" search the next "autostarts_optimize_btn_title" and check your respective id...

-Copy the id from "autostarts_optimize_btn_title" and replace to the original code in the line 765.

-Save.

-Search the line 772 and check this code "0x7f0b06b3"

-In your open file "public.xml" search the next "autostarts_empty_msg" and check your respective id...

-Copy the id from "autostarts_empty_msg" and replace to the original code in the line 772.

-Save.

-Search the line 792 and check this code "0x7f0b06b6"

-In your open file "public.xml" search the next "autostarts_all_btn_title" and check your respective id...

-Copy the id from "autostarts_all_btn_title" and replace to the original code in the line 792.

-Save.

-Search the line 799 and check this code "0x7f0b06b4"

-In your open file "public.xml" search the next "autostarts_optimize_empty_msg" and check your respective id...

-Copy the id from "autostarts_optimize_empty_msg" and replace to the original code in the line 799.

-Save.

-Finally, search the line 831 and check this code "0x7f0b06b1"

-In your open file "public.xml" search the next "autostarts_allow_progress_msg" and check your respective id...

-Copy the id from "autostarts_allow_progress_msg" and replace to the original code in the line 831.

-Save.

11° NOW, save and close the file "LewaManageAutostarts.smali".

12° To finish, compile your Settings app again and Sign the apk with a tool to sign apk...

Check the screentshot from Setting ICS 2012 (Xperia U) and Settings ICS 2011 (Xperia Mini)

​

.

​

CREDITS:

​

- [MENTION=2902434]Pandemic[/MENTION] && [MENTION=4976506]Mtakween[/MENTION] for sources code and necessary files for Autostarts...

This guide is very tedious but if you are patient will not have any problem!!

​

IF you like my work, please PRESS the thanks button and rate my job!!​