# android: detect native ABI and API level correctly · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/04e73d03bd4cd7c584c059c7cee02faf1a17e36c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 04e73d03bd4cd7c584c059c7cee02faf1a17e36c

Requested commit: 04e73d03bd4cd7c584c059c7cee02faf1a17e36c

Commit: 04e73d03bd4cd7c584c059c7cee02faf1a17e36c

Tree: bab8e588b741ba683fc3f4f80b72e8009bf82922

Author: Luna Schwalbe

Committer: Andrew Kelley

## Message

```
android: detect native ABI and API level correctly

ABI detection previously did not take into account the non-standard
directory structure of Android. This has been fixed.

The API level is detected by running `getprop ro.build.version.sdk`,
since we don't want to depend on bionic, and reading system properties
ourselves is not trivially possible.

```

## Parents

- [e8af0f2cc017f44a01f70b25a1a81892d2374794](https://git.cafe/gitcafe/zig/commit/e8af0f2cc017f44a01f70b25a1a81892d2374794?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/04e73d03bd4cd7c584c059c7cee02faf1a17e36c?format=markdown)
