• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

ROMs enable security settings custom rom

rcb8dboy

Lurker
hello

I have created for 5 devices custom roms for myself to learn.
Now i have the iocean x8 and ran into a problem with the security setting.
Superuser is standard installed but not enabled.
The security xml is empty and no settings to find in the bools?
Settings_header.xml
HTML:
<header android:icon="@drawable/ic_settings_security" android:id="@id/security_settings" android:title="@string/security_settings_title" android:fragment="com.android.settings.SecuritySettings" />

So i look at the security_settings and thats what i find there.
The xml is empty.

HTML:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/security_settings_title"
  xmlns:android="http://schemas.android.com/apk/res/android" />

I search all the settings xml and find what i looking for in security_settings_misc.

HTML:
 </com.android.settings.FunuiPreferenceCategory>
    <com.android.settings.FunuiPreferenceCategory android:persistent="false" android:title="@string/device_admin_title" android:key="device_admin_category">
        <Preference android:persistent="false" android:layout="@layout/funui_preference_top_vertical" android:title="@string/manage_device_admin" android:summary="@string/manage_device_admin_summary" android:fragment="com.android.settings.DeviceAdminSettings" />
        <com.android.settings.advanced.PersonalSwitchPreference android:layout="@layout/funui_switch_preference_normal" android:title="@string/personal_settings_superuser_title" android:key="personal_settings_superuser" android:summary="@string/personal_settings_superuser_summary" android:fragment="com.koushikdutta.superuser.PolicyNativeFragment" />
        <com.android.settings.FunuiCheckBoxPreference android:persistent="false" android:title="@string/install_applications" android:key="toggle_install_applications" android:summaryOn="@string/install_unknown_applications" android:summaryOff="@string/install_unknown_applications" />
        <com.android.settings.FunuiCheckBoxPreference android:persistent="false" android:title="@string/verify_applications" android:key="toggle_verify_applications" android:summaryOn="@string/verify_applications_summary" android:summaryOff="@string/verify_applications_summary" />
        <Preference android:persistent="false" android:title="@string/manage_notification_access" android:key="manage_notification_access" android:fragment="com.android.settings.NotificationAccessSettings" />
    </com.android.settings.FunuiPreferenceCategory>

But in the bools of the settings apk there is no option to enable anything.
To be sure is search the string to enable non market apps and i find the bool not in settings.apk but in settingsprovider.apk.
So the menu is listing in setting and the bool is in settingsprovider?
But again no option to enable superuser by default.

Second question.
To enter the recovery of the x8 the usb cable must be connected to the pc or wall plug.
I want to disable this so i can enter te recovery every moment.
I have upacked my boot.img an ensucered the boot by setten te ro.secure at 0 but in did'n find a way to disable that the usb cabel must be plugged in.

can someone help me out with these 2 problems ,if needed i can set de decompiled apk's and bootimg online .

grts b,
 
Back
Top Bottom