aboutsummaryrefslogtreecommitdiffstats
path: root/system-api
diff options
context:
space:
mode:
authorMatt Garnes <matt@cyngn.com>2015-07-14 16:29:56 -0700
committerMatt Garnes <matt@cyngn.com>2015-08-06 11:35:00 -0700
commit0cdb1d513c70a794db0e29696ef620c573aa96ea (patch)
tree3d429fc60c4f88be649164c4367850923fa25eec /system-api
parent5b61a21f7f724de000980d3dfe36f0ec3b6485a1 (diff)
downloadvendor_cmsdk-0cdb1d513c70a794db0e29696ef620c573aa96ea.zip
vendor_cmsdk-0cdb1d513c70a794db0e29696ef620c573aa96ea.tar.gz
vendor_cmsdk-0cdb1d513c70a794db0e29696ef620c573aa96ea.tar.bz2
Add SettingsManager.
Add new APIs for changing a subset of system settings. Protected by cyanogenmod.permission.MODIFY_NETWORK_SETTINGS: - Add ability to toggle airplane mode on/off. - Add ability to toggle mobile data on/off. Protected by android.permission.REBOOT: - Add ability to shutdown or reboot the device. Change-Id: I5e943be11260c58afa664f1702c0ecb4413528fe
Diffstat (limited to 'system-api')
-rw-r--r--system-api/cm_system-current.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/system-api/cm_system-current.txt b/system-api/cm_system-current.txt
index 10011f2..179dd37 100644
--- a/system-api/cm_system-current.txt
+++ b/system-api/cm_system-current.txt
@@ -236,6 +236,14 @@ package cyanogenmod.app {
field public static final int PROFILES_STATE_ENABLED = 1; // 0x1
}
+ public class SettingsManager {
+ method public static cyanogenmod.app.SettingsManager getInstance(android.content.Context);
+ method public void rebootDevice();
+ method public void setAirplaneModeEnabled(boolean);
+ method public void setMobileDataEnabled(boolean);
+ method public void shutdownDevice();
+ }
+
public class StatusBarPanelCustomTile implements android.os.Parcelable {
ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle);
ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle, long);
@@ -285,6 +293,7 @@ package cyanogenmod.platform {
public static final class Manifest.permission {
ctor public Manifest.permission();
+ field public static final java.lang.String MODIFY_SETTINGS = "cyanogenmod.permission.MODIFY_SETTINGS";
field public static final java.lang.String PUBLISH_CUSTOM_TILE = "cyanogenmod.permission.PUBLISH_CUSTOM_TILE";
}