JakeWharton / JakeWharton/ProcessPhoenix
Specify an excplicit package name to intent(s)
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 138
- Avg merge
- 1h 23m
- Merged PRs (30d)
- 11
Description
> For apps targeting Android 14 (API level 34) or higher <...>
> - <...>
> - If an app creates a mutable pending intent with an intent that doesn't specify a component or package, the system throws an exception.
Source: https://developer.android.com/about/versions/14/behavior-changes-14#safer-intents.
Right now I have to include the package name manually to an intent:
```kotlin
val myIntent = Intent(context, Class.forName("my.pkg.name.MyActivity")).apply {
setPackage(context.packageName) // API 34+
}
ProcessPhoenix.triggerRebirth(context, myIntent)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the ProcessPhoenix.triggerRebirth entry point shown in the issue and inspect how the restart Intent is constructed. Verify the Android 14 requirement for an explicit package, then add coverage for the affected behavior and confirm that the resulting intent includes the package name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100