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

Commit cdd37b57 authored by Steve Kondik's avatar Steve Kondik
Browse files

Add missing @hide annotations for Privacy Guard

Change-Id: I6072ed2d3ac05382f9cabbada0c42cea6cbe2422
parent 2b305844
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -495,6 +495,7 @@ public class ContextWrapper extends Context {
        return mBase.getSystemService(name);
    }

    /** @hide */
    @Override
    public boolean isPrivacyGuardEnabled() {
        return mBase.isPrivacyGuardEnabled();
+1 −1
Original line number Diff line number Diff line
@@ -1856,7 +1856,7 @@
        android:description="@string/permdesc_movePackage"
        android:protectionLevel="signature|system" />

    <!-- Allows an application to change privacy guard state -->
    <!-- @hide Allows an application to change privacy guard state -->
    <permission android:name="android.permission.CHANGE_PRIVACY_GUARD_STATE"
        android:label="@string/permlab_changePrivacyGuardState"
        android:description="@string/permdesc_changePrivacyGuardState"
+1 −0
Original line number Diff line number Diff line
@@ -431,6 +431,7 @@ public class MockContext extends Context {
        throw new UnsupportedOperationException();
    }

    /** @hide */
    @Override
    public boolean isPrivacyGuardEnabled() {
        throw new UnsupportedOperationException();
+2 −0
Original line number Diff line number Diff line
@@ -492,11 +492,13 @@ public class MockPackageManager extends PackageManager {
        throw new UnsupportedOperationException();
    }

    /** @hide */
    @Override
    public void setPrivacyGuardSetting(String packageName, boolean enabled) {
        throw new UnsupportedOperationException();
    }

    /** @hide */
    @Override
    public boolean getPrivacyGuardSetting(String packageName) {
        throw new UnsupportedOperationException();