Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ depcomp
autom4te.cache
.dirstamp
.deps
.vscode

jni/libapol/*.o
jni/libapol/regex/*.o
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ This tool injects allow rules into binary SELinux kernel policies.

## Building for Android

Ensure that you have installed _android-ndk_ properly. Then run:
Ensure that you have installed _android-ndk_ properly.
To install ndk, either use the one bundled with Android Studio or download a copy from [NDK Downloads][5]

If you have Android Sdk make sure to add ndk-build to PATH
```
PATH="/home/sam/android-sdk/ndk-bundle:$PATH"
export PATH
```

Then run:

ndk-build

Expand Down Expand Up @@ -63,3 +72,4 @@ Based on [pasis/setools-android][3] by Dmitry Podgorny (pasis) and

[3]: https://github.com/pasis/setools-android
[4]: https://github.com/xmikos/setools-android
[5]: https://developer.android.com/ndk/downloads
5 changes: 3 additions & 2 deletions jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
APP_ABI := armeabi armeabi-v7a arm64-v8a mips mips64 x86 x86_64
APP_PLATFORM := android-16
APP_ABI := armeabi-v7a arm64-v8a
# x86 x86_64
APP_PLATFORM := latest