Autostarts?
Hello, I am trying to put "autostarts" in my settings for my Galaxy Tab S (Lollipop stock rooted and deodexed).
Actually I followed the guide from https://forum.xda-developers.com/showthread.php?t=2626333 in post #9. As it was not working, I tried several times. I also tried different guides and different smalis, but I always get FC when I click on autostart in settings.
So, I tried Catlog, and I see that what ever I do, I always get "E java.lang.IllegalArgumentException: Invalid fragment for this activity: com.android.settings.autostarts.LewaManageAutostarts" among other errors.
Although I don't really understand it well, I suppose this comes from the line I added in my "applications_headers_2014.xml". (If I put it in "dashboard_categories", the option does not appear.)
The line added is;
<header android:icon="@drawable/ic_settings_autostarts"
android:id="@id/autostarts_settings" android:title="@string/autostarts_title"
android:fragment="com.android.settings.autostarts.LewaManageAutostarts " />
(There is no space before LewaManageAutostarts.)
By the way, I did this mod for my Galaxy Note 2 and 3 (both Kitkat), and it works very well. I don't really understand why it is not working for my Galaxy Tab S.
Is there something I can try?
PS:
I have been testing, and I discovered a few things.
1) When I put the following line at the end of "display_settings.xml", the option appears, and IT WORKS!! So, all the id's etc are correct!!
<PreferenceScreen android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:key="Autostarts" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Obviously, the option appears at the end of display settings, but I want Autostarts to appear in "Applications. So, I deleted this line, and I put the following line in "applications_headers_2014.xml".
<header android:icon="@drawable/ic_settings_autostarts android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:key="Autostarts" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Then, when I click on Autostarts, I get a FC.
2) So, I tested the follwoing lines. (without really understanding, but just by analogy to the other lines.)
<header android:icon="@drawable/ic_settings_autostarts android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
<header android:icon="@drawable/ic_settings_autostarts android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Neither worked.
Is there a way to put this option in applications?
I would really appreciate any help in this direction.
Hello, I am trying to put "autostarts" in my settings for my Galaxy Tab S (Lollipop stock rooted and deodexed).
Actually I followed the guide from https://forum.xda-developers.com/showthread.php?t=2626333 in post #9. As it was not working, I tried several times. I also tried different guides and different smalis, but I always get FC when I click on autostart in settings.
So, I tried Catlog, and I see that what ever I do, I always get "E java.lang.IllegalArgumentException: Invalid fragment for this activity: com.android.settings.autostarts.LewaManageAutostarts" among other errors.
Although I don't really understand it well, I suppose this comes from the line I added in my "applications_headers_2014.xml". (If I put it in "dashboard_categories", the option does not appear.)
The line added is;
<header android:icon="@drawable/ic_settings_autostarts"
android:id="@id/autostarts_settings" android:title="@string/autostarts_title"
android:fragment="com.android.settings.autostarts.LewaManageAutostarts " />
(There is no space before LewaManageAutostarts.)
By the way, I did this mod for my Galaxy Note 2 and 3 (both Kitkat), and it works very well. I don't really understand why it is not working for my Galaxy Tab S.
Is there something I can try?
PS:
I have been testing, and I discovered a few things.
1) When I put the following line at the end of "display_settings.xml", the option appears, and IT WORKS!! So, all the id's etc are correct!!
<PreferenceScreen android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:key="Autostarts" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Obviously, the option appears at the end of display settings, but I want Autostarts to appear in "Applications. So, I deleted this line, and I put the following line in "applications_headers_2014.xml".
<header android:icon="@drawable/ic_settings_autostarts android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:key="Autostarts" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Then, when I click on Autostarts, I get a FC.
2) So, I tested the follwoing lines. (without really understanding, but just by analogy to the other lines.)
<header android:icon="@drawable/ic_settings_autostarts android:id="@id/autostarts_settings" android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
<header android:icon="@drawable/ic_settings_autostarts android:title="@string/autostarts_title" android:fragment="com.android.settings.autostarts.LewaManageAutostarts" />
Neither worked.
Is there a way to put this option in applications?
I would really appreciate any help in this direction.
Last edited: