Browse Source

腕表应用设置为常驻内存模式

weizhengliang 10 months ago
parent
commit
819375c14e
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/src/main/AndroidManifest.xml
  2. 1 0
      app/src/main/sharedUserId/AndroidManifest.xml

+ 1 - 0
app/src/main/AndroidManifest.xml

@@ -35,6 +35,7 @@
         android:label="@string/wdkl_app_name"
         android:supportsRtl="true"
         tools:replace="android:label"
+        android:persistent="true"
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:theme="@style/MyAppTheme">

+ 1 - 0
app/src/main/sharedUserId/AndroidManifest.xml

@@ -35,6 +35,7 @@
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:sharedUserId="android.uid.system"
+        android:persistent="true"
         android:extractNativeLibs="true"
         android:theme="@style/MyAppTheme">
         <meta-data