-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the issue of inability to start on Android 14 #293
Conversation
Fix the issue where setting android:exported="true" is required to start an Activity on Android 14
Thanks! But hmm, reading the documentation here: https://developer.android.com/privacy-and-security/risks/android-exported ...shouldn't it rather be I'm still on Android 13 on my phone. Will check if there's an update to Android 14 available and tinker around with that fix before merging. Might be a few days. |
https://developer.android.com/about/versions/12/behavior-changes-12#exported |
Giving this a quick test now (on an Android 13 phone though, so just checking if it also works on 13). |
Blargh, somehow my Android phone is no longer detected when I connect it to my Mac. Probably a latest-macOs-thing. I try to investigate. |
You can change ANDROID_PLATFORM: android-28 to android-31, it should not start on Android 13 |
Hmm ok, what is the behaviour on Android 14 when using E.g. is (because in that case we should consider switching all defaults to platform-31 together with the export fix) |
because "If your app targets Android 12 or higher and contains activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components." |
Ah right I see, because the manifest that's generated by fips has an I'm currently still not able to test on my phone, but I will just merge the PR. Does the change require to update the platform in the build configs to (for instance here: fips/configs/android-ninja-debug.yml Line 9 in c050398
If yes we should probably do this too in this PR? |
...I'm actually able to test now... had to update the Android platform-tools and reboot my Mac (not just 'adb kill-server') |
Ok merged. Many thanks! I tested with only the fix (e.g. keeping |
yes, that sounds good. considering that Google Play requires a minimum target API level of 33. |
Ok, fips should eventually update its default platform in the build configs, but since that can also be configured by the user it's not so high priority IMHO. Thanks for all the info btw :) |
PS: as you can see I have merged the your PR without updating the default platform, but if you feel like it, feel free to provide a PR for fips to update to platform-33. Note that this doesn't only require updating the build config files, but also the installed platform package here: Line 120 in 3064811
I currently don't have all that much time to look into Android specific things. |
Fix the issue where setting android:exported="true" is required to start an Activity on Android 14