Skip to content

Build For Android Running in Android Emulator device running at x86_64 platform #13

@pc-magas

Description

@pc-magas

I have launched an Android VM via android's emulator:

emulator -avd WiFIUSB -qemu -device qemu-xhci -device usb-host,vendorid=0x1903,productid=0x8328

Where the device is:

$ lsusb

Bus 001 Device 004: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

Via obtaining a shell access upon the device

adb shell

I got:

$ uname -a
Linux localhost 6.1.23-android14-4-00257-g7e35917775b8-ab9964412 #1 SMP PREEMPT Mon Apr 17 20:50:58 UTC 2023 x86_64 Toybox

And I attempt to crossbuild in my host linux and load it at the Android Running upon emulator. But I am stuck on theese:

  1. Where I can find the headers so I can crossbuild for the android kernel?
  2. Could somwehow I get hint from Nethunter builds? If yes what toolchain should I use?
export CROSS_COMPILE=../toolchain/toolchain64/bin/aarch64-linux-android-

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidAndroid related problemshelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions