Commit Graph

96075 Commits

Author SHA1 Message Date
Al Sutton
b0067fb4ed Move validators out to their own package
Move the settings validators out to their own package so we can
reason about them more easily. This is the first step in a journey
which will end up with us not initialising them inside the Settings
object which, in turn, will reduce boot times.

Bug: 139449903
Test: atest RunBackupFrameworksServicesRoboTests CtsBackupTestCases CtsBackupHostTestCases GtsBackupTestCases GtsBackupHostTestCases
Change-Id: I611d9855fa91bbbbb6b0996e8ed6d765dca74717
2019-08-19 15:11:13 +01:00
Oli Lan
e152b3a5d0 Merge "Include NewRollbacks in result of getAvailableRollbacks." 2019-08-19 10:06:26 +00:00
Kevin Chyn
499ff8a5ca Remove unused setting
Bug: 139554930

Test: manual
Change-Id: I5c4af200b0c61efb9a0f76d00c2f047d4880d77b
2019-08-16 18:46:20 -07:00
Kevin Chyn
04dcb5896a Merge changes from topic "biometric-tests"
* changes:
  4/n: Make BiometricDialogView testable
  3/n: Move task stack listener to SystemUI
  2/n: Update BiometricService with cleaner lifecycle
  1/n: Update BiometricDialog (SystemUI side) with cleaner lifecycle
2019-08-16 20:28:23 +00:00
David Su
cc540adc9d Merge "Removed WifiController deferred enable configurations" 2019-08-16 17:01:36 +00:00
Oli Lan
0672808c27 Include NewRollbacks in result of getAvailableRollbacks.
This CL adds NewRollbacks to the return value of getAvailableRollbacks,
as long as the PackageRollbackInfo is complete (i.e. there is one for
each child session in the install).

Including these should avoid the potential race condition between the
install finishing and getAvailableRollbacks being called which affected
some of the tests. This means that the draining of the handler that was
previously added to getAvailableRollbacks can now be removed.

In order to avoid a similar race condition when rollbacks are expired, this
change also cancels corresponding NewRollbacks when expireRollbackForPackage
is called.

Bug: 136241838
Bug: 136548146
Test: atest RollbackTest
Test: manual local test with delay added to onFinished in the service callback
Change-Id: I015ee5925e38118c40f4b9e145f78fb12c0e2890
2019-08-16 17:52:50 +01:00
TreeHugger Robot
8038ac7d57 Merge "Move processing off of HIDL Binder" 2019-08-16 16:47:52 +00:00
Tomasz Wasilczyk
f168a291de Move processing off of HIDL Binder
Bug: 138412770
Test: atest StartProgramListUpdatesFanoutTest
Change-Id: I51a89c5792a1938cfd6720a10b6830b8cf62b9cd
2019-08-16 06:52:51 -07:00
Eran Messeri
756326e708 Merge "DPM key grant: Address API review" 2019-08-16 04:48:31 +00:00
David Su
3968643766 Removed WifiController deferred enable configurations
Bug: 71559473
Test: Compiles

Change-Id: Ifc19c9c8bc7c205fbfb13d18fc91b95eb2e42a75
2019-08-15 17:01:57 -07:00
Hans Boehm
ff31612e98 Merge "Move Half implementations to libcore to allow ART optimizations" am: 6bf381b5b1 am: eaad9ac3e2 am: 62a0694411 am: 0e3a540d18
am: 2cc8b8a8e9

Change-Id: If89cc2e62827e521fb501fc6f7e73e12f8da37ee
2019-08-15 15:54:50 -07:00
Kevin Chyn
050315f61a 3/n: Move task stack listener to SystemUI
Simplifies the dismissal of the dialog, and allows for better
synchronization of when the client should receive the error. The only time
that BiometricService should dismiss the dialog is when authentication
is canceled due to another client, which is almost always due to
allowed-but-weird app behavior.

Bug: 135082347

Test: atest BiometricServiceTest
Test: atest BiometricDialogImplTest
Test: atest CommandQueueTest
Change-Id: I10daa798115e51af8a854759e30033c28e6636ba
2019-08-15 15:34:42 -07:00
Kevin Chyn
9f8b2fc74c 2/n: Update BiometricService with cleaner lifecycle
Hiding of the BiometricDialog is (almost) all handled by SystemUI now.
BiometricService should only send results to the client when it receives
onDialogDismissed() from SystemUI

Bug: 135082347

Test: atest BiometricServiceTest
Change-Id: Ie91fd54680b942e421b7e187f1107ef7323ea719
2019-08-15 15:34:42 -07:00
Kevin Chyn
c53d981e24 1/n: Update BiometricDialog (SystemUI side) with cleaner lifecycle
1) Clean up BiometricDialogImpl. As a side-effect of 2, which cleans up
   the dialog lifecycle, we no longer need to have a handler here. This
   greatly simplifies the code here.
2) Clean up interface between BiometricDialogImpl and the UI
   (BiometricDialogView).
3) Clean up interface between BimetricService and BiometricDialogImpl.
   SystemUI is now responsible for dismissing the dialog.

Test: atest BiometricDialogImplTest
Bug: 138628043

Change-Id: Ic1fea4c05c27dfc7eb6fc661f517f0380b9fff99
2019-08-15 15:34:35 -07:00
Hans Boehm
2cc8b8a8e9 Merge "Move Half implementations to libcore to allow ART optimizations" am: 6bf381b5b1 am: eaad9ac3e2 am: 62a0694411
am: 0e3a540d18

Change-Id: I6f52b7d05caa18439ca750630f9d1f0b0d8c61b7
2019-08-15 15:28:22 -07:00
Hans Boehm
0e3a540d18 Merge "Move Half implementations to libcore to allow ART optimizations" am: 6bf381b5b1 am: eaad9ac3e2
am: 62a0694411

Change-Id: If244c0b7c851afe2f125014350ce1eb483b3afed
2019-08-15 15:01:03 -07:00
Hans Boehm
62a0694411 Merge "Move Half implementations to libcore to allow ART optimizations" am: 6bf381b5b1
am: eaad9ac3e2

Change-Id: I05dd47313bee0bfe3a871a65dbfd28a658cbbd13
2019-08-15 14:38:36 -07:00
Hans Boehm
eaad9ac3e2 Merge "Move Half implementations to libcore to allow ART optimizations"
am: 6bf381b5b1

Change-Id: I14db6620050fe8f1bf592961a3472ed0dc6ef368
2019-08-15 14:22:03 -07:00
Hans Boehm
6bf381b5b1 Merge "Move Half implementations to libcore to allow ART optimizations" 2019-08-15 20:35:13 +00:00
Eugene Susla
de70c2ca54 Merge "Document condition when CDM looks at bonded devices" 2019-08-15 19:36:51 +00:00
Anna Trostanetski
1261967c52 Merge "Move IPlatformCompat.aidl definition to framework.jar" 2019-08-15 19:34:09 +00:00
TreeHugger Robot
cf2efde135 Merge "Use PlatformConfig to gate behavior" 2019-08-15 19:08:35 +00:00
Anna Trostanetski
e5b41b7f9e Merge "Move IPlatformCompat.aidl definition to framework.jar" 2019-08-15 16:50:38 +00:00
Patrick Baumann
dfb121d705 Use PlatformConfig to gate behavior
This change moves away from AppOps and explicit targetSdk
checks in favor of PlatformConfig.

Test: atest AppsFilterTest
Test: adb shell device_config put package_manager_service package_query_filtering_enabled true && atest AppEnumerationTests
Fixes: 139348423
Bug: 136675067
Change-Id: If0af198c86210c05c2e10b71f7ae6dc0b7a3ea9a
2019-08-15 09:26:14 -07:00
atrost
4985d76b11 Move IPlatformCompat.aidl definition to framework.jar
There are non-app process usecases in framework code that need to have
access to this API.
Created a new package android.compat in frameworks/base/core following
previous definition of android.compat.Compatibility for app processes
(http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java).

Bug: 137769727
Test: m
Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
2019-08-15 17:04:03 +01:00
Alex Light
74e8d3be48 Merge "Add agent startup-attach" 2019-08-15 16:00:53 +00:00
Anna Trostanetski
70a984cf56 Merge "Move IPlatformCompat.aidl definition to framework.jar" into stage-aosp-master am: 77a833f3e0 am: eb3326be84
am: 684082f5cc

Change-Id: Iad1cc358186f472baa836a2a3895c18bcad2d9ff
2019-08-15 07:32:12 -07:00
Anna Trostanetski
684082f5cc Merge "Move IPlatformCompat.aidl definition to framework.jar" into stage-aosp-master am: 77a833f3e0
am: eb3326be84

Change-Id: I5144f9ae34f74b31d3087d69b40eb1157986adf9
2019-08-15 07:23:06 -07:00
Anna Trostanetski
eb3326be84 Merge "Move IPlatformCompat.aidl definition to framework.jar" into stage-aosp-master
am: 77a833f3e0

Change-Id: I8d9d5bcaed39facc14e72289db3b4896b162f54d
2019-08-15 07:02:57 -07:00
Anna Trostanetski
77a833f3e0 Merge "Move IPlatformCompat.aidl definition to framework.jar" into stage-aosp-master 2019-08-15 13:35:29 +00:00
TreeHugger Robot
1b90222214 Merge "Clean up exception usage in LockSettingsService (part 1)" 2019-08-15 11:02:19 +00:00
Oli Lan
860666d431 Merge "Remove INSTALLED_USERS extra from ACTION_PACKAGE_ENABLE_ROLLBACK." 2019-08-15 09:11:22 +00:00
Felipe Leme
fcee9fb574 Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined.
am: 87c5855e17

Change-Id: I207ddf77599d9a12609c7b297a58c8ce1b6eab17
2019-08-15 02:09:58 -07:00
TreeHugger Robot
426b942eb1 Merge "Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined." 2019-08-15 07:36:07 +00:00
Treehugger Robot
5937562bfb Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master" 2019-08-15 06:13:48 +00:00
Felipe Leme
87c5855e17 Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined.
Test: manual verification
Test: atest CtsAssistTestCases

Fixes: 139416391

Change-Id: Ieb2ae3f39bd42dc077ed3db1c6acdf429a39d519
2019-08-15 06:03:24 +00:00
Eran Messeri
aad7ad4669 DPM key grant: Address API review
Split the single method for granting/revoking key access into two
methods.

Bug: 139091816
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant

Change-Id: I495f35419a5dd1c12e18703f11dd4216a310430d
2019-08-15 04:10:50 +01:00
Felipe Leme
6378bd40dd Fixed SystemServiceRegistry to return a null AppPredictionManager when the service is not defined.
Test: manual verification
Test: atest CtsAssistTestCases

Fixes: 139416391

Change-Id: Ieb2ae3f39bd42dc077ed3db1c6acdf429a39d519
2019-08-14 18:15:50 -07:00
Kevin Hufnagle
1710da095c Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev am: 81d74c6c72 am: 4125bd9b25 am: e6d042dbb3
am: e4ae9c050f

Change-Id: I5a26521c8f8b779d2c380d5375efeccfad5d4567
2019-08-14 18:06:02 -07:00
Kevin Hufnagle
e4ae9c050f Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev am: 81d74c6c72 am: 4125bd9b25
am: e6d042dbb3

Change-Id: I3a672fe776956617f8090a095098fc3f7641f322
2019-08-14 17:55:58 -07:00
Kevin Hufnagle
e6d042dbb3 Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev am: 81d74c6c72
am: 4125bd9b25

Change-Id: I546bb1192d0cd85a8d8f0df1e723aebdc4718020
2019-08-14 17:44:51 -07:00
Kevin Hufnagle
5b08c4d8b3 Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev am: 81d74c6c72
am: b9c61e7050

Change-Id: Ida75b1d487b596f6db734f5cbdb3b2d61bf489ac
2019-08-14 17:44:51 -07:00
Kevin Hufnagle
4125bd9b25 Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev
am: 81d74c6c72

Change-Id: I964a029a53fb5f14d872baceee9883391da24cd3
2019-08-14 17:35:05 -07:00
Kevin Hufnagle
b9c61e7050 Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev
am: 81d74c6c72

Change-Id: I75b26b24a1380479c2debe92ac000c75580b00aa
2019-08-14 17:34:01 -07:00
Kevin Hufnagle
81d74c6c72 Merge "Revert "docs: Added desc. of launcher app criteria in Q"" into qt-dev 2019-08-14 23:32:22 +00:00
Alex Light
330e8be604 Add agent startup-attach
Add ability to give 'startup-agents' that are automatically loaded
when a (debuggable) app starts. These agents are any files in the
'code_cache/startup_agents' directory. The agents are started with the
apps data_directory as an argument.

Test: Install debuggable apk (here com.antonioleiva.bandhookkotlin)
  walleye:/ $ run-as com.antonioleiva.bandhookkotlin sh
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ mkdir code_cache/startup_agents
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts32.so code_cache
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts64.so code_cache
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss32.so code_cache/startup_agents/
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss64.so code_cache/startup_agents/
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts32.so=log,ClassLoad > chain_agents.txt
  walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts64.so=log,ClassLoad >> chain_agents.txt
  Start bandhookkotlin
  Examine logcat

Bug: 135627501

Change-Id: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
(cherry picked from commit c0fce111c8b7c68ddb397ac7c65ac5c35a40da01)
2019-08-14 15:32:12 -07:00
Kevin Hufnagle
f7a6e1f5c8 Merge "docs: Added desc. of launcher app criteria in Q" into qt-dev am: a5e5c177d1 am: 5f38478989 am: 81fc14bb79
am: 9b16c56b15

Change-Id: I8c7f2ccccd4a86a09346584386112a30879ff65d
2019-08-14 14:16:57 -07:00
Brian Duddie
98c5f80c67 Merge "docs: Correct sensor runtime permission documentation" into qt-dev am: 119f1220cd am: 7eeb6f60f9 am: 6b15b773a3
am: b7fa2d8192

Change-Id: If0f620d197fd2b3e9c0faba5164710026b1c3f2d
2019-08-14 14:00:53 -07:00
Kevin Hufnagle
9b16c56b15 Merge "docs: Added desc. of launcher app criteria in Q" into qt-dev am: a5e5c177d1 am: 5f38478989
am: 81fc14bb79

Change-Id: If65ed4262150956d22018297e211643bbb618e74
2019-08-14 13:51:35 -07:00
Kevin Hufnagle
5cf3d202b0 Merge "docs: Added desc. of launcher app criteria in Q" into qt-dev am: a5e5c177d1
am: ae80734298

Change-Id: I7e0d4b86a69c3976cff1e058240c2292891f4951
2019-08-14 13:36:06 -07:00