Commit Graph

106160 Commits

Author SHA1 Message Date
Mihir Patel
7e2700d328 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev am: 4aa0aeadff am: c1b765e744
am: 6b365322d4

Change-Id: Idcce863bc63e9fb38d5a54080dcd9b86e192941c
2019-08-19 14:38:34 -07:00
Steven Liu
21078b6b27 Merge "Remove settings and resources about CarrierNetworkNotifier" 2019-08-19 21:24:11 +00:00
Mihir Patel
6b365322d4 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev am: 4aa0aeadff
am: c1b765e744

Change-Id: Ie4ed8565ad223fb751dded6414288ae619cd8aaa
2019-08-19 13:58:27 -07:00
Alex Light
92ac76bb7d Merge "Add agent startup-attach" into qt-dev-plus-aosp am: 74f191c782
am: 25abf4d99a

Change-Id: I4caa4c4af263544bf76278397e67b283c2f6ef40
2019-08-19 13:54:04 -07:00
Mihir Patel
c1b765e744 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev
am: 4aa0aeadff

Change-Id: I5fbd4bbc0d08b0a43c12d36b2b172e2df1edb64a
2019-08-19 13:37:01 -07:00
Alex Light
25abf4d99a Merge "Add agent startup-attach" into qt-dev-plus-aosp
am: 74f191c782

Change-Id: I45f82e0c1efa8d312971cb84ab51888c4595498f
2019-08-19 13:29:49 -07:00
Mihir Patel
4aa0aeadff Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev 2019-08-19 20:11:44 +00:00
TreeHugger Robot
646582de1e Merge "Listen for changes to IME and show/hide nav bar" 2019-08-19 17:42:47 +00:00
TreeHugger Robot
74f191c782 Merge "Add agent startup-attach" into qt-dev-plus-aosp 2019-08-19 17:32:25 +00:00
TreeHugger Robot
c3f5c54dec Merge "Move validators out to their own package" 2019-08-19 15:50:27 +00:00
TreeHugger Robot
c6958aa69d Merge "Added new dump method with indent for LocalLog." 2019-08-19 14:51:06 +00:00
TreeHugger Robot
4742ee7b19 Merge "Update ContentProvider#checkUser access." 2019-08-19 14:22:14 +00:00
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
atrost
de54a8ac4c Start platform compat service eariler.
It's needed by ActivityManager and PackageManager.
Also use a constant in Context for the name.

Test: flashed device with ag/9025572 and ag/9204795 and the platfrom
compat was accessible.

Change-Id: Ie1130a3f0bdd1769fe0755db0089702ea64d9db6
2019-08-19 12:26:24 +01:00
Oli Lan
e152b3a5d0 Merge "Include NewRollbacks in result of getAvailableRollbacks." 2019-08-19 10:06:26 +00:00
Kevin Chyn
17828faf0e Merge "Remove unused setting" 2019-08-17 18:42:04 +00:00
TreeHugger Robot
559e7a3de1 Merge "Get resource based on subId for multi-SIM" into qt-r1-dev 2019-08-17 13:58:53 +00:00
Mehdi Alizadeh
0635808404 Skip using the AppPredictionService if the component is not available am: a1c18a81af
am: f4c7bf02e4

Change-Id: I082e8c3b8aa6d7ef134de4ac54caa54f9b7a832b
2019-08-16 18:59:17 -07:00
Mehdi Alizadeh
f4c7bf02e4 Skip using the AppPredictionService if the component is not available
am: a1c18a81af

Change-Id: I8ca1aaf0b36ee04b7b63a5d04b3fae460e7c554b
2019-08-16 18:50:22 -07:00
Kevin Chyn
499ff8a5ca Remove unused setting
Bug: 139554930

Test: manual
Change-Id: I5c4af200b0c61efb9a0f76d00c2f047d4880d77b
2019-08-16 18:46:20 -07:00
Mehdi Alizadeh
a1c18a81af Skip using the AppPredictionService if the component is not available
This CL adds a safeguard in ShareSheet to avoid calls to
AppPredictionService when the service is defined but is not available,
for example in the case of a wrong AiAi apk pushed from GooglePlay.

Bug: 138595943
Test: Manual test by removing the AiAi package from device

Change-Id: I4109c5122faa753d5111ee45698301cb6ccdd7b5
2019-08-16 23:57:46 +00:00
Varun Shah
af8cfe34cd Update ContentProvider#checkUser access.
Packages with INTERACT_ACROSS_USERS_FULL can now access
ContentProvier#checkUser.

Bug: 139188114
Test: atest ContentProviderTest
Change-Id: Ie71387a26da66ebe34f296476c284c33abba6368
2019-08-16 16:39:21 -07:00
Heemin Seog
26c830dd16 Listen for changes to IME and show/hide nav bar
This feature is configurable and set to false as the default value. It
is overlayed as true for Automotive.

Bug: 138242566
Test: manual
Change-Id: I5dde8adc9d4ce749d895287ccf63017b284caec8
2019-08-16 15:13:16 -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
Oscar Azucena
694d29e854 Added new dump method with indent for LocalLog.
Added new dump method with indent parameter to add extra string indent
to the dump output.

Bug: 139097051
Test: build and ran app with/without indent.
Change-Id: Ie4973e75fd4c29505c8f8b5601da9236ebbf9943
2019-08-16 13:27:13 -07: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
Alex Light
ca8502a7f5 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

Cherry-picked from commit c0fce111c8b due to merge conflict.

Change-Id: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
Merged-In: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
2019-08-16 16:14:07 +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
Steven Liu
4172a85398 Remove settings and resources about CarrierNetworkNotifier
Bug: 139364643
Test: build, boot up; atest
Change-Id: I25c28689df5d2e016b9ae53b942494ef8ad577af
2019-08-15 13:58:40 -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