Merge "Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD"

This commit is contained in:
Yi Kong
2021-11-08 11:11:07 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -646,7 +646,7 @@
android:exported="true"
android:permission="android.permission.TRIGGER_SHELL_PROFCOLLECT_UPLOAD" >
<intent-filter>
<action android:name="com.android.shell.action.UPLOAD_REPORT" />
<action android:name="com.android.shell.action.PROFCOLLECT_UPLOAD" />
</intent-filter>
</receiver>

View File

@@ -315,7 +315,7 @@ public final class ProfcollectForwardingService extends SystemService {
// Upload the report
Intent intent = new Intent()
.setPackage("com.android.shell")
.setAction("com.android.shell.action.UPLOAD_REPORT")
.setAction("com.android.shell.action.PROFCOLLECT_UPLOAD")
.putExtra("filename", reportName);
context.sendBroadcast(intent);
} catch (RemoteException e) {