Sorry for replying to you so late. Recently we thought about how to use the APN function on VIM3.
Because APN is an exclusive function of mobile phones and our TV settings do not support it, I have tried to compile the Android native Settings into the VIM3 system in the past two days and retain the TvSettings settings. I found that the APN function can jump to the native setting normally. Settings’ com.android.settings/.Settings$ApnSettingsActivity service, so this method is feasible. I will post the places that need to be modified below.
Just add Settings under the device/khadas path and compile it.
diff --git a/common/products/mbox/product_mbox.mk b/common/products/mbox/product_mbox.mk
index 1e930fe..3b5e63b 100755
--- a/common/products/mbox/product_mbox.mk
+++ b/common/products/mbox/product_mbox.mk
@@ -111,6 +111,7 @@ endif
#Tvsettings
PRODUCT_PACKAGES += \
+ Settings \
TvSettings \
DroidTvSettings \
SchPwrOnOff \
When there are two settings in the system, a selection box will pop up at startup to let you choose one as the main setting. If you don’t want to see this selection box, follow the modifications below to remove LAUNCHER and FallbackHome.
Under the device/khadas path
diff --git a/kvim3/overlay/packages/apps/Settings/AndroidManifest.xml b/kvim3/overlay/packages/apps/Settings/AndroidManifest.xml
index aca050a..a620916 100644
--- a/kvim3/overlay/packages/apps/Settings/AndroidManifest.xml
+++ b/kvim3/overlay/packages/apps/Settings/AndroidManifest.xml
@@ -119,7 +119,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity-alias>
@@ -2404,18 +2403,6 @@
</intent-filter>
</activity>
- <!-- Triggered when user-selected home app isn't encryption aware -->
- <activity android:name=".FallbackHome"
- android:excludeFromRecents="true"
- android:screenOrientation="nosensor"
- android:theme="@style/FallbackHome">
- <intent-filter android:priority="-1000">
- <action android:name="android.intent.action.MAIN" />
- <!-- <category android:name="android.intent.category.HOME" /> -->
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
-
<activity android:name=".CryptKeeper$FadeToBlack"
android:immersive="true"
android:launchMode="singleTop"
diff --git a/kvim3l/overlay/packages/apps/Settings/AndroidManifest.xml b/kvim3l/overlay/packages/apps/Settings/AndroidManifest.xml
index aca050a..a620916 100644
--- a/kvim3l/overlay/packages/apps/Settings/AndroidManifest.xml
+++ b/kvim3l/overlay/packages/apps/Settings/AndroidManifest.xml
@@ -119,7 +119,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity-alias>
@@ -2404,18 +2403,6 @@
</intent-filter>
</activity>
- <!-- Triggered when user-selected home app isn't encryption aware -->
- <activity android:name=".FallbackHome"
- android:excludeFromRecents="true"
- android:screenOrientation="nosensor"
- android:theme="@style/FallbackHome">
- <intent-filter android:priority="-1000">
- <action android:name="android.intent.action.MAIN" />
- <!-- <category android:name="android.intent.category.HOME" /> -->
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
-
<activity android:name=".CryptKeeper$FadeToBlack"
android:immersive="true"
android:launchMode="singleTop"
Under the packages/apps/Settings path
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 27132165b9..6e5e526fff 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -132,7 +132,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity-alias>
@@ -2346,19 +2345,6 @@
</intent-filter>
</activity>
- <!-- Triggered when user-selected home app isn't encryption aware -->
- <activity android:name=".FallbackHome"
- android:excludeFromRecents="true"
- android:label=""
- android:screenOrientation="nosensor"
- android:theme="@style/FallbackHome">
- <intent-filter android:priority="-1000">
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.HOME" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
-
<activity android:name=".CryptKeeper$FadeToBlack"
android:immersive="true"
android:launchMode="singleTop"