Commit graph

2138 commits

Author SHA1 Message Date
Ted Lin
dcf2f88fe7 dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404 am: a8d924be8e am: 577b331c38
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: Id62e3dc3b348bf0267b7866b651ff2ddd14964c4
2021-09-03 06:37:27 +00:00
Ted Lin
15faead640 dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404 am: 61416bc885 am: b9f0d4e6d9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: Ibdb3e35fc4eecd9a9a3a571fba32dcbbbcb1323d
2021-09-03 06:37:20 +00:00
Ted Lin
44f220cc1b dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404 am: a8d924be8e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: I24dee02b74ae5a820af188814af564147404d3d0
2021-09-03 06:14:18 +00:00
Ted Lin
a3345f8128 dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404 am: 61416bc885
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: Ibb249b9aae81dd9fde30e52a461aedea32670f08
2021-09-03 06:13:19 +00:00
Ted Lin
ac572156d8 dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: Iec8d71029d9843d7df79e1d43c44dfdce9e8466f
2021-09-03 06:01:09 +00:00
Ted Lin
89bde98bef dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: I34fe2ec8a0319abea57966b7b6333f460764dada
2021-09-03 06:01:09 +00:00
Ted Lin
2b86da4352 dumpstate: move the dump registers from regmap to each driver
dumpstate availible to dump data with below 2 permission:
-r--r--r-- 1 root root
-r--r----- 1 system system
but /d/regmap permission is -r-------- 1 root root
1. we cannot change root to system with chown if the file node is root
2. we cannot change to read with chmod if the file node is root
3. try change permission in vendor_init causes sepolicy build fail with
   message rule neverallow

Base on above results, we added new file node in kernel with available
permission to dump needed data and dump it.

Bug: 194941806
Test: adb bugreport
Change-Id: Ieeb1adfb0351ceb33bf817cbef3663d41cdb8645
Signed-off-by: Ted Lin <tedlin@google.com>
2021-09-03 05:44:37 +00:00
Bob Badour
c08588abaf [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101 am: 9600d301b7 am: 96078c8a90
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15738724

Change-Id: Ifb541b8ed0de5392e8ea76a9a90783ec82eab93c
2021-09-02 23:27:32 +00:00
Bob Badour
ec47ba52c5 [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101 am: 9600d301b7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15738724

Change-Id: I596bfd6009c5b80c22380259b1f8f9fcb546a4b8
2021-09-02 23:17:21 +00:00
Jack Wu
0bb55e9aaa gs101: separate WirelessCharger from device_framework_matrix_product am: 0add4b6582 am: dbaa472c53
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15723570

Change-Id: I3846ab523a515417ffbedbd591fc262d0834b8c8
2021-09-02 07:18:59 +00:00
Jack Wu
690f58c05c gs101: separate WirelessCharger from device_framework_matrix_product am: 0add4b6582
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15723570

Change-Id: Ibb8906af31f287fb3286aeed03c8bd54e2fd4d5e
2021-09-02 07:04:00 +00:00
Jack Wu
6908766de0 gs101: separate WirelessCharger from device_framework_matrix_product
Bug: 198221475
Test: WirelessCharger can run
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I7120f5f5338dc95ca19a977ad0028b54a410c80a
2021-09-01 13:07:58 +00:00
Bob Badour
25b5f6dbbf [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101
Added SPDX-license-identifier-Apache-2.0 to:
  conf/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ibba45375a32253dce8185674b1dddf08c83b3fe0
2021-08-31 18:51:50 -07:00
leohsieh
7bf8127511 Remove project info from udfps_common.mk am: 4ac6e0cb59 am: e2f62493ce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15623881

Change-Id: I12462120c1ac203026a7b24fa4db063b7aa0ed78
2021-08-31 11:52:37 +00:00
leohsieh
85107cc2d8 Remove project info from udfps_common.mk am: 4ac6e0cb59
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15623881

Change-Id: I74aaa2e053edf9df91b0abe55f795ad2186bb5fe
2021-08-31 11:38:43 +00:00
leohsieh
0385e708a6 Remove project info from udfps_common.mk
Move GOODIX_CONFIG_BUILD_VERSION to device mk.
Fixes "There is no fp HAL on factory build".

Bug: 197213960
Test: lunch oriole-userdebug
Test: lunch factory_oriole-userdebug
Test: lunch oriole_hwasan-userdebug

Change-Id: I39ba0675eb3046d7d8229a996f3d728aedc59b02
2021-08-31 11:23:29 +00:00
Joe Huang
79991feca4 Revert "Separate gps from init.gs101.rc"
This reverts commit 5c34fffc06d4842e8733591876c4a4c8aa70776f.

Reason for revert: <b/198158466, will re-land with a suitable fix>

Change-Id: If9fa482e4e0f247a66cc665c1e7f2f7c971efb21
2021-08-31 05:00:09 +00:00
Eric Biggers
e6c6fcd235 Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 99dce51a94 am: 3cc48d2eca
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: I02879a4ce81c7dbb5149cd9a19bd06931429b4fe
2021-08-30 23:39:36 +00:00
Eric Biggers
de02adef74 Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 0f66842f06 am: 2d9800dfe4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Ic5e11c21dd6f2ef3eb506da6514f61029bf99533
2021-08-30 23:39:28 +00:00
Eric Biggers
7d148430ad Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 99dce51a94
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Ia7834e39ac7727cf56fb7dbfb70a7e361f2acf8b
2021-08-30 23:28:08 +00:00
Eric Biggers
9b9ac62ffe Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 0f66842f06
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Ic20ecc63d7254ec7cdbddacb489ac42e993f2156
2021-08-30 23:26:24 +00:00
Eric Biggers
565b9b27ae Generate a separate fstab file for FIPS mode am: 08c8bc2e40
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Iafebe12fb8b8f585ec6e57a4edd0d23271b779e0
2021-08-30 23:16:39 +00:00
Eric Biggers
f8622be0fd Generate a separate fstab file for FIPS mode am: 08c8bc2e40
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: I989dad797866cc82ad11cf2bca3e705370689517
2021-08-30 23:16:38 +00:00
Eric Biggers
f739cf68c0 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs101-fips" alongside the existing "fstab.gs101" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs101-fips" on the kernel command line will be
used to select the FIPS fstab when needed.

As the two fstabs should be otherwise identical, generate them from a
template file so that they will stay in sync.

Note that generating the fstabs requires that they be installed as build
system modules rather than via PRODUCT_COPY_FILES, which results in the
vendor_ramdisk copy of the fstabs being installed to system/etc rather
than /.  This shouldn't cause any problem, now that Android has been
updated to look for the fstab in this location too.

Bug: 191417025
Change-Id: I1d115e014df8ba2fb83046ac0b9b791597364846
2021-08-30 14:09:06 -07:00
Puma Hsu
68393a449e usb: fix the naming for uwb mode am: af3face69d am: 28ffaeb43a am: 6bed5046c7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: Ib98fa8f88cb18614c81e2887813968b35006b853
2021-08-30 02:59:46 +00:00
Puma Hsu
5ac6e926e3 usb: fix the naming for uwb mode am: af3face69d am: 65de06b418 am: b5f38d0561
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: Id5f912933552288da49c2022f07d676317fe7e84
2021-08-30 02:59:28 +00:00
Puma Hsu
65f63cdedb usb: fix the naming for uwb mode am: af3face69d am: 28ffaeb43a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: Id66979d3e14429e350a9bb7831d19abe6c342cbb
2021-08-30 02:42:02 +00:00
Puma Hsu
626828a618 usb: fix the naming for uwb mode am: af3face69d am: 65de06b418
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: I89e345795e95b5af9654ac378646e7bc62af3f9d
2021-08-30 02:41:34 +00:00
Puma Hsu
a1e2a9b9a4 usb: fix the naming for uwb mode am: af3face69d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: I15f70fb6192dc54f5f27e4efea9253ab038b7fd7
2021-08-30 02:24:22 +00:00
Puma Hsu
f723d1535f usb: fix the naming for uwb mode am: af3face69d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: Ifc461cbcaee2802e8e7a7dce499565cd172a3b2c
2021-08-30 02:24:22 +00:00
Puma Hsu
c798852213 usb: fix the naming for uwb mode
In previous we created a new bootmode "uwb" which will enable
the ACM port, but the name was wrong. Rename it as "usbuwb"

Bug: 187877902
Test: ACM port can be enabled
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: Id27930c4c34e7272cebf1825b6aa68f526e84112
2021-08-29 22:21:30 +08:00
Victor Liu
f3b6a9f8c6 Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15698159
Change-Id: I7e43c06b2ce536b1ecbe1f9cbaab0001b25381b8
2021-08-28 18:07:32 +00:00
Victor Liu
7807f65b98 Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15698159
Change-Id: Id990f534a4d992f31c65fc767b466dab35e78d67
2021-08-28 17:52:58 +00:00
Victor Liu
d85344a3c2 Bug: 192233033
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: I3db1a5b6860956290e46909c0900442947da4125
2021-08-28 17:33:14 +00:00
Bob Badour
ec31146ccf [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101 am: ce8298edab am: c4a28b2114
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15686476

Change-Id: Ia4d783a49e11f85e88b02ecb925c2a3b0fbfa424
2021-08-27 00:50:49 +00:00
Bob Badour
d92d8ef4fd [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101 am: ce8298edab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15686476

Change-Id: I632d126989bc270d58e528c303aa04b9b409ec7b
2021-08-27 00:32:15 +00:00
Bob Badour
a63bb9d513 [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101
Added SPDX-license-identifier-Apache-2.0 to:
  fingerprint/fpc1540/fp_tool/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I82ead6a8a6fdef70712d5193174e8652e785a7d4
2021-08-26 12:06:55 -07:00
eddielan
771d823ab6 fingerprint: Add performance configuration am: efff89ca32 am: f0cfa63670
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15544540

Change-Id: I05823d923db69132b50f79b3cda5ed80def29217
2021-08-26 12:10:55 +00:00
eddielan
51077b81eb fingerprint: Add performance configuration am: efff89ca32
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15544540

Change-Id: Idd22f2c8689f39d684315d5d1ae20d28480c063f
2021-08-26 11:54:00 +00:00
eddielan
ffb00dfe09 fingerprint: Add performance configuration
Bug: 195999248
Test: Build Pass & perform authentication on device
Test: The latency is reduced from 352ms to 133ms
Change-Id: Id0c4e34fb98aa50995449ff66ffe894a37a1bdeb
2021-08-26 11:42:59 +00:00
Puma Hsu
9b4367d9e7 usb: create new functions for uwb am: 563421fa4f am: 2be6691764 am: e3955098b7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: I76aed2732a976daa9a306516deb1797f4785335d
2021-08-26 07:19:17 +00:00
Puma Hsu
032fb3bbaf usb: create new functions for uwb am: 563421fa4f am: 55b3779010 am: 51d2d580cf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: I98f768b08564d5302bddd853cdb9d08425234da0
2021-08-26 07:19:08 +00:00
Puma Hsu
d8071b2f84 usb: create new functions for uwb am: 563421fa4f am: 2be6691764
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: I1f65ef88cd9bf0d8aca5012d06909d24e2814a3e
2021-08-26 07:07:41 +00:00
Puma Hsu
24cf4a2362 usb: create new functions for uwb am: 563421fa4f am: 55b3779010
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: Iad08011a362fbfc63e604c24082045bd1290db3d
2021-08-26 07:07:13 +00:00
Puma Hsu
273d9467ae usb: create new functions for uwb am: 563421fa4f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: I24928bb50356d01199ba7de2a331e425b9884b93
2021-08-26 06:53:40 +00:00
Puma Hsu
ab355dd063 usb: create new functions for uwb am: 563421fa4f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: Ie50b6b466b11cb2f49fe679b622b8fc6a461aa9c
2021-08-26 06:53:35 +00:00
Puma Hsu
fbcb7ad5dc usb: create new functions for uwb
uwb needs ACM port, create this function combination.

Bug: 187877902
Test: ACM port can be enabled.
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
2021-08-26 06:37:39 +00:00
Rex Lin
a55085c667 uwb: add uwb diag modules into the dlkm blocklist am: 09f8008be1 am: c369ca0d52
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15185253

Change-Id: Ied525590b354c76f78fe2eeed52301a9070ba6d3
2021-08-26 03:41:20 +00:00
Rex Lin
8a100fc84a uwb: add uwb diag modules into the dlkm blocklist am: 09f8008be1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15185253

Change-Id: I2147b083df10244b67baa6cb5018ec572709d159
2021-08-26 03:26:19 +00:00
Rex Lin
45b4d2d89b uwb: add uwb diag modules into the dlkm blocklist
Bug: 191339300, 192638358

Test: verified pass with local build
Change-Id: I24cfe8b490bee6b8872111cfb4f9d77de3e603a2
2021-08-26 03:11:54 +00:00