commit | b324a7418a4d2a64133f144e5f9fa4f74fdc5306 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Sun Nov 07 21:28:45 2021 +0800 |
committer | Yi Kong <yikong@google.com> | Mon Nov 08 06:16:22 2021 +0000 |
tree | fb02aa121dd7c90377355e2555c3df9e0115d871 | |
parent | 0849b35051246bff712572eaef71ac34dae2d9c8 [diff] |
Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD The new name better aligns with the component and permission names. Follow up review comments on https://r.android.com/1784487 Bug: 183487233 Test: presubmit Change-Id: Ibe3a3e51b0dc154ee3e43b27e561fd541b62cc54
diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 6c4fa96..76b0b38 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml
@@ -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>
diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index af65a2a..4fb801e 100644 --- a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +++ b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java
@@ -315,7 +315,7 @@ // 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) {