Advertisement
ipdev

ModGappsPerm

Dec 31st, 2020 (edited)
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.23 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2014 The Android Open Source Project
  3.  
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7.  
  8. http://www.apache.org/licenses/LICENSE-2.0
  9.  
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16.  
  17. <!-- These are configurations that must exist on all GMS devices. -->
  18. <config>
  19. <!-- These are the standard packages that are white-listed to always have internet
  20. access while in power save mode, even if they aren't in the foreground. -->
  21.  
  22. <!-- Network access limited for GCM and other things. -->
  23. <!-- Battery Optimization enabled for GMS Core and its components. -->
  24. <!-- By TheHitMan @ xda-developers. -->
  25. <allow-unthrottled-location package="com.google.android.gms" />
  26. <allow-ignore-location-settings package="com.google.android.gms" />
  27.  
  28. <!-- OobConfig must always have network access to fetch enterprise and carrier lock config. -->
  29. <allow-in-power-save-except-idle package="com.google.android.apps.work.oobconfig" />
  30. <allow-in-data-usage-save package="com.google.android.apps.work.oobconfig" />
  31.  
  32. <!-- Turbo must not have App Standby restrictions in order to push new
  33. App Standby buckets to the platform periodically -->
  34. <allow-in-power-save-except-idle package="com.google.android.apps.turbo" />
  35.  
  36. <!-- Certain broadcasts must still go to legacy implicit receivers -->
  37. <allow-implicit-broadcast action="com.google.android.checkin.CHECKIN_COMPLETE" />
  38. <allow-implicit-broadcast action="com.google.gservices.intent.action.GSERVICES_CHANGED" />
  39. <allow-implicit-broadcast action="com.google.gservices.intent.action.GSERVICES_OVERRIDE" />
  40. <allow-implicit-broadcast action="com.google.android.c2dm.intent.RECEIVE" />
  41. <!-- TODO: This is a temporary workaround for allowing GmsCore to receive this broadcast.
  42. This can be removed once OneTimeInitializer functionality is moved to GmsCore. -->
  43. <allow-implicit-broadcast action="com.google.android.onetimeinitializer.ONE_TIME_INITIALIZED" />
  44.  
  45. <!-- Play Store likewise must have network access to support other applications. -->
  46. <allow-in-power-save-except-idle package="com.android.vending" />
  47.  
  48. <!-- If the volta app is pre-installed (for monitoring power use), let it do checkins. -->
  49. <allow-in-power-save package="com.google.android.volta" />
  50.  
  51. <!-- If CarrierServices is installed, it must always have network access to
  52. reliably receive IMS messages. -->
  53. <allow-in-power-save package="com.google.android.ims" />
  54. <allow-in-data-usage-save package="com.google.android.ims" />
  55.  
  56. <!-- These Google applications all handle URLs to their websites by default -->
  57.  
  58. <!-- Apps below are required on all GMS devices -->
  59. <app-link package="com.android.vending" />
  60. <app-link package="com.google.android.apps.maps" />
  61. <app-link package="com.google.android.youtube" />
  62. <app-link package="com.google.android.apps.docs" />
  63. <app-link package="com.google.android.talk" />
  64. <app-link package="com.google.android.apps.photos" />
  65. <app-link package="com.google.android.music" />
  66.  
  67. <!-- Apps below are optional on GMS devices -->
  68. <app-link package="com.google.android.apps.tycho" />
  69. <app-link package="com.google.android.apps.plus" />
  70. <app-link package="com.google.android.apps.docs.editors.sheets" />
  71. <app-link package="com.google.android.apps.docs.editors.slides" />
  72. <app-link package="com.google.android.apps.docs.editors.docs" />
  73. <app-link package="com.google.android.talk" />
  74. <app-link package="com.google.android.videos" />
  75. <app-link package="com.google.android.calendar" />
  76.  
  77. <!-- These are the packages that are white-listed to be able to run as system user -->
  78. <system-user-whitelisted-app package="com.android.vending" />
  79. <system-user-whitelisted-app package="com.google.android.gms" />
  80. <system-user-whitelisted-app package="com.google.android.gms.policy_auth" />
  81. <system-user-whitelisted-app package="com.google.android.play.games" />
  82. <system-user-whitelisted-app package="com.google.android.tts" />
  83.  
  84. <!-- These are the packages that are uninstalled for system user -->
  85. <!-- Apps below are required on all GMS devices -->
  86. <system-user-blacklisted-app package="com.google.android.googlequicksearchbox" />
  87. <!-- Apps below are optional on GMS devices -->
  88. <system-user-blacklisted-app package="com.google.android.launcher" />
  89.  
  90. <!-- Whitelist of what components are permitted as backup data transports. The
  91. 'service' attribute here is a flattened ComponentName string. -->
  92. <backup-transport-whitelisted-service
  93. service="com.google.android.gms/.backup.BackupTransportService" />
  94. <backup-transport-whitelisted-service
  95. service="com.google.android.gms/.backup.component.D2dTransportService" />
  96.  
  97. <!-- Specify the explicit set of other applications that AI services are allowed to
  98. interact with, including the providers that back the implementation of the APIs
  99. provided by the package. -->
  100. <allow-association target="com.google.android.as" allowed="com.android.providers.contacts" />
  101. <allow-association target="com.google.android.as" allowed="com.android.providers.media" />
  102. <allow-association target="com.google.android.as" allowed="com.android.providers.telephony" />
  103. <allow-association target="com.google.android.as" allowed="com.android.systemui" />
  104. <allow-association target="com.google.android.as" allowed="com.google.android.gms" />
  105. <allow-association target="com.google.android.as" allowed="com.google.android.gsf" />
  106.  
  107. <!-- Specify the explicit set of other applications whose app data directories are
  108. accessible by other applications. -->
  109. <app-data-isolation-whitelisted-app package="com.google.android.gms" />
  110. </config>
  111.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement