-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo-apk: Export native activity by default on Android S and up (#242)
* Add android:exported support in manifest * cargo-apk: Export native activity by default on Android S and up Similar to how we help the user with a default `MAIN` intent filter to launch the sole `NativeActivity` in their application (and setting a few other sensible defaults), we should also set Android's new `android:exported` attribute to `true` if they're targeting Android S (SDK 31) or higher. Without this set to `true` the Rust app is not allowed to be started externally (by ie. a launcher or `adb`) on Android S+, and with only a single `Activity` currently supported by `ndk-build` it is unlikely (but not impossible, see shared user IDs etc), that there are other means to start it internally. https://developer.android.com/guide/topics/manifest/activity-element#exported Co-authored-by: Adrien Bennadji <[email protected]>
- Loading branch information
1 parent
b5822d0
commit 78e9bef
Showing
5 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters