Skip to content
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

Build minicap for Android N (Preview) #32

Closed
haihaoshen opened this issue Aug 6, 2016 · 10 comments
Closed

Build minicap for Android N (Preview) #32

haihaoshen opened this issue Aug 6, 2016 · 10 comments

Comments

@haihaoshen
Copy link

Hi,

I am trying to build minicap for Android N. Is there any instructions on how to do that? I would like to build from AOSO source code.

Thanks a lot!
-Harry

@sorccu
Copy link
Member

sorccu commented Aug 6, 2016

Currently you can just copy the libs from the latest built version. Works
with N and M.

On Saturday, 6 August 2016, haihaoshen notifications@github.com wrote:

Hi,

I am trying to build minicap for Android N. Is there any instructions on
how to do that? I would like to build from AOSO source code.

Thanks a lot!
-Harry


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#32, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB-_Qock9fj502KAcg3c5IKoqMNosCAks5qdFH6gaJpZM4JePfw
.

@haihaoshen
Copy link
Author

Thanks a lo! As I found, the max version is android-23, which should support Android M. Do you mean it also supports Android N?

BTW, is there any way to build with AOSP code?

@sorccu
Copy link
Member

sorccu commented Aug 7, 2016

Yes it does, just copy the libs under the new SDK name and it will work.

@sorccu
Copy link
Member

sorccu commented Aug 7, 2016

You can build with AOSP if you update the build scripts, it's not a big task.

@haihaoshen
Copy link
Author

Thanks for your information.

I found there are prebuilt libs under minicap/jni/minicap-shared/aosp/libs, which contains different android version from 9 to 23; while minicap/libs also generates one copy (single version) after using ndk-build. May I know what;s the single version here? Is it related with ndk-build version or something else?

One more question on build from AOSP code: where folder should I copy minicap/jni to aosp folder? aosp is a local folder, not from dock.

@sorccu
Copy link
Member

sorccu commented Aug 7, 2016

Just take the folder called android-23. Duplicate it and name it android-24. It should now work.

@haihaoshen
Copy link
Author

Got it for this question, thanks.

(pre-built in git) minicap/jni/minicap-shared/aosp/libs/android-23/arm64-v8a: minicap.so
(ndk-build newly) minicap/libs/arm64-v8a: minicap minicap-nopie minicap.so

What's the difference between two minicap.so files? Which version does the minicap.so (ndk-build) support?

@sorccu
Copy link
Member

sorccu commented Aug 7, 2016

It doesn't support anything. It's just a dummy library that makes the main codebase compile against the symbols in the shared library.

@haihaoshen
Copy link
Author

got it, thanks again!

@varundtsfi
Copy link

I want to build the android AOSP with minicap without using docker.
You have put on web
https://github.com/openstf/minicap/tree/master/jni/minicap-shared

Now I have a fresh copy of android 9 AOSP and minicap project which you have put on web.
repo init -u https://android.googlesource.com/platform/manifest
repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r3
repo sync.

I ran . build/envsetup.sh

How to start the AOSP build for arm64-v8a
and After completed the build process How to compile aosp with mincap project so that I can get minicap libs.

Please help me I want to learn this process with the help of all of you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants