OSDN Git Service

android-x86/system-hardware-interfaces.git
2 years agoAdd powerbtnd thread (r-x86) r-x86
Chih-Wei Huang [Mon, 20 Apr 2020 15:04:02 +0000 (23:04 +0800)]
Add powerbtnd thread (r-x86)

Also send wakeup key on resume to ensure the system wakes up
normally.

Changelog:
(r-x86) Resolve conflicts in suspend/1.0/default/SystemSuspend.cpp

Change-Id: I4c294fbeecb2bdceb6ce6783189216da74597746

2 years agoMake sleep state configurable and add a fallback (r-x86)
Chih-Wei Huang [Mon, 20 Apr 2020 10:43:48 +0000 (18:43 +0800)]
Make sleep state configurable and add a fallback (r-x86)

This patch allows the user to set the sleep state target from
Android properties for wakeup_count method.

It also includes a fallback state if the default state is not
available and the user didn't set the sleep.state property.

Changelog:
(r-x86) Resolve conflict in suspend/1.0/default/SystemSuspend.cpp

Change-Id: Id4024dfc3d84c1d30681e69fad2485851935f717

2 years agoRevert "system_suspend: start early"
Victor Bo [Sat, 4 Apr 2020 21:58:21 +0000 (00:58 +0300)]
Revert "system_suspend: start early"

This reverts commit 5c145c49cc83bfe37c740bcfd3f82715ee051122.

  try to fix "deep sleep" issue
  based on patch by Hamido

3 years agoIgnore SIGPIPE when dumping stats from SystemSuspend am: ce3c6a66c4 am: c4c90ecd9a
Kalesh Singh [Tue, 14 Jul 2020 21:33:09 +0000 (21:33 +0000)]
Ignore SIGPIPE when dumping stats from SystemSuspend am: ce3c6a66c4 am: c4c90ecd9a

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/hardware/interfaces/+/12150185

Change-Id: Ia27a289605bed6de97d5cf738d519deee449d7e8

3 years agoIgnore SIGPIPE when dumping stats from SystemSuspend am: ce3c6a66c4
Kalesh Singh [Tue, 14 Jul 2020 21:14:54 +0000 (21:14 +0000)]
Ignore SIGPIPE when dumping stats from SystemSuspend am: ce3c6a66c4

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/hardware/interfaces/+/12150185

Change-Id: Ia18f6a1b64bada13b9d1b092557f644b78ff0616

3 years agoIgnore SIGPIPE when dumping stats from SystemSuspend
Kalesh Singh [Mon, 13 Jul 2020 14:42:09 +0000 (14:42 +0000)]
Ignore SIGPIPE when dumping stats from SystemSuspend

SuspendControlService dumps wakelock and suspend stats via dumpsys.
If dumpsys closes the reading end of the pipe (likely due to timeout)
and SuspendControlService attempts to write to the fd it received form
dumpsys, the processreceives sig 13 (SIGPIPE), and is then killed.
System suspend is a critical process and should not be killed for a
failure to dump stats.
If System suspend dies binder sends a failed response for any ongoing
wakelock binder trasactions.
This leads to the unchecked failed HIDL return, which causes an ABORT.

Bug: 160741383
Test: SystemSuspendV1_0UnitTest

Change-Id: I4f2ff7fc14b6fbeda2098f798f7c526580b17ce9
(cherry picked from commit 303520bd3f4f16c3dcc180851622f8cb3b84d2e0)

3 years agoWAPI: do not empty when convert fail am: 1d683920e4 am: 9659ca21ad
Xiang Wu [Wed, 20 May 2020 20:39:39 +0000 (20:39 +0000)]
WAPI: do not empty when convert fail am: 1d683920e4 am: 9659ca21ad

Change-Id: I89eb0e1d54ad1d4be7074bc494aaa8d43f862783

3 years agoWAPI: do not empty when convert fail am: 1d683920e4
Xiang Wu [Wed, 20 May 2020 20:23:25 +0000 (20:23 +0000)]
WAPI: do not empty when convert fail am: 1d683920e4

Change-Id: I26e3f4336f2f7b74f5ff8efce8600c112ac963f3

3 years agoWAPI: do not empty when convert fail
Xiang Wu [Sat, 9 May 2020 09:25:37 +0000 (17:25 +0800)]
WAPI: do not empty when convert fail

Do not empty the certificates after a converting failure.

Bug: 155611467
Test: Presubmit ACTS tests
Change-Id: I46c16c5c512fcb562037c30c0b2edae9b546a145

4 years agoStatically link VtsHalNetNetdV1_0TargetTest stubs. am: 43ee909121 am: f5c5258c4f
Steven Moreland [Thu, 23 Apr 2020 22:03:21 +0000 (22:03 +0000)]
Statically link VtsHalNetNetdV1_0TargetTest stubs. am: 43ee909121 am: f5c5258c4f

Change-Id: I3ca0c618b7ce702c1bc0f33c1c1df4fb9d37e33c

4 years agoStatically link VtsHalNetNetdV1_0TargetTest stubs. am: 43ee909121
Steven Moreland [Thu, 23 Apr 2020 21:49:29 +0000 (21:49 +0000)]
Statically link VtsHalNetNetdV1_0TargetTest stubs. am: 43ee909121

Change-Id: I192e31fb157f6bc3fc1974e1c9649e24532e3673

4 years agoStatically link VtsHalNetNetdV1_0TargetTest stubs.
Steven Moreland [Thu, 23 Apr 2020 19:33:31 +0000 (12:33 -0700)]
Statically link VtsHalNetNetdV1_0TargetTest stubs.

Fixing linking problem. Note that some other net-related libraries are
not statically linked here due to their large closure. However, 32-bit
versions of these are installed on a device. So, they are not causing a
fatal issue on runs.

Fixes: 154773530
Test: on flame: `atest -a -v VtsHalNetNetdV1_0TargetTest`
Change-Id: Ie40b02f0b96448304e991302a01fe5563f45aaff

4 years agoMerge "Mark some aidl_interface modules as unstable" into rvc-dev am: 4fa2b24b56...
Jiyong Park [Tue, 21 Apr 2020 10:19:10 +0000 (10:19 +0000)]
Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: 4fa2b24b56 am: 3488c47b64

Change-Id: I1de62d809e1c035f0c6b6d31068364d3dc492258

4 years agoMerge "Mark some aidl_interface modules as unstable" into rvc-dev am: 4fa2b24b56
Jiyong Park [Tue, 21 Apr 2020 10:11:48 +0000 (10:11 +0000)]
Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: 4fa2b24b56

Change-Id: If9e228dea76c3404158253e9e4a9146ab9662035

4 years agoMerge "Mark some aidl_interface modules as unstable" into rvc-dev
Jiyong Park [Mon, 20 Apr 2020 03:23:06 +0000 (03:23 +0000)]
Merge "Mark some aidl_interface modules as unstable" into rvc-dev

4 years agoAdd VtsHalNetNetd*TargetTest to vts. am: 546ff0218f am: e8727a52ef
Steven Moreland [Sat, 18 Apr 2020 03:56:54 +0000 (03:56 +0000)]
Add VtsHalNetNetd*TargetTest to vts. am: 546ff0218f am: e8727a52ef

Change-Id: Iccfc0733029d7c4fa495f22ddb8b1c91af711fe0

4 years agoAdd VtsHalNetNetd*TargetTest to vts. am: 546ff0218f
Steven Moreland [Sat, 18 Apr 2020 03:46:30 +0000 (03:46 +0000)]
Add VtsHalNetNetd*TargetTest to vts. am: 546ff0218f

Change-Id: Ia3e0c763e42f71937f05d43b19738d476339671a

4 years agoAdd VtsHalNetNetd*TargetTest to vts.
Steven Moreland [Sat, 18 Apr 2020 02:07:33 +0000 (19:07 -0700)]
Add VtsHalNetNetd*TargetTest to vts.

Interfaces intended to be framework HALs should still be tested during
VTS. This is because there is no mechanism preventing these interfaces
from being installed by vendor.

Bug: 139438327
Test: atest VtsHalNetNetdV1_{0,1}TargetTest
Change-Id: I2e8a4ce1ea205ebb661acdaec2e5f2da660770b3

4 years agoMark some aidl_interface modules as unstable
Jiyong Park [Mon, 13 Apr 2020 10:52:35 +0000 (19:52 +0900)]
Mark some aidl_interface modules as unstable

With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Bug: 152655547
Test: m
Change-Id: Ibf299a2e4ae52717e7afe209d6826bc89a0b8f09

4 years agoRename vts-core to vts am: 8690a8695e am: b9333161cb
Dan Shi [Fri, 10 Apr 2020 07:16:09 +0000 (07:16 +0000)]
Rename vts-core to vts am: 8690a8695e am: b9333161cb

Change-Id: I0861175e3d55c392151c6513704d684bfc4b05a2

4 years agoRename vts-core to vts am: 8690a8695e
Dan Shi [Fri, 10 Apr 2020 06:52:02 +0000 (06:52 +0000)]
Rename vts-core to vts am: 8690a8695e

Change-Id: I487335a2d232940b819c48ccad51caac57bce32c

4 years agoRename vts-core to vts
Dan Shi [Fri, 10 Apr 2020 00:54:02 +0000 (00:54 +0000)]
Rename vts-core to vts

Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL moves all tests in vts-core to vts.
It won't change test logic or behavior.

Change-Id: I11ac1cc124cf145d4df910101e378c433d1d5680
Merged-In: I11ac1cc124cf145d4df910101e378c433d1d5680

4 years agoAdd a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b am: cd7224246...
Automerger Merge Worker [Mon, 10 Feb 2020 18:51:52 +0000 (18:51 +0000)]
Add a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b am: cd72242469 am: 17c3dd26bd

Change-Id: I7f9777a6d6d85e535474552864b0691640cf0ffd

4 years agoAdd a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b am: cd72242469
Automerger Merge Worker [Mon, 10 Feb 2020 18:30:35 +0000 (18:30 +0000)]
Add a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b am: cd72242469

Change-Id: Iccabc960c2de7a39887dbea170598c38d6de90bf

4 years agoAdd a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b
Automerger Merge Worker [Mon, 10 Feb 2020 18:19:26 +0000 (18:19 +0000)]
Add a missing Result::ok() in system/hardware/interfaces am: 3bc10dad0b

Change-Id: If09999c4872fb0b7b851c2ecde00276de87b2399

4 years agoAdd a missing Result::ok() in system/hardware/interfaces
Bernie Innocenti [Sun, 9 Feb 2020 23:46:29 +0000 (08:46 +0900)]
Add a missing Result::ok() in system/hardware/interfaces

Test: m checkbuild
Change-Id: I339365bcbe5833707011f179438bb14fb3b34c39

4 years agoMerge "rm libbinderthreadstate" am: 09d46db9d3 am: 83ea293b32 am: f583bd1e53
Automerger Merge Worker [Fri, 7 Feb 2020 22:18:03 +0000 (22:18 +0000)]
Merge "rm libbinderthreadstate" am: 09d46db9d3 am: 83ea293b32 am: f583bd1e53

Change-Id: I577a3488fbad51342b63a6d8ad8523679393d279

4 years agoMerge "rm libbinderthreadstate" am: 09d46db9d3 am: 83ea293b32
Automerger Merge Worker [Fri, 7 Feb 2020 22:05:57 +0000 (22:05 +0000)]
Merge "rm libbinderthreadstate" am: 09d46db9d3 am: 83ea293b32

Change-Id: I17ae2a9f6a152e55b61681d16d5ddfb46d632362

4 years agoMerge "rm libbinderthreadstate" am: 09d46db9d3
Automerger Merge Worker [Fri, 7 Feb 2020 21:47:07 +0000 (21:47 +0000)]
Merge "rm libbinderthreadstate" am: 09d46db9d3

Change-Id: Ifaa3244298b0528782abd0c4cd8766750a0e3ab1

4 years agoMerge "rm libbinderthreadstate"
Steven Moreland [Fri, 7 Feb 2020 21:34:36 +0000 (21:34 +0000)]
Merge "rm libbinderthreadstate"

4 years agoConvert system/hardware/interfaces to Result::ok() am: ecb2512832 am: f6fbd330a7...
Automerger Merge Worker [Fri, 7 Feb 2020 08:44:49 +0000 (08:44 +0000)]
Convert system/hardware/interfaces to Result::ok() am: ecb2512832 am: f6fbd330a7 am: 3bfb49f2b4

Change-Id: I14f4c475b022a066e5db95da3153552b933fd962

4 years agoConvert system/hardware/interfaces to Result::ok() am: ecb2512832 am: f6fbd330a7
Automerger Merge Worker [Fri, 7 Feb 2020 08:32:20 +0000 (08:32 +0000)]
Convert system/hardware/interfaces to Result::ok() am: ecb2512832 am: f6fbd330a7

Change-Id: Ia21c9cb200520cbc6c0bba4f3abc26d39f43a106

4 years agoConvert system/hardware/interfaces to Result::ok() am: ecb2512832
Automerger Merge Worker [Fri, 7 Feb 2020 08:14:21 +0000 (08:14 +0000)]
Convert system/hardware/interfaces to Result::ok() am: ecb2512832

Change-Id: Icf64f389648cad405f051e1a922e841747b578f2

4 years agorm libbinderthreadstate
Steven Moreland [Thu, 6 Feb 2020 21:26:53 +0000 (13:26 -0800)]
rm libbinderthreadstate

This library is empty, and its functionality has moved
into libbinder/libhwbinder.

Bug: 148692216
Test: N/A
Change-Id: I2850844d5188f3ef7c1a326c97c93695eee3ac56

4 years agoConvert system/hardware/interfaces to Result::ok()
Bernie Innocenti [Thu, 6 Feb 2020 14:23:30 +0000 (23:23 +0900)]
Convert system/hardware/interfaces to Result::ok()

No functionality changes, this is a mechanical cleanup.

Test: m
Change-Id: Ie8d30f7819e065eb3384b76a02afde237f81417b

4 years agos/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9 am: e486332804 am: 7c2740a874
Automerger Merge Worker [Wed, 5 Feb 2020 17:53:19 +0000 (17:53 +0000)]
s/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9 am: e486332804 am: 7c2740a874

Change-Id: Iafc7a6c5f8c78e036cbba86ceb44099d13cab182

4 years agos/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9 am: e486332804
Automerger Merge Worker [Wed, 5 Feb 2020 17:31:19 +0000 (17:31 +0000)]
s/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9 am: e486332804

Change-Id: I544a4ea4452d80b184bedbcfa38cec19684d40e0

4 years agos/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9
Automerger Merge Worker [Wed, 5 Feb 2020 17:20:56 +0000 (17:20 +0000)]
s/hidl_/hal_/ for hidl_implementation_test am: 4ecb0d61d9

Change-Id: Idcaebf553cf4a985cad61c53d56aa472af30a909

4 years agos/hidl_/hal_/ for hidl_implementation_test
Steven Moreland [Tue, 4 Feb 2020 21:36:23 +0000 (13:36 -0800)]
s/hidl_/hal_/ for hidl_implementation_test

In preparation for it including AIDL things.

Bug: 145920591
Test: TH
Change-Id: If9e6358f40d175e46e4a55ca9a63f7e40d8c89c4

4 years agowifi keystore: Remove convertCertToPem for public key
Sunil Ravi [Thu, 16 Jan 2020 18:34:18 +0000 (10:34 -0800)]
wifi keystore: Remove convertCertToPem for public key

Removed convertCertToPem() from getPublicKey() API
as publick key is not in cert format.

Bug: 143638513
Test: Install ca and user certificate and connects
to enterprise network.

Change-Id: Id18619978deadcd8ff81aa94ad3b498281f0953a

4 years agosuspend: add benchmarks am: f3dd37f531 am: 67dd027d8c am: 74fe75d590
Automerger Merge Worker [Wed, 18 Dec 2019 18:07:10 +0000 (18:07 +0000)]
suspend: add benchmarks am: f3dd37f531 am: 67dd027d8c am: 74fe75d590

Change-Id: Ifbe64bd51769c9299ed0f845ecc9237eb6ab55dd

4 years agosuspend: add benchmarks am: f3dd37f531 am: 67dd027d8c
Automerger Merge Worker [Wed, 18 Dec 2019 17:54:01 +0000 (17:54 +0000)]
suspend: add benchmarks am: f3dd37f531 am: 67dd027d8c

Change-Id: I5dd1726fcc9ab5261665eb7f5081e515f89a7a0e

4 years agosuspend: add benchmarks
Tri Vo [Wed, 18 Dec 2019 17:41:14 +0000 (09:41 -0800)]
suspend: add benchmarks
am: f3dd37f531

Change-Id: Ib231fec7dc39f5257c36a9a3518b5cfc29ef5a40

4 years agosuspend: add benchmarks
Tri Vo [Tue, 17 Dec 2019 18:09:47 +0000 (10:09 -0800)]
suspend: add benchmarks

Add benchmarks for acquireing wake locks and getting wake lock stats.

Results on cuttlefish:
--------------------------------------------------------------
Benchmark                    Time             CPU   Iterations
--------------------------------------------------------------
BM_acquireWakeLock       37586 ns        26681 ns        25497
BM_getWakeLockStats     770001 ns        89569 ns         8756

Bug: 143284916
Test: SystemSuspendBenchmark
Change-Id: Iaf96bff48a76dd448762d4a827160f5b2b4d4820

4 years agosystem_suspend: reduce logspam am: 237ef08df4 am: 83f7c8c393
Tri Vo [Thu, 5 Dec 2019 23:24:33 +0000 (15:24 -0800)]
system_suspend: reduce logspam am: 237ef08df4 am: 83f7c8c393
am: 8f6f6a1052

Change-Id: Ib9432f4235512e6332f3e387082a26909504eb67

4 years agosystem_suspend: reduce logspam am: 237ef08df4
Tri Vo [Thu, 5 Dec 2019 23:22:32 +0000 (15:22 -0800)]
system_suspend: reduce logspam am: 237ef08df4
am: 83f7c8c393

Change-Id: I61d7f9ff1d90f4d347d6b039efb7a5c941c48168

4 years agosystem_suspend: reduce logspam
Tri Vo [Thu, 5 Dec 2019 23:16:31 +0000 (15:16 -0800)]
system_suspend: reduce logspam
am: 237ef08df4

Change-Id: I5ca89f74cc9bcdc8f3c1d83acf3435292b333801

4 years agosystem_suspend: reduce logspam
Tri Vo [Thu, 5 Dec 2019 19:08:06 +0000 (11:08 -0800)]
system_suspend: reduce logspam

/sys/class/wakeup and /sys/power/suspend_stats are opened when
SystemSuspend starts up. We already log an error if they are not present
at that point, so no need to log errors after that.

Fixes: 145746402
Test: "dumpsys suspend_control" still works
Change-Id: Ie9c9291446d43789c263bc0d232acc8bda14c5aa

4 years agoMerge "Allow input_data on keystore finish." am: 58a82a6a71 am: 23ff691361
Rob Barnes [Wed, 20 Nov 2019 03:50:23 +0000 (19:50 -0800)]
Merge "Allow input_data on keystore finish." am: 58a82a6a71 am: 23ff691361
am: c23a04d461

Change-Id: If261ac3a435c0ddfad592d94569ce907490afcf0

4 years agoMerge "Allow input_data on keystore finish." am: 58a82a6a71
Rob Barnes [Tue, 19 Nov 2019 23:50:23 +0000 (15:50 -0800)]
Merge "Allow input_data on keystore finish." am: 58a82a6a71
am: 23ff691361

Change-Id: Id100653b88961f08243f3a00459a93b58bae419d

4 years agoMerge "Allow input_data on keystore finish."
Rob Barnes [Tue, 19 Nov 2019 23:34:32 +0000 (15:34 -0800)]
Merge "Allow input_data on keystore finish."
am: 58a82a6a71

Change-Id: I3d0a59d0c2e547bfa997a4d5ee362ad7ce9acb07

4 years agoMerge "Allow input_data on keystore finish."
Rob Barnes [Tue, 19 Nov 2019 19:54:59 +0000 (19:54 +0000)]
Merge "Allow input_data on keystore finish."

4 years agoConvert VtsHalWifiKeystoreV1_0TargetTest to be gtest am: 6ba3483656 am: 6e0cfd5666
Dan Shi [Tue, 19 Nov 2019 18:46:10 +0000 (10:46 -0800)]
Convert VtsHalWifiKeystoreV1_0TargetTest to be gtest am: 6ba3483656 am: 6e0cfd5666
am: c9fe54f65f

Change-Id: I0a323de23f6879a56dae65de1f022e6dae92d72e

4 years agoConvert VtsHalWifiKeystoreV1_0TargetTest to be gtest am: 6ba3483656
Dan Shi [Tue, 19 Nov 2019 18:42:37 +0000 (10:42 -0800)]
Convert VtsHalWifiKeystoreV1_0TargetTest to be gtest am: 6ba3483656
am: 6e0cfd5666

Change-Id: I93f978ef8efea8da1c29e3fb0e07a6f17c6343ad

4 years agoConvert VtsHalWifiKeystoreV1_0TargetTest to be gtest
Dan Shi [Tue, 19 Nov 2019 18:39:14 +0000 (10:39 -0800)]
Convert VtsHalWifiKeystoreV1_0TargetTest to be gtest
am: 6ba3483656

Change-Id: I7b739bf49bc036d28f9a1644a6dbade5e5304a22

4 years agoAllow input_data on keystore finish.
Rob Barnes [Thu, 14 Nov 2019 23:05:35 +0000 (16:05 -0700)]
Allow input_data on keystore finish.

Test: Wifi functional VTS tests
Change-Id: Ief42ea03714486985644674c278bd1b28c294c38

4 years agoConvert VtsHalWifiKeystoreV1_0TargetTest to be gtest
Dan Shi [Thu, 14 Nov 2019 19:14:29 +0000 (11:14 -0800)]
Convert VtsHalWifiKeystoreV1_0TargetTest to be gtest

Also add VtsHalWifiKeystoreV1_0Target as a vts test for backwards
compatibility.

Bug: 142397658
Test: atest VtsHalWifiKeystoreV1_0Target
atest VtsHalWifiKeystoreV1_0TargetTest

Change-Id: Ib6b17b5cb94bc9e2d237a3c332ead6eed4ad55f4

4 years agoMerge "wifi_keystore: Convert CERT to PEM format"
Roshan Pius [Wed, 13 Nov 2019 14:12:33 +0000 (14:12 +0000)]
Merge "wifi_keystore: Convert CERT to PEM format"

4 years agowakeup stats: ignore /sys/class/wakeup/.../device symlink am: fe1b239ea8 am: c8f43ba07f
Tri Vo [Wed, 13 Nov 2019 00:38:17 +0000 (16:38 -0800)]
wakeup stats: ignore /sys/class/wakeup/.../device symlink am: fe1b239ea8 am: c8f43ba07f
am: 02d972b1db

Change-Id: I5650a1ed027186064858db8f52d10b0614b18e39

4 years agowakeup stats: ignore /sys/class/wakeup/.../device symlink am: fe1b239ea8
Tri Vo [Wed, 13 Nov 2019 00:33:16 +0000 (16:33 -0800)]
wakeup stats: ignore /sys/class/wakeup/.../device symlink am: fe1b239ea8
am: c8f43ba07f

Change-Id: Iabbf883b382d557717f151aa2a982967524925f8

4 years agowakeup stats: ignore /sys/class/wakeup/.../device symlink
Tri Vo [Wed, 13 Nov 2019 00:28:56 +0000 (16:28 -0800)]
wakeup stats: ignore /sys/class/wakeup/.../device symlink
am: fe1b239ea8

Change-Id: I4fba6386410cfebff77b3dc3a0f401399f32658a

4 years agowifi_keystore: Convert CERT to PEM format
Roshan Pius [Tue, 12 Nov 2019 14:03:13 +0000 (06:03 -0800)]
wifi_keystore: Convert CERT to PEM format

The public keystore API used by framework puts the cert in DER format.
So, convert the CERT to PEM format when supplicant retrieves the key to
maintain compatibility. Wifi was previously converting the cert to PEM format
and storing it in keystore using the privileged API surface.

Bug: 142089671
Test: Connected to passpoint networks
Test: Will send for full regression test
Change-Id: I78cf826287765c22dbbc5e198dd4655e0bf70a9f

4 years agowakeup stats: ignore /sys/class/wakeup/.../device symlink
Tri Vo [Mon, 11 Nov 2019 23:39:06 +0000 (15:39 -0800)]
wakeup stats: ignore /sys/class/wakeup/.../device symlink

This symlink points to the sysfs hierarchy of the device that owns the
wakeup source, if the latter is not virtual.

That symlink is of no interst to us. Make system suspend not read that
directory to avoid spamming SELinux denial log, e.g.

avc: denied { open } for comm="Binder:1790_2"
path="/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:04"
dev="sysfs" ino=2157 scontext=u:r:system_suspend:s0
tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1

Bug: 144095608
Test: SystemSuspendV1_0UnitTest
Change-Id: I8ede20d6233b8c8a051b57ee9a0c433abc47fdf4

4 years ago[automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889...
Xin Li [Wed, 30 Oct 2019 23:26:52 +0000 (16:26 -0700)]
[automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: f694ca2472
am: 288ecd5baf -s ours
am skip reason: subject contains skip directive

Change-Id: Ida2e14daba5dc5abfec59b55626e204973911424

4 years agoDO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Xin Li [Wed, 30 Oct 2019 22:56:40 +0000 (15:56 -0700)]
DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: f694ca2472

Change-Id: I116a99a6a5a8824e48d79f5f135293f24a55bbf7

4 years agoDO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Xin Li [Wed, 30 Oct 2019 18:50:43 +0000 (11:50 -0700)]
DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master

Bug: 142003500
Change-Id: I84d0419ded5079d2278deb6d6374f2e8b16d3189

4 years ago[automerger skipped] Merge "wifi keystore: Convert to static library" am: f4dc83897e...
Roshan Pius [Tue, 29 Oct 2019 23:54:37 +0000 (16:54 -0700)]
[automerger skipped] Merge "wifi keystore: Convert to static library" am: f4dc83897e am: 600a62a20a
am: 8da1b01880 -s ours
am skip reason: change_id If964a6c6be7f75cde343e07c1ea7dd79c7d18c5a with SHA1 059019519c is in history

Change-Id: I4797f14eb1f023d45565ca24702a94684309fb60

4 years agoMerge "wifi keystore: Convert to static library" am: f4dc83897e
Roshan Pius [Tue, 29 Oct 2019 23:48:35 +0000 (16:48 -0700)]
Merge "wifi keystore: Convert to static library" am: f4dc83897e
am: 600a62a20a

Change-Id: I619f111865ceeba550bdf8b0681a0048baf6d316

4 years agoMerge "wifi keystore: Convert to static library"
Roshan Pius [Tue, 29 Oct 2019 23:41:38 +0000 (16:41 -0700)]
Merge "wifi keystore: Convert to static library"
am: f4dc83897e

Change-Id: Ibec5b17d47ef103fe76a37e8b14dbc7434f1f67b

4 years agoMerge "wifi keystore: Convert to static library"
Roshan Pius [Tue, 29 Oct 2019 23:09:12 +0000 (23:09 +0000)]
Merge "wifi keystore: Convert to static library"

4 years agowifi keystore: Convert to static library
Roshan Pius [Mon, 21 Oct 2019 01:19:49 +0000 (18:19 -0700)]
wifi keystore: Convert to static library

Bug: 142969896
Test: Verified connecting to passpoint networks.
Change-Id: If964a6c6be7f75cde343e07c1ea7dd79c7d18c5a
Merged-In: If964a6c6be7f75cde343e07c1ea7dd79c7d18c5a

4 years agowifi keystore: Convert to static library
Roshan Pius [Mon, 21 Oct 2019 01:19:49 +0000 (18:19 -0700)]
wifi keystore: Convert to static library

Bug: 142969896
Test: Verified connecting to passpoint networks.
Change-Id: If964a6c6be7f75cde343e07c1ea7dd79c7d18c5a

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master am: f2e01bd1...
Xin Li [Thu, 24 Oct 2019 01:18:49 +0000 (18:18 -0700)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master am: f2e01bd1fa am: 249e0f45cf
am: 46f3d2a61b

Change-Id: Ic4ec321dfc28e43beaf3bda3efc14dfc6c2fb8ca

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master am: f2e01bd1fa
Xin Li [Thu, 24 Oct 2019 00:59:08 +0000 (17:59 -0700)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master am: f2e01bd1fa
am: 249e0f45cf

Change-Id: I4c98723bfdf5a4fe7fa0d9b3f5aad71fcc0cb89f

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master
Xin Li [Thu, 24 Oct 2019 00:39:11 +0000 (17:39 -0700)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master
am: f2e01bd1fa

Change-Id: I6166c6489e7adfe3a469e0bcceee98c0924c19dc

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master
TreeHugger Robot [Thu, 24 Oct 2019 00:26:48 +0000 (00:26 +0000)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master

4 years agoTEST_MAPPING += hidl_implementation_test am: 0376b8a9bb am: 31513982cf am: 1f0ad1c5da
Steven Moreland [Wed, 23 Oct 2019 23:50:19 +0000 (16:50 -0700)]
TEST_MAPPING += hidl_implementation_test am: 0376b8a9bb am: 31513982cf am: 1f0ad1c5da
am: 77b89a1ae3

Change-Id: Icabd3bf5f16cee00545642e00eac101a681fc87f

4 years agoTEST_MAPPING += hidl_implementation_test am: 0376b8a9bb am: 31513982cf
Steven Moreland [Wed, 23 Oct 2019 23:30:50 +0000 (16:30 -0700)]
TEST_MAPPING += hidl_implementation_test am: 0376b8a9bb am: 31513982cf
am: 1f0ad1c5da

Change-Id: Id873fa8f95e6de6e08aee1e0b6a9a231043a5b23

4 years agoTEST_MAPPING += hidl_implementation_test am: 0376b8a9bb
Steven Moreland [Wed, 23 Oct 2019 23:18:44 +0000 (16:18 -0700)]
TEST_MAPPING += hidl_implementation_test am: 0376b8a9bb
am: 31513982cf

Change-Id: I6c7c48eef5ee4109e7046972dbabc1a4cb503b3e

4 years agoTEST_MAPPING += hidl_implementation_test
Steven Moreland [Wed, 23 Oct 2019 23:14:21 +0000 (16:14 -0700)]
TEST_MAPPING += hidl_implementation_test
am: 0376b8a9bb

Change-Id: I04ea5d78c00583d2150d85c6d3689331d19ab122

4 years agoTEST_MAPPING += hidl_implementation_test
Steven Moreland [Wed, 16 Oct 2019 23:49:12 +0000 (16:49 -0700)]
TEST_MAPPING += hidl_implementation_test

All HALs should have a known cf impl or be whitelisted.

Bug: 141567104
Test: hidl_implementation_test
Change-Id: I59d9fb3db32601d19fc20fb4a4b959ba54cca847

4 years agoSkip QD1A.190821.011 in stage-aosp-master
Xin Li [Wed, 16 Oct 2019 22:19:31 +0000 (15:19 -0700)]
Skip QD1A.190821.011 in stage-aosp-master

Bug: 141248619
Change-Id: I1e5c199fa5faa6d55edd9caafd8a1ed16b75a3f4

4 years agoRemove ashmemd's interfaces am: bef3565aa6 am: e78813cd70 am: 4f5d52ad7b
Tri Vo [Thu, 26 Sep 2019 19:08:36 +0000 (12:08 -0700)]
Remove ashmemd's interfaces am: bef3565aa6 am: e78813cd70 am: 4f5d52ad7b
am: b1439cb14c

Change-Id: I4010535f95a8166e09bb58d654ec080a20a45445

4 years agoRemove ashmemd's interfaces am: bef3565aa6 am: e78813cd70
Tri Vo [Thu, 26 Sep 2019 19:01:41 +0000 (12:01 -0700)]
Remove ashmemd's interfaces am: bef3565aa6 am: e78813cd70
am: 4f5d52ad7b

Change-Id: I3b9a8aa4b2c26c9f43e3d7c6802862b67112ddaf

4 years agoRemove ashmemd's interfaces am: bef3565aa6
Tri Vo [Thu, 26 Sep 2019 18:47:55 +0000 (11:47 -0700)]
Remove ashmemd's interfaces am: bef3565aa6
am: e78813cd70

Change-Id: I03e5ba4386e032dcd4de5573c84a05d38952166f

4 years agoRemove ashmemd's interfaces
Tri Vo [Thu, 26 Sep 2019 18:35:33 +0000 (11:35 -0700)]
Remove ashmemd's interfaces
am: bef3565aa6

Change-Id: I33f9f976db95c33a60af834354320ffca07405f3

4 years agoRemove ashmemd's interfaces
Tri Vo [Tue, 24 Sep 2019 22:19:15 +0000 (15:19 -0700)]
Remove ashmemd's interfaces

Bug: 139855428
Test: n/a
Change-Id: Iaac3fc6d6c11ec6839cb9be1310a6d9370c2b476

4 years agoSystemSuspendV1_0UnitTest: require root am: 4783e2f866 am: 63edaea093 am: 6ff986d234
Tri Vo [Thu, 19 Sep 2019 21:19:53 +0000 (14:19 -0700)]
SystemSuspendV1_0UnitTest: require root am: 4783e2f866 am: 63edaea093 am: 6ff986d234
am: 4d3644ee56

Change-Id: I8b2fd1e4f0ebc1430edbb6bf247768317caed262

4 years agoSystemSuspendV1_0UnitTest: require root am: 4783e2f866 am: 63edaea093
Tri Vo [Thu, 19 Sep 2019 21:12:50 +0000 (14:12 -0700)]
SystemSuspendV1_0UnitTest: require root am: 4783e2f866 am: 63edaea093
am: 6ff986d234

Change-Id: Ib01610c68868dec702838f7a3be161644210257c

4 years agoSystemSuspendV1_0UnitTest: require root am: 4783e2f866
Tri Vo [Thu, 19 Sep 2019 21:06:20 +0000 (14:06 -0700)]
SystemSuspendV1_0UnitTest: require root am: 4783e2f866
am: 63edaea093

Change-Id: I67fed84c1410a8788c9c2c228d257c72b5de47f3

4 years agoSystemSuspendV1_0UnitTest: require root
Tri Vo [Thu, 19 Sep 2019 21:00:41 +0000 (14:00 -0700)]
SystemSuspendV1_0UnitTest: require root
am: 4783e2f866

Change-Id: Id5980c88537275378d8664f71eba8346b6e843e2

4 years agoSystemSuspendV1_0UnitTest: require root
Tri Vo [Thu, 19 Sep 2019 18:00:50 +0000 (11:00 -0700)]
SystemSuspendV1_0UnitTest: require root

Bug: 141272654
Test: n/a
Change-Id: Ie01a3be9861bcf3a25f03a1439292f98a910839a

4 years agoMerge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47 am: 0ec55ed296...
Branden Archer [Wed, 11 Sep 2019 17:20:05 +0000 (10:20 -0700)]
Merge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47 am: 0ec55ed296 am: eaed96c1da
am: 1f24fb9a8e

Change-Id: Icd3405ce7da1767aa64fd9530bb7021b5daf2225

4 years agoMerge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47 am: 0ec55ed296
Branden Archer [Wed, 11 Sep 2019 16:59:24 +0000 (09:59 -0700)]
Merge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47 am: 0ec55ed296
am: eaed96c1da

Change-Id: I5335a80bf57ea72b1592757d407ff690a09f905f

4 years agoMerge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47
Branden Archer [Wed, 11 Sep 2019 16:47:41 +0000 (09:47 -0700)]
Merge "Relax expected outcome of Sign_empty_key_name" am: e38d199d47
am: 0ec55ed296

Change-Id: I18c14da831fbaab54381f275b957b4eb126d8b0c

4 years agoMerge "Relax expected outcome of Sign_empty_key_name"
Branden Archer [Wed, 11 Sep 2019 16:40:42 +0000 (09:40 -0700)]
Merge "Relax expected outcome of Sign_empty_key_name"
am: e38d199d47

Change-Id: I3e3077c988fd340365cb93a31667392fbffddc9e

4 years agoMerge "Relax expected outcome of Sign_empty_key_name"
Branden Archer [Wed, 11 Sep 2019 16:30:40 +0000 (16:30 +0000)]
Merge "Relax expected outcome of Sign_empty_key_name"

4 years ago[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage...
Xin Li [Mon, 9 Sep 2019 00:48:03 +0000 (17:48 -0700)]
[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master am: 25a0c696c6 -s ours am: 738efc8097 -s ours
am: 6a45978c80 -s ours
am skip reason: change_id I349ca268adb9e106947b0b8be55bcd729e7accb0 with SHA1 e362d6cceb is in history

Change-Id: I3ff5d55f374034dab8219eb30edc172b41320849

4 years ago[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage...
Xin Li [Sun, 8 Sep 2019 23:36:52 +0000 (16:36 -0700)]
[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master am: 25a0c696c6 -s ours
am: 738efc8097 -s ours
am skip reason: change_id I349ca268adb9e106947b0b8be55bcd729e7accb0 with SHA1 e362d6cceb is in history

Change-Id: Ia2c548bf6126a88a7d8fbd8f3d27325914b679ec

4 years ago[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage...
Xin Li [Sun, 8 Sep 2019 22:49:38 +0000 (15:49 -0700)]
[automerger skipped] Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
am: 25a0c696c6 -s ours
am skip reason: change_id I349ca268adb9e106947b0b8be55bcd729e7accb0 with SHA1 e362d6cceb is in history

Change-Id: I407d4cbea13328f25a97fe46f8a2fb8a26eb5daa