From b324a7418a4d2a64133f144e5f9fa4f74fdc5306 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Sun, 7 Nov 2021 21:28:45 +0800 Subject: [PATCH] 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 --- packages/Shell/AndroidManifest.xml | 2 +- .../server/profcollect/ProfcollectForwardingService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 6c4fa9684b1be..76b0b385dbdaa 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" > - + diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index af65a2ad6a7da..4fb801e188d08 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 @@ 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) {