-
Notifications
You must be signed in to change notification settings - Fork 66
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
Building on Android #28
Comments
Was able to get a bit further with Termux by setting |
hi @Manouchehri ,have you solved to work the project on android? |
I am trying to build mambo with android ndk, able to compile now.android-ndk-build |
@amimo, it seems that you merged multiple non-related modifications in a single commit. Is there any other branch/repo where we can find the modifications in a series of atomic commits? |
@umarcor I split this single commit into smaller ones. You can see all the change I made here android-ndk-build. |
I’m not sure why I forgot to share this, but I sponsored @liamwhite to poke around with building Mambo for Android. https://gist.github.com/Manouchehri/7263b3231a755d8f34cf719006b2c393 |
Note that the mixtape link in this gist is dead. The package in question is, however, part of the gist. (You will need to clone it or download it directly.) |
@Manouchehri @liamwhite really nice patches, can I port them to my ndk-build? |
Sure, feel free to use the patches. |
@Manouchehri @liamwhite I only had a quick look at the patches, but I've noticed |
I tried building https://gist.github.com/Manouchehri/7263b3231a755d8f34cf719006b2c393 on Termux v0.92 (Android v8.1.0). The build is successful, executing without args is correct, but trying to use it produces a segmentation fault: $ ./dbm "$(which ls)"
Segmentation fault
$ cd test
$ ../dbm mmap_munmap
Segmentation fault
$ ../dbm mprotect_exec
Segmentation fault
$ ../dbm self_modifying
Segmentation fault I tried three different commits: https://github.com/umarcor/mambo/commits/termux
All of them produce the same result: successful build but segfult. Note that building other tests ( These are the binaries that correspond to the last commit: termux-bins.zip |
Any further information since the latest comment created? Recently I try to run mambo on Android, successfully built with latest master of this repository. I got Below this the debug output of adb shell console.
And below is the crash information
How can I fix this The attached file is the binary I compile with |
Hi @WanghongLin. Our position is the same as before: we don't officially support Android. But if you do a standard build of MAMBO on an Arm GNU/Linux system and copy the statically linked executable to an Android device, it should work. You don't need any of the patches from this issue. Here's the current master branch HEAD running on my phone with the cachesim plugin enabled:
Note that the latest commit from the master branch is required because the Android libraries were trying to create an executable mapping without read permissions, which was previously making an assert fail. |
Closing due to inactivity. Please re-open if required. |
I know Android is not officially supported (#17), but figured I'd document my progress in an open ticket until I finish it.
Using Termux (and clang, see #27):
The text was updated successfully, but these errors were encountered: