[Android Software Development] DoR3M3:
So are you saying, leave everything now Default in the Settings.apk and the only thing I should try and change is the device_info_settings.xml?

Here are two "PreferenceScreen" sections, if I remove the section in bold I still get this error message without touching the strings.xml;

res/xml/device_info_settings.xml:8: error: Error parsing XML: junk after document element.

<PreferenceScreen android:title="@string/about_settings"

xmlns:android="http://schemas.android.com/apk/res/android">

<com.oneplus.settings.ui.OPPreferenceHeaderMargin android:key="preference_divider_line" />

<PreferenceScreen android:title="@string/oneplus_mobile_device_name_title" android:key="mobile_device_name" android:fragment="com.oneplus.settings.OPDeviceName" />

<PreferenceScreen android:title="@string/oneplus_device_electronic_card" android:key="op_electronic_card" />

<PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">

<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />

</PreferenceScreen>

<PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">

<intent android:targetPackage="@string/additional_system_update" android:action="android.intent.action.MAIN" android:targetClass="@string/additional_system_update_menu" />

</PreferenceScreen>

So then I remove all this;

<PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">

<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />

</PreferenceScreen>

<PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">

<intent android:targetPackage="@string/additional_system_update" android:action="android.intent.action.MAIN" android:targetClass="@string/additional_system_update_menu" />

</PreferenceScreen>

And now I have only one "PreferenceScreen" section and this works and it compiles, then I replace this new Settings.apk and the words "System Updates" is there, so this didn't remove that section.

<PreferenceScreen android:title="@string/about_settings"

xmlns:android="http://schemas.android.com/apk/res/android">

<com.oneplus.settings.ui.OPPreferenceHeaderMargin android:key="preference_divider_line" />

<PreferenceScreen android:title="@string/oneplus_mobile_device_name_title" android:key="mobile_device_name" android:fragment="com.oneplus.settings.OPDeviceName" />

<PreferenceScreen android:title="@string/oneplus_device_electronic_card" android:key="op_electronic_card" />

<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">

<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.Settings$StatusActivity" />

</PreferenceScreen>

OH I just don't get what OnePlus did to this code.... :(

This line in the device_info_settings.xml seriously makes sense as the line of code controlling all of this;

android:title="@string/system_update_settings_list_item_title"

To me I thought this is saying, here is the Title, this string, that appears in the Settings, but then removing it does nothing and I just don't understand how removing this does nothing.

ahhhhhh I want to bang my head! LOL :eek:

android:title= seems to be the key here?

https://developer.android.com/guide/topics/ui/settings/

According to as you mentioned that Android link even mentions /res/xml and the PreferenceScreen section, but is that only removing the words or the section? hmm

These are all the strings related android:title and the word update

res/xml/development_prefs.xml: <SwitchPreference android:title="@string/ota_disable_automatic_update" android:key="ota_disable_automatic_update" />

res/xml/development_prefs.xml: <SwitchPreference android:title="@string/show_screen_updates" android:key="show_screen_updates" android:summary="@string/show_screen_updates_summary" />

res/xml/development_prefs.xml: <SwitchPreference android:title="@string/show_hw_screen_updates" android:key="show_hw_screen_udpates" android:summary="@string/show_hw_screen_updates_summary" />

res/xml/development_prefs.xml: <SwitchPreference android:title="@string/show_hw_layers_updates" android:key="show_hw_layers_udpates" android:summary="@string/show_hw_layers_updates_summary" />

res/xml/device_info_settings.xml: <PreferenceScreen android:title="@string/system_update_settings_list_item_title" android:key="system_update_settings" android:summary="@string/system_update_settings_list_item_summary">

res/xml/device_info_settings.xml: <PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">

res/xml/storage_dashboard_fragment.xml: <com.android.settings.deviceinfo.StorageItemPreference android:icon="@drawable/ic_system_update_vd_theme_24" android:title="@string/storage_detail_system" android:key="pref_system" android order="100" />

Sheesh isn't all this I just posted in the Ball Park area? hehe ;)

P.S. I found this info online;

https://stackoverflow.com/questions/2240326/remove-hide-a-preference-from-the-screen

https://developer.android.google.cn...t/v7/preference/Preference#setVisible(boolean)

And I'm reading this; In the XML file you can make a hidden preference by leaving the title and summary tags empty, or set the visibility, by using setVisible function on it. I'm not sure how to do the SetVisible...

Bloody, errr, well I've left the title and summary tags empty and not working... :(

<PreferenceScreen android:title="" android:key="system_update_settings" android:summary="">

<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />

P.S. I'm still lost and nothing is working, and the only thing I can think of now is if a "PreferenceCategory" is what's standing in the way, that I need to remove, but can't find... :(