packages/modules/Connectivity/nearby
cpeng b5f75efab3 android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
..
apex android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
framework android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
halfsheet android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
service android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
tests android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
.gitignore android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
OWNERS android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
PREUPLOAD.cfg android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
README.md android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
TEST_MAPPING android 13 from xiaosuan 2025-08-25 08:38:42 +08:00

README.md

Nearby Mainline Module

This directory contains code for the AOSP Nearby mainline module.

##Directory Structure

apex

  • Files associated with the Nearby mainline module APEX.

framework

  • Contains client side APIs and AIDL files.

jni

  • JNI wrapper for invoking Android APIs from native code.

native

  • Native code implementation for nearby module services.

service

  • Server side implementation for nearby module services.

tests

  • Unit/Multi devices tests for Nearby module (both Java and native code).

IDE setup

$ source build/envsetup.sh && lunch <TARGET>
$ cd packages/modules/Nearby
$ aidegen .
# This will launch Intellij project for Nearby module.

Build and Install

$ source build/envsetup.sh && lunch <TARGET>
$ m com.google.android.tethering.next deapexer
$ $ANDROID_BUILD_TOP/out/host/linux-x86/bin/deapexer decompress --input \
    ${ANDROID_PRODUCT_OUT}/system/apex/com.google.android.tethering.next.capex \
    --output /tmp/tethering.apex
$ adb install -r /tmp/tethering.apex