SettingsProvider之Settings.System(Secure)-------Action

本文列举了Android系统中用于启动不同设置界面的Intent Action,包括系统设置、网络配置、安全选项等,为开发者提供快速调用系统设置界面的方法。

转载请注明出处:http://blog.youkuaiyun.com/droyon/article/details/35558751

SettingsProvider包含了许多我们经常使用到的action,先列出如下;

1、进入系统设置的action
/**
     * Activity Action: Show system settings.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_SETTINGS = "android.settings.SETTINGS";
2、进入APN设置
/**
     * Activity Action: Show settings to allow configuration of APNs.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_APN_SETTINGS = "android.settings.APN_SETTINGS";
3、无线和网络相关设置。
/**
     * Activity Action: Show settings to allow configuration of wireless controls
     * such as Wi-Fi, Bluetooth and Mobile networks.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_WIRELESS_SETTINGS =
            "android.settings.WIRELESS_SETTINGS";
4、显示让你操作飞行模式的action。
/**
     * Activity Action: Show settings to allow entering/exiting airplane mode.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_AIRPLANE_MODE_SETTINGS =
            "android.settings.AIRPLANE_MODE_SETTINGS";
5、辅助功能action。
/**
     * Activity Action: Show settings for accessibility modules.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_ACCESSIBILITY_SETTINGS =
            "android.settings.ACCESSIBILITY_SETTINGS";
6、安全设置的action
/**
     * Activity Action: Show settings to allow configuration of security and
     * location privacy.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_SECURITY_SETTINGS =
            "android.settings.SECURITY_SETTINGS";
7、受信任的证书
/**
     * Activity Action: Show trusted credentials settings, opening to the user tab,
     * to allow management of installed credentials.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_TRUSTED_CREDENTIALS_USER =
            "com.android.settings.TRUSTED_CREDENTIALS_USER";
8、备份重置action
/**
     * Activity Action: Show settings to allow configuration of privacy options.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_PRIVACY_SETTINGS =
            "android.settings.PRIVACY_SETTINGS";
9、wifi设置的action
 /**
     * Activity Action: Show settings to allow configuration of Wi-Fi.

     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.

     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_WIFI_SETTINGS =
            "android.settings.WIFI_SETTINGS";
10、wifi高级设置的wifi
/**
     * Activity Action: Show settings to allow configuration of a static IP
     * address for Wi-Fi.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you safeguard
     * against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_WIFI_IP_SETTINGS =
            "android.settings.WIFI_IP_SETTINGS";
11、蓝牙设置
/**
     * Activity Action: Show settings to allow configuration of Bluetooth.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_BLUETOOTH_SETTINGS =
            "android.settings.BLUETOOTH_SETTINGS";
12、wifi投影设置
/**
     * Activity Action: Show settings to allow configuration of Wifi Displays.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_WIFI_DISPLAY_SETTINGS =
            "android.settings.WIFI_DISPLAY_SETTINGS";
13、时间和日期设置
/**
     * Activity Action: Show settings to allow configuration of date and time.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_DATE_SETTINGS =
            "android.settings.DATE_SETTINGS";
14、声音设置
/**
     * Activity Action: Show settings to allow configuration of sound and volume.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_SOUND_SETTINGS =
            "android.settings.SOUND_SETTINGS";
15、显示设置
/**
     * Activity Action: Show settings to allow configuration of display.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_DISPLAY_SETTINGS =
            "android.settings.DISPLAY_SETTINGS";
16、时区设置
/**
     * Activity Action: Show settings to allow configuration of locale.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_LOCALE_SETTINGS =
            "android.settings.LOCALE_SETTINGS";
17、输入法设置
/**
     * Activity Action: Show settings to configure input methods, in particular
     * allowing the user to enable input methods.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_INPUT_METHOD_SETTINGS =
            "android.settings.INPUT_METHOD_SETTINGS";
18、应用设置
/**
     * Activity Action: Show settings to allow configuration of application-related settings.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_APPLICATION_SETTINGS =
            "android.settings.APPLICATION_SETTINGS";
19、系统更新设置
/**
     * Activity Action: Show settings for system update functionality.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     *
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_SYSTEM_UPDATE_SETTINGS =
            "android.settings.SYSTEM_UPDATE_SETTINGS";
20、添加账户设置
/**
     * Activity Action: Show add account screen for creating a new account.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * The account types available to add may be restricted by adding an {@link #EXTRA_AUTHORITIES}
     * extra to the Intent with one or more syncable content provider's authorities.  Only account
     * types which can sync with that content provider will be offered to the user.
     * <p>
     * Account types can also be filtered by adding an {@link #EXTRA_ACCOUNT_TYPES} extra to the
     * Intent with one or more account types.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_ADD_ACCOUNT =
            "android.settings.ADD_ACCOUNT_SETTINGS";
21、关于手机设置
/**
     * Activity Action: Show general device information settings (serial
     * number, software version, phone number, etc.).
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_DEVICE_INFO_SETTINGS =
        "android.settings.DEVICE_INFO_SETTINGS";
22、NFC设置
/**
     * Activity Action: Show NFC settings.
     * <p>
     * This shows UI that allows NFC to be turned on or off.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing
     * @see android.nfc.NfcAdapter#isEnabled()
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_NFC_SETTINGS = "android.settings.NFC_SETTINGS";
23、互动屏保设置
/**
     * Activity Action: Show Daydream settings.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you
     * safeguard against this.
     * <p>
     * Input: Nothing.
     * <p>
     * Output: Nothing.
     * @see android.service.dreams.DreamService
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_DREAM_SETTINGS = "android.settings.DREAM_SETTINGS";
24、


Settings1970-01-01 00:00:11.176 881 881 W SettingsState: No settings state /data/system/users/0/settings_system.xml 1970-01-01 00:00:11.176 881 881 I SettingsState: directory info for directory/file /data/system/users/0/settings_system.xml with stacktrace 1970-01-01 00:00:11.176 881 881 I SettingsState: java.lang.Exception 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsState.logSettingsDirectoryInformation(SettingsState.java:892) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsState.readStateSyncLocked(SettingsState.java:1011) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsState.<init>(SettingsState.java:292) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.ensureSettingsStateLocked(SettingsProvider.java:2794) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.migrateLegacySettingsForUserLocked(SettingsProvider.java:3163) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.migrateAllLegacySettingsIfNeeded(SettingsProvider.java:3128) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.<init>(SettingsProvider.java:2598) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:347) 1970-01-01 00:00:11.176 881 881 I SettingsState: at android.content.ContentProvider.attachInfo(ContentProvider.java:2388) 1970-01-01 00:00:11.176 881 881 I SettingsState: at android.content.ContentProvider.attachInfo(ContentProvider.java:2358) 1970-01-01 00:00:11.176 881 881 I SettingsState: at android.app.ActivityThread.installProvider(ActivityThread.java:7245) 1970-01-01 00:00:11.176 881 881 I SettingsState: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6786) 1970-01-01 00:00:11.176 881 881 I SettingsState: at android.app.ActivityThread.installSystemProviders(ActivityThread.java:7438) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:7971) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.server.SystemServer.startOtherServices(SystemServer.java:1131) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.server.SystemServer.run(SystemServer.java:607) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.server.SystemServer.main(SystemServer.java:423) 1970-01-01 00:00:11.176 881 881 I SettingsState: at java.lang.reflect.Method.invoke(Native Method) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) 1970-01-01 00:00:11.176 881 881 I SettingsState: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925) 1970-01-01 00:00:11.177 881 881 I SettingsState: ancestor directory /data/system/users/0 exists 1970-01-01 00:00:11.177 881 881 I SettingsState: ancestor directory /data/system/users/0 permissions: r: true w: true x: true 1970-01-01 00:00:11.177 881 881 I SettingsState: ancestor's parent directory /data/system/users permissions: r: true w: true x: true 1970-01-01 00:00:11.177 881 881 D SQLiteQueryBuilder: SELECT _id, name, value FROM system with args null 1970-01-01 00:00:11.177 881 881 D SQLiteCursor: received count(*) from native_fill_window: 24 1970-01-01 00:00:11.181 881 881 W SettingsState: No settings state /data/system/users/0/settings_secure.xml 1970-01-01 00:00:11.181 881 881 I SettingsState: directory info for directory/file /data/system/users/0/settings_secure.xml with stacktrace 1970-01-01 00:00:11.181 881 881 I SettingsState: java.lang.Exception 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsState.logSettingsDirectoryInformation(SettingsState.java:892) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsState.readStateSyncLocked(SettingsState.java:1011) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsState.<init>(SettingsState.java:292) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.ensureSettingsStateLocked(SettingsProvider.java:2794) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.migrateLegacySettingsForUserLocked(SettingsProvider.java:3172) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.migrateAllLegacySettingsIfNeeded(SettingsProvider.java:3128) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider$SettingsRegistry.<init>(SettingsProvider.java:2598) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:347) 1970-01-01 00:00:11.181 881 881 I SettingsState: at android.content.ContentProvider.attachInfo(ContentProvider.java:2388) 1970-01-01 00:00:11.181 881 881 I SettingsState: at android.content.ContentProvider.attachInfo(ContentProvider.java:2358) 1970-01-01 00:00:11.181 881 881 I SettingsState: at android.app.ActivityThread.installProvider(ActivityThread.java:7245) 1970-01-01 00:00:11.181 881 881 I SettingsState: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6786) 1970-01-01 00:00:11.181 881 881 I SettingsState: at android.app.ActivityThread.installSystemProviders(ActivityThread.java:7438) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:7971) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.server.SystemServer.startOtherServices(SystemServer.java:1131) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.server.SystemServer.run(SystemServer.java:607) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.server.SystemServer.main(SystemServer.java:423) 1970-01-01 00:00:11.181 881 881 I SettingsState: at java.lang.reflect.Method.invoke(Native Method) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) 1970-01-01 00:00:11.181 881 881 I SettingsState: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925) 1970-01-01 00:00:11.182 881 881 I SettingsState: ancestor directory /data/system/users/0 exists 1970-01-01 00:00:11.182 881 881 I SettingsState: ancestor directory /data/system/users/0 permissions: r: true w: true x: true 1970-01-01 00:00:11.182 881 881 I SettingsState: ancestor's parent directory /data/system/users permissions: r: true w: true x: true 分析错误
06-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hailushijie

您的鼓励是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值