• Home
Name Date Size #Lines LOC

..--

apex/03-May-2024-2925

framework/03-May-2024-7,3163,613

halfsheet/03-May-2024-4,5992,617

service/03-May-2024-27,62717,390

tests/03-May-2024-33,49823,326

.gitignoreD03-May-202490 87

OWNERSD03-May-202473 54

PREUPLOAD.cfgD03-May-2024297 108

README.mdD03-May-20241 KiB4331

TEST_MAPPINGD03-May-2024484 2827

README.md

1# Nearby Mainline Module
2This directory contains code for the AOSP Nearby mainline module.
3
4##Directory Structure
5
6`apex`
7 - Files associated with the Nearby mainline module APEX.
8
9`framework`
10 - Contains client side APIs and AIDL files.
11
12`jni`
13 - JNI wrapper for invoking Android APIs from native code.
14
15`native`
16 - Native code implementation for nearby module services.
17
18`service`
19 - Server side implementation for nearby module services.
20
21`tests`
22 - Unit/Multi devices tests for Nearby module (both Java and native code).
23
24## IDE setup
25
26```sh
27$ source build/envsetup.sh && lunch <TARGET>
28$ cd packages/modules/Nearby
29$ aidegen .
30# This will launch Intellij project for Nearby module.
31```
32
33## Build and Install
34
35```sh
36$ source build/envsetup.sh && lunch <TARGET>
37$ m com.google.android.tethering.next deapexer
38$ $ANDROID_BUILD_TOP/out/host/linux-x86/bin/deapexer decompress --input \
39    ${ANDROID_PRODUCT_OUT}/system/apex/com.google.android.tethering.next.capex \
40    --output /tmp/tethering.apex
41$ adb install -r /tmp/tethering.apex
42```
43