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

Commit 59093d92 authored by Andres Morales's avatar Andres Morales Committed by Android (Google) Code Review
Browse files

Merge "Define permission for system apps to query size of block" into lmp-mr1-dev

parents 84be180e 6b0c7acd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1130,6 +1130,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 {