diff --git a/examples/tv-app/android/App/.idea/.name b/examples/tv-app/android/App/.idea/.name
index 55b67a119f278a..bd419725becb4e 100644
--- a/examples/tv-app/android/App/.idea/.name
+++ b/examples/tv-app/android/App/.idea/.name
@@ -1 +1 @@
-CHIPTVServer
\ No newline at end of file
+MatterTVAndroid
\ No newline at end of file
diff --git a/examples/tv-app/android/App/.idea/gradle.xml b/examples/tv-app/android/App/.idea/gradle.xml
index 526b4c25c6813e..86ed2c6e5bddaf 100644
--- a/examples/tv-app/android/App/.idea/gradle.xml
+++ b/examples/tv-app/android/App/.idea/gradle.xml
@@ -10,7 +10,7 @@
-
+
diff --git a/examples/tv-app/android/App/.idea/misc.xml b/examples/tv-app/android/App/.idea/misc.xml
index 2a4d5b521db9a0..17b7ab8d65b1ac 100644
--- a/examples/tv-app/android/App/.idea/misc.xml
+++ b/examples/tv-app/android/App/.idea/misc.xml
@@ -1,5 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/tv-app/android/App/app/src/main/res/values/strings.xml b/examples/tv-app/android/App/app/src/main/res/values/strings.xml
deleted file mode 100644
index a2cc2fe8dff5fe..00000000000000
--- a/examples/tv-app/android/App/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- CHIPTVServer
-
\ No newline at end of file
diff --git a/examples/tv-app/android/App/app/.gitignore b/examples/tv-app/android/App/platform-app/.gitignore
similarity index 100%
rename from examples/tv-app/android/App/app/.gitignore
rename to examples/tv-app/android/App/platform-app/.gitignore
diff --git a/examples/tv-app/android/App/app/build.gradle b/examples/tv-app/android/App/platform-app/build.gradle
similarity index 90%
rename from examples/tv-app/android/App/app/build.gradle
rename to examples/tv-app/android/App/platform-app/build.gradle
index 128e1438b79bb1..8c9d066650ed5f 100644
--- a/examples/tv-app/android/App/app/build.gradle
+++ b/examples/tv-app/android/App/platform-app/build.gradle
@@ -6,7 +6,7 @@ android {
compileSdk 30
defaultConfig {
- applicationId "com.tcl.chip.chiptvserver"
+ applicationId "com.matter.tv.server"
minSdk 24
targetSdk 30
versionCode 1
@@ -39,7 +39,7 @@ android {
sourceSets {
main {
- jniLibs.srcDirs = ['libs/jniLibs']
+ jniLibs.srcDirs = ['../app/libs/jniLibs']
// uncomment this code to debug
// java.srcDirs = [
@@ -54,7 +54,7 @@ android {
}
dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar","*.so"])
+ implementation fileTree(dir: "../app/libs", include: ["*.jar","*.so"])
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
diff --git a/examples/tv-app/android/App/app/libs/README.md b/examples/tv-app/android/App/platform-app/libs/README.md
similarity index 100%
rename from examples/tv-app/android/App/app/libs/README.md
rename to examples/tv-app/android/App/platform-app/libs/README.md
diff --git a/examples/tv-app/android/App/app/libs/jniLibs/README.md b/examples/tv-app/android/App/platform-app/libs/jniLibs/README.md
similarity index 100%
rename from examples/tv-app/android/App/app/libs/jniLibs/README.md
rename to examples/tv-app/android/App/platform-app/libs/jniLibs/README.md
diff --git a/examples/tv-app/android/App/app/proguard-rules.pro b/examples/tv-app/android/App/platform-app/proguard-rules.pro
similarity index 100%
rename from examples/tv-app/android/App/app/proguard-rules.pro
rename to examples/tv-app/android/App/platform-app/proguard-rules.pro
diff --git a/examples/tv-app/android/App/app/src/androidTest/java/com/tcl/chip/chiptvserver/ExampleInstrumentedTest.java b/examples/tv-app/android/App/platform-app/src/androidTest/java/com/matter/tv/server/ExampleInstrumentedTest.java
similarity index 85%
rename from examples/tv-app/android/App/app/src/androidTest/java/com/tcl/chip/chiptvserver/ExampleInstrumentedTest.java
rename to examples/tv-app/android/App/platform-app/src/androidTest/java/com/matter/tv/server/ExampleInstrumentedTest.java
index 9bd1c270ec6c1a..e24471c0fab77e 100644
--- a/examples/tv-app/android/App/app/src/androidTest/java/com/tcl/chip/chiptvserver/ExampleInstrumentedTest.java
+++ b/examples/tv-app/android/App/platform-app/src/androidTest/java/com/matter/tv/server/ExampleInstrumentedTest.java
@@ -1,4 +1,4 @@
-package com.tcl.chip.chiptvserver;
+package com.matter.tv.server;
import static org.junit.Assert.*;
@@ -19,6 +19,6 @@ public class ExampleInstrumentedTest {
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
- assertEquals("com.tcl.chip.chiptvslave", appContext.getPackageName());
+ assertEquals("com.matter.tv.server", appContext.getPackageName());
}
}
diff --git a/examples/tv-app/android/App/app/src/main/AndroidManifest.xml b/examples/tv-app/android/App/platform-app/src/main/AndroidManifest.xml
similarity index 81%
rename from examples/tv-app/android/App/app/src/main/AndroidManifest.xml
rename to examples/tv-app/android/App/platform-app/src/main/AndroidManifest.xml
index a51122c976037d..e9a3f07fed5111 100644
--- a/examples/tv-app/android/App/app/src/main/AndroidManifest.xml
+++ b/examples/tv-app/android/App/platform-app/src/main/AndroidManifest.xml
@@ -1,6 +1,6 @@
+ package="com.matter.tv.server">
@@ -19,9 +19,9 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
- android:name=".ChipTvServerApplication"
- android:theme="@style/Theme.CHIPTVSlave">
-
+
@@ -29,7 +29,7 @@
-
+
\ No newline at end of file
diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/MainActivity.java b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MainActivity.java
similarity index 96%
rename from examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/MainActivity.java
rename to examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MainActivity.java
index 08816f922a5746..e16937f8248324 100644
--- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/MainActivity.java
+++ b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MainActivity.java
@@ -1,4 +1,4 @@
-package com.tcl.chip.chiptvserver;
+package com.matter.tv.server;
import android.graphics.Bitmap;
import android.os.Bundle;
@@ -10,7 +10,7 @@
import chip.setuppayload.DiscoveryCapability;
import chip.setuppayload.SetupPayload;
import chip.setuppayload.SetupPayloadParser;
-import com.tcl.chip.chiptvserver.service.MatterServant;
+import com.matter.tv.server.service.MatterServant;
import java.util.HashSet;
public class MainActivity extends AppCompatActivity {
diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/ChipTvServerApplication.java b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MatterTvServerApplication.java
similarity index 75%
rename from examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/ChipTvServerApplication.java
rename to examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MatterTvServerApplication.java
index 79a13d9a0cdf18..c2f15790dc225f 100644
--- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/ChipTvServerApplication.java
+++ b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MatterTvServerApplication.java
@@ -1,11 +1,11 @@
-package com.tcl.chip.chiptvserver;
+package com.matter.tv.server;
import android.app.Application;
import android.content.Intent;
import android.os.Build;
-import com.tcl.chip.chiptvserver.service.MatterServantService;
+import com.matter.tv.server.service.MatterServantService;
-public class ChipTvServerApplication extends Application {
+public class MatterTvServerApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/QRUtils.java b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/QRUtils.java
similarity index 95%
rename from examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/QRUtils.java
rename to examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/QRUtils.java
index 7a408c233fd2fa..c7b05e0f14ec86 100644
--- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/QRUtils.java
+++ b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/QRUtils.java
@@ -1,4 +1,4 @@
-package com.tcl.chip.chiptvserver;
+package com.matter.tv.server;
import android.graphics.Bitmap;
import android.graphics.Color;
diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServant.java
similarity index 99%
rename from examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java
rename to examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServant.java
index 8e24c3e17967f8..bf1e85019931dc 100644
--- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServant.java
+++ b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServant.java
@@ -15,7 +15,7 @@
* limitations under the License.
*
*/
-package com.tcl.chip.chiptvserver.service;
+package com.matter.tv.server.service;
import android.content.Context;
import androidx.annotation.NonNull;
diff --git a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServantService.java b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServantService.java
similarity index 93%
rename from examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServantService.java
rename to examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServantService.java
index a65ebffa505aa2..9efc03f29d2a81 100644
--- a/examples/tv-app/android/App/app/src/main/java/com/tcl/chip/chiptvserver/service/MatterServantService.java
+++ b/examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/service/MatterServantService.java
@@ -1,4 +1,4 @@
-package com.tcl.chip.chiptvserver.service;
+package com.matter.tv.server.service;
import android.app.Notification;
import android.app.NotificationChannel;
@@ -10,8 +10,8 @@
import android.os.IBinder;
import androidx.annotation.Nullable;
import androidx.core.app.NotificationCompat;
-import com.tcl.chip.chiptvserver.MainActivity;
-import com.tcl.chip.chiptvserver.R;
+import com.matter.tv.server.MainActivity;
+import com.matter.tv.server.R;
public class MatterServantService extends Service {
private static final String CHANNEL_ID = "Matter";
diff --git a/examples/tv-app/android/App/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/examples/tv-app/android/App/platform-app/src/main/res/drawable-v24/ic_launcher_foreground.xml
similarity index 100%
rename from examples/tv-app/android/App/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
rename to examples/tv-app/android/App/platform-app/src/main/res/drawable-v24/ic_launcher_foreground.xml
diff --git a/examples/tv-app/android/App/app/src/main/res/drawable/ic_launcher_background.xml b/examples/tv-app/android/App/platform-app/src/main/res/drawable/ic_launcher_background.xml
similarity index 100%
rename from examples/tv-app/android/App/app/src/main/res/drawable/ic_launcher_background.xml
rename to examples/tv-app/android/App/platform-app/src/main/res/drawable/ic_launcher_background.xml
diff --git a/examples/tv-app/android/App/app/src/main/res/layout/activity_main.xml b/examples/tv-app/android/App/platform-app/src/main/res/layout/activity_main.xml
similarity index 97%
rename from examples/tv-app/android/App/app/src/main/res/layout/activity_main.xml
rename to examples/tv-app/android/App/platform-app/src/main/res/layout/activity_main.xml
index 32a1ab4bf46648..caa0d4e651d450 100644
--- a/examples/tv-app/android/App/app/src/main/res/layout/activity_main.xml
+++ b/examples/tv-app/android/App/platform-app/src/main/res/layout/activity_main.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".MainActivity">
+ tools:context="com.matter.tv.server.MainActivity">
-