From a334714193d44c2f39eb82772ad7bf601dcbdaa6 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Thu, 29 Sep 2022 15:22:36 -0700 Subject: [PATCH] Move android examples from src/android to examples/android (#22946) * Move android examples from src/android to examples/android * Update docs Co-authored-by: Andrei Litvin --- .github/boring-cyborg.yml | 3 - .github/labeler.yml | 4 - .restyled.yaml | 2 +- docs/guides/android_building.md | 15 +-- docs/guides/esp32/build_app_and_commission.md | 2 +- docs/guides/mbedos_commissioning.md | 2 +- .../nrfconnect_android_commissioning.md | 2 +- docs/guides/nxp_k32w_android_commissioning.md | 6 +- .../all-clusters-app/nrfconnect/README.md | 2 +- .../nrfconnect/README.md | 2 +- {src => examples}/android/CHIPTest/.gitignore | 0 .../android/CHIPTest/.idea/.gitignore | 0 .../android/CHIPTest/.idea/compiler.xml | 0 .../android/CHIPTest/.idea/gradle.xml | 0 .../CHIPTest/.idea/jarRepositories.xml | 0 .../android/CHIPTest/.idea/misc.xml | 0 .../CHIPTest/.idea/runConfigurations.xml | 0 .../android/CHIPTest/.idea/vcs.xml | 0 .../android/CHIPTest/app/.gitignore | 0 .../android/CHIPTest/app/build.gradle | 0 .../android/CHIPTest/app/libs/README.md | 0 .../CHIPTest/app/libs/jniLibs/README.md | 0 .../android/CHIPTest/app/proguard-rules.pro | 0 .../chip/chiptest/ExampleInstrumentedTest.kt | 0 .../CHIPTest/app/src/main/AndroidManifest.xml | 0 .../app/src/main/cpp/CHIPTest-JNI.cpp | 0 .../CHIPTest/app/src/main/cpp/CMakeLists.txt | 0 .../com/tcl/chip/chiptest/MainActivity.kt | 0 .../com/tcl/chip/chiptest/TestEngine.java | 0 .../chip/chiptest/TestEngineException.java | 0 .../drawable-v24/ic_launcher_foreground.xml | 0 .../res/drawable/ic_launcher_background.xml | 0 .../app/src/main/res/layout/activity_main.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../mipmap-anydpi-v26/ic_launcher_round.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-hdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin .../app/src/main/res/values-night/themes.xml | 0 .../app/src/main/res/values/colors.xml | 0 .../app/src/main/res/values/strings.xml | 0 .../app/src/main/res/values/themes.xml | 0 .../com/tcl/chip/chiptest/ExampleUnitTest.kt | 0 .../android/CHIPTest/build.gradle | 0 .../android/CHIPTest/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 {src => examples}/android/CHIPTest/gradlew | 0 .../android/CHIPTest/gradlew.bat | 0 .../android/CHIPTest/settings.gradle | 0 {src => examples}/android/CHIPTool/.gitignore | 0 .../CHIPTool/.idea/codeStyles/Project.xml | 0 .../android/CHIPTool/.idea/compiler.xml | 0 .../CHIPTool/.idea/jarRepositories.xml | 0 .../android/CHIPTool/.idea/vcs.xml | 0 {src => examples}/android/CHIPTool/README.md | 0 .../android/CHIPTool/app/.gitignore | 0 .../android/CHIPTool/app/CMakeLists.txt | 0 .../android/CHIPTool/app/build.gradle | 0 .../android/CHIPTool/app/libs/README.md | 0 .../CHIPTool/app/libs/jniLibs/README.md | 0 .../android/CHIPTool/app/proguard-rules.pro | 0 .../chiptool/CHIPDeviceControllerTest.java | 0 .../chiptool/ExampleInstrumentedTest.java | 0 .../CHIPTool/app/src/main/AndroidManifest.xml | 0 .../CHIPTool/app/src/main/cpp/native-lib.cpp | 0 .../google/chip/chiptool/CHIPToolActivity.kt | 0 .../com/google/chip/chiptool/ChipClient.kt | 0 .../chiptool/GenericChipDeviceListener.kt | 0 .../chip/chiptool/SelectActionFragment.kt | 0 .../attestation/AttestationAppLauncher.kt | 0 .../attestation/AttestationTestFragment.kt | 0 .../chiptool/bluetooth/BluetoothManager.kt | 0 .../clusterclient/AddressUpdateFragment.kt | 0 .../clusterclient/BasicClientFragment.kt | 0 .../clusterclient/MultiAdminClientFragment.kt | 0 .../clusterclient/OnOffClientFragment.kt | 0 .../clusterclient/OpCredClientFragment.kt | 0 .../clusterclient/SensorClientFragment.kt | 0 .../clusterclient/WildcardFragment.kt | 0 .../ClusterDetailFragment.kt | 0 .../ClusterInteractionFragment.kt | 0 .../ClusterInteractionHistoryFragment.kt | 0 .../ClusterInteractionSettingsFragment.kt | 0 .../clusterinteraction/EndpointAdapter.kt | 0 .../clusterinteraction/HistoryCommand.kt | 0 .../HistoryCommandAdapter.kt | 0 .../clusterinteraction/endpointItem.kt | 0 .../AddressCommissioningFragment.kt | 0 .../DeviceProvisioningFragment.kt | 0 .../provisioning/EnterNetworkFragment.kt | 0 .../provisioning/ProvisionNetworkType.kt | 0 .../setuppayloadscanner/BarcodeFragment.kt | 0 .../CHIPBarcodeProcessor.kt | 0 .../CHIPDeviceDetailsFragment.kt | 0 .../setuppayloadscanner/CHIPDeviceInfo.kt | 0 .../CHIPLedgerDetailsFragment.kt | 0 .../setuppayloadscanner/CameraSourceView.java | 0 .../setuppayloadscanner/QrCodeInfo.kt | 0 .../google/chip/chiptool/util/DeviceIdUtil.kt | 0 .../google/chip/chiptool/util/FragmentUtil.kt | 0 .../drawable-v24/ic_launcher_foreground.xml | 0 .../src/main/res/drawable/ic_done_icon.xml | 0 .../src/main/res/drawable/ic_error_icon.xml | 0 .../app/src/main/res/drawable/ic_history.xml | 0 .../res/drawable/ic_launcher_background.xml | 0 .../res/drawable/ic_network_selected_icon.xml | 0 .../app/src/main/res/drawable/ic_settings.xml | 0 .../res/drawable/ic_wireless_network_icon.xml | 0 .../layout/address_commissioning_fragment.xml | 0 .../res/layout/address_update_fragment.xml | 0 .../res/layout/attestation_test_fragment.xml | 0 .../src/main/res/layout/barcode_activity.xml | 0 .../src/main/res/layout/barcode_fragment.xml | 0 .../main/res/layout/barcode_vendor_tag.xml | 0 .../main/res/layout/basic_client_fragment.xml | 0 .../res/layout/chip_device_info_fragment.xml | 0 .../res/layout/chip_ledger_info_fragment.xml | 0 .../main/res/layout/cluster_callback_item.xml | 0 .../res/layout/cluster_detail_fragment.xml | 0 .../layout/cluster_interaction_fragment.xml | 0 .../cluster_interaction_history_fragment.xml | 0 .../cluster_interaction_history_item.xml | 0 .../cluster_interaction_history_item_info.xml | 0 .../cluster_interaction_settings_fragment.xml | 0 .../res/layout/cluster_parameter_item.xml | 0 .../app/src/main/res/layout/endpoint_item.xml | 0 .../layout/enter_thread_network_fragment.xml | 0 .../layout/enter_wifi_network_fragment.xml | 0 .../layout/multi_admin_client_fragment.xml | 0 .../res/layout/on_off_client_fragment.xml | 0 .../res/layout/op_cred_client_fragment.xml | 0 .../app/src/main/res/layout/read_dialog.xml | 0 .../res/layout/select_action_fragment.xml | 0 .../res/layout/sensor_client_fragment.xml | 0 .../res/layout/single_fragment_container.xml | 0 .../src/main/res/layout/subscribe_dialog.xml | 0 .../app/src/main/res/layout/top_activity.xml | 0 .../src/main/res/layout/wildcard_fragment.xml | 0 .../cluster_interaction_bottom_navigation.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../mipmap-anydpi-v26/ic_launcher_round.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-hdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin .../app/src/main/res/values/arrays.xml | 0 .../app/src/main/res/values/colors.xml | 0 .../app/src/main/res/values/strings.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../google/chip/chiptool/ExampleUnitTest.java | 0 .../android/CHIPTool/build.gradle | 0 .../android/CHIPTool/chip-library/.gitignore | 0 .../CHIPTool/chip-library/build.gradle | 0 .../CHIPTool/chip-library/consumer-rules.pro | 0 .../CHIPTool/chip-library/proguard-rules.pro | 0 .../chip-library/src/main/AndroidManifest.xml | 0 .../android/CHIPTool/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 {src => examples}/android/CHIPTool/gradlew | 0 .../android/CHIPTool/gradlew.bat | 0 .../android/CHIPTool/settings.gradle | 0 examples/lighting-app/nrfconnect/README.md | 2 +- examples/lock-app/nrfconnect/README.md | 2 +- examples/pump-app/cc13x2x7_26x2x7/README.md | 2 +- examples/pump-app/nrfconnect/README.md | 2 +- .../cc13x2x7_26x2x7/README.md | 2 +- .../pump-controller-app/nrfconnect/README.md | 2 +- examples/window-app/nrfconnect/README.md | 2 +- scripts/build/builders/android.py | 14 +-- .../build/testdata/build_all_except_host.txt | 88 +++++++++--------- 185 files changed, 75 insertions(+), 81 deletions(-) rename {src => examples}/android/CHIPTest/.gitignore (100%) rename {src => examples}/android/CHIPTest/.idea/.gitignore (100%) rename {src => examples}/android/CHIPTest/.idea/compiler.xml (100%) rename {src => examples}/android/CHIPTest/.idea/gradle.xml (100%) rename {src => examples}/android/CHIPTest/.idea/jarRepositories.xml (100%) rename {src => examples}/android/CHIPTest/.idea/misc.xml (100%) rename {src => examples}/android/CHIPTest/.idea/runConfigurations.xml (100%) rename {src => examples}/android/CHIPTest/.idea/vcs.xml (100%) rename {src => examples}/android/CHIPTest/app/.gitignore (100%) rename {src => examples}/android/CHIPTest/app/build.gradle (100%) rename {src => examples}/android/CHIPTest/app/libs/README.md (100%) rename {src => examples}/android/CHIPTest/app/libs/jniLibs/README.md (100%) rename {src => examples}/android/CHIPTest/app/proguard-rules.pro (100%) rename {src => examples}/android/CHIPTest/app/src/androidTest/java/com/tcl/chip/chiptest/ExampleInstrumentedTest.kt (100%) rename {src => examples}/android/CHIPTest/app/src/main/AndroidManifest.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/cpp/CHIPTest-JNI.cpp (100%) rename {src => examples}/android/CHIPTest/app/src/main/cpp/CMakeLists.txt (100%) rename {src => examples}/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/MainActivity.kt (100%) rename {src => examples}/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngine.java (100%) rename {src => examples}/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngineException.java (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/drawable-v24/ic_launcher_foreground.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/drawable/ic_launcher_background.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/layout/activity_main.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/values-night/themes.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/values/colors.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/values/strings.xml (100%) rename {src => examples}/android/CHIPTest/app/src/main/res/values/themes.xml (100%) rename {src => examples}/android/CHIPTest/app/src/test/java/com/tcl/chip/chiptest/ExampleUnitTest.kt (100%) rename {src => examples}/android/CHIPTest/build.gradle (100%) rename {src => examples}/android/CHIPTest/gradle.properties (100%) rename {src => examples}/android/CHIPTest/gradle/wrapper/gradle-wrapper.jar (100%) rename {src => examples}/android/CHIPTest/gradle/wrapper/gradle-wrapper.properties (100%) rename {src => examples}/android/CHIPTest/gradlew (100%) rename {src => examples}/android/CHIPTest/gradlew.bat (100%) rename {src => examples}/android/CHIPTest/settings.gradle (100%) rename {src => examples}/android/CHIPTool/.gitignore (100%) rename {src => examples}/android/CHIPTool/.idea/codeStyles/Project.xml (100%) rename {src => examples}/android/CHIPTool/.idea/compiler.xml (100%) rename {src => examples}/android/CHIPTool/.idea/jarRepositories.xml (100%) rename {src => examples}/android/CHIPTool/.idea/vcs.xml (100%) rename {src => examples}/android/CHIPTool/README.md (100%) rename {src => examples}/android/CHIPTool/app/.gitignore (100%) rename {src => examples}/android/CHIPTool/app/CMakeLists.txt (100%) rename {src => examples}/android/CHIPTool/app/build.gradle (100%) rename {src => examples}/android/CHIPTool/app/libs/README.md (100%) rename {src => examples}/android/CHIPTool/app/libs/jniLibs/README.md (100%) rename {src => examples}/android/CHIPTool/app/proguard-rules.pro (100%) rename {src => examples}/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java (100%) rename {src => examples}/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/ExampleInstrumentedTest.java (100%) rename {src => examples}/android/CHIPTool/app/src/main/AndroidManifest.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/cpp/native-lib.cpp (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/ChipClient.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/GenericChipDeviceListener.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/SelectActionFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationAppLauncher.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationTestFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/bluetooth/BluetoothManager.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/BasicClientFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OpCredClientFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/SensorClientFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionHistoryFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionSettingsFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/EndpointAdapter.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommand.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/endpointItem.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/ProvisionNetworkType.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/BarcodeFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPBarcodeProcessor.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceDetailsFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceInfo.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPLedgerDetailsFragment.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CameraSourceView.java (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/QrCodeInfo.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/DeviceIdUtil.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/FragmentUtil.kt (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable-v24/ic_launcher_foreground.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_done_icon.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_error_icon.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_history.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_launcher_background.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_network_selected_icon.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_settings.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/drawable/ic_wireless_network_icon.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/address_commissioning_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/address_update_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/attestation_test_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/barcode_activity.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/barcode_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/barcode_vendor_tag.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/basic_client_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/chip_device_info_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/chip_ledger_info_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_detail_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_interaction_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item_info.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_interaction_settings_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/cluster_parameter_item.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/endpoint_item.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/enter_thread_network_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/enter_wifi_network_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/multi_admin_client_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/on_off_client_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/op_cred_client_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/read_dialog.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/select_action_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/sensor_client_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/single_fragment_container.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/subscribe_dialog.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/top_activity.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/layout/wildcard_fragment.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/menu/cluster_interaction_bottom_navigation.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/values/arrays.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/values/colors.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/values/strings.xml (100%) rename {src => examples}/android/CHIPTool/app/src/main/res/values/styles.xml (100%) rename {src => examples}/android/CHIPTool/app/src/test/java/com/google/chip/chiptool/ExampleUnitTest.java (100%) rename {src => examples}/android/CHIPTool/build.gradle (100%) rename {src => examples}/android/CHIPTool/chip-library/.gitignore (100%) rename {src => examples}/android/CHIPTool/chip-library/build.gradle (100%) rename {src => examples}/android/CHIPTool/chip-library/consumer-rules.pro (100%) rename {src => examples}/android/CHIPTool/chip-library/proguard-rules.pro (100%) rename {src => examples}/android/CHIPTool/chip-library/src/main/AndroidManifest.xml (100%) rename {src => examples}/android/CHIPTool/gradle.properties (100%) rename {src => examples}/android/CHIPTool/gradle/wrapper/gradle-wrapper.jar (100%) rename {src => examples}/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties (100%) rename {src => examples}/android/CHIPTool/gradlew (100%) rename {src => examples}/android/CHIPTool/gradlew.bat (100%) rename {src => examples}/android/CHIPTool/settings.gradle (100%) diff --git a/.github/boring-cyborg.yml b/.github/boring-cyborg.yml index a3f8eb3c8e12b0..bb2e2a7d2b5e9d 100644 --- a/.github/boring-cyborg.yml +++ b/.github/boring-cyborg.yml @@ -82,9 +82,6 @@ labelPRBasedOnFilePath: ble: - src/ble/* - android: - - src/android/* - app: - src/app/* diff --git a/.github/labeler.yml b/.github/labeler.yml index 067a6e769bcb84..5f7f83bf647407 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -140,10 +140,6 @@ ble: - src/ble/* - src/ble/**/* -android: - - src/android/* - - src/android/**/* - app: - src/app/* - src/app/**/* diff --git a/.restyled.yaml b/.restyled.yaml index f4a1152c440835..8de3586a65401b 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -65,7 +65,7 @@ exclude: - "third_party/bluez/repo/**/*" - "third_party/cirque/repo/**/*" - "third_party/nanopb/repo/**/*" - - "src/android/CHIPTool/gradlew" # gradle wrapper generated file + - "examples/android/CHIPTool/gradlew" # gradle wrapper generated file - "third_party/android_deps/gradlew" # gradle wrapper generated file - "src/controller/python/chip/clusters/Objects.py" # generated file, no point to restyle - "src/controller/python/chip/clusters/CHIPClusters.py" # generated file, no point to restyle diff --git a/docs/guides/android_building.md b/docs/guides/android_building.md index c7c6983a2e0c6e..840f65110e0ae1 100644 --- a/docs/guides/android_building.md +++ b/docs/guides/android_building.md @@ -33,7 +33,7 @@ There are following Apps on Android ## Source files -You can find source files of the Android applications in the `src/android/` +You can find source files of the Android applications in the `examples/android/` directory.
@@ -169,7 +169,7 @@ which allows us to directly edit core Matter code in-IDE. 2. Modify the `matterSdkSourceBuild` variable to true, `matterBuildSrcDir` point to the appropriate output directory (e.g. `../../../../out/android_arm64`), and `matterSourceBuildAbiFilters` to the desired ABIs in - [src/android/CHIPTool/gradle.properties](https://github.com/project-chip/connectedhomeip/blob/master/src/android/CHIPTool/gradle.properties) + [examples/android/CHIPTool/gradle.properties](https://github.com/project-chip/connectedhomeip/blob/master/examples/android/CHIPTool/gradle.properties) 3) Open the project in Android Studio and run **File -> Sync Project with Gradle Files**. @@ -180,21 +180,22 @@ which allows us to directly edit core Matter code in-IDE. - Run the following command in the command line: ```shell - cd src/android/CHIPTool + cd examples/android/CHIPTool ./gradlew build ``` The debug Android package `app-debug.apk` will be generated at -`src/android/CHIPTool/app/build/outputs/apk/debug/`, and can be installed with +`examples/android/CHIPTool/app/build/outputs/apk/debug/`, and can be installed +with ```shell -adb install src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk +adb install examples/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk ``` or ```shell -(cd src/android/CHIPTool && ./gradlew installDebug) +(cd examples/android/CHIPTool && ./gradlew installDebug) ``` @@ -209,5 +210,5 @@ Currently, the CHIPTest can only be built from scripts. The steps are similar to ``` You can modify the `matterUTestLib` variable to the test lib in -[src/android/CHIPTest/gradle.properties](https://github.com/project-chip/connectedhomeip/blob/master/src/android/CHIPTest/gradle.properties) +[examples/android/CHIPTest/gradle.properties](https://github.com/project-chip/connectedhomeip/blob/master/examples/android/CHIPTest/gradle.properties) to change target to test. diff --git a/docs/guides/esp32/build_app_and_commission.md b/docs/guides/esp32/build_app_and_commission.md index dc2d517803967e..8afa3eeada1a0c 100644 --- a/docs/guides/esp32/build_app_and_commission.md +++ b/docs/guides/esp32/build_app_and_commission.md @@ -154,7 +154,7 @@ Below apps can be used for commissioning the application running on ESP32: - [Python Based Device Controller](https://github.com/project-chip/connectedhomeip/tree/master/src/controller/python) - [Standalone chip-tool](https://github.com/project-chip/connectedhomeip/tree/master/examples/chip-tool) - [iOS chip-tool App](https://github.com/project-chip/connectedhomeip/tree/master/src/darwin/CHIPTool) -- [Android chip-tool App](https://github.com/project-chip/connectedhomeip/tree/master/src/android/CHIPTool) +- [Android chip-tool App](https://github.com/project-chip/connectedhomeip/tree/master/examples/android/CHIPTool) ### Building Standalone chip-tool diff --git a/docs/guides/mbedos_commissioning.md b/docs/guides/mbedos_commissioning.md index 1e80d2552a089e..46853913d297ac 100644 --- a/docs/guides/mbedos_commissioning.md +++ b/docs/guides/mbedos_commissioning.md @@ -154,7 +154,7 @@ brightness between 0-255. If **Lighting LED** is available then brightness change can be observed. > For more details about Android CHIPTool please visit -> [CHIPTool](../../src/android/CHIPTool/README.md) +> [CHIPTool](../../examples/android/CHIPTool/README.md) # POSIX CLI CHIPTool diff --git a/docs/guides/nrfconnect_android_commissioning.md b/docs/guides/nrfconnect_android_commissioning.md index 93c0999b26212c..7bbc0e3e7aef21 100644 --- a/docs/guides/nrfconnect_android_commissioning.md +++ b/docs/guides/nrfconnect_android_commissioning.md @@ -125,7 +125,7 @@ After building, install the application by completing the following steps: replaced with the path to the Matter source directory: ``` - adb install -r chip-dir/src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk + adb install -r chip-dir/examples/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk ``` 6. Navigate to settings on your smartphone and grant **Camera** and diff --git a/docs/guides/nxp_k32w_android_commissioning.md b/docs/guides/nxp_k32w_android_commissioning.md index 751b6043a65d81..773419a0f447ce 100644 --- a/docs/guides/nxp_k32w_android_commissioning.md +++ b/docs/guides/nxp_k32w_android_commissioning.md @@ -1,7 +1,7 @@ # Commissioning NXP K32W using Android CHIPTool This article describes how to use -[CHIPTool](../../src/android/CHIPTool/README.md) for Android smartphones to +[CHIPTool](../../examples/android/CHIPTool/README.md) for Android smartphones to commission an NXP K32W061 DK6 running [NXP K32W Lock/Light Example Application](../../examples/lock-light-app/k32w/README.md) onto a CHIP-enabled Thread network. @@ -372,7 +372,7 @@ to learn how to build and program the light example onto an K32W061 DK6. ## Building and installing Android CHIPTool To build the CHIPTool application for your smartphone, read -[Android CHIPTool README](../../src/android/CHIPTool/README.md). +[Android CHIPTool README](../../examples/android/CHIPTool/README.md). After building, install the application by completing the following steps: @@ -393,7 +393,7 @@ After building, install the application by completing the following steps: replaced with the path to the CHIP source directory: ``` - adb install -r chip-dir/src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk + adb install -r chip-dir/examples/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk ``` 6. Navigate to settings on your smartphone and grant _Camera_ and _Location_ diff --git a/examples/all-clusters-app/nrfconnect/README.md b/examples/all-clusters-app/nrfconnect/README.md index 101c286e304088..03dcc8c0ad3e56 100644 --- a/examples/all-clusters-app/nrfconnect/README.md +++ b/examples/all-clusters-app/nrfconnect/README.md @@ -431,6 +431,6 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/examples/all-clusters-minimal-app/nrfconnect/README.md b/examples/all-clusters-minimal-app/nrfconnect/README.md index 909b3d5b8861cd..e405d3e332303b 100644 --- a/examples/all-clusters-minimal-app/nrfconnect/README.md +++ b/examples/all-clusters-minimal-app/nrfconnect/README.md @@ -431,6 +431,6 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/src/android/CHIPTest/.gitignore b/examples/android/CHIPTest/.gitignore similarity index 100% rename from src/android/CHIPTest/.gitignore rename to examples/android/CHIPTest/.gitignore diff --git a/src/android/CHIPTest/.idea/.gitignore b/examples/android/CHIPTest/.idea/.gitignore similarity index 100% rename from src/android/CHIPTest/.idea/.gitignore rename to examples/android/CHIPTest/.idea/.gitignore diff --git a/src/android/CHIPTest/.idea/compiler.xml b/examples/android/CHIPTest/.idea/compiler.xml similarity index 100% rename from src/android/CHIPTest/.idea/compiler.xml rename to examples/android/CHIPTest/.idea/compiler.xml diff --git a/src/android/CHIPTest/.idea/gradle.xml b/examples/android/CHIPTest/.idea/gradle.xml similarity index 100% rename from src/android/CHIPTest/.idea/gradle.xml rename to examples/android/CHIPTest/.idea/gradle.xml diff --git a/src/android/CHIPTest/.idea/jarRepositories.xml b/examples/android/CHIPTest/.idea/jarRepositories.xml similarity index 100% rename from src/android/CHIPTest/.idea/jarRepositories.xml rename to examples/android/CHIPTest/.idea/jarRepositories.xml diff --git a/src/android/CHIPTest/.idea/misc.xml b/examples/android/CHIPTest/.idea/misc.xml similarity index 100% rename from src/android/CHIPTest/.idea/misc.xml rename to examples/android/CHIPTest/.idea/misc.xml diff --git a/src/android/CHIPTest/.idea/runConfigurations.xml b/examples/android/CHIPTest/.idea/runConfigurations.xml similarity index 100% rename from src/android/CHIPTest/.idea/runConfigurations.xml rename to examples/android/CHIPTest/.idea/runConfigurations.xml diff --git a/src/android/CHIPTest/.idea/vcs.xml b/examples/android/CHIPTest/.idea/vcs.xml similarity index 100% rename from src/android/CHIPTest/.idea/vcs.xml rename to examples/android/CHIPTest/.idea/vcs.xml diff --git a/src/android/CHIPTest/app/.gitignore b/examples/android/CHIPTest/app/.gitignore similarity index 100% rename from src/android/CHIPTest/app/.gitignore rename to examples/android/CHIPTest/app/.gitignore diff --git a/src/android/CHIPTest/app/build.gradle b/examples/android/CHIPTest/app/build.gradle similarity index 100% rename from src/android/CHIPTest/app/build.gradle rename to examples/android/CHIPTest/app/build.gradle diff --git a/src/android/CHIPTest/app/libs/README.md b/examples/android/CHIPTest/app/libs/README.md similarity index 100% rename from src/android/CHIPTest/app/libs/README.md rename to examples/android/CHIPTest/app/libs/README.md diff --git a/src/android/CHIPTest/app/libs/jniLibs/README.md b/examples/android/CHIPTest/app/libs/jniLibs/README.md similarity index 100% rename from src/android/CHIPTest/app/libs/jniLibs/README.md rename to examples/android/CHIPTest/app/libs/jniLibs/README.md diff --git a/src/android/CHIPTest/app/proguard-rules.pro b/examples/android/CHIPTest/app/proguard-rules.pro similarity index 100% rename from src/android/CHIPTest/app/proguard-rules.pro rename to examples/android/CHIPTest/app/proguard-rules.pro diff --git a/src/android/CHIPTest/app/src/androidTest/java/com/tcl/chip/chiptest/ExampleInstrumentedTest.kt b/examples/android/CHIPTest/app/src/androidTest/java/com/tcl/chip/chiptest/ExampleInstrumentedTest.kt similarity index 100% rename from src/android/CHIPTest/app/src/androidTest/java/com/tcl/chip/chiptest/ExampleInstrumentedTest.kt rename to examples/android/CHIPTest/app/src/androidTest/java/com/tcl/chip/chiptest/ExampleInstrumentedTest.kt diff --git a/src/android/CHIPTest/app/src/main/AndroidManifest.xml b/examples/android/CHIPTest/app/src/main/AndroidManifest.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/AndroidManifest.xml rename to examples/android/CHIPTest/app/src/main/AndroidManifest.xml diff --git a/src/android/CHIPTest/app/src/main/cpp/CHIPTest-JNI.cpp b/examples/android/CHIPTest/app/src/main/cpp/CHIPTest-JNI.cpp similarity index 100% rename from src/android/CHIPTest/app/src/main/cpp/CHIPTest-JNI.cpp rename to examples/android/CHIPTest/app/src/main/cpp/CHIPTest-JNI.cpp diff --git a/src/android/CHIPTest/app/src/main/cpp/CMakeLists.txt b/examples/android/CHIPTest/app/src/main/cpp/CMakeLists.txt similarity index 100% rename from src/android/CHIPTest/app/src/main/cpp/CMakeLists.txt rename to examples/android/CHIPTest/app/src/main/cpp/CMakeLists.txt diff --git a/src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/MainActivity.kt b/examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/MainActivity.kt similarity index 100% rename from src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/MainActivity.kt rename to examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/MainActivity.kt diff --git a/src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngine.java b/examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngine.java similarity index 100% rename from src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngine.java rename to examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngine.java diff --git a/src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngineException.java b/examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngineException.java similarity index 100% rename from src/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngineException.java rename to examples/android/CHIPTest/app/src/main/java/com/tcl/chip/chiptest/TestEngineException.java diff --git a/src/android/CHIPTest/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/examples/android/CHIPTest/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to examples/android/CHIPTest/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/src/android/CHIPTest/app/src/main/res/drawable/ic_launcher_background.xml b/examples/android/CHIPTest/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/drawable/ic_launcher_background.xml rename to examples/android/CHIPTest/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/src/android/CHIPTest/app/src/main/res/layout/activity_main.xml b/examples/android/CHIPTest/app/src/main/res/layout/activity_main.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/layout/activity_main.xml rename to examples/android/CHIPTest/app/src/main/res/layout/activity_main.xml diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/examples/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to examples/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/examples/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to examples/android/CHIPTest/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher.png b/examples/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/examples/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher.png b/examples/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/examples/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/src/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/examples/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to examples/android/CHIPTest/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTest/app/src/main/res/values-night/themes.xml b/examples/android/CHIPTest/app/src/main/res/values-night/themes.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/values-night/themes.xml rename to examples/android/CHIPTest/app/src/main/res/values-night/themes.xml diff --git a/src/android/CHIPTest/app/src/main/res/values/colors.xml b/examples/android/CHIPTest/app/src/main/res/values/colors.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/values/colors.xml rename to examples/android/CHIPTest/app/src/main/res/values/colors.xml diff --git a/src/android/CHIPTest/app/src/main/res/values/strings.xml b/examples/android/CHIPTest/app/src/main/res/values/strings.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/values/strings.xml rename to examples/android/CHIPTest/app/src/main/res/values/strings.xml diff --git a/src/android/CHIPTest/app/src/main/res/values/themes.xml b/examples/android/CHIPTest/app/src/main/res/values/themes.xml similarity index 100% rename from src/android/CHIPTest/app/src/main/res/values/themes.xml rename to examples/android/CHIPTest/app/src/main/res/values/themes.xml diff --git a/src/android/CHIPTest/app/src/test/java/com/tcl/chip/chiptest/ExampleUnitTest.kt b/examples/android/CHIPTest/app/src/test/java/com/tcl/chip/chiptest/ExampleUnitTest.kt similarity index 100% rename from src/android/CHIPTest/app/src/test/java/com/tcl/chip/chiptest/ExampleUnitTest.kt rename to examples/android/CHIPTest/app/src/test/java/com/tcl/chip/chiptest/ExampleUnitTest.kt diff --git a/src/android/CHIPTest/build.gradle b/examples/android/CHIPTest/build.gradle similarity index 100% rename from src/android/CHIPTest/build.gradle rename to examples/android/CHIPTest/build.gradle diff --git a/src/android/CHIPTest/gradle.properties b/examples/android/CHIPTest/gradle.properties similarity index 100% rename from src/android/CHIPTest/gradle.properties rename to examples/android/CHIPTest/gradle.properties diff --git a/src/android/CHIPTest/gradle/wrapper/gradle-wrapper.jar b/examples/android/CHIPTest/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from src/android/CHIPTest/gradle/wrapper/gradle-wrapper.jar rename to examples/android/CHIPTest/gradle/wrapper/gradle-wrapper.jar diff --git a/src/android/CHIPTest/gradle/wrapper/gradle-wrapper.properties b/examples/android/CHIPTest/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from src/android/CHIPTest/gradle/wrapper/gradle-wrapper.properties rename to examples/android/CHIPTest/gradle/wrapper/gradle-wrapper.properties diff --git a/src/android/CHIPTest/gradlew b/examples/android/CHIPTest/gradlew similarity index 100% rename from src/android/CHIPTest/gradlew rename to examples/android/CHIPTest/gradlew diff --git a/src/android/CHIPTest/gradlew.bat b/examples/android/CHIPTest/gradlew.bat similarity index 100% rename from src/android/CHIPTest/gradlew.bat rename to examples/android/CHIPTest/gradlew.bat diff --git a/src/android/CHIPTest/settings.gradle b/examples/android/CHIPTest/settings.gradle similarity index 100% rename from src/android/CHIPTest/settings.gradle rename to examples/android/CHIPTest/settings.gradle diff --git a/src/android/CHIPTool/.gitignore b/examples/android/CHIPTool/.gitignore similarity index 100% rename from src/android/CHIPTool/.gitignore rename to examples/android/CHIPTool/.gitignore diff --git a/src/android/CHIPTool/.idea/codeStyles/Project.xml b/examples/android/CHIPTool/.idea/codeStyles/Project.xml similarity index 100% rename from src/android/CHIPTool/.idea/codeStyles/Project.xml rename to examples/android/CHIPTool/.idea/codeStyles/Project.xml diff --git a/src/android/CHIPTool/.idea/compiler.xml b/examples/android/CHIPTool/.idea/compiler.xml similarity index 100% rename from src/android/CHIPTool/.idea/compiler.xml rename to examples/android/CHIPTool/.idea/compiler.xml diff --git a/src/android/CHIPTool/.idea/jarRepositories.xml b/examples/android/CHIPTool/.idea/jarRepositories.xml similarity index 100% rename from src/android/CHIPTool/.idea/jarRepositories.xml rename to examples/android/CHIPTool/.idea/jarRepositories.xml diff --git a/src/android/CHIPTool/.idea/vcs.xml b/examples/android/CHIPTool/.idea/vcs.xml similarity index 100% rename from src/android/CHIPTool/.idea/vcs.xml rename to examples/android/CHIPTool/.idea/vcs.xml diff --git a/src/android/CHIPTool/README.md b/examples/android/CHIPTool/README.md similarity index 100% rename from src/android/CHIPTool/README.md rename to examples/android/CHIPTool/README.md diff --git a/src/android/CHIPTool/app/.gitignore b/examples/android/CHIPTool/app/.gitignore similarity index 100% rename from src/android/CHIPTool/app/.gitignore rename to examples/android/CHIPTool/app/.gitignore diff --git a/src/android/CHIPTool/app/CMakeLists.txt b/examples/android/CHIPTool/app/CMakeLists.txt similarity index 100% rename from src/android/CHIPTool/app/CMakeLists.txt rename to examples/android/CHIPTool/app/CMakeLists.txt diff --git a/src/android/CHIPTool/app/build.gradle b/examples/android/CHIPTool/app/build.gradle similarity index 100% rename from src/android/CHIPTool/app/build.gradle rename to examples/android/CHIPTool/app/build.gradle diff --git a/src/android/CHIPTool/app/libs/README.md b/examples/android/CHIPTool/app/libs/README.md similarity index 100% rename from src/android/CHIPTool/app/libs/README.md rename to examples/android/CHIPTool/app/libs/README.md diff --git a/src/android/CHIPTool/app/libs/jniLibs/README.md b/examples/android/CHIPTool/app/libs/jniLibs/README.md similarity index 100% rename from src/android/CHIPTool/app/libs/jniLibs/README.md rename to examples/android/CHIPTool/app/libs/jniLibs/README.md diff --git a/src/android/CHIPTool/app/proguard-rules.pro b/examples/android/CHIPTool/app/proguard-rules.pro similarity index 100% rename from src/android/CHIPTool/app/proguard-rules.pro rename to examples/android/CHIPTool/app/proguard-rules.pro diff --git a/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java b/examples/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java similarity index 100% rename from src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java rename to examples/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/CHIPDeviceControllerTest.java diff --git a/src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/ExampleInstrumentedTest.java b/examples/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/ExampleInstrumentedTest.java similarity index 100% rename from src/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/ExampleInstrumentedTest.java rename to examples/android/CHIPTool/app/src/androidTest/java/com/google/chip/chiptool/ExampleInstrumentedTest.java diff --git a/src/android/CHIPTool/app/src/main/AndroidManifest.xml b/examples/android/CHIPTool/app/src/main/AndroidManifest.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/AndroidManifest.xml rename to examples/android/CHIPTool/app/src/main/AndroidManifest.xml diff --git a/src/android/CHIPTool/app/src/main/cpp/native-lib.cpp b/examples/android/CHIPTool/app/src/main/cpp/native-lib.cpp similarity index 100% rename from src/android/CHIPTool/app/src/main/cpp/native-lib.cpp rename to examples/android/CHIPTool/app/src/main/cpp/native-lib.cpp diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/CHIPToolActivity.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/ChipClient.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/ChipClient.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/ChipClient.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/ChipClient.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/GenericChipDeviceListener.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/GenericChipDeviceListener.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/GenericChipDeviceListener.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/GenericChipDeviceListener.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/SelectActionFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/SelectActionFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/SelectActionFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/SelectActionFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationAppLauncher.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationAppLauncher.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationAppLauncher.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationAppLauncher.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationTestFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationTestFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationTestFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/attestation/AttestationTestFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/bluetooth/BluetoothManager.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/bluetooth/BluetoothManager.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/bluetooth/BluetoothManager.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/bluetooth/BluetoothManager.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/BasicClientFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/BasicClientFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/BasicClientFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/BasicClientFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OpCredClientFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OpCredClientFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OpCredClientFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OpCredClientFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/SensorClientFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/SensorClientFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/SensorClientFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/SensorClientFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterDetailFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionHistoryFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionHistoryFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionHistoryFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionHistoryFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionSettingsFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionSettingsFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionSettingsFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionSettingsFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/EndpointAdapter.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/EndpointAdapter.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/EndpointAdapter.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/EndpointAdapter.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommand.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommand.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommand.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommand.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/HistoryCommandAdapter.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/endpointItem.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/endpointItem.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/endpointItem.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/endpointItem.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/ProvisionNetworkType.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/ProvisionNetworkType.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/ProvisionNetworkType.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/ProvisionNetworkType.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/BarcodeFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/BarcodeFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/BarcodeFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/BarcodeFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPBarcodeProcessor.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPBarcodeProcessor.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPBarcodeProcessor.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPBarcodeProcessor.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceDetailsFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceDetailsFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceDetailsFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceDetailsFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceInfo.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceInfo.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceInfo.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPDeviceInfo.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPLedgerDetailsFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPLedgerDetailsFragment.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPLedgerDetailsFragment.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CHIPLedgerDetailsFragment.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CameraSourceView.java b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CameraSourceView.java similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CameraSourceView.java rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/CameraSourceView.java diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/QrCodeInfo.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/QrCodeInfo.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/QrCodeInfo.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/setuppayloadscanner/QrCodeInfo.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/DeviceIdUtil.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/DeviceIdUtil.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/DeviceIdUtil.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/DeviceIdUtil.kt diff --git a/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/FragmentUtil.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/FragmentUtil.kt similarity index 100% rename from src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/FragmentUtil.kt rename to examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/util/FragmentUtil.kt diff --git a/src/android/CHIPTool/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/examples/android/CHIPTool/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to examples/android/CHIPTool/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_done_icon.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_done_icon.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_done_icon.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_done_icon.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_error_icon.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_error_icon.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_error_icon.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_error_icon.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_history.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_history.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_history.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_history.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_launcher_background.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_launcher_background.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_network_selected_icon.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_network_selected_icon.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_network_selected_icon.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_network_selected_icon.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_settings.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_settings.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_settings.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_settings.xml diff --git a/src/android/CHIPTool/app/src/main/res/drawable/ic_wireless_network_icon.xml b/examples/android/CHIPTool/app/src/main/res/drawable/ic_wireless_network_icon.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/drawable/ic_wireless_network_icon.xml rename to examples/android/CHIPTool/app/src/main/res/drawable/ic_wireless_network_icon.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/address_commissioning_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/address_commissioning_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/address_commissioning_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/address_commissioning_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/address_update_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/address_update_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/address_update_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/address_update_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/attestation_test_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/attestation_test_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/attestation_test_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/attestation_test_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/barcode_activity.xml b/examples/android/CHIPTool/app/src/main/res/layout/barcode_activity.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/barcode_activity.xml rename to examples/android/CHIPTool/app/src/main/res/layout/barcode_activity.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/barcode_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/barcode_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/barcode_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/barcode_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/barcode_vendor_tag.xml b/examples/android/CHIPTool/app/src/main/res/layout/barcode_vendor_tag.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/barcode_vendor_tag.xml rename to examples/android/CHIPTool/app/src/main/res/layout/barcode_vendor_tag.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/basic_client_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/basic_client_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/basic_client_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/basic_client_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/chip_device_info_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/chip_device_info_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/chip_device_info_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/chip_device_info_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/chip_ledger_info_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/chip_ledger_info_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/chip_ledger_info_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/chip_ledger_info_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_callback_item.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_detail_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_detail_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_detail_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_detail_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item_info.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item_info.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item_info.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_history_item_info.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_settings_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_settings_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_interaction_settings_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_interaction_settings_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/cluster_parameter_item.xml b/examples/android/CHIPTool/app/src/main/res/layout/cluster_parameter_item.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/cluster_parameter_item.xml rename to examples/android/CHIPTool/app/src/main/res/layout/cluster_parameter_item.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/endpoint_item.xml b/examples/android/CHIPTool/app/src/main/res/layout/endpoint_item.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/endpoint_item.xml rename to examples/android/CHIPTool/app/src/main/res/layout/endpoint_item.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/enter_thread_network_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/enter_thread_network_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/enter_thread_network_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/enter_thread_network_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/enter_wifi_network_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/enter_wifi_network_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/enter_wifi_network_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/enter_wifi_network_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/multi_admin_client_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/multi_admin_client_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/multi_admin_client_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/multi_admin_client_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/on_off_client_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/on_off_client_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/on_off_client_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/on_off_client_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/op_cred_client_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/op_cred_client_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/op_cred_client_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/op_cred_client_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/read_dialog.xml b/examples/android/CHIPTool/app/src/main/res/layout/read_dialog.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/read_dialog.xml rename to examples/android/CHIPTool/app/src/main/res/layout/read_dialog.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/select_action_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/select_action_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/select_action_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/select_action_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/sensor_client_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/sensor_client_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/sensor_client_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/sensor_client_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/single_fragment_container.xml b/examples/android/CHIPTool/app/src/main/res/layout/single_fragment_container.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/single_fragment_container.xml rename to examples/android/CHIPTool/app/src/main/res/layout/single_fragment_container.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/subscribe_dialog.xml b/examples/android/CHIPTool/app/src/main/res/layout/subscribe_dialog.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/subscribe_dialog.xml rename to examples/android/CHIPTool/app/src/main/res/layout/subscribe_dialog.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/top_activity.xml b/examples/android/CHIPTool/app/src/main/res/layout/top_activity.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/top_activity.xml rename to examples/android/CHIPTool/app/src/main/res/layout/top_activity.xml diff --git a/src/android/CHIPTool/app/src/main/res/layout/wildcard_fragment.xml b/examples/android/CHIPTool/app/src/main/res/layout/wildcard_fragment.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/layout/wildcard_fragment.xml rename to examples/android/CHIPTool/app/src/main/res/layout/wildcard_fragment.xml diff --git a/src/android/CHIPTool/app/src/main/res/menu/cluster_interaction_bottom_navigation.xml b/examples/android/CHIPTool/app/src/main/res/menu/cluster_interaction_bottom_navigation.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/menu/cluster_interaction_bottom_navigation.xml rename to examples/android/CHIPTool/app/src/main/res/menu/cluster_interaction_bottom_navigation.xml diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/examples/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to examples/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/examples/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to examples/android/CHIPTool/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher.png b/examples/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/examples/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher.png b/examples/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/examples/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/src/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/examples/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from src/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to examples/android/CHIPTool/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/src/android/CHIPTool/app/src/main/res/values/arrays.xml b/examples/android/CHIPTool/app/src/main/res/values/arrays.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/values/arrays.xml rename to examples/android/CHIPTool/app/src/main/res/values/arrays.xml diff --git a/src/android/CHIPTool/app/src/main/res/values/colors.xml b/examples/android/CHIPTool/app/src/main/res/values/colors.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/values/colors.xml rename to examples/android/CHIPTool/app/src/main/res/values/colors.xml diff --git a/src/android/CHIPTool/app/src/main/res/values/strings.xml b/examples/android/CHIPTool/app/src/main/res/values/strings.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/values/strings.xml rename to examples/android/CHIPTool/app/src/main/res/values/strings.xml diff --git a/src/android/CHIPTool/app/src/main/res/values/styles.xml b/examples/android/CHIPTool/app/src/main/res/values/styles.xml similarity index 100% rename from src/android/CHIPTool/app/src/main/res/values/styles.xml rename to examples/android/CHIPTool/app/src/main/res/values/styles.xml diff --git a/src/android/CHIPTool/app/src/test/java/com/google/chip/chiptool/ExampleUnitTest.java b/examples/android/CHIPTool/app/src/test/java/com/google/chip/chiptool/ExampleUnitTest.java similarity index 100% rename from src/android/CHIPTool/app/src/test/java/com/google/chip/chiptool/ExampleUnitTest.java rename to examples/android/CHIPTool/app/src/test/java/com/google/chip/chiptool/ExampleUnitTest.java diff --git a/src/android/CHIPTool/build.gradle b/examples/android/CHIPTool/build.gradle similarity index 100% rename from src/android/CHIPTool/build.gradle rename to examples/android/CHIPTool/build.gradle diff --git a/src/android/CHIPTool/chip-library/.gitignore b/examples/android/CHIPTool/chip-library/.gitignore similarity index 100% rename from src/android/CHIPTool/chip-library/.gitignore rename to examples/android/CHIPTool/chip-library/.gitignore diff --git a/src/android/CHIPTool/chip-library/build.gradle b/examples/android/CHIPTool/chip-library/build.gradle similarity index 100% rename from src/android/CHIPTool/chip-library/build.gradle rename to examples/android/CHIPTool/chip-library/build.gradle diff --git a/src/android/CHIPTool/chip-library/consumer-rules.pro b/examples/android/CHIPTool/chip-library/consumer-rules.pro similarity index 100% rename from src/android/CHIPTool/chip-library/consumer-rules.pro rename to examples/android/CHIPTool/chip-library/consumer-rules.pro diff --git a/src/android/CHIPTool/chip-library/proguard-rules.pro b/examples/android/CHIPTool/chip-library/proguard-rules.pro similarity index 100% rename from src/android/CHIPTool/chip-library/proguard-rules.pro rename to examples/android/CHIPTool/chip-library/proguard-rules.pro diff --git a/src/android/CHIPTool/chip-library/src/main/AndroidManifest.xml b/examples/android/CHIPTool/chip-library/src/main/AndroidManifest.xml similarity index 100% rename from src/android/CHIPTool/chip-library/src/main/AndroidManifest.xml rename to examples/android/CHIPTool/chip-library/src/main/AndroidManifest.xml diff --git a/src/android/CHIPTool/gradle.properties b/examples/android/CHIPTool/gradle.properties similarity index 100% rename from src/android/CHIPTool/gradle.properties rename to examples/android/CHIPTool/gradle.properties diff --git a/src/android/CHIPTool/gradle/wrapper/gradle-wrapper.jar b/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from src/android/CHIPTool/gradle/wrapper/gradle-wrapper.jar rename to examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.jar diff --git a/src/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties b/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from src/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties rename to examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties diff --git a/src/android/CHIPTool/gradlew b/examples/android/CHIPTool/gradlew similarity index 100% rename from src/android/CHIPTool/gradlew rename to examples/android/CHIPTool/gradlew diff --git a/src/android/CHIPTool/gradlew.bat b/examples/android/CHIPTool/gradlew.bat similarity index 100% rename from src/android/CHIPTool/gradlew.bat rename to examples/android/CHIPTool/gradlew.bat diff --git a/src/android/CHIPTool/settings.gradle b/examples/android/CHIPTool/settings.gradle similarity index 100% rename from src/android/CHIPTool/settings.gradle rename to examples/android/CHIPTool/settings.gradle diff --git a/examples/lighting-app/nrfconnect/README.md b/examples/lighting-app/nrfconnect/README.md index 1675ef5c376ec4..ba5e5b4eab6bb9 100644 --- a/examples/lighting-app/nrfconnect/README.md +++ b/examples/lighting-app/nrfconnect/README.md @@ -581,7 +581,7 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/examples/lock-app/nrfconnect/README.md b/examples/lock-app/nrfconnect/README.md index af86e211cbd0df..9ffa39fc082e8e 100644 --- a/examples/lock-app/nrfconnect/README.md +++ b/examples/lock-app/nrfconnect/README.md @@ -502,7 +502,7 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/examples/pump-app/cc13x2x7_26x2x7/README.md b/examples/pump-app/cc13x2x7_26x2x7/README.md index d0de9a55929ce1..cb425e13f45dbc 100644 --- a/examples/pump-app/cc13x2x7_26x2x7/README.md +++ b/examples/pump-app/cc13x2x7_26x2x7/README.md @@ -147,7 +147,7 @@ Router][ot_border_router_setup]. The first step to bring the Matter device onto the network is to provision it. Our example accomplishes this with Bluetooth Low Energy (BLE) and the -[CHIPTool](../../../src/android/CHIPTool/README.md) mobile app. +[CHIPTool](../../../examples/android/CHIPTool/README.md) mobile app. #### Bluetooth LE Advertising diff --git a/examples/pump-app/nrfconnect/README.md b/examples/pump-app/nrfconnect/README.md index 5d53db56f22af6..4669a70486592c 100644 --- a/examples/pump-app/nrfconnect/README.md +++ b/examples/pump-app/nrfconnect/README.md @@ -498,6 +498,6 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/examples/pump-controller-app/cc13x2x7_26x2x7/README.md b/examples/pump-controller-app/cc13x2x7_26x2x7/README.md index 47cc63f680bb07..5b17d395da1b47 100644 --- a/examples/pump-controller-app/cc13x2x7_26x2x7/README.md +++ b/examples/pump-controller-app/cc13x2x7_26x2x7/README.md @@ -148,7 +148,7 @@ Router][ot_border_router_setup]. The first step to bring the Matter device onto the network is to provision it. Our example accomplishes this with Bluetooth Low Energy (BLE) and the -[CHIPTool](../../../src/android/CHIPTool/README.md) mobile app. +[CHIPTool](../../../examples/android/CHIPTool/README.md) mobile app. #### Bluetooth LE Advertising diff --git a/examples/pump-controller-app/nrfconnect/README.md b/examples/pump-controller-app/nrfconnect/README.md index d3111c769a5353..c1a84c893773ba 100644 --- a/examples/pump-controller-app/nrfconnect/README.md +++ b/examples/pump-controller-app/nrfconnect/README.md @@ -498,6 +498,6 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a CHIP-enabled Thread network. diff --git a/examples/window-app/nrfconnect/README.md b/examples/window-app/nrfconnect/README.md index 8fbabd6f23f2b5..d23a676587beff 100644 --- a/examples/window-app/nrfconnect/README.md +++ b/examples/window-app/nrfconnect/README.md @@ -519,7 +519,7 @@ learn how to use command-line interface of the application. Read the [Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md) -to see how to use [CHIPTool](../../../src/android/CHIPTool/README.md) for +to see how to use [CHIPTool](../../../examples/android/CHIPTool/README.md) for Android smartphones to commission and control the application within a Matter-enabled Thread network. diff --git a/scripts/build/builders/android.py b/scripts/build/builders/android.py index 809ac066c66884..f16f8964a8db0a 100644 --- a/scripts/build/builders/android.py +++ b/scripts/build/builders/android.py @@ -165,13 +165,13 @@ def copyToSrcAndroid(self): # when using dry run. jnilibs_dir = os.path.join( self.root, - "src/android/", + "examples/android/", self.app.AppName(), "app/libs/jniLibs", self.board.AbiName(), ) libs_dir = os.path.join( - self.root, "src/android/", self.app.AppName(), "app/libs" + self.root, "examples/android/", self.app.AppName(), "app/libs" ) self._Execute( ["mkdir", "-p", jnilibs_dir], title="Prepare Native libs " + self.identifier @@ -272,9 +272,9 @@ def gradlewBuildSrcAndroid(self): # App compilation self._Execute( [ - "%s/src/android/%s/gradlew" % (self.root, self.app.AppName()), + "%s/examples/android/%s/gradlew" % (self.root, self.app.AppName()), "-p", - "%s/src/android/%s" % (self.root, self.app.AppName()), + "%s/examples/android/%s" % (self.root, self.app.AppName()), "-PmatterBuildSrcDir=%s" % self.output_dir, "-PmatterSdkSourceBuild=false", "-PbuildDir=%s" % self.output_dir, @@ -393,9 +393,9 @@ def _build(self): # TODO: Android Gradle with module and -PbuildDir= will caused issue, remove -PbuildDir= self._Execute( [ - "%s/src/android/%s/gradlew" % (self.root, self.app.AppName()), + "%s/examples/android/%s/gradlew" % (self.root, self.app.AppName()), "-p", - "%s/src/android/%s" % (self.root, self.app.AppName()), + "%s/examples/android/%s" % (self.root, self.app.AppName()), "-PmatterBuildSrcDir=%s" % self.output_dir, "-PmatterSdkSourceBuild=true", "-PmatterSourceBuildAbiFilters=%s" % self.board.AbiName(), @@ -423,7 +423,7 @@ def build_outputs(self): self.app.AppName() + "-debug.apk": os.path.join( self.root, - "src/android", + "examples/android", self.app.AppName(), "app/build/outputs/apk/debug/app-debug.apk", ) diff --git a/scripts/build/testdata/build_all_except_host.txt b/scripts/build/testdata/build_all_except_host.txt index 1fa18a6a313842..127b9a9f329724 100644 --- a/scripts/build/testdata/build_all_except_host.txt +++ b/scripts/build/testdata/build_all_except_host.txt @@ -1292,37 +1292,37 @@ ninja -C {out}/ameba-amebad-light ninja -C {out}/ameba-amebad-pigweed # Building APP android-androidstudio-arm-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=armeabi-v7a assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=armeabi-v7a assembleDebug # Building APP android-androidstudio-arm64-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=arm64-v8a assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=arm64-v8a assembleDebug # Building APP android-androidstudio-x64-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86_64 assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86_64 assembleDebug # Building APP android-androidstudio-x86-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x86-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86 assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x86-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86 assembleDebug # Building JNI android-arm-chip-tool ninja -C {out}/android-arm-chip-tool # Prepare Native libs android-arm-chip-tool -mkdir -p {root}/src/android/CHIPTool/app/libs/jniLibs/armeabi-v7a +mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libSetupPayloadParser.so {root}/src/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libSetupPayloadParser.so +cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libSetupPayloadParser.so -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libCHIPController.so {root}/src/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libCHIPController.so +cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libCHIPController.so -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libc++_shared.so {root}/src/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libc++_shared.so +cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libc++_shared.so -cp {out}/android-arm-chip-tool/lib/src/controller/java/CHIPController.jar {root}/src/android/CHIPTool/app/libs/CHIPController.jar +cp {out}/android-arm-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar -cp {out}/android-arm-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/src/android/CHIPTool/app/libs/SetupPayloadParser.jar +cp {out}/android-arm-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar -cp {out}/android-arm-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/src/android/CHIPTool/app/libs/AndroidPlatform.jar +cp {out}/android-arm-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar # Building APP android-arm-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-chip-tool assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-chip-tool assembleDebug # Building JNI android-arm-tv-casting-app ninja -C {out}/android-arm-tv-casting-app @@ -1373,43 +1373,43 @@ cp {out}/android-arm-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/ ninja -C {out}/android-arm64-chip-test # Prepare Native libs android-arm64-chip-test -mkdir -p {root}/src/android/CHIPTest/app/libs/jniLibs/arm64-v8a +mkdir -p {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/src/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so +cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libCHIPController.so {root}/src/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libCHIPController.so +cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libCHIPController.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libCHIPController.so -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libc++_shared.so {root}/src/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libc++_shared.so +cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libc++_shared.so -cp {out}/android-arm64-chip-test/lib/src/controller/java/CHIPController.jar {root}/src/android/CHIPTest/app/libs/CHIPController.jar +cp {out}/android-arm64-chip-test/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTest/app/libs/CHIPController.jar -cp {out}/android-arm64-chip-test/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/src/android/CHIPTest/app/libs/SetupPayloadParser.jar +cp {out}/android-arm64-chip-test/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTest/app/libs/SetupPayloadParser.jar -cp {out}/android-arm64-chip-test/lib/src/platform/android/AndroidPlatform.jar {root}/src/android/CHIPTest/app/libs/AndroidPlatform.jar +cp {out}/android-arm64-chip-test/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTest/app/libs/AndroidPlatform.jar # Building APP android-arm64-chip-test -{root}/src/android/CHIPTest/gradlew -p {root}/src/android/CHIPTest -PmatterBuildSrcDir={out}/android-arm64-chip-test -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-test assembleDebug +{root}/examples/android/CHIPTest/gradlew -p {root}/examples/android/CHIPTest -PmatterBuildSrcDir={out}/android-arm64-chip-test -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-test assembleDebug # Building JNI android-arm64-chip-tool ninja -C {out}/android-arm64-chip-tool # Prepare Native libs android-arm64-chip-tool -mkdir -p {root}/src/android/CHIPTool/app/libs/jniLibs/arm64-v8a +mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/src/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libCHIPController.so {root}/src/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libCHIPController.so +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libCHIPController.so -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libc++_shared.so {root}/src/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libc++_shared.so +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libc++_shared.so -cp {out}/android-arm64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/src/android/CHIPTool/app/libs/CHIPController.jar +cp {out}/android-arm64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar -cp {out}/android-arm64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/src/android/CHIPTool/app/libs/SetupPayloadParser.jar +cp {out}/android-arm64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar -cp {out}/android-arm64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/src/android/CHIPTool/app/libs/AndroidPlatform.jar +cp {out}/android-arm64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar # Building APP android-arm64-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-tool assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-tool assembleDebug # Building JNI android-arm64-tv-casting-app ninja -C {out}/android-arm64-tv-casting-app @@ -1460,22 +1460,22 @@ cp {out}/android-arm64-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/Ap ninja -C {out}/android-x64-chip-tool # Prepare Native libs android-x64-chip-tool -mkdir -p {root}/src/android/CHIPTool/app/libs/jniLibs/x86_64 +mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64 -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libSetupPayloadParser.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86_64/libSetupPayloadParser.so +cp {out}/android-x64-chip-tool/lib/jni/x86_64/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libSetupPayloadParser.so -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libCHIPController.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86_64/libCHIPController.so +cp {out}/android-x64-chip-tool/lib/jni/x86_64/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libCHIPController.so -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libc++_shared.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86_64/libc++_shared.so +cp {out}/android-x64-chip-tool/lib/jni/x86_64/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libc++_shared.so -cp {out}/android-x64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/src/android/CHIPTool/app/libs/CHIPController.jar +cp {out}/android-x64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar -cp {out}/android-x64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/src/android/CHIPTool/app/libs/SetupPayloadParser.jar +cp {out}/android-x64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar -cp {out}/android-x64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/src/android/CHIPTool/app/libs/AndroidPlatform.jar +cp {out}/android-x64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar # Building APP android-x64-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-x64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x64-chip-tool assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-x64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x64-chip-tool assembleDebug # Building JNI android-x64-tv-server ninja -C {out}/android-x64-tv-server @@ -1507,22 +1507,22 @@ cp {out}/android-x64-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/ ninja -C {out}/android-x86-chip-tool # Prepare Native libs android-x86-chip-tool -mkdir -p {root}/src/android/CHIPTool/app/libs/jniLibs/x86 +mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/x86 -cp {out}/android-x86-chip-tool/lib/jni/x86/libSetupPayloadParser.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86/libSetupPayloadParser.so +cp {out}/android-x86-chip-tool/lib/jni/x86/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libSetupPayloadParser.so -cp {out}/android-x86-chip-tool/lib/jni/x86/libCHIPController.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86/libCHIPController.so +cp {out}/android-x86-chip-tool/lib/jni/x86/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libCHIPController.so -cp {out}/android-x86-chip-tool/lib/jni/x86/libc++_shared.so {root}/src/android/CHIPTool/app/libs/jniLibs/x86/libc++_shared.so +cp {out}/android-x86-chip-tool/lib/jni/x86/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libc++_shared.so -cp {out}/android-x86-chip-tool/lib/src/controller/java/CHIPController.jar {root}/src/android/CHIPTool/app/libs/CHIPController.jar +cp {out}/android-x86-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar -cp {out}/android-x86-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/src/android/CHIPTool/app/libs/SetupPayloadParser.jar +cp {out}/android-x86-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar -cp {out}/android-x86-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/src/android/CHIPTool/app/libs/AndroidPlatform.jar +cp {out}/android-x86-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar # Building APP android-x86-chip-tool -{root}/src/android/CHIPTool/gradlew -p {root}/src/android/CHIPTool -PmatterBuildSrcDir={out}/android-x86-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x86-chip-tool assembleDebug +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-x86-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x86-chip-tool assembleDebug # Building JNI android-x86-tv-server ninja -C {out}/android-x86-tv-server