Commit Graph

5839 Commits

Author SHA1 Message Date
TreeHugger Robot
c2f699d8fe Merge "Exposed canSwitchUsers() and added an API in UserManager for SUW." 2018-12-10 06:54:21 +00:00
Tim Van Patten
3c61284416 Update ANGLE Developer Options
Update ANGLE developer options to allow selecting the OpenGL driver
(default, ANGLE, native) for each app as well as forcing ANGLE for all
apps.

Bug: 118384925
Test: Verify the default/ANGLE/native values are saved and applied and
used by the loader.

Change-Id: I189889b9b780eabe812298c0dd02838f70f97a03
2018-12-07 21:06:58 +00:00
TreeHugger Robot
0f2f9d0694 Merge "Add commitChanges for signaling checkpointing end" 2018-12-07 05:52:48 +00:00
Felipe Leme
749b889889 Yet another (major) refactoring on Content Capture and Augmented Autofill.
Bunch of changes:

- Split public SmartSuggestionsService info ContentCaptureService and
  AugmentedAutofillService
- Renamed 'intelligence' packages to either 'contentcapture' or
  'autofil.augmented'
- Renamed internal packages and classes.
- Changed permissions, resource names, etc...
- Moved Augmented Autofill logic from IntelligeceManagerService (R.I.P.) to
  Autofill.
- Optimized IPCs by passing a String instead of the InteractionSessionId
  (that also solves the view -> service dependency).

Test: atest CtsContentCaptureServiceTestCases \
            CtsAutoFillServiceTestCases \
            FrameworksCoreTests:SettingsBackupTest
Test: manual verification with Augmented Autofill Service

Bug: 119638877
Bug: 117944706

Change-Id: I787fc2a0dbd9ad53e4d5edb0d2a9242346e4652d
2018-12-06 16:56:39 -08:00
John Reck
9f029c5be3 Merge "Add NDK async begin/end & counter" 2018-12-06 21:43:18 +00:00
TreeHugger Robot
1f7d427443 Merge "Wraps #exectTransact to set/restore worksource." 2018-12-06 15:57:22 +00:00
Olivier Gaillard
180f91f1f8 Wraps #exectTransact to set/restore worksource.
Test: atest binderLibTest BinderWorkSourceTest BinderCallsStatsServiceTest
Change-Id: I334c4569706851925d95bd22931815572907b9a5
2018-12-06 12:56:46 +00:00
Olivier Gaillard
f9bb7f79c1 Merge "Use the calling worksource uid for trusted apps." 2018-12-06 12:47:45 +00:00
TreeHugger Robot
188cf112d2 Merge "Add public thermal API" 2018-12-06 10:26:48 +00:00
Cody Northrop
3f452404bd Merge "Guard ANGLE rules file check with DEBUG flag" 2018-12-06 03:52:57 +00:00
John Reck
77b31a5eb1 Add NDK async begin/end & counter
Bug: 111503982
Test: atest CtsAtraceHostTestCases
Change-Id: I038b76b505d3103f7b1e85a9469932d23cde2ab8
2018-12-05 18:16:39 -08:00
Olivier Gaillard
c17d280bab Use the calling worksource uid for trusted apps.
- Set ThreadLocalWorkSource to the work source uid when app has the
UPDATE_DEVICE_STATS permission. We only enable that in system server for
now.
- By default, set ThreadLocalWorkSource to the calling uid since we
always trust this value.
- If an app sets a work source uid without having the right permission,
we just ignore it (we do not throw an exception)

A follow-up commit will update the code to use the worksource from the
beginning of the call. Currently we get the work source at the end
inside of BinderCallStats, however the value might have been changed
when executing onTransact.

Test: atest binderLibTest BinderWorkSourceTest BinderCallsStatsServiceTest
Change-Id: I351b8ac2b31feececc46c73f373f198b9b603c7e
2018-12-05 23:12:13 +00:00
Wei Wang
5947665d9a Add public thermal API
No permission added for now as there is no sensitive data exposed, other
than get system thermal status.

CTS will be added later to make sure call back triggered when status changes.

Bug: b/119613338
Test: PowerManager CTS test
Change-Id: I2e5ab716df82d82aa31cb1015bd5548fe312c1a4
2018-12-05 13:36:06 -08:00
Cody Northrop
bcf422bde1 Guard ANGLE rules file check with DEBUG flag
Temporarily disable ANGLE rules file checking to avoid
LeakedClosableViolation which is triggering crashes.

This can be removed when refactor is completed that avoids
holding a file descriptor open until the driver loads.

Bug: 119516511
Test: cts-tradefed run singleCommand cts -m CtsAngleIntegrationHostTestCases
Change-Id: Icd8a48c853825ebfd64cf0746ae8203554e1684e
2018-12-05 11:27:49 -07:00
Wei Wang
9c2b6766ba Merge "Thermal: change WARNING level to EMERGENCY" 2018-12-05 15:37:21 +00:00
Varun Shah
e38c678dcc Exposed canSwitchUsers() and added an API in UserManager for SUW.
UserManager#canSwitchUsers() is now exposed as a SystemApi for SUW use.
It requires either the MANAGE_USERS or INTERACT_ACROSS_USERS permission.

Added UserManager#removeUser(UserHandle) which mirrors
UserManager#removeUser(int). It requires the MANAGE_USERS permission.

Bug: 120457727
Test: atest com.android.server.pm.UserManagerTest#testRemoveUserByHandle
Test: atest com.android.server.pm.UserManagerTest#testRemoveUser
Test: manual (run setup wizard)
Change-Id: Ie7a641da8ada789931b2b116c907a3ca298490f4
2018-12-04 17:08:40 -08:00
TreeHugger Robot
6220baa36e Merge "Schematize vold system properties" 2018-12-05 00:00:42 +00:00
Wei Wang
caff59d3d6 Merge "Thermal: Add set-status command to turn thermal status" 2018-12-04 23:27:28 +00:00
Wei Wang
ed2c902004 Thermal: change WARNING level to EMERGENCY
Bug: 119613338
Test: atest services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: I3bde79a3598ef58072c8d9c2202a0eec6a968776
2018-12-04 14:48:28 -08:00
Wei Wang
cc91361106 Thermal: Add set-status command to turn thermal status
Bug: 111086696
Bug: 119413961
Test: adb shell cmd thermalservice set-status 3
Test: adb shell cmd thermalservice reset
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: Ide114d1aadad67cbbbae645b56c6c082aceade21
2018-12-04 13:31:42 -08:00
Jeff Sharkey
f660c012b0 Merge "Add support for "Audiobooks"." 2018-12-04 16:58:17 +00:00
Jeff Sharkey
628d2e6888 Merge "Redact location Exif tags when no permission." 2018-12-04 01:28:37 +00:00
Philip P. Moltmann
7208efc83b Merge changes from topic "LocationAccessCheck"
* changes:
  New settings for testing permission controller
  Expose API needed for apps to use work profiles.
2018-12-03 19:59:03 +00:00
Jeff Sharkey
cb39499354 Redact location Exif tags when no permission.
When the caller doesn't hold the ACCESS_MEDIA_LOCATION permission,
any location Exif tags should be redacted for privacy reasons.  We
still allow unredacted raw file access if the media is owned by the
calling app, since they should be able to see data they contributed.

Certain backup apps really want to see the original contents without
any redaction, so provide them a setRequireOriginal() API so they
get a strong exception whenever the original bits can't be provided.

Add the ability to open a redacted file for read/write access by
stopping redaction for any ranges that have been overwritten with
new data, along with tests to verify this behavior.

Extend "content" tool to bind null values.

Bug: 111892141
Test: atest android.os.RedactingFileDescriptorTest
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I47b220036a712d9d49547196b90e031b10760f84
2018-12-03 12:57:09 -07:00
Olivier Gaillard
4845430ffa Merge "Use transaction name for binder trace" 2018-12-03 18:02:36 +00:00
Jeff Sharkey
2ea404fd2a Merge "Method to determine isolated storage mode." 2018-12-01 22:37:35 +00:00
Philip P. Moltmann
a3e358cf9f Expose API needed for apps to use work profiles.
Bug: 120303361
Test: Built
Change-Id: I5e4cd1450bb284321711558a4475e872d14022ff
2018-12-01 09:32:12 -08:00
Jeff Sharkey
10887d5e5a Add support for "Audiobooks".
Bug: 113356944
Test: manual
Change-Id: Ifed54c41a533ed2d556dc6561ea498ec293991a6
2018-11-30 13:53:19 -07:00
Jeff Sharkey
10ec9d8a42 Method to determine isolated storage mode.
Mostly designed for use by tests, but start using it elsewhere in OS
for consistency.

Bug: 119713234
Test: manual
Change-Id: I803671fd84547b75337bebf00c2fa2bdaf0f72e7
2018-11-30 10:52:02 -07:00
TreeHugger Robot
8faacd383d Merge "add android.os.Process.getRss()" 2018-11-30 01:16:38 +00:00
TreeHugger Robot
a248a6a08b Merge "Revert "Revert "support work chain in pulled atoms""" 2018-11-29 01:35:51 +00:00
Chenjie Yu
d7e3a228be Revert "Revert "support work chain in pulled atoms""
This reverts commit 9c7b131996.

Reason for revert: Fixed build failures due to merge

Change-Id: I7d7bfed3a3234b966f3fe3fd6e0cbc63d2bedf83
Test: unit test
2018-11-28 15:53:09 -08:00
Daniel Rosenberg
e129e5ce89 Add commitChanges for signaling checkpointing end
This adds a place to call commitCheckpoint from java
so the framework can inform the checkpointing system
of a successful boot.

Test: vdc checkpoint startCheckpoint 5
      checkpoint file should disapear on boot
Bug: 111020314

Change-Id: I6f9968a55f0bd3557918a25eb6569ca333408da6
2018-11-28 14:22:23 -08:00
TreeHugger Robot
5ded9e4ff4 Merge "Fix a comment on PowerManager.dream to indicate all required permissions" 2018-11-28 21:41:25 +00:00
Fabian Kozynski
e3b92ab6ba Merge "Revert "support work chain in pulled atoms"" 2018-11-28 20:32:50 +00:00
Fabian Kozynski
9c7b131996 Revert "support work chain in pulled atoms"
This reverts commit ce8e4dce60.

Reason for revert: breaking multiple targets in master

Change-Id: I3ee74b314e06cb2c4d3d6da82ca116a91aad67d4
2018-11-28 20:13:22 +00:00
Chenjie Yu
fbc5842d16 Merge "support work chain in pulled atoms" 2018-11-28 19:10:30 +00:00
Tim Murray
fb07678985 add android.os.Process.getRss()
This is necessary for low-impact logging useful for training.

Test: gets RSS correctly
bug 119789589

Change-Id: Ie32202ff9280208dbe967a22883d8ed1198fa724
2018-11-28 10:45:18 -08:00
Olivier Gaillard
7c94c8417d Merge "Tests for binder work source propagation" 2018-11-28 08:59:12 +00:00
Oleg Kibirev
c9752ebb0f Fix a comment on PowerManager.dream to indicate all required permissions
Bug: 119130690
Test: not needed
Change-Id: Ib4fff5c5b3507c9f5bda7b97d8e76178b7335bab
2018-11-27 13:29:54 -08:00
TreeHugger Robot
0f94603082 Merge "Rename ANGLE package name" 2018-11-27 17:46:02 +00:00
Jeff Sharkey
a789183401 Merge "Iterate on storage permissions model." 2018-11-27 15:51:14 +00:00
Olivier Gaillard
1d72458192 Tests for binder work source propagation
Test: atest binderLibTest BinderWorkSourceTest
Change-Id: I7265388c96076f8fcd44e02df493d3eec8e96b14
2018-11-27 14:36:46 +00:00
Jeff Sharkey
9787a9459d Iterate on storage permissions model.
This change updates the permissions design to use app-ops for
controlling write access, which is only extended to the default app
for a particular collection type.

Bug: 119713234
Test: atest android.appsecurity.cts.PermissionsHostTest
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I40811ff175b3b8410b58ed901948a23a56f8a8c2
2018-11-26 12:00:35 -07:00
Martijn Coenen
66213de907 Restrict dumping of binder proxy info in bugreports.
This dumping is done with the ActivityManagerService lock held, and
can take a while. Therefore, do the dumping without the lock, and
only dump proxy interface counts if the number of proxies looks
unreasonable to start with.

Bug: 119616995
Test: boots, bugreport doesn't dump proxy interfaces with normal count
Change-Id: If7ca8fbe08362db2ef57bf2e210160f37859fd79
2018-11-26 13:18:28 +01:00
Abodunrinwa Toki
d531f70d30 Merge "ConversationActions Config installer." 2018-11-22 16:02:54 +00:00
Wei Wang
2ca566b525 Merge "Add thermal status API for app and unit test" 2018-11-21 18:34:49 +00:00
Courtney Goeltzenleuchter
8b9ffcb075 Rename ANGLE package name
Test: manual: verify package name loads

Change-Id: I9202674011d9b1bf6c67cfc9c3b4318ded3a3656
2018-11-21 10:39:01 -07:00
Abodunrinwa Toki
f438e14dfd ConversationActions Config installer.
This installs model updates for smart reply/actions
aka conversation actions.

Test: none
Bug: 111437455
Bug: 111406942
Change-Id: I9cb04e7b20b565ac5d128475a90bd065c805e95e
2018-11-21 17:33:53 +00:00
Chenjie Yu
ce8e4dce60 support work chain in pulled atoms
+ also rewrite map and merge isolated uid to host uid.

output:
Pull from 10014: { 1541137009000000000 10430748770707
(10014)0x2010101->1[I] 0x2010182->lala1[S] 0x2010201->2[I]
0x2018282->lala2[S] 0x20000->10430750[L]  }

Bug: 119043339
Bug: 117975376
Test: unit test
Change-Id: Ib6e3ea0f76594438ee1b3e12e965d85fefb405d7
2018-11-20 16:15:31 -08:00