diff options
| author | 2022-09-28 11:05:44 +0800 | |
|---|---|---|
| committer | 2022-09-28 12:03:31 +0800 | |
| commit | 3548564e37bd0f4c9106c26c04603c29c7466bcf (patch) | |
| tree | 0039d51fbdce3ccbf00ee97963ea2a596ee135db /libs/androidfw/StringPool.cpp | |
| parent | 826721d11b5f5e7c6aaa797752321dfba25e7b0d (diff) | |
Respect package source from adb install
The package source is set to PACKAGE_SOURCE_OTHER in PackageManager-
ShellCommand by default. However, the source would be overrided to
PACKAGE_SOURCE_UNSPECIFIED if installerPackageName is null in the
InstallSource#createInternal. We should respect the package source
if it's set.
Bug: 240114543
Test: atest CtsPackageInstallTestCases:InstallSourceInfoTest
Test: manually install an app via adb install, and check the source
Change-Id: Ide5851d17d82bb3f20693b62348e303226f97a48
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions