Issue
Preface
I've checked this and this and STFW before I ask. Because of ROM's Difference , I want to cross compile an ADB server(N+) running on my aarch64 device from the [adb source code].
You can see here for the difference changes of android.mk in the following lines:
Latest Android 7.+ version , Lollipop Android 5.+ version This Version contains adb for device-on-target feature.
Question
I can't find a proper MakeFile and it's just a Android.mk in the folder.How should I convert it to makefile in order to using make
to build a adb for device-on-target. I've already built a cross compiling environment and installed the ndk-build
,repo
,build-essential
on my ubuntu 16.04 lts.
Or on the other hand, can I only build ADB for device-on-target without compiling the whole rom?Which argument should I use with ndk-build
?Please give me more detailed info and caution.
Solution
Instructions on setting up a platform build environment are on the AOSP website: http://source.android.com/source/requirements.html
The ADB client program is not configured to be built for the device. We only support that for hosts. If you want to build it for the device, you'll need to add that build configuration (see system/core/adb/Android.mk) and then most likely do some porting work to get it functioning.
Answered By - Dan Albert
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.