Commit Graph

6344 Commits

Author SHA1 Message Date
TreeHugger Robot
cb91b276f3 Merge "Making Battery Saver policy setting more defensive." 2019-03-29 23:30:16 +00:00
Kweku Adams
c1d844a52b Making Battery Saver policy setting more defensive.
1. Making a full copy of the config Builder's map so that changing
the map in the builder doesn't change the config's map.

2. Ensuring that location mode and brightness adjustment factors are
within valid ranges.

Bug: 129474588
Test: manual
Change-Id: I6117b7857afa10d71c1fc3de818c51d8719a281b
2019-03-29 13:28:45 -07:00
Jeff Sharkey
65e18e43a2 Merge "Manifest flag for apps to request sandboxing." 2019-03-29 19:31:33 +00:00
Luke Huang
6764eff395 Merge "Use IDnsResolver instead of INetd for resolver related binder commands" am: b9ef4dd299 am: 1711278ce2
am: ceb74821a3

Change-Id: I2d642b71df25934fddd8a1476b5d27457628b8e2
2019-03-29 02:24:24 -07:00
Luke Huang
ceb74821a3 Merge "Use IDnsResolver instead of INetd for resolver related binder commands" am: b9ef4dd299
am: 1711278ce2

Change-Id: I80ae047bd65b654e01061a9f218be23e1e3ef2ed
2019-03-29 02:10:55 -07:00
Luke Huang
1711278ce2 Merge "Use IDnsResolver instead of INetd for resolver related binder commands"
am: b9ef4dd299

Change-Id: Icca07604bc8f922c51493e72fde8c7377105bf8b
2019-03-29 01:57:44 -07:00
Jeff Sharkey
bcff13c657 Manifest flag for apps to request sandboxing.
We're iterating on the design to let apps request via a manifest
flag if they'd like to opt-in or opt-out of storage sandboxing.  The
default is to assume that P apps don't allow sandboxing, and that
Q apps do allow sandboxing.

Bug: 129487770
Test: manual
Change-Id: I8fddb35eed412c78622be4ccae57c7b7d2aa1286
2019-03-28 14:34:47 -06:00
Jeff Hamilton
38d503fe46 Merge "Add an API to read experiment IDs." 2019-03-28 11:44:52 +00:00
Michael Wachenschwanz
2da219096a Merge "Limit broadcast rate for low priority DropBox entries" 2019-03-28 01:56:18 +00:00
Michael Wachenschwanz
fd6523ec54 Limit broadcast rate for low priority DropBox entries
DropBox entry spamming can negatively impact system and apps listening
to the ACTION_DROPBOX_ENTRY_ADDED broadcast.
Global settings with the DropBox tag prefix can now mark low priority
tags. Low priority tagged entries will have their
ACTION_DROPBOX_ENTRY_ADDED broadcast delayed and the broad cast will be
dropped in spammy situations.

Bug: 119132031
Test: atest CtsDropBoxManagerTestCases

Change-Id: I56554a15e0afb6e1686a33c59b3d6a8d426c2fc6
2019-03-27 13:58:20 -07:00
Jeff Sharkey
53b7e93cc3 Merge "Apps using storage must have runtime permission." 2019-03-27 19:56:51 +00:00
Jeff Hamilton
fa2f91c2fe Add an API to read experiment IDs.
Change the file format to store the
experiment IDs direclty so we don't
need to parse the proto when reading
the values out.

Bug: 129099771
Test: bit statsd_test:* && adb shell cmd stats pull-source 10051
Change-Id: I0dc1fd118f4d9ba597c2f0959648136bbafb5aab
2019-03-27 14:24:49 -04:00
Luke Huang
6591477a5b Use IDnsResolver instead of INetd for resolver related binder commands
migrate resolver related commands from INetd to IDnsResolver

Bug: 126141549
Test: atest FrameworksNetTests ConnectivityServiceTest Nat464XlatTest
      atest DnsManagerTest
Change-Id: I559c0c1304d53dde408c062e1a52e742595e7cbe
2019-03-27 17:39:07 +08:00
Joe Onorato
1c33a64705 Merge "incidentd can now handle multiple callers asking it for incident reports" 2019-03-27 04:06:06 +00:00
Po-Chien Hsueh
43037e40e7 Merge "Add a permission, INSTALL_DYNAMIC_SYSTEM" 2019-03-27 03:21:19 +00:00
Po-Chien Hsueh
f906e0e331 Merge "Improve javadoc for DynamicSystemClient" 2019-03-27 03:20:54 +00:00
Po-Chien Hsueh
244e560c09 Merge "Send URL using Uri instead of String" 2019-03-27 03:20:25 +00:00
TreeHugger Robot
dbc7083c06 Merge "GraphicsEnvironment: Allow profileable apps to load layers" 2019-03-27 00:47:21 +00:00
Jeff Sharkey
6fd6994cfc Apps using storage must have runtime permission.
A major goal of the Q release is to promote user transparency around
permission usage, and to also give user controls over those
permissions.  To further this goal, all apps requesting the
internal WRITE_MEDIA_STORAGE permission must also request (and be
granted) the "Storage" runtime permission in order to gain the
associated access.

If the user revokes the "Storage" runtime permission, then the app
must lose all access granted to it via WRITE_MEDIA_STORAGE.

Bug: 129144016
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I0e685136d2b823e618bbc85cc79e656c9d4aad38
2019-03-26 17:55:28 -06:00
Jeff Sharkey
02aefee533 Merge "Unify media permissions enforcement in framework." 2019-03-26 23:54:22 +00:00
Jeff Sharkey
859856d8d6 Unify media permissions enforcement in framework.
This opens the door to the same consistent logic being shared by
anyone across the OS who wants to enforce storage permissions.

Bug: 126788266
Test: atest --test-mapping packages/apps/MediaProvider
Exempted-From-Owner-Approval: Trivial permissions refactoring
Change-Id: I3107425f8dafa6ba05918bb67c3c0cb5d3899657
2019-03-26 23:54:08 +00:00
Cody Northrop
3832aa9906 GraphicsEnvironment: Allow profileable apps to load layers
Apps that allow themselves to be profiled locally are also eligible
to load layers, since they are set dumpable. They can opt in by
setting the following in AndroidManifest.xml:

    <!-- App opts-in to being profiled by the shell -->
    <application>
        ...
        <profileable shell=”true”/>
    </application>

Bug: 128637647
Test: atest CtsGpuToolsHostTestCases
Test: Modify CtsGpuToolsHostTestCases to use profileable="true"
      and ensure loading from external works.

Change-Id: Ib072d07408c2abd8fee7179fec3a0d28d72d6398
2019-03-26 15:42:54 -06:00
Joe Onorato
99598ee6ee incidentd can now handle multiple callers asking it for incident reports
Test: bit incident_test:* GtsIncidentManagerTestCases:*
Bug: 123543706
Change-Id: I9f671dd5d8b2ad139f952a23e575c2be16120459
2019-03-26 11:20:48 -07:00
Po-Chien Hsueh
d0f5ee6cef Merge "Pass exception detail to API user" 2019-03-26 06:54:19 +00:00
Daniel Rosenberg
3111cff3c7 Merge changes Iba026321,I31690e0b,If991c5b7
* changes:
  Make RescueParty not wipe if checkpointing
  Add Checkpoint's abortChanges
  Add needsCheckpoint
2019-03-25 21:17:09 +00:00
Daniel Rosenberg
8cbd24dda2 Make RescueParty not wipe if checkpointing
If we're checkpointing, we can roll back instead of wiping. If the
update was the problem, we will succeed. Otherwise, RescueParty will
catch the issue again and prompt the wipe later

Test: setprop persist.sys.enable_rescue 1
      Set device to not commit checkpoints
      vdc checkpoint StartCheckpoint 3
      reboot
      adb shell setprop debug.crash_system 1
      adb shell stop
      adb shell start
      Rescue Party causes reboot instead of wipe
      repeat without checkpointing to get wipe
Change-Id: Iba0263214baa7a0c3d5565b4393d03f975d8000a
2019-03-25 21:16:13 +00:00
Daniel Rosenberg
600799b8b4 Add Checkpoint's abortChanges
Test: Call abortChanges from the java side
Change-Id: I31690e0baa11b28fddcb5dd454a77067a60d2590
2019-03-25 21:16:01 +00:00
Po-Chien Hsueh
6762e2b661 Add a permission, INSTALL_DYNAMIC_SYSTEM
We already have a permission, MANAGE_DYNAMIC_SYSTEM, whose protection
level is signature. Only platform applications holding it can interact
directly with DynamicSystemService, a wrapper of native GsiService. In
our design, DynamicSystemInstallationService is the sole platform app
holding it.

Then we need another permission for non-platform but privileged apps.
This new permission doesn't give apps access to DynamicSystemService,
but only to system API DynamicSystemClient. DynamicSystemClient works
with underneath DynamicSystemInstallationService and allows privileged
apps to install DynamicSystem images and get status updates in our
designed manner.


Bug: 128982216
Test: verified using DynamicSystemClient.
Change-Id: I3e67322511e3ab08db87bfad40d8c3d3cf6fdfe5
2019-03-25 15:55:39 +00:00
TreeHugger Robot
4b58630ef2 Merge "Fixed a property naming mismatch." 2019-03-23 09:55:19 +00:00
TreeHugger Robot
66837a62b9 Merge "Code cleanup in ZygoteProcess.java." 2019-03-23 01:18:00 +00:00
Chris Wailes
da5b64e7f2 Fixed a property naming mismatch.
Device configuration properties in ZygoteConfig.java used old names for
certain values.  These name strings have been updated to the correct
values and additional logging has been added to help catch future
issues.

Test: m
Test: boot and check log for USAP messages
Change-Id: I2fb92afe7edd9b1254dd3be659ec5063aa0b8e16
2019-03-22 17:45:28 -07:00
Chris Wailes
6a17f8393e Code cleanup in ZygoteProcess.java.
Generic code cleanup.  Changed access scopes, replaced code with utility
functions, and outlined some code.

Test: m
Test: treehugger
Change-Id: I6d9a827abf88dc30eac611642723d69cb75bb351
2019-03-22 16:13:47 -07:00
Salvador Martinez
13bfe4a789 Merge "Update names of dynamic power saver mode APIs" 2019-03-22 20:52:13 +00:00
TreeHugger Robot
c396d6738c Merge "API review followup: DynamicAndroidClient" 2019-03-22 17:21:39 +00:00
Salvador Martinez
b85a9f8db4 Update names of dynamic power saver mode APIs
There was some confusion caused by the names so this CL
changes them to make the differentiation more clear hopefully.

Test: robotests pass, build runs, functionality of clients intact
Bug: 126944845
Change-Id: I626dd8e38c59fb5c061e4d0fdcf8c81701c459a3
2019-03-22 10:12:42 -07:00
Michael Wright
950bd77fb7 Move TEXT_HANDLE_MOVE and CLOCK_TICK to TEXTURE_TICK.
TEXTURE_TICK is a new constant that is expected to be called repeatedly
in order to simulate a texture effect when a user is interacting with
the device, like with TEXT_HANDLE_MOVE.

Bug: 111461797
Test: Manual
Change-Id: Ia21de3ce1755a908b4bd4fcbdda411864e5b9fe9
2019-03-22 14:38:01 +00:00
Michael Wachenschwanz
6fbea1744a Merge "Add EXTRA_DROPPED_COUNT for ACTION_DROPBOX_ENTRY_ADDED" 2019-03-22 03:20:37 +00:00
TreeHugger Robot
5d15e6e74c Merge "Game Driver Metrics: update meta data naming for driver build time" 2019-03-22 03:04:24 +00:00
Yiwei Zhang
61f8d22aa6 Game Driver Metrics: update meta data naming for driver build time
Bug: 123529932
Test: build, flash and boot.
Change-Id: I74719b748d90c6b6a209647e445a082e85629a82
2019-03-21 16:14:54 -07:00
Michael Wachenschwanz
8b0ee4737a Add EXTRA_DROPPED_COUNT for ACTION_DROPBOX_ENTRY_ADDED
Bug: 119132031
Test: builds
Change-Id: Ia6e67e9221f1cf99c6b7a49856b7e1e7d68272a9
2019-03-21 13:39:49 -07:00
Andrei-Valentin Onea
bb5089fbd9 Merge "Add @UnsupportedAppUsage annotations" 2019-03-21 19:11:51 +00:00
Po-Chien Hsueh
75d973538d Improve javadoc for DynamicSystemClient
This class is part of system API. Per API review, there are some
defects in its javadoc. Upload this CL to fix them.

Bug: 126613281
Bug: 128970107
Test: Read the javadoc
Change-Id: I664e11b3833e9c46432badf9f7c5d9ef2cea4ba8
2019-03-22 01:00:37 +08:00
Chad Brubaker
39392304c5 Merge "Add location backed system clock" 2019-03-21 16:23:31 +00:00
Paul Hu
947bc9208f Merge "Fix Automated API Review issues." am: 814bb8f627 am: 69aa833953
am: a6c364d805

Change-Id: I1968eb36c2f4fafd33846ec0f91710c665d936e6
2019-03-21 07:49:37 -07:00
Paul Hu
a6c364d805 Merge "Fix Automated API Review issues." am: 814bb8f627
am: 69aa833953

Change-Id: I29f4cb581574f2542d461de6a0939e58bfc88059
2019-03-21 07:33:48 -07:00
Paul Hu
69aa833953 Merge "Fix Automated API Review issues."
am: 814bb8f627

Change-Id: I9cbe7dc166ec066b8785553f31dc32ea0572be8e
2019-03-21 07:24:16 -07:00
TreeHugger Robot
ba5cb9136c Merge changes from topic "whichless"
* changes:
  BatteryStats remove which - log warnings
  LongSamplingCounter - remove update()
  Remove which from BatteryStats
2019-03-21 14:16:28 +00:00
Paul Hu
814bb8f627 Merge "Fix Automated API Review issues." 2019-03-21 14:11:36 +00:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
Po-Chien Hsueh
c51cf0f76a Send URL using Uri instead of String
Per API review, send the system image file path to the installation
service using Uri.

Bug: 126613281
Test: adb shell am start-activity -d URL
Change-Id: Ib46d3604c16a981b4ae1a571afa96ffdda7a7262
2019-03-21 17:26:20 +08:00