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

Commit 8f70a255 authored by Andres Morales's avatar Andres Morales Committed by Android Git Automerger
Browse files

am ffc71028: am 83f4847f: am 59093d92: Merge "Define permission for system...

am ffc71028: am 83f4847f: am 59093d92: Merge "Define permission for system apps to query size of block" into lmp-mr1-dev

* commit 'ffc71028':
  Define permission for system apps to query size of block
parents 2b5edf65 ffc71028
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1146,6 +1146,12 @@
                android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
                android:protectionLevel="signature" />

    <!-- @hide Allows querying state of PersistentDataBlock
   <p>Not for use by third-party applications. -->
    <permission android:name="android.permission.ACCESS_PDB_STATE"
                android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
                android:protectionLevel="signature" />


    <!-- =========================================== -->
    <!-- Permissions associated with audio capture -->
+4 −1
Original line number Diff line number Diff line
@@ -433,7 +433,10 @@ public class PersistentDataBlockService extends SystemService {

        @Override
        public int getDataBlockSize() {
            if (mContext.checkCallingPermission(Manifest.permission.ACCESS_PDB_STATE)
                    != PackageManager.PERMISSION_GRANTED) {
                enforceUid(Binder.getCallingUid());
            }

            DataInputStream inputStream;
            try {