Merge "Add RECEIVER_EXPORTED flags to screenshots"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ed5207f4b5
@@ -178,7 +178,7 @@ public class ScreenshotHelper {
|
||||
public ScreenshotHelper(Context context) {
|
||||
mContext = context;
|
||||
IntentFilter filter = new IntentFilter(ACTION_USER_SWITCHED);
|
||||
mContext.registerReceiver(mBroadcastReceiver, filter);
|
||||
mContext.registerReceiver(mBroadcastReceiver, filter, Context.RECEIVER_EXPORTED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,7 +113,8 @@ public class TakeScreenshotService extends Service {
|
||||
|
||||
@Override
|
||||
public IBinder onBind(@NonNull Intent intent) {
|
||||
registerReceiver(mCloseSystemDialogs, new IntentFilter(ACTION_CLOSE_SYSTEM_DIALOGS));
|
||||
registerReceiver(mCloseSystemDialogs, new IntentFilter(ACTION_CLOSE_SYSTEM_DIALOGS),
|
||||
Context.RECEIVER_EXPORTED);
|
||||
final Messenger m = new Messenger(mHandler);
|
||||
if (DEBUG_SERVICE) {
|
||||
Log.d(TAG, "onBind: returning connection: " + m);
|
||||
|
||||
Reference in New Issue
Block a user