diff options
| author | 2023-04-28 13:26:15 -0700 | |
|---|---|---|
| committer | 2023-05-01 20:38:29 +0000 | |
| commit | 672c759b4d5eb6014b65487bcc6438dda4d83d95 (patch) | |
| tree | 0e5a473f1349b695bce8e5ab49e155fc8d236909 /libs/input/PointerController.cpp | |
| parent | c7ac88d484b57dc9538fcb24309a37177e5378e3 (diff) | |
Fix NullPointerException in PIA when installing from Files app
* Added a null check while fetching packages by UID.
* Removed dependency on Intent.EXTRA_ORIGINATING_UID sent by DocumentsManager and DownloadsProvider since they were sent to PIA as INVALID_UID. Instead, PIA uses callingUid to determine if the install request comes from the above mentioned sources to bypass REQUEST_INSTALL_PACKAGES permission check.
* PIA iterates over all packages with a sharedUid to check if any of the packages in sharedUid have access to a target package having a content provider.
Bug: 277074364
Bug: 271500460
Test: adb push file.apk /sdcard/directory
open preinstalled files app and install the apk
Change-Id: Ie2f8d251c558b677759cf4c05ebb016c743c4439
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions