Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f487e44 authored by Roman Birg's avatar Roman Birg Committed by Gerrit Code Review
Browse files

framework: add KillSwitch stubs



Change-Id: Ie6cec065df0f821d9a5b8ab7bb3032fe7655389f
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 40d63410
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 \
+9 −0
Original line number Diff line number Diff line
@@ -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.
+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();
}
+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();
}
+5 −0
Original line number Diff line number Diff line
@@ -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