Android build for ungoogled-chromium. https://uc.droidware.info
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.

87 lines
4.8 KiB

  1. From: csagan5 <[email protected]>
  2. Date: Sun, 14 Apr 2019 12:08:27 +0200
  3. Subject: Remove all sync and account permissions/features from manifest
  4. ---
  5. chrome/android/java/AndroidManifest.xml | 26 ----------
  6. components/sync/android/java/src/org/chromium/components/sync/AndroidSyncSettings.java | 2
  7. 2 files changed, 1 insertion(+), 27 deletions(-)
  8. --- a/chrome/android/java/AndroidManifest.xml
  9. +++ b/chrome/android/java/AndroidManifest.xml
  10. @@ -43,23 +43,17 @@ by a child template that "extends" this
  11. {% if target_sdk_version|int > 27 or target_sdk_version == "Q" %}
  12. <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
  13. {% endif %}
  14. - <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
  15. <uses-permission android:name="android.permission.INTERNET"/>
  16. - <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
  17. <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
  18. <uses-permission android:name="android.permission.NFC"/>
  19. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  20. - <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
  21. - <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
  22. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
  23. <uses-permission android:name="android.permission.RECORD_AUDIO"/>
  24. - <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
  25. <uses-permission-sdk-23 android:name="android.permission.USE_BIOMETRIC"/>
  26. <uses-permission-sdk-23 android:name="android.permission.USE_FINGERPRINT"/>
  27. <uses-permission android:name="android.permission.VIBRATE"/>
  28. <uses-permission android:name="android.permission.WAKE_LOCK"/>
  29. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  30. - <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
  31. {% set enable_vr = enable_vr|default(0) %}
  32. {% if enable_vr == "true" %}
  33. <!-- Indicates use of Android's VR-mode, available only on Android N+. -->
  34. @@ -95,8 +89,6 @@ by a child template that "extends" this
  35. <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
  36. <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
  37. - <uses-permission android:name="com.google.android.apps.now.CURRENT_ACCOUNT_ACCESS" />
  38. -
  39. {% block extra_uses_permissions %}
  40. {% endblock %}
  41. @@ -932,16 +924,6 @@ by a child template that "extends" this
  42. android:resource="@xml/file_paths" />
  43. </provider>
  44. - <!-- Sync adapter for browser invalidation. -->
  45. - <service android:name="org.chromium.chrome.browser.invalidation.ChromeBrowserSyncAdapterService"
  46. - android:exported="false">
  47. - <intent-filter>
  48. - <action android:name="android.content.SyncAdapter" />
  49. - </intent-filter>
  50. - <meta-data android:name="android.content.SyncAdapter"
  51. - android:resource="@xml/syncadapter" />
  52. - </service>
  53. -
  54. <!-- Broadcast receiver that will be notified of account changes -->
  55. <receiver android:name="org.chromium.chrome.browser.services.AccountsChangedReceiver">
  56. <intent-filter>
  57. @@ -1010,14 +992,6 @@ by a child template that "extends" this
  58. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize"
  59. android:hardwareAccelerated="false" />
  60. - <!-- Notification service for sync. -->
  61. - <service android:name="com.google.ipc.invalidation.ticl.android2.TiclService"
  62. - android:exported="false"/>
  63. - <receiver android:name="com.google.ipc.invalidation.ticl.android2.AndroidInternalScheduler$AlarmReceiver"
  64. - android:exported="false"/>
  65. - <receiver android:name="com.google.ipc.invalidation.external.client.contrib.AndroidListener$AlarmReceiver"
  66. - android:exported="false"/>
  67. -
  68. <!-- Android Notification service listener -->
  69. <service android:name="org.chromium.chrome.browser.notifications.NotificationService"
  70. android:exported="false"/>
  71. --- a/components/sync/android/java/src/org/chromium/components/sync/AndroidSyncSettings.java
  72. +++ b/components/sync/android/java/src/org/chromium/components/sync/AndroidSyncSettings.java
  73. @@ -311,7 +311,7 @@ public class AndroidSyncSettings {
  74. mIsSyncable = false;
  75. mChromeSyncEnabled = false;
  76. }
  77. - mMasterSyncEnabled = mSyncContentResolverDelegate.getMasterSyncAutomatically();
  78. + mMasterSyncEnabled = false;
  79. StrictMode.setThreadPolicy(oldPolicy);
  80. return oldChromeSyncEnabled != mChromeSyncEnabled