Status Update
Comments
ap...@google.com <ap...@google.com> #2
We're seeing a similar error in our code. Appears to be a combination of AGP 8.6.0 and Kotlin 2 needed to hit it.
private fun Intent.stripUnwantedFlags() {
// Explicitly remove the new task and clear task flags (Our browser activity is a single
// task activity and we never want to start a second task here).
flags = flags and Intent.FLAG_ACTIVITY_NEW_TASK.inv()
flags = flags and Intent.FLAG_ACTIVITY_CLEAR_TASK.inv()
// IntentReceiverActivity is started with the "excludeFromRecents" flag (set in manifest). We
// do not want to propagate this flag from the intent receiver activity to the browser.
flags = flags and Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS.inv()
}
All 3 lines then hit:
Must be one or more of: Intent.FLAG_GRANT_READ_URI_PERMISSION, Intent.FLAG_GRANT_WRITE_URI_PERMISSION, Intent.FLAG_FROM_BACKGROUND, Intent.FLAG_DEBUG_LOG_RESOLUTION, Intent.FLAG_EXCLUDE_STOPPED_PACKAGES, Intent.FLAG_INCLUDE_STOPPED_PACKAGES, Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION, Intent.FLAG_GRANT_PREFIX_URI_PERMISSION, Intent.FLAG_ACTIVITY_MATCH_EXTERNAL, Intent.FLAG_ACTIVITY_NO_HISTORY, Intent.FLAG_ACTIVITY_SINGLE_TOP, Intent.FLAG_ACTIVITY_NEW_TASK, Intent.FLAG_ACTIVITY_MULTIPLE_TASK, Intent.FLAG_ACTIVITY_CLEAR_TOP, Intent.FLAG_ACTIVITY_FORWARD_RESULT, Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP, Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS, Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT, Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED, Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NEW_DOCUMENT, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NO_USER_ACTION, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, Intent.FLAG_ACTIVITY_NO_ANIMATION, Intent.FLAG_ACTIVITY_CLEAR_TASK, Intent.FLAG_ACTIVITY_TASK_ON_HOME, Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS, Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, Intent.FLAG_ACTIVITY_REQUIRE_NON_BROWSER, Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT, Intent.FLAG_RECEIVER_REGISTERED_ONLY, Intent.FLAG_RECEIVER_REPLACE_PENDING, Intent.FLAG_RECEIVER_FOREGROUND, Intent.FLAG_RECEIVER_NO_ABORT, Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS
ap...@google.com <ap...@google.com> #3
The initial report (
However,
ap...@google.com <ap...@google.com> #4
Thanks for fixing! What release should we be able to verify the fix in? And is there any chance of a backport for 8.6.1?
ap...@google.com <ap...@google.com> #7
Thanks for the update!
ap...@google.com <ap...@google.com> #8
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 2
- Android Gradle Plugin 8.8.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ap...@google.com <ap...@google.com> #9
The fixes for this issue are now also available in:
- Android Studio Ladybug | 2024.2.1 RC 1
- Android Gradle Plugin 8.7.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ap...@google.com <ap...@google.com> #10
Project: r8
Branch: 8.6
Author: Søren Gjesse <
Link:
Version 8.6.39
Expand for full commit details
Version 8.6.39
Bug: b/383073689
Change-Id: I708258c062dbb4e2a189b71d12698be1ef685d53
Files:
- M
src/main/java/com/android/tools/r8/Version.java
Hash: 7e21634c03cc4a6e821dc7f38bed65ca93252a87
Date: Tue Dec 10 11:36:20 2024
ap...@google.com <ap...@google.com> #11
Project: r8
Branch: 8.6
Author: Søren Gjesse <
Link:
Add OpenJDK 23 GA
Expand for full commit details
Add OpenJDK 23 GA
* Move Java 22 test module to Java 23
* Keep OpenJDK 22 until bots run tests on OpenJDK 23
Bug: b/383073689
Change-Id: I03d4f9b67afb09bd713d8967cdca3afa87d4e9d0
Files:
- M
d8_r8/commonBuildSrc/src/main/kotlin/DependenciesPlugin.kt
- M
d8_r8/test/build.gradle.kts
- M
d8_r8/test/settings.gradle.kts
- M
d8_r8/test_modules/tests_java_23/build.gradle.kts
- M
d8_r8/test_modules/tests_java_23/settings.gradle.kts
- M
scripts/add-openjdk.sh
- M
src/test/java23/com/android/tools/r8/java23/Java23ValidationTest.java
- M
src/test/testbase/java/com/android/tools/r8/TestRuntime.java
- A
third_party/openjdk/jdk-23/linux.tar.gz.sha1
- A
third_party/openjdk/jdk-23/osx.tar.gz.sha1
- A
third_party/openjdk/jdk-23/windows.tar.gz.sha1
- M
tools/jdk.py
- M
tools/test.py
Hash: 568d7e0739b1fe50b1d4dc24cd5445d67dfbc5c1
Date: Tue Dec 10 11:36:14 2024
ap...@google.com <ap...@google.com> #12
Project: r8
Branch: 8.5
Author: Søren Gjesse <
Link:
Add OpenJDK 23 GA
Expand for full commit details
Add OpenJDK 23 GA
* Move Java 22 test module to Java 23
* Keep OpenJDK 22 until bots run tests on OpenJDK 23
Bug: b/383073689
Change-Id: I03d4f9b67afb09bd713d8967cdca3afa87d4e9d0
Files:
- M
d8_r8/commonBuildSrc/src/main/kotlin/DependenciesPlugin.kt
- M
d8_r8/test/build.gradle.kts
- M
d8_r8/test/settings.gradle.kts
- M
d8_r8/test_modules/tests_java_23/build.gradle.kts
- M
d8_r8/test_modules/tests_java_23/settings.gradle.kts
- M
scripts/add-openjdk.sh
- M
src/test/java23/com/android/tools/r8/java23/Java23ValidationTest.java
- M
src/test/testbase/java/com/android/tools/r8/TestRuntime.java
- A
third_party/openjdk/jdk-23/linux.tar.gz.sha1
- A
third_party/openjdk/jdk-23/osx.tar.gz.sha1
- A
third_party/openjdk/jdk-23/windows.tar.gz.sha1
- M
tools/jdk.py
- M
tools/test.py
Hash: 079227acd6decfd397012f910ff27c19c769a962
Date: Tue Dec 10 11:36:53 2024
ap...@google.com <ap...@google.com> #13
Project: r8
Branch: main
Author: Søren Gjesse <
Link:
Move testing of JDK-22 to JDK-23
Expand for full commit details
Move testing of JDK-22 to JDK-23
This is removing support for JDK-22 and is moving all testing on
JDK-22 to JDK-23.
Bug: b/383073689
Change-Id: I9d87958c9c4b845fc5915acf9bbba25669fce0b6
Files:
- M
d8_r8/commonBuildSrc/src/main/kotlin/DependenciesPlugin.kt
- M
infra/config/global/generated/cr-buildbucket.cfg
- M
infra/config/global/generated/luci-milo.cfg
- M
infra/config/global/generated/luci-notify.cfg
- M
infra/config/global/generated/luci-scheduler.cfg
- M
infra/config/global/main.star
- M
src/test/testbase/java/com/android/tools/r8/TestRuntime.java
- M
tools/jdk.py
- M
tools/test.py
Hash: 996fb3a3797448d752bd62866c429071511fb40c
Date: Tue Dec 10 14:42:58 2024
sg...@google.com <sg...@google.com>
an...@google.com <an...@google.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1
- Android Gradle Plugin 8.8.1
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description