Fixed
Status Update
Comments
e....@gmail.com <e....@gmail.com> #2
Perhaps make a defensive copy of ApplicationInfo
or read the process name early in the process lifecycle as ApplicationInfo
is a mutable singleton.
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 0c92b8c8dd935872c4b425cae16f45ea0981226f
Author: Rahul Ravikumar <tikurahul@gmail.com>
Date: Thu Sep 17 10:38:46 2020
[GH] Use `ApplicationInfo` to determine the default app process name.
* Previously `context.getPackageName()` was used to determine the default app process name.
This is not always correct, because the app may have overriden the process name.
Fixes: b/168716641
Test: Ran integration tests.
This is an imported pull request fromhttps://github.com/androidx/androidx/pull/78 .
Resolves #78
Github-Pr-Head-Sha: 4ee23d5b6fdaf7aa18a95a4289f15332d0209c93
GitOrigin-RevId: 9e113c7cdb36b37d4038f021ee691762c0feb132
Change-Id: I2add7f9b051e59ffb880b2fc5ffac220cf4b858e
M work/workmanager/src/main/java/androidx/work/impl/utils/ProcessUtils.java
https://android-review.googlesource.com/1429950
Branch: androidx-master-dev
commit 0c92b8c8dd935872c4b425cae16f45ea0981226f
Author: Rahul Ravikumar <tikurahul@gmail.com>
Date: Thu Sep 17 10:38:46 2020
[GH] Use `ApplicationInfo` to determine the default app process name.
* Previously `context.getPackageName()` was used to determine the default app process name.
This is not always correct, because the app may have overriden the process name.
Fixes:
Test: Ran integration tests.
This is an imported pull request from
Resolves #78
Github-Pr-Head-Sha: 4ee23d5b6fdaf7aa18a95a4289f15332d0209c93
GitOrigin-RevId: 9e113c7cdb36b37d4038f021ee691762c0feb132
Change-Id: I2add7f9b051e59ffb880b2fc5ffac220cf4b858e
M work/workmanager/src/main/java/androidx/work/impl/utils/ProcessUtils.java
Description
Component used: WorkManager Multiprocess
Version used: 2.5.0-alpha02
Devices/Android versions reproduced on: N/A
Default process name shouldn't be
Context.getPackageName()
butContext.getApplicationInfo().processName
:Current androidx.work.impl.utils.ProcessUtils:
Suggested fix: