零售收银终端CheckoutPad_ox_as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
4.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. package="com.shihoo.daemon" >
  4. <!-- 前台运行权限 进程守护必须-->
  5. <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
  6. <!-- 特权system/priv-app/目录下的app才可以申请豁免-->
  7. <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
  8. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
  9. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  10. <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
  11. <!-- 进程守护-->
  12. <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"
  13. tools:ignore="ProtectedPermissions" />
  14. <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
  15. <uses-permission android:name="android.permission.SHUTDOWN"
  16. tools:ignore="ProtectedPermissions" />
  17. <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
  18. <uses-permission android:name="android.permission.REORDER_TASKS" />
  19. <!-- 进程守护 over-->
  20. <application
  21. android:label="@string/app_name"
  22. >
  23. <receiver
  24. android:name="com.shihoo.daemon.watch.WakeUpReceiver"
  25. android:exported="true"
  26. android:process=":watch">
  27. <intent-filter>
  28. <action android:name="android.intent.action.USER_PRESENT"/>
  29. <action android:name="android.intent.action.BOOT_COMPLETED" />
  30. <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
  31. <action android:name="android.intent.action.USER_PRESENT" />
  32. <action android:name="android.intent.action.MEDIA_MOUNTED" />
  33. <action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
  34. <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
  35. </intent-filter>
  36. </receiver>
  37. <receiver
  38. android:name="com.shihoo.daemon.watch.WakeUpReceiver$StartWatchReceiver"
  39. android:exported="true"
  40. android:process=":watch">
  41. <intent-filter>
  42. <action android:name="com.shihoo.START_JOB_ALARM_SUB"/>
  43. </intent-filter>
  44. </receiver>
  45. <!-- 广播接收者 receiver 进程-->
  46. <receiver
  47. android:name="com.shihoo.daemon.watch.WakeUpReceiver$WakeUpAutoStartReceiver"
  48. android:exported="true"
  49. android:process=":watch">
  50. <!-- 手机启动 -->
  51. <intent-filter>
  52. <action android:name="android.intent.action.BOOT_COMPLETED"/>
  53. <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
  54. </intent-filter>
  55. <!-- 软件安装卸载-->
  56. <intent-filter>
  57. <action android:name="android.intent.action.PACKAGE_ADDED"/>
  58. <action android:name="android.intent.action.PACKAGE_REMOVED"/>
  59. <data android:scheme="package"/>
  60. </intent-filter>
  61. <!-- 网络监听 -->
  62. <intent-filter>
  63. <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
  64. <action android:name="android.net.wifi.WIFI_STATE_CJANGED"/>
  65. <action android:name="android.net.wifi.STATE_CHANGE"/>
  66. </intent-filter>
  67. <!-- 文件挂载 -->
  68. <intent-filter>
  69. <action android:name="android.intent.action.MEDIA_EJECT"/>
  70. <action android:name="android.intent.action.MEDIA_MOUNTED"/>
  71. <data android:scheme="file"/>
  72. </intent-filter>
  73. </receiver>
  74. <!-- 守护进程 watch -->
  75. <service
  76. android:name="com.shihoo.daemon.watch.JobSchedulerService"
  77. android:permission="android.permission.BIND_JOB_SERVICE"
  78. android:enabled="true"
  79. android:exported="true"
  80. android:process=":watch"/>
  81. <service
  82. android:name="com.shihoo.daemon.watch.WatchDogService"
  83. android:process=":watch"/>
  84. <activity
  85. android:name="com.shihoo.daemon.singlepixel.SinglePixelActivity"
  86. android:configChanges="keyboardHidden|orientation|screenSize|navigation|keyboard"
  87. android:excludeFromRecents="true"
  88. android:finishOnTaskLaunch="false"
  89. android:launchMode="singleInstance"
  90. android:theme="@style/SingleActivityStyle"
  91. />
  92. <service android:name=".watch.PlayMusicService"
  93. android:process=":watch"/>
  94. <service android:name="com.shihoo.daemon.watchdog.MainWorkService"
  95. />
  96. <!-- 注意 : 看业务需求,工作Service是否要放在主进程还是work进程 , 大部业务分放在主进程即可-->
  97. </application>
  98. </manifest>