Loading Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ LOCAL_SRC_FILES += \ core/java/com/android/internal/os/IDropBoxManagerService.aidl \ core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \ core/java/com/android/internal/os/IResultReceiver.aidl \ core/java/com/android/internal/os/IKillSwitchService.aidl \ core/java/com/android/internal/statusbar/IStatusBar.aidl \ core/java/com/android/internal/statusbar/IStatusBarService.aidl \ core/java/com/android/internal/textservice/ISpellCheckerService.aidl \ Loading core/java/android/content/Context.java +9 −0 Original line number Diff line number Diff line Loading @@ -2961,6 +2961,15 @@ public abstract class Context { */ public static final String CMHW_SERVICE = "cmhw"; /** * {@link com.android.server.KillSwitchService}for accessing the kill switch service. * * @see #getSystemService * @see com.android.server.KillSwitchService * @hide */ public static final String KILLSWITCH_SERVICE = "killswitch"; /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. Loading core/java/com/android/internal/os/IKillSwitch.java 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.os; /** * @hide */ public interface IKillSwitch { public void setDeviceUuid(String uuid); public String getDeviceUuid(); public boolean isDeviceLocked(); public void setDeviceLocked(boolean locked); public void setAccountId(String value); public String getAccountId(); } core/java/com/android/internal/os/IKillSwitchService.aidl 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.os; /** * @hide */ interface IKillSwitchService { boolean hasKillSwitch(); void setDeviceUuid(String uuid); String getDeviceUuid(); boolean isDeviceLocked(); void setDeviceLocked(boolean locked); void setAccountId(String value); String getAccountId(); } core/res/res/values/cm_symbols.xml +5 −0 Original line number Diff line number Diff line Loading @@ -324,4 +324,9 @@ <java-symbol type="bool" name="config_advancedSettingsMode" /> <java-symbol type="string" name="lock_to_app_toast_no_navbar" /> <!-- KillSwitch --> <java-symbol type="array" name="config_packagesAllowedAccessToKillSwitch" /> <java-symbol type="string" name="config_killSwitchLib" /> <java-symbol type="string" name="config_killSwitchClass" /> </resources> Loading
Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ LOCAL_SRC_FILES += \ core/java/com/android/internal/os/IDropBoxManagerService.aidl \ core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \ core/java/com/android/internal/os/IResultReceiver.aidl \ core/java/com/android/internal/os/IKillSwitchService.aidl \ core/java/com/android/internal/statusbar/IStatusBar.aidl \ core/java/com/android/internal/statusbar/IStatusBarService.aidl \ core/java/com/android/internal/textservice/ISpellCheckerService.aidl \ Loading
core/java/android/content/Context.java +9 −0 Original line number Diff line number Diff line Loading @@ -2961,6 +2961,15 @@ public abstract class Context { */ public static final String CMHW_SERVICE = "cmhw"; /** * {@link com.android.server.KillSwitchService}for accessing the kill switch service. * * @see #getSystemService * @see com.android.server.KillSwitchService * @hide */ public static final String KILLSWITCH_SERVICE = "killswitch"; /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. Loading
core/java/com/android/internal/os/IKillSwitch.java 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.os; /** * @hide */ public interface IKillSwitch { public void setDeviceUuid(String uuid); public String getDeviceUuid(); public boolean isDeviceLocked(); public void setDeviceLocked(boolean locked); public void setAccountId(String value); public String getAccountId(); }
core/java/com/android/internal/os/IKillSwitchService.aidl 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.os; /** * @hide */ interface IKillSwitchService { boolean hasKillSwitch(); void setDeviceUuid(String uuid); String getDeviceUuid(); boolean isDeviceLocked(); void setDeviceLocked(boolean locked); void setAccountId(String value); String getAccountId(); }
core/res/res/values/cm_symbols.xml +5 −0 Original line number Diff line number Diff line Loading @@ -324,4 +324,9 @@ <java-symbol type="bool" name="config_advancedSettingsMode" /> <java-symbol type="string" name="lock_to_app_toast_no_navbar" /> <!-- KillSwitch --> <java-symbol type="array" name="config_packagesAllowedAccessToKillSwitch" /> <java-symbol type="string" name="config_killSwitchLib" /> <java-symbol type="string" name="config_killSwitchClass" /> </resources>