Merge "Add package to intent" into sc-v2-dev

This commit is contained in:
Julia Reynolds
2021-12-08 21:53:59 +00:00
committed by Android (Google) Code Review

View File

@@ -31,6 +31,7 @@ import android.os.CancellationSignal;
import com.android.server.LocalServices; import com.android.server.LocalServices;
import com.android.server.people.PeopleServiceInternal; import com.android.server.people.PeopleServiceInternal;
import com.android.server.pm.PackageManagerService;
/** /**
* If a {@link ConversationStatus} is added to the system with an expiration time, remove that * If a {@link ConversationStatus} is added to the system with an expiration time, remove that
@@ -50,6 +51,7 @@ public class ConversationStatusExpirationBroadcastReceiver extends BroadcastRece
final PendingIntent pi = PendingIntent.getBroadcast(context, final PendingIntent pi = PendingIntent.getBroadcast(context,
REQUEST_CODE, REQUEST_CODE,
new Intent(ACTION) new Intent(ACTION)
.setPackage(PackageManagerService.PLATFORM_PACKAGE_NAME)
.setData(new Uri.Builder().scheme(SCHEME) .setData(new Uri.Builder().scheme(SCHEME)
.appendPath(getKey(userId, pkg, conversationId, status)) .appendPath(getKey(userId, pkg, conversationId, status))
.build()) .build())