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

Commit 15984195 authored by Charles He's avatar Charles He Committed by gitbuildkicker
Browse files

Add @GuardedBy annotation to PersistentDataBlockService#mIsWritable.

Change-Id: I1024f2a56badde5c123d025d6fe02f42559cbcb1
Test: manual
Bug: 30352311
(cherry picked from commit f6f1d627)
(cherry picked from commit 71d2a41d)
parent 215a820b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.service.persistentdata.PersistentDataBlockManager;
import android.util.Slog;

import com.android.internal.R;
import com.android.internal.annotations.GuardedBy;

import libcore.io.IoUtils;

@@ -83,6 +84,8 @@ public class PersistentDataBlockService extends SystemService {

    private int mAllowedUid = -1;
    private long mBlockDeviceSize;

    @GuardedBy("mLock")
    private boolean mIsWritable = true;

    public PersistentDataBlockService(Context context) {