Skip to content

Commit

Permalink
add check to silence false positive lint warning
Browse files Browse the repository at this point in the history
The BootReceiver class is explicitly not exported.
  • Loading branch information
thestinger committed Oct 27, 2024
1 parent b54280c commit 0ed0ff8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/app/attestation/auditor/BootReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
public class BootReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent intent) {
if (!Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
throw new IllegalStateException("invalid action");
}
RemoteVerifyJob.restore(context);
}
}

0 comments on commit 0ed0ff8

Please sign in to comment.