Skip to content
Commit 91f90e0f authored by Danning Chen's avatar Danning Chen
Browse files

Add getShareTargets() to ShortcutServiceInternal and get caller's user ID from...

Add getShareTargets() to ShortcutServiceInternal and get caller's user ID from AppPredictionSessionId

Previously, the caller's user ID was got from Binder. But
AppPredictionManager clears caller's identity. The only way to get the
caller's user ID is to get it from session ID.

Bug: 146522621
Test: atest com.android.server.people.data.DataManagerTest
Test: atest com.android.server.people.data.ShareTargetPredictorTest
Change-Id: Ia0dc35879084110849e06e919ff3b3c7241c46fd
parent 1cc71978
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment