Commit Graph

7402 Commits

Author SHA1 Message Date
Iavor-Valentin Iftime
c2813cf16c Merge "Change some UserManager APIs to @SystemApi" 2020-01-21 18:21:57 +00:00
Hall Liu
6392e2548d Merge "Add system service for accessing SystemConfig" 2020-01-20 21:34:28 +00:00
Valentin Iftime
89df4c8d17 Change some UserManager APIs to @SystemApi
Added @SystemApi to all APIs currently used by TvProfileService that were @hide only.

Bug: 139914710
Test: Apps built with stable_system or experimental_system can use the APIs
Change-Id: I3499244b4d545a7a9401c7941663045bcd89c6fe
2020-01-20 09:39:40 +01:00
Paul Crowley
658b4ca415 Merge "Provide secret to vold to remove credential" 2020-01-19 21:58:01 +00:00
Pierre Barbier de Reuille
d56a615a01 Merge "New UserManager API to request quiet mode." 2020-01-17 16:50:29 +00:00
Zimuzo Ezeozue
8a06d26a5b Merge "Revert "Fix canonicalizing /sdcard"" 2020-01-17 14:50:39 +00:00
Pierre Barbier de Reuille
17eaf740d1 New UserManager API to request quiet mode.
Adding new API to request the end of quiet mode without asking the user
for their credentials.

Bug: 145732320
Change-Id: I80f313d269d46400fdb21ef9265fa7c0c3b5c7d0
Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testQuietMode_noCredentialRequest'
2020-01-17 13:14:24 +00:00
Robert Horvath
28d29b36a5 Merge "Go to sleep on boot when booting in quiescent mode" 2020-01-17 11:13:53 +00:00
Zimuzo Ezeozue
85f83ff275 Revert "Fix canonicalizing /sdcard"
This reverts commit 50e73370ca.

Reason for revert: ag/10112811 is better and more reliable fix

Change-Id: Ice0c0e7a033013b01156898cd58df14b999e700f
2020-01-17 01:28:36 +00:00
Automerger Merge Worker
a4f3890ea0 Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1 am: 8d29b6d4eb
Change-Id: I0fee940b91344e4a9ed352578bac796de0f11628
2020-01-16 15:30:36 +00:00
Automerger Merge Worker
8d29b6d4eb Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1
Change-Id: I5ba1a7499c53d4b1a70a0ed6ba279cff742422c7
2020-01-16 13:17:36 +00:00
Treehugger Robot
03e365f649 Merge "Improve DSU log and notification message" 2020-01-16 12:15:26 +00:00
Automerger Merge Worker
15e32bf125 Merge "Support multiple DSU installations" am: 69d181aecc am: fd9ae75440 am: feb7f9cf81
Change-Id: Iec8edb8568d707b827a8d4e70373333d96d6ab10
2020-01-16 06:28:53 +00:00
Automerger Merge Worker
feb7f9cf81 Merge "Support multiple DSU installations" am: 69d181aecc am: fd9ae75440
Change-Id: I236a00274d6b6e7d1c7ac134ef17232c368cdd6a
2020-01-16 06:14:51 +00:00
Po-Chien Hsueh
bcf2adb424 Improve DSU log and notification message
Improve DSU installation service's status log message. And, use
Notification.BigTextStyle for DSU notification message.

Bug: 132924741
Test: Run DSU installation
Change-Id: I9e821edfeff88a1f4084a005de3e0f4264338996
2020-01-16 13:52:57 +08:00
Howard Chen
69d181aecc Merge "Support multiple DSU installations" 2020-01-16 05:33:10 +00:00
Mike Ma
73287d1ab3 Merge "Incident Report Extension API" 2020-01-15 19:27:55 +00:00
Jovana Knezevic
201ab6dcc0 Merge "Fix several issues with precreated users." 2020-01-15 17:51:25 +00:00
Automerger Merge Worker
f2b5633071 Merge "Expose time / time zone system apis for telephony" am: e9dafe541e am: 76e21aa151
Change-Id: Ia6e446d686a1073295a35d39fe024df6f5d35e8f
2020-01-15 16:37:43 +00:00
TreeHugger Robot
c24d678cf0 Merge "Update profile owner of org-owned device global restrictions" 2020-01-15 14:36:51 +00:00
TreeHugger Robot
863ca6295e Merge "Vibrator: Have Always-On Check DND/LowPower Modes" 2020-01-15 09:09:58 +00:00
Mike Ma
643de9238b Incident Report Extension API
Add an API for priv and system app to register a dump callback with
Incident Service.

Bug: 145924375
Test: Register a callback dumping a string. Capture an incident report
      and verify that the customized section exist.

Change-Id: I6fff6c1ee97e25963068d284ba37adce1bb5ec31
2020-01-14 16:45:33 -08:00
Neil Fuller
efe063e5dc Expose time / time zone system apis for telephony
Expose system apis / permissions needed by the telephony module to
communicate with the system server for time and time zone detection.

There are also small improvements for @Nullable.

Bug: 147012511
Test: build only
Merged-In: I27e5aa4c594d5fbad0b6f043afb9e910dcba4349
Change-Id: I27e5aa4c594d5fbad0b6f043afb9e910dcba4349
(cherry picked from commit 2be7ac4531)
2020-01-14 19:30:40 +00:00
Neil Fuller
872d3504ec Merge "Expose time / time zone system apis for telephony" 2020-01-14 15:56:15 +00:00
Howard Chen
c6f64c44eb Support multiple DSU installations
Bug: 144247097
Test: adb shell am start-activity \
        -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
        -a android.os.image.action.START_INSTALL \
        -d file:///storage/emulated/0/Download/system.raw.gz \
        --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
        --el KEY_USERDATA_SIZE 8589934592
Change-Id: Ib2f86039c4c0c1dae2bc94a702721572567bcbf2
2020-01-14 02:20:47 +00:00
TreeHugger Robot
f8e29c1d60 Merge "Supplying the IBinder to binderDied" 2020-01-14 01:09:45 +00:00
Suprabh Shukla
b8f20004f1 Supplying the IBinder to binderDied
Plugging the binder instance that dies. This helps a single
DeathRecipient to listen for multiple binder deaths.

Test: atest FrameworksCoreTests:BinderDeathRecipientTest

Bug: 135633339
Change-Id: I976ee2a138877830885ee1cbbd2b313ecb87aeb3
2020-01-13 14:57:03 -08:00
Alex Johnston
7c3d7e2a20 Update profile owner of org-owned device global restrictions
Added user restrictions to the list of user restrictions that are
applied globally when set on the parent profile DPM instance
by the profile owner of an organization-owned device.

Bug: 147339402
Test: Manual testing with TestDPC
      atest com.android.server.pm.UserRestrictionsUtilsTest
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testDevicePolicyManagerParentSupport
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testUserRestrictionsSetOnParentAreEnforced

Change-Id: If991d28a085a1ff08d8376163192972277a5e4b3
2020-01-13 17:01:41 +00:00
Neil Fuller
2be7ac4531 Expose time / time zone system apis for telephony
Expose system apis / permissions needed by the telephony module to
communicate with the system server for time and time zone detection.

There are also small improvements for @Nullable.

Bug: 147012511
Test: build only
Change-Id: I27e5aa4c594d5fbad0b6f043afb9e910dcba4349
2020-01-13 13:56:54 +00:00
Automerger Merge Worker
6ccab09668 Merge "Use new UnsupportedAppUsage annotation." am: 89ac95017f am: b2b309516a
Change-Id: Ia3b772ad3ae7c26d92f3367a3689579cd00860ab
2020-01-13 13:50:52 +00:00
Artur Satayev
bc3d8b9071 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I534e3fd1305e2f4af076986770033478448a665c
Merged-In: I534e3fd1305e2f4af076986770033478448a665c
2020-01-13 12:39:59 +00:00
TreeHugger Robot
7135c036ba Merge "Make isManagedProfile public." 2020-01-10 21:09:46 +00:00
TreeHugger Robot
a5bd79b07e Merge changes from topic "radio_scan_system_api"
* changes:
  Promote RADIO_SCAN_WITHOUT_LOCATION permission to @SystemApi
  Process: Make WIFI_UID a public API constant
2020-01-10 15:08:35 +00:00
Automerger Merge Worker
5ea8b0d72f Merge "Refine documentation for Process.setThreadPriority" am: fd1985993c am: 32593a60d0 am: 163d3a1e98
Change-Id: I39f822c59e0347abf122ba6cea93dc1adb101234
2020-01-10 10:33:00 +00:00
Automerger Merge Worker
163d3a1e98 Merge "Refine documentation for Process.setThreadPriority" am: fd1985993c am: 32593a60d0
Change-Id: Ia3a5995f2687d7727e6927ea842d9aafe34085f1
2020-01-10 10:20:38 +00:00
Treehugger Robot
fd1985993c Merge "Refine documentation for Process.setThreadPriority" 2020-01-10 09:48:44 +00:00
Automerger Merge Worker
18fc0d428c Merge "Update system api for applyPayload" am: c8f699d327 am: 8187d5301e am: e29b9871d8
Change-Id: Ie04305f97b98750394d58167efe2c5e537855394
2020-01-10 09:40:31 +00:00
Automerger Merge Worker
e29b9871d8 Merge "Update system api for applyPayload" am: c8f699d327 am: 8187d5301e
Change-Id: Ib9c8fcd961c301cbf32d2ca57c8914ec96891cbd
2020-01-10 09:19:10 +00:00
Automerger Merge Worker
aa58c0d5c3 Merge "Rename android.util.TimestampedValue to android.os" am: 641fa6730a am: fee904a5fb
Change-Id: Ib439759dbee692a624491267d07f72b0d754779d
2020-01-10 09:18:38 +00:00
Treehugger Robot
c8f699d327 Merge "Update system api for applyPayload" 2020-01-10 08:31:59 +00:00
Neil Fuller
641fa6730a Merge "Rename android.util.TimestampedValue to android.os" 2020-01-10 08:11:14 +00:00
Rick Yiu
c3648a82f1 Refine documentation for Process.setThreadPriority
Add more description for the tid parameter.

Bug: 139521784
Test: compile
Change-Id: I5ccfef865d49207172df301520cf38e942e03e21
2020-01-10 07:51:31 +00:00
Roshan Pius
dc3e07d815 Process: Make WIFI_UID a public API constant
The Process.WIFI_UID constant is referenced by the wifi mainline module & hence
needs to be a formal API constant. There are some other
subsystem uid's like PHONE_UID which are already public constants, so
there is precedence for making these uid's public if necessary?

Bug: 147396785
Test: Compiles
Change-Id: I85008965f9017e208c501c5a349f7e60cc102e0f
2020-01-09 13:24:08 -08:00
Zimuzo Ezeozue
45888614a8 Merge "Fix canonicalizing /sdcard" 2020-01-09 17:45:29 +00:00
Neil Fuller
35cc296228 Rename android.util.TimestampedValue to android.os
Rename android.util.TimestampedValue to android.os to avoid dependency
from android.util onto android.os, which is disallowed by lint.

Bug: 147012511
Test: boot
Merged-In: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
Change-Id: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
(cherry picked from commit d159015e54)
2020-01-09 15:34:43 +00:00
Martijn Coenen
3fa3890183 Merge "Only allow Download authority/MTP/installers to write in Android/." 2020-01-09 07:38:22 +00:00
Martijn Coenen
496ac000f6 Only allow Download authority/MTP/installers to write in Android/.
Previously when FUSE was enabled, we gave all apps requesting
WRITE_MEDIA_STORAGE or install permissions a direct view
to the lower filesystem. This was way too broad for a few reasons:
1) WRITE_MEDIA_STORAGE will be deprecated; holding that permission by
itself shouldn't grant you any special privileges.
2) Installers should only be able to write OBBs

The only other exceptions that are allowed to bypass scoped storage are
the process hosting the DownloadProvider and the process implementing
the MTP server; both of these have legit reasons for writing in
Android/. The way this is currently implemented is by giving these apps
the SDCARD_RW gid, which has write access in the default Android/
sdcardfs view.

Installers will be further scoped down to be only able to access OBB
in a follow-up CL.

Bug: 134706060
Bug: 146490513
Test: DownloadProvider can download
      Play + OBBs work
      Writing in Android/ through MTP works

Change-Id: Iff8681732d0c1124e24e5347f7dcb64b781c1e8c
2020-01-09 07:37:11 +00:00
Jeff Sharkey
b8c30b3449 Merge changes from topic "jan7"
* changes:
  Respond to API council feedback.
  Final push to build against SDK.
2020-01-09 06:11:04 +00:00
TreeHugger Robot
141751afe7 Merge "Propagate exception stacktrace via AndroidFuture IPC" 2020-01-09 06:01:05 +00:00
Harpreet \"Eli\" Sangha
b701ad5825 Vibrator: Have Always-On Check DND/LowPower Modes
Bug: 145961380
Test: Verify always-on settings changes via dumpsys.
Change-Id: I201f04ef1c2bdf7f10961e8c3d9b47cb7a815f11
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-01-09 14:15:42 +09:00