Loading core/java/android/content/Intent.java +1 −1 Original line number Diff line number Diff line Loading @@ -1840,7 +1840,7 @@ public class Intent implements Parcelable, Cloneable { * @hide */ public static final String ACTION_REMOTE_INTENT = "android.intent.action.REMOTE_INTENT"; "com.google.android.pushmessaging.intent.RECEIVE"; /** * Broadcast Action: hook for permforming cleanup after a system update. Loading core/res/AndroidManifest.xml +8 −1 Original line number Diff line number Diff line Loading @@ -1227,6 +1227,13 @@ android:description="@string/permlab_copyProtectedData" android:protectionLevel="signature" /> <!-- Push messaging permission. @hide Used internally. --> <permission android:name="android.intent.category.MASTER_CLEAR.permission.PUSH_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="android.intent.category.MASTER_CLEAR.permission.PUSH_MESSAGE"/> <application android:process="system" android:persistent="true" android:hasCode="false" Loading Loading @@ -1309,7 +1316,7 @@ <action android:name="android.intent.action.MASTER_CLEAR" /> <!-- MCS always uses REMOTE_INTENT: category=MASTER_CLEAR --> <action android:name="android.intent.action.REMOTE_INTENT" /> <action android:name="com.google.android.pushmessaging.intent.RECEIVE" /> <category android:name="android.intent.category.MASTER_CLEAR" /> </intent-filter> </receiver> Loading services/java/com/android/server/MasterClearReceiver.java +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ public class MasterClearReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_REMOTE_INTENT)) { if (!intent.getBooleanExtra("android.intent.extra.from_trusted_server", false)) { if (!"google.com".equals(intent.getStringExtra("from"))) { Log.w(TAG, "Ignoring master clear request -- not from trusted server."); return; } Loading Loading
core/java/android/content/Intent.java +1 −1 Original line number Diff line number Diff line Loading @@ -1840,7 +1840,7 @@ public class Intent implements Parcelable, Cloneable { * @hide */ public static final String ACTION_REMOTE_INTENT = "android.intent.action.REMOTE_INTENT"; "com.google.android.pushmessaging.intent.RECEIVE"; /** * Broadcast Action: hook for permforming cleanup after a system update. Loading
core/res/AndroidManifest.xml +8 −1 Original line number Diff line number Diff line Loading @@ -1227,6 +1227,13 @@ android:description="@string/permlab_copyProtectedData" android:protectionLevel="signature" /> <!-- Push messaging permission. @hide Used internally. --> <permission android:name="android.intent.category.MASTER_CLEAR.permission.PUSH_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="android.intent.category.MASTER_CLEAR.permission.PUSH_MESSAGE"/> <application android:process="system" android:persistent="true" android:hasCode="false" Loading Loading @@ -1309,7 +1316,7 @@ <action android:name="android.intent.action.MASTER_CLEAR" /> <!-- MCS always uses REMOTE_INTENT: category=MASTER_CLEAR --> <action android:name="android.intent.action.REMOTE_INTENT" /> <action android:name="com.google.android.pushmessaging.intent.RECEIVE" /> <category android:name="android.intent.category.MASTER_CLEAR" /> </intent-filter> </receiver> Loading
services/java/com/android/server/MasterClearReceiver.java +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ public class MasterClearReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_REMOTE_INTENT)) { if (!intent.getBooleanExtra("android.intent.extra.from_trusted_server", false)) { if (!"google.com".equals(intent.getStringExtra("from"))) { Log.w(TAG, "Ignoring master clear request -- not from trusted server."); return; } Loading