Replace the non-functional 7-tap build number with a SwitchPreferenceCompat in a new Developer category. Reads and writes Settings.Global.DEVELOPMENT_SETTINGS_ENABLED directly; requires WRITE_SECURE_SETTINGS (granted via platform certificate). Toggle state re-syncs in onResume so it stays accurate if changed elsewhere.
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="me.pawlet.settings">
|
|
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
|
|
<application
|
|
android:allowBackup="false"
|
|
android:label="@string/app_name"
|
|
android:icon="@drawable/ic_pawlet_settings"
|
|
android:theme="@style/Theme.AppCompat.DayNight"
|
|
android:supportsRtl="true">
|
|
|
|
<activity
|
|
android:name=".PawletSettingsActivity"
|
|
android:label="@string/app_name"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.EXTRA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.device" />
|
|
<meta-data android:name="com.android.settings.icon"
|
|
android:resource="@drawable/ic_pawlet_settings" />
|
|
<meta-data android:name="com.android.settings.summary"
|
|
android:resource="@string/app_summary" />
|
|
</activity>
|
|
|
|
</application>
|
|
|
|
</manifest>
|