Fixed
Status Update
Comments
ad...@google.com <ad...@google.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.
ki...@google.com <ki...@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
al...@google.com <al...@google.com> #4
Yep, it has to stay in the old package.
> Jetifier is changing the import in the library to "androidx.core.os.ResultReceiver"
Config issue.
> Jetifier is changing the import in the library to "androidx.core.os.ResultReceiver"
Config issue.
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 2bf39653103b1ce6b3b6fc64b44faaa9fcad1c19
Author: Filip Pavlis <pavlis@google.com>
Date: Tue Feb 12 19:41:53 2019
Revert changes in default.config and remove task.
It turned out that we have released (as part of beta03) mappings that
were not supposed to be used externally. This is because we were actively
maintaining "dejetifyArchive" task without realizing that next jetifier
update will contain such changes. As we are done with 28.0.0 I think it
is a good time to sunset the "dejetifyArchive" target. I also reverted
all the config changes that are not supposed to go outside. Please note
that there is still "partiallyDejetifyArchive" for migration purpouses
and is still part of continuous build.
Also added ignore rule for ResultReceiver.
Bug: b/123651524
Bug: b/124291947
Test: N/A
Change-Id: I59983d25ae7e0939f2e9e54005460ad0f73beb3c
M buildSrc/jetify.gradle
M buildSrc/src/main/kotlin/androidx/build/AndroidXPlugin.kt
M buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
M jetifier/jetifier/core/src/main/resources/default.config
M jetifier/jetifier/core/src/main/resources/default.generated.config
https://android-review.googlesource.com/902433
https://goto.google.com/android-sha1/2bf39653103b1ce6b3b6fc64b44faaa9fcad1c19
Branch: androidx-master-dev
commit 2bf39653103b1ce6b3b6fc64b44faaa9fcad1c19
Author: Filip Pavlis <pavlis@google.com>
Date: Tue Feb 12 19:41:53 2019
Revert changes in default.config and remove task.
It turned out that we have released (as part of beta03) mappings that
were not supposed to be used externally. This is because we were actively
maintaining "dejetifyArchive" task without realizing that next jetifier
update will contain such changes. As we are done with 28.0.0 I think it
is a good time to sunset the "dejetifyArchive" target. I also reverted
all the config changes that are not supposed to go outside. Please note
that there is still "partiallyDejetifyArchive" for migration purpouses
and is still part of continuous build.
Also added ignore rule for ResultReceiver.
Bug:
Bug:
Test: N/A
Change-Id: I59983d25ae7e0939f2e9e54005460ad0f73beb3c
M buildSrc/jetify.gradle
M buildSrc/src/main/kotlin/androidx/build/AndroidXPlugin.kt
M buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
M jetifier/jetifier/core/src/main/resources/default.config
M jetifier/jetifier/core/src/main/resources/default.generated.config
hu...@google.com <hu...@google.com> #6
FYI, in AGP 3.4.0-rc03 and 3.5.0-alpha09, the AGP has been updated to use Jetifier 1.0.0-beta04, which should have the fix for the above issue: https://android.googlesource.com/platform/tools/base/+/f7fdfbb94aebb43b7e9515c683fd71b8c905ee79 .
Description
Exception:
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.os.ResultReceiver"
ResultReceiver in AndroidX Core, it is still in package android/support/v4/os:
Sample project:
Android Studio:
Android Studio 3.3
Build #AI-182.5107.16.33.5199772, built on December 25, 2018
JRE: 1.8.0_152-release-1248-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6