[nearby] Update README for AOSP compiling binary

Test: -m and load on device
Change-Id: Ib54d4cd14c2ec0739d96593e183f6e1be9682e67
This commit is contained in:
Xinyi Zhou 2023-12-14 18:07:57 -08:00
commit fea003bd5b

View file

@ -47,8 +47,16 @@ Then, add the jar in IDE as below.
## Build and Install
```sh
Build unbundled module using banchan
For master on AOSP (Android) host
$ source build/envsetup.sh
$ lunch aosp_oriole-trunk_staging-userdebug
$ m com.android.tethering
$ $ANDROID_BUILD_TOP/out/host/linux-x86/bin/deapexer decompress --input $ANDROID_PRODUCT_OUT/system/apex/com.android.tethering.capex --output /tmp/tethering.apex
$ adb install /tmp/tethering.apex
$ adb reboot
For udc-mainline-prod on Google internal host
Build unbundled module using banchan
$ source build/envsetup.sh
$ banchan com.google.android.tethering mainline_modules_arm64
$ m apps_only dist