355 Commits
bka ... udc

Author SHA1 Message Date
bcd99e7b2a gs101: Initialize for Evolution X 9.x
Signed-off-by: AnierinB <anierin@evolution-x.org>
2024-09-10 14:08:54 -07:00
Aaron Kling
f807f77af8 gs101: Remove elf files in copy files check
New extract files uses packages instead of copy files

Change-Id: I337c07d13bd350958d4808e1693cc6e03753a96c
2024-09-03 03:22:41 +03:00
basamaryan
49a4fdbf2b gs101: Drop unnecessary BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE flag
Change-Id: Ibb96c529ac64239d7bb919e46f5a625a6deebf98
2024-06-23 04:42:56 +00:00
Michael Bestas
b06bfd777e gs101: Disable Wi-Fi verbose logging by default
Change-Id: Iafe9f4b83d157906ca6b9114db52ab27b1a01878
2024-06-23 02:18:54 +03:00
Michael Bestas
9ad6188f36 Merge tag 'android-14.0.0_r50' into staging/lineage-21_merge-android-14.0.0_r50
Android 14.0.0 Release 50 (AP2A.240605.024)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZmdzmgAKCRDorT+BmrEO
# eCn9AJ4uAHE5aMPyOB9U/A4KDyDcosZE9ACcCBPK6aoyta7lmn8o+JsfqhEZ7YE=
# =QLYb
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Jun 11 00:43:54 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2545 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Wilson Sung (4) and others
# Via Android Build Coastguard Worker (19) and others
* tag 'android-14.0.0_r50':
  Revert^2 "Remove persist.bootanim.color property definitions"
  Revert "Remove persist.bootanim.color property definitions"
  Allow camera to acquire wakelocks.
  Remove persist.bootanim.color property definitions
  [gs101] Use common settings for Contexthub HAL
  add dsim wakeup labels
  Update i2c sepolicy with new device names
  Update i2c device paths
  Removed SE Linux error bugmap entry, as we have fixed this property usage.
  Update SELinux error
  sepolicy: allow hal_power_stats to read sysfs_display
  Update SELinux error
  Correct the path of tcpm wakelock
  Fix SELinux error in dump_modem
  selinux: label wakeup for BMS I2C 0x36, 0x69
  gs101: move mediacodec_samsung sepolicy to gs-common
  Remove obsolete entries
  Update SELinux error
  Update SELinux error
  Allow GRIL to get power stats.

 Conflicts:
	sepolicy/whitechapel/vendor/google/file_contexts

Change-Id: I1dd06d0b94a732cd10c7225fcdb686749ab91cb9
2024-06-15 22:40:51 +03:00
Michael Bestas
a4a53fc4bb Merge tag 'android-14.0.0_r50' into staging/lineage-21_merge-android-14.0.0_r50
Android 14.0.0 Release 50 (AP2A.240605.024)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZmdzmgAKCRDorT+BmrEO
# eAyLAJ4kSaiWVovZeSkGJ3DJJcuazdHDvACfbV7YjbAleEf0777t8fUBwT+wCyc=
# =Kq5S
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Jun 11 00:43:54 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2545 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Jenny Ho (3) and others
# Via Android Build Coastguard Worker (35) and others
* tag 'android-14.0.0_r50': (36 commits)
  Update health AIDL HAL to V3
  Revert "Add betterbug mk to gs101"
  Adding android.software.contextualsearch to gs-101 devices.
  pixelstats: added multiple GMSR paths
  Add betterbug mk to gs101
  pixelstats: gs101: add Learning/Update/ModelLoad path
  Update tcpm-source-psy i2c name
  dumpstate: moving charger nodes to user build
  [gs101] Enable Multiclient HAL
  init.gs101.rc: Increase uclamp_min at boot time by 1.25
  bcl: Adjust GPU clk divider ratio
  Move manifest entries to gs-common.
  [Refactor] Include edgetpu targets in final image
  Add Youtube back in MRR Small Area Detection Allowlist
  Update i2c device paths
  gs101: enable dynamic color mode
  gs101: Remove sysprop forcing renderengine to skiaglthreaded
  powerstats: expose display MRR state residency data provider
  liboemservice_proxy: Remove service defs
  Disable stripping vendor_dlkm modules
  ...

 Conflicts:
	device.mk
	dumpstate/dump_gs101.sh

Change-Id: I42ea73d5682b83bbb379a49601ccd9aef3eae5f5
2024-06-15 22:39:02 +03:00
Tommy Webb
99b6bac2d0 Revert "Add back saturated color mode"
This presence of this color mode now leads to problems deactivating
color inversion and color correction, even if it is not selected.

This reverts commit d3637f9c0f.

Issue: calyxos#2312
Change-Id: I1ce6aec9d32d4b3fd2d88545c91c579b8313e50a
2024-04-30 20:20:17 +03:00
Michael Bestas
f8405c8118 gs101: Update AiAi configs
Extracted from stock raven AP1A.240405.002

Change-Id: Ief71f77fb2475311ed555fece837f46ff1eae4aa
2024-04-26 18:25:28 +03:00
Michael Bestas
acc53be047 fixup! Disable userdebug diagnostics
Change-Id: Ica4d6a060321bd8f9528a31c1fa2eef5c893453d
2024-04-24 20:01:47 +03:00
Michael Bestas
1abf97252c Merge tag 'android-14.0.0_r30' into staging/lineage-21_merge-android-14.0.0_r30
Android 14.0.0 Release 30 (AP1A.240405.002)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZgs+ygAKCRDorT+BmrEO
# eI1IAJ9mgIv5nezP+EQVwC/53YZHZp9NzACdE1h4vEVyy6Bv3/xtMqbY3aoHg8g=
# =JMIf
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Apr  2 02:10:02 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2415 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By George Lee
# Via Android Build Coastguard Worker
* tag 'android-14.0.0_r30':
  bcl: Adjust GPU clk divider ratio

Change-Id: I07a4ae585c511fb0fd96f1ac51191a4ef81d85dd
2024-04-03 14:16:58 +03:00
Michael Bestas
69952c4b82 gs101: overlay: Enable battery cycle count
Change-Id: I92bc8363e1c9e2ad54c29a0a30dce992e25f697d
2024-03-28 00:06:56 +02:00
Michael Bestas
65d27d2bb1 Merge tag 'android-14.0.0_r29' into staging/lineage-21_merge-android-14.0.0_r29
Android 14.0.0 release 29

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZeZWyQAKCRDorT+BmrEO
# eJ+VAKCAA0zSyB7itWVlysqPYjELz3HVCwCeLn11rfSCP2BGrtyTbCs2YFf5tHg=
# =Q8Z1
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar  5 01:18:33 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2389 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Inseob Kim (10) and others
# Via Automerger Merge Worker (430) and others
* tag 'android-14.0.0_r29': (64 commits)
  Update SELinux error
  Fix rlsservice sepolicy
  Update SELinux error
  Add Secretkeeper HAL
  gs101: move common sepolicy related to bootctrl hal to gs-common
  Removes duplicate hidraw_device type definition.
  Update SELinux error
  Suppress avc error log on debugfs's usb folder.
  Move sg_device related policy
  Add Pixel Mapper as a sp-HAL
  Removes duplicate hidraw_device type definition.
  Set up sepolicy for CHRE HAL process
  aoc: add sysfs file entry
  Change the MDS to platform app in selinux ap context.
  sensors: Move USF related sepolicy to gs-common.
  Update SELinux error
  Update SELinux policies for rlsservice
  Update SELinux error
  Update SELinux error
  Move i2c-cs40l26a to gs101-sepolicy
  ...

 Conflicts:
	sepolicy/gs101-sepolicy.mk

Change-Id: Icbdc8b434917755dfa9ad12c30f6a5b338702c25
2024-03-10 09:27:46 +02:00
Michael Bestas
b75ada74c7 Merge tag 'android-14.0.0_r29' into staging/lineage-21_merge-android-14.0.0_r29
Android 14.0.0 release 29

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZeZWyQAKCRDorT+BmrEO
# eBdFAJ9X+RNBg4XzKpJGBtZqLfA76G3lbACfXTMEXKFgA3yryS7Bwz8yXD+6uJc=
# =fl5y
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar  5 01:18:33 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2388 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Roy Luo (9) and others
# Via Automerger Merge Worker (692) and others
* tag 'android-14.0.0_r29': (77 commits)
  Revert^3 "Use graphics allocator 2"
  usb: enable media-presence polling for SD cards
  Revert^2 "usb: introduce UsbDataSessionMonitor class"
  gs101: use android.hardware.boot aidl interface
  gs101: update manifest HAL android.hardware.boot from hidl 1.2 to aidl
  Revert "usb: introduce UsbDataSessionMonitor class"
  gs101: include bootctrl_hidl_1.2.mk from gs-common
  gs101: move bootctrl service declaration to gs-common
  gs101: move bootctrl hal to gs-common
  bcl: adjust heavy clk divider ratios
  usb: introduce UsbDataSessionMonitor class
  Update default color temperature for night light
  Add webview pinning for gs101 devices
  gs101: add c2.android.av1-dav1d.decoder in media_codecs_performance_c2.xml
  usb: update usb hal version to v3
  gs101: update AIDL IGoogleBattery manifest version to 3
  Remove unused Android.mk under device/google/gs101
  usb: update incompatible charger warning reason
  Revert^2 "Use graphics allocator 2"
  fstab: allow unlocked devices to boot with AVB test key
  ...

 Conflicts:
	device.mk
	fingerprint/udfps_common.mk

Change-Id: I6722005bc4263331e9ba484c9debdcb98c99c413
2024-03-10 09:26:57 +02:00
Android Build Coastguard Worker
83d95e8542 Snap for 11526283 from 2a9b7e75e3 to 24Q2-release
Change-Id: Ie80561c31f3988999415cd10ad72beb0e6675cc8
2024-03-05 00:30:18 +00:00
Android Build Coastguard Worker
a88081054d Snap for 11504324 from 0ab9ff1e87 to 24Q2-release
Change-Id: I54c818b8869019c73458c2182edfcfe708ed2b40
2024-02-28 00:02:31 +00:00
Android Build Coastguard Worker
4c7483b17e Snap for 11491255 from 7c919c2a2b to 24Q2-release
Change-Id: I97672f48d341c8d0cbc4fbd1e523ee9f236cbdf3
2024-02-24 02:02:20 +00:00
Android Build Coastguard Worker
5fed4a2ae0 Snap for 11486370 from ea03d9909d to 24Q2-release
Change-Id: Idc7d0de32bcf5c6941f1df717ed4db80580044b9
2024-02-23 00:02:28 +00:00
Android Build Coastguard Worker
d4b32157c1 Merge cherrypicks of ['googleplex-android-review.googlesource.com/26256747'] into 24Q1-release.
Change-Id: Ica3b1c64c8926509519bbb6b0e002e4f46330912
2024-02-22 00:08:50 +00:00
George Lee
5ce7f0d574 bcl: Adjust GPU clk divider ratio
Revert GPU clk divider ratios.

Bug: 324534203
Test: Confirm no DATA_INVALID_FAULT while running GFXBench under stress
Signed-off-by: George Lee <geolee@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e3ec636b99326e0cc1922588502533243317460c)
Merged-In: I9379988d68665924de72441bc0ea24f5fc12be4d
Change-Id: I9379988d68665924de72441bc0ea24f5fc12be4d
2024-02-22 00:05:50 +00:00
Android Build Coastguard Worker
7ea6719c97 Snap for 11479893 from 40465c1988 to 24Q2-release
Change-Id: I9323e9fa478d63b4d6b09f69e31504a6ff6608da
2024-02-22 00:02:40 +00:00
Android Build Coastguard Worker
903bd887f7 Snap for 11420186 from 3a53df7d7a to 24Q2-release
Change-Id: If67a5f8bcaf181836915411928ffaa8edf89b9e8
2024-02-08 00:02:42 +00:00
Michael Bestas
6985a20b52 gs101: Squashed revert of inline kernel build
Revert "Build kernel with clang r450784e"

This reverts commit cd8e22d3a9.

Revert "gs101: Inline kernel building"

This reverts commit b8916b382e.

Change-Id: I780cedbab50ba946633b220f6f3818be47097831
2024-02-08 00:30:00 +02:00
Android Build Coastguard Worker
11a1b260dd Snap for 11392706 from e2e71d0850 to 24Q2-release
Change-Id: I7377e9eef3ba1bcbcadce2e40f01edb73488e5f0
2024-02-02 00:02:29 +00:00
Android Build Coastguard Worker
24d2379690 Snap for 11386701 from 16de970cd0 to 24Q2-release
Change-Id: I8dcb2e045df33a16a8a1b37a672986d0b108235f
2024-02-01 00:02:00 +00:00
Android Build Coastguard Worker
a1b4e0e401 Snap for 11373247 from 7ea71a9c1c to 24Q2-release
Change-Id: I86a13f9e5e51121d94da79ab3ec86cf4a4aaec8f
2024-01-30 02:02:39 +00:00
Android Build Coastguard Worker
26bb32d26e Snap for 11343021 from 3116a34269 to 24Q2-release
Change-Id: I9fb27e8e56fc0cd560c8562a1a3714265b3941be
2024-01-23 00:02:43 +00:00
Android Build Coastguard Worker
549af40145 Snap for 11330025 from 59e8449b01 to 24Q2-release
Change-Id: I0945fc535974f239b0e8fa55924e1a209f548af3
2024-01-19 00:02:46 +00:00
Android Build Coastguard Worker
784901c878 Snap for 11308440 from dc869395ad to 24Q2-release
Change-Id: I52dcca66942b535d2e347b69efdbf1e1b81f21de
2024-01-13 02:08:05 +00:00
Android Build Coastguard Worker
529cbbb4b0 Merge cherrypicks of ['googleplex-android-review.googlesource.com/25842910'] into 24Q1-release.
Change-Id: Id61c274866afb3474a3fbd35cb8850419b1487b3
2024-01-11 22:19:11 +00:00
Devika Krishnadas
5a96e26581 Revert^3 "Use graphics allocator 2"
0a894f5d0d

Reverting to comply with the Allocator VTS for 24Q1, do not merge to main.

Bug: 310046460
Test: VtsHalGraphicsAllocatorAidl_TargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4978e0985e1b74c8fe868fa56eb65c095a2fcd8f)
Merged-In: I57a9dc98122f312ad98dacbab343d7eb98700cec
Change-Id: I57a9dc98122f312ad98dacbab343d7eb98700cec
2024-01-11 22:16:58 +00:00
Android Build Coastguard Worker
e006e56e2c Snap for 11297328 from 6073bb0ff8 to 24Q2-release
Change-Id: I661a2dd0433c5e0384c59570f153cb784901595a
2024-01-11 00:05:20 +00:00
Android Build Coastguard Worker
eeb0a03716 Snap for 11292102 from 4a0a6e1d78 to 24Q2-release
Change-Id: I40c92ec81666cc4c775ebfda1fb0944729563df9
2024-01-10 00:03:10 +00:00
Android Build Coastguard Worker
635f81ceb9 Snap for 11260009 from c4181c461d to 24Q2-release
Change-Id: I69bb2222e705cd3a10e5516cfc0c6da5fe1180e2
2023-12-29 00:02:46 +00:00
Android Build Coastguard Worker
9303fdf2a5 Snap for 11255311 from 52fc41b1c2 to 24Q2-release
Change-Id: I036decda391c1d4261577512236b124c3e161272
2023-12-27 00:04:06 +00:00
Android Build Coastguard Worker
62f83b665d Snap for 11251507 from 7a00cea0a7 to 24Q2-release
Change-Id: I9870afd9300c841ed3fa3649dad9ae02c81911a7
2023-12-23 02:02:32 +00:00
Android Build Coastguard Worker
bf976111ff Snap for 11248037 from 64e2ac2aa0 to 24Q2-release
Change-Id: I0f4c6f6a2864c7c1aa9fb9eceb55b99b1ac3b40c
2023-12-22 00:04:39 +00:00
Michael Bestas
2c158032ab gs101: Update AiAi configs
Extracted from stock raven UQ1A.231205.015

Change-Id: I56bdf976af36cee52f35ef2dd6a91b6001126b7f
2023-12-19 05:08:24 +02:00
Michael Bestas
36beafb006 gs101: Update ConnectivityThermalPowerManager config
Extracted from stock raven UQ1A.231205.015

Change-Id: I64a01f21c22b925bee2a3dfecf5fded52ff64b40
2023-12-19 05:03:12 +02:00
Android Build Coastguard Worker
8421a2155c Snap for 11227258 from 9fa7db53a1 to 24Q2-release
Change-Id: I437c1e02a42000098bdd62da3634aaee598b0fb6
2023-12-16 02:01:49 +00:00
Michael Bestas
d0601cdd66 gs101: Move kernel dependency to devices
gs201 and zuma also depend on this tree, while zuma uses a newer kernel

Change-Id: I84eae40d934aa15bf9621b264a3ddb285c61b5a3
2023-12-14 22:56:29 +02:00
Android Build Coastguard Worker
c68dbd90b3 Snap for 11216811 from 9fa7db53a1 to 24Q1-release
Change-Id: Id16ac3ee2ec26dc825ae2da5e410cc11d808dfc8
2023-12-14 00:02:34 +00:00
Android Build Coastguard Worker
6eb1d11eb9 Snap for 11211173 from 93d9eb0a8f to 24Q1-release
Change-Id: I2532821a8e39d6772799563edebc6e107445042e
2023-12-13 00:05:11 +00:00
Android Build Coastguard Worker
03a219f482 Snap for 11206181 from 9b55292c7e to 24Q1-release
Change-Id: I48faf08d903d7866f832d238269052918e4d9d87
2023-12-12 02:01:59 +00:00
Android Build Coastguard Worker
bfdf794e8b Snap for 11206181 from 1819593a37 to 24Q1-release
Change-Id: Ic75ee044c3c9dec104f08d283030259897923c81
2023-12-12 02:01:58 +00:00
LuK1337
dac0567df5 gs101: Add liboemcrypto.so to vendor linker config
This lets com.google.android.widevine.apex access it.

Change-Id: I4e9654fe6317b722f5fbf43b92abb367c18640ce
2023-12-11 15:03:02 +00:00
Michael Bestas
f81710f858 Merge tag 'android-14.0.0_r17' into staging/lineage-21_merge-android-14.0.0_r17
Android 14.0.0 Release 17 (UQ1A.231205.015)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZXDPIgAKCRDorT+BmrEO
# eFDZAJ9B8i7YeXMmOpDtqP8oXa2mTLlQEgCfUQK84FZnJW9XrMKXy8lygt8wOOs=
# =w+R7
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Dec  6 21:44:34 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2195 signatures in the past
#      2 years.  Encrypted 4 messages in the past 23 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Adam Shih (2) and others
# Via Automerger Merge Worker (64) and others
* tag 'android-14.0.0_r17':
  Revert^2 "Introduce CameraServices seinfo tag for PixelCameraServices"
  Revert "Introduce CameraServices seinfo tag for PixelCameraServices"
  Introduce CameraServices seinfo tag for PixelCameraServices
  Update SELinux error
  Remove settings for old ArmNN HIDL backend
  Revert "Update SELinux error"
  Allow bthal to access vendor bluetooth folder
  Create telephony.ril.silent_reset system_ext property for RILD restart
  Add bluetooth extension related sepolicy
  Add sepolicy for aidl bt extension hal
  [TSV2] Remove tcpdump sepolicy from gs101 and move sepolicy to gs-common
  Update error on ROM 9930000
  Remove obsolete entries

 Conflicts:
	sepolicy/whitechapel/vendor/google/keys.conf

Change-Id: Ie60fef074fee2071378a163abcf945fa990916d4
2023-12-10 16:32:27 +02:00
Michael Bestas
d85d21e74f Merge tag 'android-14.0.0_r17' into staging/lineage-21_merge-android-14.0.0_r17
Android 14.0.0 Release 17 (UQ1A.231205.015)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZXDPIgAKCRDorT+BmrEO
# eDIUAJ9HfGK923MvFi1+2aeoKqDdJem5PQCgizhSooh92hP3D1uN4cFRaMqLdJk=
# =zH2B
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Dec  6 21:44:34 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2195 signatures in the past
#      2 years.  Encrypted 4 messages in the past 23 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Krzysztof Kosiński (4) and others
# Via Automerger Merge Worker (115) and Android Build Coastguard Worker (51)
* tag 'android-14.0.0_r17': (42 commits)
  Run fsck to resolve possible data corruption
  Revert "gs101: Enable SkiaVk as RenderEngine backend"
  usb.rc: Advertise 360p and 480p support through UVC
  Usb.cpp: Fix typos when unable to disable USB data
  [SELinux] Add gyotaku_app doamin to Pixel 2020.
  UsbGadget: Update SDP enum timeout when gadget is pulled up
  usb: Modify sdp enumeration timeout value in charger mode
  init.gs101.rc: Disable util-awareness
  Disable variable refresh rate when typing on gs101
  gs101: tweak memory management
  Grant default permissions to PCS for camera connectivity
  Revert "Enable small dirty detection for variable refresh rate"
  Enable small dirty detection for variable refresh rate
  Support variable refresh rate when typing on gs101
  Set USF SoC from board makefile.
  Remove IScreenProtectorDetectorService.
  gs101: Add path reading for StormIRQ
  Disable armnn nnapi backend
  Update IDisplay to V9
  Bump IDebugManager version to 4
  ...

 Conflicts:
	BoardConfig-common.mk
	device.mk
	neuralnetwork/neuralnetwork.mk

Change-Id: I4e119f5fc406612660976d45a2298546282665e6
2023-12-10 16:31:17 +02:00
Android Build Coastguard Worker
f5e75b6dd6 Snap for 11200327 from bedb8beca9 to 24Q1-release
Change-Id: I49634d2f00fea7d1616c45fd8772f3d79fd83484
2023-12-09 04:02:19 +00:00
Android Build Coastguard Worker
8352ae0630 Snap for 11186783 from 422638059a to 24Q1-release
Change-Id: I8a45d08522e280346f7c5732d4424bc9dd33a6d1
2023-12-07 00:02:03 +00:00
Android Build Coastguard Worker
2ab6633dc3 Snap for 11186783 from a2074a4363 to 24Q1-release
Change-Id: I7a2fa229eceec32b650d9a8c2ff0865dba6635ec
2023-12-07 00:02:03 +00:00
Android Build Coastguard Worker
0c48860ab2 Snap for 11180250 from 3f3bfddaff to 24Q1-release
Change-Id: I3db435c5d9ff251d974540dcd8400be2cf309d1d
2023-12-06 00:04:23 +00:00
Android Build Coastguard Worker
968c69de0d Snap for 11180250 from 1aad6b6b31 to 24Q1-release
Change-Id: I90380ee146c8f96fd660ae73e91f604950216452
2023-12-06 00:04:23 +00:00
Android Build Coastguard Worker
21071dfb81 Snap for 11175020 from cc9b389190 to 24Q1-release
Change-Id: I7f1939767be9f45e5aecf04ed815bba237811ec3
2023-12-05 02:30:29 +00:00
Android Build Coastguard Worker
ec351cdce8 Snap for 11169761 from 67556c182a to 24Q1-release
Change-Id: I2cbd5731c8f68b96d6f387199443e24d61e89799
2023-12-02 02:01:55 +00:00
Android Build Coastguard Worker
369b596d6d Snap for 11169761 from 021d2647eb to 24Q1-release
Change-Id: Ia304d4faeb4b6cf221888bf8bdce0598860f94d8
2023-12-02 02:01:55 +00:00
Android Build Coastguard Worker
30259c1114 Snap for 11146061 from eae154f7fd to 24Q1-release
Change-Id: I2116fb4a25900373ba388856984d470edfea778a
2023-11-28 00:02:30 +00:00
Android Build Coastguard Worker
1eca9b4421 Snap for 11135477 from ec6ba5806d to 24Q1-release
Change-Id: I1a23b5f95ef38190c53be961fc4cec46f1ebbbef
2023-11-23 00:02:26 +00:00
Michael Bestas
56dc0576a3 gs101: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2023-11-22 19:31:33 +02:00
Android Build Coastguard Worker
374747d3d7 Snap for 11130229 from a1bff1c2e9 to 24Q1-release
Change-Id: Icb839b45de7ab81c7c3472f1b4d02482403f6413
2023-11-22 00:03:25 +00:00
Android Build Coastguard Worker
1e6efc01b2 Snap for 11124398 from 4ed070d0aa to 24Q1-release
Change-Id: If616dbdcbf7335365e09b47e1197a71def180f8d
2023-11-21 00:01:56 +00:00
Android Build Coastguard Worker
4719d334f2 Snap for 11117647 from 4c082b94ba to 24Q1-release
Change-Id: I545cca270c4c28da06d0decf1945d2590a76af9e
2023-11-18 02:01:50 +00:00
Android Build Coastguard Worker
b36ff3e4da Snap for 11104212 from 725438e40e to 24Q1-release
Change-Id: I82e7842accd0c880d6648675e33fe55831bb2426
2023-11-16 00:02:35 +00:00
Android Build Coastguard Worker
59e8834b37 Snap for 11097608 from c9fcb3e550 to 24Q1-release
Change-Id: I4cf9f479d3af808baf1e75d799b3d1494dc75441
2023-11-15 00:02:19 +00:00
Android Build Coastguard Worker
b214eb69b2 Snap for 11089623 from a6c7f726b5 to 24Q1-release
Change-Id: Ibf6c3192f9b601f35d2746fcfac11ed3c7b48416
2023-11-14 00:02:00 +00:00
Android Build Coastguard Worker
f3dd7f5d79 Snap for 11089623 from ad57c8b744 to 24Q1-release
Change-Id: I7c99bc88207579183ab2867828dda1ae4cc3c551
2023-11-14 00:01:59 +00:00
Android Build Coastguard Worker
b10055dce3 Snap for 11084970 from f23c69b257 to 24Q1-release
Change-Id: Ia6a28615db64c538a69d7ed80ee26b2a736380a2
2023-11-11 02:02:20 +00:00
Android Build Coastguard Worker
710f241176 Snap for 11078623 from d7be6ca6d3 to 24Q1-release
Change-Id: I8317a0e665baeae74ed2a7d87af5d0d940ed29f2
2023-11-10 00:02:01 +00:00
Android Build Coastguard Worker
394d82ce6e Snap for 11071763 from 4bec6c0bf4 to 24Q1-release
Change-Id: Ie7022cfd894171e9f59b07c0e9fb4813f4c9c683
2023-11-09 00:02:03 +00:00
Android Build Coastguard Worker
ffcafd393f Snap for 11065517 from f237b33c72 to 24Q1-release
Change-Id: Iad98860e728288b8e2716f5b60bd37867c1364b4
2023-11-08 00:03:44 +00:00
Michael Bestas
0e19b06b9d Merge tag 'android-14.0.0_r14' into staging/lineage-21_merge-android-14.0.0_r14
Android 14.0.0 release 14

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZUmd6gAKCRDorT+BmrEO
# eIevAJ9AlG+TLv9TFWj+/8Sr6fj0Lgm0ewCgiJe52m4zKf7rp3GD9W1s5OUdnq8=
# =CYI3
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Nov  7 04:16:10 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2049 signatures in the past
#      2 years.  Encrypted 4 messages in the past 22 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Paul Lawrence
# Via Android Build Coastguard Worker
* tag 'android-14.0.0_r14':
  Run fsck to resolve possible data corruption
  Run fsck to resolve possible data corruption

Change-Id: Iaed57ffe67090f60a64b3eeab0b3789bd2a67770
2023-11-08 01:29:25 +02:00
Android Build Coastguard Worker
821703fd05 Snap for 11059422 from c11845e69e to 24Q1-release
Change-Id: I92d03c17c04c9a658fd6ec1ab3010372757e9082
2023-11-07 02:02:26 +00:00
Android Build Coastguard Worker
dc22094618 Snap for 11051137 from ea198bd127 to 24Q1-release
Change-Id: I76e1708c7650b5bc13ddccbd52cb43c6ed962345
2023-11-04 03:02:10 +00:00
Android Build Coastguard Worker
7d3dc79207 Snap for 11044623 from 533c98a59c to 24Q1-release
Change-Id: I5a61588cfdb5886d8a90a98a271e8d617418de64
2023-11-03 01:02:52 +00:00
Android Build Coastguard Worker
fe3960d6a1 Snap for 11038355 from c2f9f91066 to 24Q1-release
Change-Id: Iae53a50ad0b40e39761b97fb479818e9e4ca3eab
2023-11-02 01:02:39 +00:00
Android Build Coastguard Worker
b7473a8d0e Snap for 11031655 from 2d1201d13a to 24Q1-release
Change-Id: I882fee919718283fc29e0f5d840886e5d8978044
2023-11-01 01:02:35 +00:00
Android Build Coastguard Worker
1f4e83024d Snap for 11020550 from d489eba3dc to 24Q1-release
Change-Id: Ib97cb3d76d3b0d1a7bace23325a7bf8b51b884c7
2023-10-29 23:02:35 +00:00
Michael Bestas
0fa0bd8093 Add lineage.dependencies
Change-Id: I69ea95e240cca3f3b700ae68a4853e5a4d4fd5bc
2023-10-29 23:15:12 +02:00
Michael Bestas
cd8e22d3a9 Build kernel with clang r450784e
Pixel 5.10 kernel doesn't compile with r487747c and we don't want to
bother fixing all the new errors in kernel source and modules.

Change-Id: I4495c751e0fd7707fe5068416a04eed96948b954
2023-10-29 23:15:12 +02:00
Michael Bestas
b8916b382e gs101: Inline kernel building
Change-Id: I5cdfc16b5537541b0eb930d7dc02860994d89619
2023-10-29 23:15:12 +02:00
Rashed Abdel-Tawab
d8d29b4bcf gs101: Build a disabled vbmeta image
Squashed with:
Author: Nolen Johnson <johnsonnolen@gmail.com>
Date:   Sun May 9 16:04:34 2021 -0400

    Simplify AVB flag logic

    * AVB's `--flags 3` argument builds a disabled VBMeta with
      disabled hashtree, so no need to set both flags individually.

    Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838

Change-Id: Ie8f1e0929b037b35b5e45c2e31be9253fa0bb097
2023-10-29 23:15:12 +02:00
Neel Chauhan
d58e49e756 Revert "Enable compressed snapshots/VABc."
Virtual AB compression prevents GApps from being installed to
raviole/bluejay.

This reverts commit 2bfa6d3ba0.

Change-Id: I119b8e042e4cdeec27a19ab5dd4f0666cc115ae1
2023-10-29 23:15:12 +02:00
Eamon Powell
d522a7bd03 gs101: Don't copy aosp_excluded_hardware.xml to vendor
Change-Id: I9ae662e47b4bf8d9506f3938d9f4217acf947dc2
2023-10-29 23:15:11 +02:00
Michael Bestas
3b2dfd8eee gs101: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-10-29 23:15:11 +02:00
Alessandro Astone
3e57a774fa Build pixel touch HAL
Change-Id: I45cff81e1159613094440dd7b2b73b53519c9de6
2023-10-29 23:15:11 +02:00
Michael Bestas
f9e05f508b Include missing vendor sepolicy
Change-Id: Id35fb4b22e2ee8dfafdfb8ae601ab823435d2b94
2023-10-29 23:15:11 +02:00
Michael Bestas
a3b5582fa3 Label vendor.dolby.media.c2@1.0-service
Change-Id: I89fb4c149aed94cf2f7c3d34f7fde5877175b1e2
2023-10-29 23:15:11 +02:00
Danny Lin
8714f3c6a9 Update seapp certificates to match stock presigned apps
Certificates extracted from stock vendor_mac_permissions.xml using
adevtool: https://github.com/kdrag0n/adevtool

Change-Id: Iaf59f1548905d16fe7ad231c039ba43941c15710
2023-10-29 23:15:11 +02:00
Alessandro Astone
269b029eda Fix public key for EuiccSupportPixel sepolicy domain
Change-Id: I00f7a9a2b0f41d08af3262b0efd625dd2b6e1c9f
2023-10-29 23:15:11 +02:00
ReallySnow
04155e2c27 Add AiAi allowlist
* In Android 12, Android System Intelligence (com.google.android.as) uses
  some of the Private Compute Service (com.google.android.as.oss) services.
  The absence of these Allowlists will cause Android System Intelligence
  to fail to connect to the network and cause collapse.
* We don't need to extract google.xml to fix it, just extract the AiAi part

Change-Id: I446ae5d243cff134901094f82c90a0bbf3bb4381
2023-10-29 23:15:10 +02:00
Danny Lin
c1e5e0698c Squashed import of AiAi configs
Co-authored-by: Alessandro Astone <ales.astone@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: I78bd7d04cbd0b35f6a8c01df3a8c1013d99bbf42
2023-10-29 23:13:05 +02:00
razorloves
0d77eb713d Hide user facing crash dialog for EUICC app
The GoogleParts app disables the EUICC app when there's no GMS, but it
doesn't happen quick enough. The crash dialog pops up a few times right
after initial boot up. There's no need to alarm the user, so hide it.

Change-Id: Ia06b336b30a8886bae522c6e8a76a1ca15da5edd
2023-10-29 23:12:53 +02:00
Peter Cai
bcd4536442 Disable Euicc when GMS and GSF are not installed
* This avoids EuiccGoogle / GoogleCarrierServices crashing, taking the
  whole telephony stack with them when no GMS or GSF is installed.
* Compared to change 274251, this approach is no-op when GAPPS add-on is
  flashed before the first boot, and thus should not cause issues with
  eSIM when GAPPS is flashed.
* With microG, this also works after installing the microG GMS & GSF
  packages and rebooting, although manual activation of the eSIM is
  needed via Settings - Network.
* The only downside is that users will still see one or two crashes
  during the first boot because our application only starts after the
  device is booted.

Change-Id: I4a11c93e855978abbf8d84fdbe4ffc8b2aedc27c
2023-10-29 23:12:53 +02:00
Android Build Coastguard Worker
1d2857188c Snap for 11012804 from f4f8ef741b to 24Q1-release
Change-Id: Ib8ad62b8a63b213ea157d1309dc4e6f22c842b98
2023-10-27 03:18:58 +00:00
Android Build Coastguard Worker
9b9242915e Merge cherrypicks of ['googleplex-android-review.googlesource.com/25163335'] into udc-release.
Change-Id: I995f32b83d0f902619c44165ed5b9a11baa09a49
2023-10-26 19:49:49 +00:00
Paul Lawrence
71617479be Run fsck to resolve possible data corruption
Trigger fsck on mount of /data if the value of ro.preventative_fsck is
not equal to the contents of /metadata/vold/preventative_fsck, then set
the file to the property to prevent future runs

See b/305658663 for context

Bug: 305658663
Test: Make sure fsck run after first boot and not after second
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1bc693d338e8d26307d51bb6731d8e94f1df33f9)
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
2023-10-26 19:46:42 +00:00
Android Build Coastguard Worker
8c2f69eadb [coastguard skipped] Merge sparse cherrypicks from sparse-10873617-L38100000963723257 into udc-release.
COASTGUARD_SKIP: I1b983e857d11cba8fc75890bfeed5889543ea06d
COASTGUARD_SKIP: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe

Change-Id: I9205d8959fa0933a4b758824a8dbf570f2ade59d
2023-10-25 22:16:33 +00:00
Android Build Coastguard Worker
19eebe45c5 Merge cherrypicks of ['googleplex-android-review.googlesource.com/25163335'] into sparse-10873617-L38100000963723257.
SPARSE_CHANGE: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe

Change-Id: I1b983e857d11cba8fc75890bfeed5889543ea06d
2023-10-25 22:07:47 +00:00
Paul Lawrence
a80be5f7b9 Run fsck to resolve possible data corruption
Trigger fsck on mount of /data if the value of ro.preventative_fsck is
not equal to the contents of /metadata/vold/preventative_fsck, then set
the file to the property to prevent future runs

See b/305658663 for context

Bug: 305658663
Test: Make sure fsck run after first boot and not after second
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1bc693d338e8d26307d51bb6731d8e94f1df33f9)
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
2023-10-25 22:05:50 +00:00
Android Build Coastguard Worker
74ef448062 Snap for 10998418 from 22a0524609 to 24Q1-release
Change-Id: I03eff409e1ad01db502d17acc31a9a091077ced3
2023-10-25 01:05:33 +00:00
Android Build Coastguard Worker
c7e6389836 Snap for 10985023 from aa6b15007d to 24Q1-release
Change-Id: I3a6f9c196defa980abd0c49059e4d89b5914483c
2023-10-21 03:05:23 +00:00
Android Build Coastguard Worker
13de5e91ec Snap for 10985023 from 2c82b1ccfe to 24Q1-release
Change-Id: I1b3f58a9439d4d2f07ad895146c4dfb0eab568c3
2023-10-21 03:05:22 +00:00
Android Build Coastguard Worker
29eb144e2d Snap for 10970117 from 4a8b8ace61 to 24Q1-release
Change-Id: I261913e60cbb7e04af94df4c1fccac47860d555d
2023-10-19 01:09:03 +00:00
Android Build Coastguard Worker
065eee8b3e Snap for 10963245 from 88ae21dc60 to 24Q1-release
Change-Id: I1a7c5cd7b4bd50bca6069cfed9ce7fdca120d2dc
2023-10-18 01:04:24 +00:00
Android Build Coastguard Worker
dec3998f3e Snap for 10958510 from 0c5fff7954 to 24Q1-release
Change-Id: Ia127ba40a9e197e06e8915070ac609faa48ed141
2023-10-17 02:29:46 +00:00
Android Build Coastguard Worker
9a17383ff6 Snap for 10950137 from e9d930291a to 24Q1-release
Change-Id: Ib6eae8cf85934c4e2913e41783909eb1e539cc2c
2023-10-14 05:04:20 +00:00
Android Build Coastguard Worker
2dd352785b Snap for 10942032 from 402f9f3f88 to 24Q1-release
Change-Id: I83e4564ebb17dfb2672eebe261c8d453f39864af
2023-10-13 03:09:33 +00:00
Michael Bestas
460b999dfa Include missing ConnectivityThermalPowerManager sepolicy
Change-Id: I1e0f05159a6797251ed85360966aa45246005bbd
2023-10-12 20:16:56 +03:00
Danny Lin
4531cef22a Allow ConnectivityThermalPowerManager to request thermal mitigation
ConnectivityThermalPowerManager mainly exists to manage thermal
mitigation.

Change-Id: I7d1ad7cb45a24697e444ac1f85ccfb507cb1ce49
2023-10-12 20:16:55 +03:00
Danny Lin
dfe748ebbe Configure ConnectivityThermalPowerManager
Extracted from stock RQ1A.201205.010 on redfin.

Change-Id: I71ad5adf9bf64bb1e30354446220d5769a9d44ca
2023-10-12 20:16:55 +03:00
Danny Lin
4373dbce96 Enable Adaptive Connectivity setting
This feature is provided by the ConnectivityThermalPowerManager app that
we extract as a proprietary blob, so we can expose it.

Change-Id: I407e9e2235531fbca0b2c0e48b68105b1e77ad1f
2023-10-12 20:16:55 +03:00
Michael Bestas
444c165265 Remove quick_qs_{offset,total}_height overlays
Commit 49895bb361e74ffe92a3c0b76f988c8e4697b5c1 failed to remove
these overlays and this results in the following issue on raviole:
* Pull down status bar
* Try to adjust brightness, network settings open instead

This is caused by the 171px offset that causes the status bar
to overlap the brightness slider.

Test: Reliably adjust brightness, confirm with "Show layout bounds"
      from developer settings.
Change-Id: I1b97a28c257cb5b0faba830f29e9058d2dbe50fa
2023-10-12 20:16:55 +03:00
Nolen Johnson
c3200ffbb6 Set camera extension package to Google package
Change-Id: I519ebf8a1e2a9d06561471206c91c01b352ebd47
2023-10-12 20:16:55 +03:00
LuK1337
9cd9ea10fa overlay: Add reboot to fastbootd
Change-Id: I733b4d29129f85b92222e292af46602310b9f29f
2023-10-12 20:16:55 +03:00
Jesse Chan
017d24f824 overlay: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2023-10-12 20:16:55 +03:00
Michael Bestas
d0c9723dc3 Set default screen brightness
Extracted from stock.

Change-Id: I8a5e2c8717c145e66aaa0e926ceefc7e117b04c2
2023-10-12 20:16:54 +03:00
razorloves
c0389a1da0 Set auto brightness mode on by default
* Stock sets this on by default, mirror that behavior.

Change-Id: I5cb8e3db27849ebd90459a6d70e053158c05bcc9
2023-10-12 20:16:54 +03:00
Danny Baumann
f48a30e31c Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2023-10-12 20:16:54 +03:00
razorloves
aba19995c7 Set OPA property to enable google assistant
Change-Id: I741171219d64a28d56531f063f95f3f6f6cf81e6
2023-10-12 20:16:54 +03:00
razorloves
ba81d94ecf Use CarrierSettings app instead of CarrierConfig
The CarrierSettings app enables/disables carrier apps based on sim
inserted, so use it instead of CarrierConfig.

Change-Id: I163dd615e9d8268c5f94a28ae234a30f74c7e83b
2023-10-12 20:16:54 +03:00
Michael Bestas
f4c41967fc Set config_nightDisplayColorTemperatureCoefficients
Extracted from stock.

Change-Id: I5d69d01204b0dd86a7205eb3b16e02f97a7f3db2
2023-10-12 20:16:54 +03:00
Danny Lin
c69437c8aa Enable USB and skin temperature warnings
Extracted from stock.

Change-Id: I951f60579a4b7fa2dcc270b5acd433ad1ecb083c
2023-10-12 20:16:54 +03:00
Dan Pasanen
da22896b3b enable config_vibrateOnIconAnimation
* need those sexy vibes

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
(cherry picked from commit 5b829c486d89568ece0a2baafedfdf1b4ffbac06)
2023-10-12 20:16:54 +03:00
Michael Bestas
0d245d0fe9 overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-10-12 20:16:53 +03:00
Danny Lin
6083023d7e overlay: Settings: Enable multiple vibration strength levels
All production GS101 devices have CS40L2x haptic driver ICs that support
multiple intensities, so expose the Off/Low/Medium/High vibration
strength options like stock.

Change-Id: I72645b5bd5772e182592a630df86f9b6166b4923
2023-10-12 20:16:53 +03:00
Danny Lin
17682b7cee overlay: Settings: Override boosted color mode
The Pixel 6 series of devices (raven/oriole) uses vendor color mode 256
for Boosted, rather than the AOSP color mode 1.

Change-Id: I046b24f86ecc8b13ee4ac7485d143843c21bd9d5
2023-10-12 20:16:53 +03:00
mydongistiny
d3637f9c0f Add back saturated color mode
Change-Id: I183c2eabe7c3918fde6c37b0aa360ed7e94f6b61
2023-10-12 20:16:53 +03:00
Danny Lin
b4622fb581 Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the 6 GiB of usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save RAM.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
2023-10-12 20:16:53 +03:00
Ethan Chen
71b7fccb36 Disable userdebug diagnostics
* We can't make use of most of the debug features on userdebug builds.

Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
2023-10-12 20:16:53 +03:00
Chirayu Desai
86df53c3ed Build EuiccSupportPixelOverlay
Change-Id: I46db4122b89798457338f6751982865571529ba6
2023-10-12 13:56:19 +03:00
Chirayu Desai
3fa2930995 Add device manifest for radio
Change-Id: Ib6c4b28d33fb64cb05c715d86a96a829a498beac
2023-10-12 13:56:19 +03:00
Cyan_Hsieh
adfcf46ec8 gs101: Add pvmfw to AB_OTA_PARTITIONS
Bug: 209706293
Change-Id: I13f3f1c02dd6687226936b45852742701d185ced
2023-10-12 13:56:19 +03:00
Chirayu Desai
29f4d70085 Build vbmeta_vendor
Change-Id: I74c028a2e5ade8830526e95f8ec90b1a1da35afb
2023-10-12 03:57:21 +03:00
Chirayu Desai
57c7e7c683 Set BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES = true
Change-Id: I0eeaa3ba0f87e5fbe64234d413b5e4eee36957b0
2023-10-12 03:57:15 +03:00
Chirayu Desai
8402572d6a Build vendor
Change-Id: I08dff42223ae54386a5ed050b51aa4a39e08bdb6
2023-10-12 03:57:10 +03:00
Chirayu Desai
b5e014e295 Build vendor_dlkm
Change-Id: Ic2a0e4cdfdcc448a73bef41e0d2140e9d0aefcf0
2023-10-12 03:57:06 +03:00
Chirayu Desai
c16ba5e0bc Allow building vendor image
* We don't have access to these files, but we still want to
  build vendor images without errors

Change-Id: I4c09f7134b218b5fc10d180a6ef05015cad54f5d
2023-10-12 03:56:51 +03:00
Danny Lin
65e95b32d8 Build OpenCL NNAPI backend when blobs are present
Change-Id: Ib2c5176e4c95ca5f32c2c181ec33376437d38dc5
(cherry picked from commit 83f15395b93402e04398e6da4e22252907cd362f)
2023-10-12 03:55:58 +03:00
mydongistiny
6c26cd00e3 Use Google's wifi_ext service
* Use vendor.google.wifi_ext@1.0-service
  that is in the vendor partition instead
  of the AOSP WiFi service.

Change-Id: Ia0fff6ffc532cc6b5e41f8ac242d00e64627cee8
2023-10-12 03:55:48 +03:00
Bruno Martins
5c5311b6dc Pin standard SystemUI instead of Google's
Change-Id: If96bb13d6cc2c2156d8df111a1037247c96c6e0f
(cherry picked from commit 043d76955467053dcf8f615f6637bdc66b667c0c)
2023-10-12 03:55:33 +03:00
Chirayu Desai
75b798fe1b Create BoardConfigLineage
Change-Id: I8136e9f0df40ca3bf96dbfd2453275481178cdaa
2023-10-12 03:54:01 +03:00
Scott Warner
18daae9c56 Update sepolicy path
Change-Id: I4bcee50514c02294137ea5ac6e64c64d69308bd4
2023-10-12 03:53:31 +03:00
Michael Bestas
42798b7ca3 Add .gitupstream
Change-Id: I79747ef989659c069386a6ed34a59bba2e8ea860
2023-10-12 03:53:10 +03:00
Michael Bestas
a4b692056e Add 'sepolicy/' from tag 'android-14.0.0_r1'
git-subtree-dir: sepolicy
git-subtree-mainline: 1df30b264d
git-subtree-split: 8e40dd4cc2
Change-Id: I4790efff121cb7dfb508c61325bc8be06c8a24b3
2023-10-12 03:27:17 +03:00
Android Build Coastguard Worker
3ab141a152 Snap for 10917888 from c7a1c28200 to 24Q1-release
Change-Id: I246c8e144345f6ce42cbd2db11dbd151e4679ea9
2023-10-07 23:03:50 +00:00
Android Build Coastguard Worker
ceaa9360a6 Snap for 10917888 from f22905a1b0 to 24Q1-release
Change-Id: I066e17d3c657a31b3a74256b179d2f895ebaa177
2023-10-07 23:03:49 +00:00
Android Build Coastguard Worker
95374a364c Snap for 10915631 from 653f31663d to 24Q1-release
Change-Id: Ifb57b381061bc3069503f146bf6ca4689465ab9c
2023-10-07 03:05:00 +00:00
Android Build Coastguard Worker
871c56f935 Snap for 10909147 from fb1d860be3 to 24Q1-release
Change-Id: I8956103f900b3d4831dbfbc5058175474a6dda79
2023-10-06 01:04:20 +00:00
Android Build Coastguard Worker
0c1d06d987 Snap for 10903783 from 2685ea8e57 to 24Q1-release
Change-Id: I7d352ba6dc53829e7e8b69071c583814535a2174
2023-10-05 03:04:11 +00:00
Android Build Coastguard Worker
ab6238a065 Snap for 10897809 from bf5ca96192 to 24Q1-release
Change-Id: If323755a1b20103fd083509adb1ad5059cd73ca4
2023-10-04 02:29:02 +00:00
Android Build Coastguard Worker
0357a0a933 Snap for 10889587 from f0047396de to 24Q1-release
Change-Id: Ib423585459e9f4848399d6b9276e6a5ac4b95e04
2023-10-03 03:04:12 +00:00
Android Build Coastguard Worker
a285adb2dd Snap for 10889587 from b54d8f91e3 to 24Q1-release
Change-Id: I2b3b6b549ea79e697dd334b5da4ed6b24c3aa9a0
2023-10-03 03:04:11 +00:00
Android Build Coastguard Worker
e7a9bfb6ec Snap for 10878163 from fb8d2f7d73 to 24Q1-release
Change-Id: I6a22a4de1f610cbb2ebdef00bccef12eb0e9ccc0
2023-09-29 01:03:55 +00:00
Android Build Coastguard Worker
f9b2d42e13 Snap for 10878163 from 7bd4fdd98f to 24Q1-release
Change-Id: I8f497ab145f405c2bdeeb8d370ea4ab454752254
2023-09-29 01:03:54 +00:00
Android Build Coastguard Worker
36fc6dfa7c Snap for 10865348 from d5f81e1ce8 to 24Q1-release
Change-Id: Ica2f27ead0f8fb30f9300dcc8addaa1216b3dbbd
2023-09-27 01:03:02 +00:00
Android Build Coastguard Worker
70f0ec6c2d Snap for 10851067 from 19d740a6f4 to 24Q1-release
Change-Id: I93b8911196fb654ec773a71878480bd09ed32353
2023-09-23 03:02:53 +00:00
Android Build Coastguard Worker
e78533a858 Snap for 10843824 from 42fbe059c3 to 24Q1-release
Change-Id: I0f0f9e10ee2a5d9864959eaab852f7b0da81e883
2023-09-21 21:52:31 +00:00
Android Build Coastguard Worker
e22bd02450 Snap for 10843824 from 0c36feb52e to 24Q1-release
Change-Id: I5812ac1c846c13e2084748278acd1599200a8c09
2023-09-21 21:52:30 +00:00
Android Build Coastguard Worker
733f6a5250 Snap for 10535291 from 2d8db152fe to udc-qpr1-release
Change-Id: I06d7b76bbe5ce6c6bacb6033d0fb7470834102c4
2023-07-20 23:02:29 +00:00
Android Build Coastguard Worker
c319e05a71 Snap for 10527654 from e10372e111 to udc-qpr1-release
Change-Id: If0ce57334016f16a97b3a8c76bd8aca141963c49
2023-07-19 23:02:20 +00:00
Android Build Coastguard Worker
4d9683d31b Snap for 10509334 from 9a4cee8448 to udc-qpr1-release
Change-Id: I597b52288719387880153fa4323c2e099c02e793
2023-07-17 23:02:30 +00:00
Android Build Coastguard Worker
5e78ca56c1 Snap for 10477539 from 18ff46a71b to udc-qpr1-release
Change-Id: Ibd6d015134b296e995ae99ed44fe449db9541bdb
2023-07-11 23:02:17 +00:00
Android Build Coastguard Worker
33fd76f3df Snap for 10459084 from 78be291b79 to udc-qpr1-release
Change-Id: I8cf0bdef4439766ca2978c17a2fc9d5636f84baf
2023-07-08 01:06:46 +00:00
Android Build Coastguard Worker
6dd1bf2937 Snap for 10439448 from 73a74266f9 to udc-qpr1-release
Change-Id: I3279971169fb60cb789e1b249fd86018c8b44677
2023-07-05 23:02:22 +00:00
Android Build Coastguard Worker
a185681436 Snap for 10354447 from 7eeda6a018 to udc-qpr1-release
Change-Id: I4bad586fae34c3da0f87838c63110423b2075d71
2023-06-21 03:02:28 +00:00
Android Build Coastguard Worker
8e40dd4cc2 Snap for 10353861 from bd7780a58a to udc-release
Change-Id: Ibdc4b43922fb00c28c1b505f25a0196298ff7015
2023-06-21 01:06:50 +00:00
Android Build Coastguard Worker
7426eddacd Snap for 10341497 from 17bdee2f82 to udc-qpr1-release
Change-Id: I7ecbce2a5c8ab1800248f21ddac12a3ea43ccf6b
2023-06-17 05:07:02 +00:00
Android Build Coastguard Worker
408906ba89 Snap for 10338099 from c1034c26c1 to udc-release
Change-Id: Ia005555b0c47937a8671550e84c873c0a50e8d50
2023-06-17 01:06:35 +00:00
Android Build Coastguard Worker
84541cb769 Snap for 10309372 from 677d3faab4 to udc-qpr1-release
Change-Id: Ie04b9483e8305a7fe2f21f5cf1042bd0a0b70a09
2023-06-13 03:01:58 +00:00
Android Build Coastguard Worker
63a8838cbb Snap for 10277391 from da7ec50ce6 to udc-qpr1-release
Change-Id: I734a9ffd8993b21a2a7f696b1c329cd8423598ba
2023-06-08 01:02:25 +00:00
Android Build Coastguard Worker
e2939c46c9 Snap for 10277839 from 03c6806df9 to udc-release
Change-Id: I0780ba4734fab4f411a65b89c3d762c86f79a157
2023-06-07 23:02:18 +00:00
Android Build Coastguard Worker
40c2ca4c50 Snap for 10255078 from 7c2e5a665a to udc-qpr1-release
Change-Id: Ic089e7ef35f3a05dab2354432c1bb40e571ebebb
2023-06-03 05:06:51 +00:00
Android Build Coastguard Worker
20f0570674 Snap for 10213992 from c2e049616e to udc-qpr1-release
Change-Id: I9b43f411e405d6412081fc64e14b4cbc44a5a65b
2023-05-27 05:07:17 +00:00
Android Build Coastguard Worker
49dff5b17a Snap for 10214038 from 7a95093a60 to udc-release
Change-Id: I7e9c6471ab9ad6afd9b220ea8a6d5f2872bd15a0
2023-05-27 01:09:07 +00:00
Android Build Coastguard Worker
b514c919ed Snap for 10204122 from 294c0eb11a to udc-qpr1-release
Change-Id: Iccff5aaff4a0760201026afd8b6157fbef196ae8
2023-05-26 01:08:02 +00:00
Android Build Coastguard Worker
86cf0c7112 Snap for 10205056 from 1518744c74 to udc-release
Change-Id: I9f1adc39ac03c8677a7ef6516458d70ddb52dd57
2023-05-25 23:02:26 +00:00
Android Build Coastguard Worker
06f04a84e4 Snap for 10196038 from fd2d807501 to udc-qpr1-release
Change-Id: I5060ad4d503fb9dd739a5968d78be2811d03aaf1
2023-05-25 02:41:44 +00:00
Android Build Coastguard Worker
9271c1fd2f Snap for 10196304 from 6f8bcc95aa to udc-release
Change-Id: I1e371d8b793c83fb30be0703fc593a194fed1707
2023-05-24 23:02:20 +00:00
Android Build Coastguard Worker
3c60d245fe Snap for 10130956 from a4f76801a1 to udc-qpr1-release
Change-Id: I79243961d24458c00924fb404432d01a8387453a
2023-05-13 05:07:30 +00:00
Android Build Coastguard Worker
6b993aa049 Snap for 10127524 from 20364fe3b3 to udc-release
Change-Id: Ic31857b925b244a5b474edae1027281668f5c0bb
2023-05-13 01:07:49 +00:00
Android Build Coastguard Worker
66eb2821a7 Snap for 10054401 from f96c70c2a9 to udc-qpr1-release
Change-Id: I339080ffdadaa02839807ad91a7b9ecccf2c6461
2023-05-03 01:07:02 +00:00
Android Build Coastguard Worker
d728d2bd62 Snap for 10052121 from d3a0214801 to udc-release
Change-Id: Ia9f8643eb6c2bbc752e26f16d6dede1c10a1a9a8
2023-05-02 23:02:57 +00:00
Android Build Coastguard Worker
cf6d80d03d Merge cherrypicks of ['googleplex-android-review.googlesource.com/22948153'] into udc-release.
Change-Id: Id598749a9bfeb9d3859a23ca0d687c9291bcf761
2023-05-02 18:26:13 +00:00
Jinyoung Jeong
8be9e046ec Fix LPA crash due to selinux denial
Bug: 280336861
Test: No crash found during LPA basic tests: download eSIM,
enable/disalbe eSIM.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d3a021480143531414341b26403cce8c6b65eae5)
Merged-In: I15227415993ef3975e183f500711416f8eb8e62c
Change-Id: I15227415993ef3975e183f500711416f8eb8e62c
2023-05-02 18:25:58 +00:00
Android Build Coastguard Worker
2a79c5df9e Snap for 10040800 from 883f2b9994 to udc-qpr1-release
Change-Id: I7138f49344017bbc7f2564e506912c4e166ba53b
2023-04-30 23:02:23 +00:00
Android Build Coastguard Worker
88e1813312 Snap for 10040535 from 5b3b2c2b1c to udc-release
Change-Id: Id88f8941f7fdc3d921d59b9fd0f99cc96a9c486a
2023-04-30 21:02:48 +00:00
Android Build Coastguard Worker
87eb0502f5 Snap for 10037196 from 3055e06f0a to udc-qpr1-release
Change-Id: I28d2f0c2ab7bd667000cdae6defdefbc14d16b94
2023-04-29 03:02:16 +00:00
Android Build Coastguard Worker
de2dd61c21 Snap for 10017868 from a086d7c588 to udc-qpr1-release
Change-Id: I9c0dea58125daeebd483d9c035cb8b2c98749d74
2023-04-28 01:06:55 +00:00
Android Build Coastguard Worker
62aa8c8c39 Snap for 10025836 from 88f5acac54 to udc-release
Change-Id: I4431638fd8be00689726d82b48680f5a3347ab10
2023-04-27 23:03:03 +00:00
Android Build Coastguard Worker
af90077674 Snap for 10017950 from 37e90d3f3a to udc-release
Change-Id: If8e958857975f1d4365416d1c971e779764e367e
2023-04-26 23:03:04 +00:00
Android Build Coastguard Worker
62b7beee60 Snap for 9997652 from 843b0ad6b4 to udc-release
Change-Id: I3ec277e0f0b20e75774fb5e0c4e2026c89997c9f
2023-04-24 23:02:45 +00:00
Android Build Coastguard Worker
41978881cd Snap for 9981223 from 26e3d2abd0 to udc-release
Change-Id: I8fd02211a304357d1dbe6fc7d03f689c92cda03a
2023-04-20 23:03:10 +00:00
Android Build Coastguard Worker
2f45fe2142 Snap for 9957928 from bf8675143b to udc-release
Change-Id: I27014968622b45a97e054a30f14c63aee6c7448d
2023-04-18 01:07:25 +00:00
Treehugger Robot
c92c5083ec Merge "Update error on ROM 9930000" into udc-d1-dev am: f57e39a7a1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/22601619

Change-Id: Ideeaa611940ee7d152a2cf8249155a42950dfe53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-13 04:06:15 +00:00
Android Build Coastguard Worker
00e5d061ab Snap for 9930594 from ab4e3e986a to udc-release
Change-Id: Ie7d2f7644e768362bb565489940a9a9baa09bcc5
2023-04-13 01:16:06 +00:00
Xin Li
0dc35aa225 [automerger skipped] Merge TQ2A.230405.003 am: 82232b6423 am: 26cfa34cb7 -s ours am: 9505121ada -s ours am: ab4e3e986a -s ours am: 2714763638 -s ours
am skip reason: Merged-In I8c265919f7ae4b18aa304b0a584536d2a0f4b27a with SHA-1 9828cc747a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2530520

Change-Id: I8b8747cec70b1af0a0559d3efb4ce2d62bef1949
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-12 21:36:53 +00:00
Android Build Coastguard Worker
867aa0d912 Snap for 9914775 from c41cb55d4f to udc-release
Change-Id: I5dcb7dc95dd3c652eace569ad7ae100a9c987bd6
2023-04-11 01:07:31 +00:00
Android Build Coastguard Worker
8f6851324e Snap for 9905984 from 816622f352 to udc-release
Change-Id: Ib3ce477df4e9c098a077efec069d0292c9e54ff4
2023-04-08 03:03:11 +00:00
Android Build Coastguard Worker
674d394fd9 Snap for 9899401 from d87df92740 to udc-release
Change-Id: I5659a2d39ec76b43681ec5b1c9fad96381141b4f
2023-04-07 01:07:51 +00:00
Android Build Coastguard Worker
0930da74ae Snap for 9867821 from 083b5fe640 to udc-release
Change-Id: I0340002e59547f44392c8a589ffc55b49976127d
2023-04-01 05:09:25 +00:00
Android Build Coastguard Worker
60e17c8357 Snap for 9849129 from 7cc3817f71 to udc-release
Change-Id: I1bd9fc292d0d94e988ee9ac7000c10c1852239fb
2023-03-30 03:02:34 +00:00
Android Build Coastguard Worker
8d7b1a18de Snap for 9839270 from 5bfe1bdd6d to udc-release
Change-Id: I2f0bb363f0e391f94574c41f99969ad369cf68ab
2023-03-29 02:22:44 +00:00
Android Build Coastguard Worker
d608eca107 Snap for 9830776 from feef477d2f to udc-release
Change-Id: I0211df48cfcd2d9ee363a6699ebd4a95ffec0d82
2023-03-28 01:07:27 +00:00
Android Build Coastguard Worker
ed20ca1102 Snap for 9815702 from 2f8f23232a to udc-release
Change-Id: I01db9f326c7a2d7c38a1d99bc2b85f336c995c1d
2023-03-25 03:03:03 +00:00
Android Build Coastguard Worker
9479f03f81 Snap for 9786938 from cb6bad65e7 to udc-release
Change-Id: I46dd901f963ec7a5169467ac7d57678fb713018b
2023-03-22 01:07:26 +00:00
Android Build Coastguard Worker
245b0e4d20 Snap for 9754537 from 2110a1db8c to udc-release
Change-Id: I8471cccdb67b30bc79c5e154541692378ce04dbe
2023-03-16 03:02:29 +00:00
Android Build Coastguard Worker
3e957f1112 Snap for 9728260 from 3b3aa9e921 to udc-release
Change-Id: Ida2032336f3b746e1782945dd58c23304f9e6f23
2023-03-11 04:03:10 +00:00
Android Build Coastguard Worker
867e066758 Snap for 9719949 from 7d3f25d95b to udc-release
Change-Id: I20d09d1ea3ce54d08b56523814b3d90644ea6c5e
2023-03-10 02:07:17 +00:00
Android Build Coastguard Worker
03abb18d4b Snap for 9642788 from 4fe64170d3 to udc-release
Change-Id: I693eb78894e034565327c91ad0bfe8316a12fec5
2023-02-23 05:55:42 +00:00
Android Build Coastguard Worker
9c53db2b91 Snap for 9627971 from cd826e0365 to udc-release
Change-Id: I2c64714068ebf66862cf68efdd3941346fd65bb4
2023-02-19 02:02:37 +00:00
Android Build Coastguard Worker
392da95b5e Snap for 9617930 from 6ef92ee0d1 to udc-release
Change-Id: I51d34762d2edff2df5541a932b28aa8c56c3df91
2023-02-17 02:07:27 +00:00
Android Build Coastguard Worker
5ac0cc89e0 Snap for 9613524 from afafde41a1 to udc-release
Change-Id: Ifae618ac0ca8a83287ea228303106d430b3881d2
2023-02-16 02:03:00 +00:00
Android Build Coastguard Worker
0162c9b337 Snap for 9607154 from a6f9e17cd4 to udc-release
Change-Id: Ic2868fe736e9ff959ce70726214919b4bbd42ecf
2023-02-15 02:03:09 +00:00
Android Build Coastguard Worker
5a66f9053c Snap for 9600182 from d48a10f9b0 to udc-release
Change-Id: Ic56611c0196e82408f0e99845c341d1c8de582a5
2023-02-14 02:02:50 +00:00
Android Build Coastguard Worker
c0ec5c32d7 Snap for 9591832 from 8835275413 to udc-release
Change-Id: Ie7ba61fa4eddc13f63cf33a051ed3eaad9078dcc
2023-02-11 06:07:55 +00:00
Android Build Coastguard Worker
1046c5d703 Snap for 9566037 from 8e9fa12996 to udc-release
Change-Id: I25fc50bc4b74b53806dabe5dfce1201f26a10a10
2023-02-06 03:41:05 +00:00
Android Build Coastguard Worker
d4bf6b158f Snap for 9564855 from 0e10d6a3d4 to udc-release
Change-Id: Ifeba0e79c528a93042e2a29fd3810600377e2e4f
2023-02-05 02:02:26 +00:00
Android Build Coastguard Worker
72588e32d1 Snap for 9562441 from f485d48f43 to udc-release
Change-Id: Ie548c796b0f3fb5c94c3adb4bd436f70928ae111
2023-02-04 04:03:17 +00:00
Android Build Coastguard Worker
c0a1eccc39 Snap for 9552483 from fc3e9e0070 to udc-release
Change-Id: I447cb42834e2acd0062931991102198743b9cfea
2023-02-02 02:14:26 +00:00
Android Build Coastguard Worker
974afdde00 Snap for 9514456 from 0485b4848f to udc-release
Change-Id: I9e71a9fc7518c25b33e3f18f6f29c0814786ddc7
2023-01-21 04:03:08 +00:00
Android Build Coastguard Worker
6bab77e1f6 Snap for 9505375 from 5785d77564 to udc-release
Change-Id: I51667f11f96f6ef17431dbf45dfb4e2c6b6ceb8c
2023-01-19 04:02:41 +00:00
Android Build Coastguard Worker
b571bee65a Snap for 9491836 from 08d99bb5d8 to udc-release
Change-Id: Ib8cfb53b3fe1ddd4244fa54d2cdbdc394a074c29
2023-01-15 02:02:09 +00:00
Android Build Coastguard Worker
5e0835d52f Snap for 9489393 from fc2efe09bd to udc-release
Change-Id: Iaf9ccf91fa9fb0489cf95f4425be5d353a51797c
2023-01-14 04:03:10 +00:00
Android Build Coastguard Worker
c7603a41b5 Snap for 9480469 from bfbf488408 to udc-release
Change-Id: Ib91fc43a9979fb7015ed9697b7847e91aac6f947
2023-01-12 02:03:37 +00:00
Android Build Coastguard Worker
5ef41d70ad Snap for 9464008 from 1f4efc5556 to udc-release
Change-Id: Ia49808be1f9c80409b7c1498cc8d32a282db1e2f
2023-01-07 04:02:45 +00:00
Android Build Coastguard Worker
8593a54d8e Snap for 9459940 from afe63f78cc to udc-release
Change-Id: Ie93f7decaf36cef0f8816053e9cb70d08b495409
2023-01-06 02:02:36 +00:00
Android Build Coastguard Worker
0d5d95d498 Snap for 9428991 from 8c2188f24e to udc-release
Change-Id: I14023f10404011729e875a94d179d61b1b1caca3
2022-12-22 02:02:34 +00:00
Android Build Coastguard Worker
6ccee6162a Snap for 9425524 from d1ba957ec2 to udc-release
Change-Id: If4f55ac02348b38bb3b585ef2d82ce6d0e9218b7
2022-12-21 03:12:32 +00:00
Android Build Coastguard Worker
878dde1702 Snap for 9420774 from 5aa010e054 to udc-release
Change-Id: Ic1fe9dd38b4db322ab4a54c98d704fb1203ef7b6
2022-12-20 02:07:34 +00:00
Android Build Coastguard Worker
5b955c8449 Snap for 9397200 from 57c6437a23 to udc-release
Change-Id: Ia6f5f7b3a2258aae099366ea416636b1babce07b
2022-12-13 04:02:44 +00:00
Android Build Coastguard Worker
c8724b74a4 Snap for 9386067 from 677dcd1685 to udc-release
Change-Id: I6a5010b7f7d1b38e23f8c4f478a0c0b8fb84e3c3
2022-12-09 03:32:21 +00:00
Android Build Coastguard Worker
2c342542a0 Snap for 9376547 from 58c0e3bb7c to udc-release
Change-Id: I4db3ba58f6486f251a58daa41ff1a53a95fb7bdb
2022-12-07 02:07:30 +00:00
Android Build Coastguard Worker
71dcb7ad40 Snap for 9370741 from 2c4c8f80d3 to udc-release
Change-Id: If19d4e4755f82cfaf03d2cbd9317a73a5e1fd6af
2022-12-06 02:02:39 +00:00
Android Build Coastguard Worker
b7b8e0d3f0 Snap for 9358895 from c965433e45 to udc-release
Change-Id: Iec6ccb0c1fcd24ef5b45a77104023f40a89ac42e
2022-12-02 02:02:33 +00:00
Android Build Coastguard Worker
0ca475b973 Snap for 9354100 from 1740328a70 to udc-release
Change-Id: I5479f5379c255d45ac4f1c56affa71cfa3e19250
2022-12-01 02:02:32 +00:00
Android Build Coastguard Worker
a4b08cc2dc Snap for 9348489 from 6c43f46467 to udc-release
Change-Id: Ieb809891627ec2909fdacffb30dc6080f74f9b7b
2022-11-30 02:02:32 +00:00
Android Build Coastguard Worker
d571168627 Snap for 9343563 from dc7ea2f09b to udc-release
Change-Id: I9e3eec853920ad10e9afe52fc5854b9dc28a3ac2
2022-11-29 02:02:45 +00:00
Android Build Coastguard Worker
6a6b967d8d Snap for 9330281 from 095adc198c to udc-release
Change-Id: Id0199003f2a78c65d5edf5334b18d4f0b8f7e5d0
2022-11-25 02:02:22 +00:00
Android Build Coastguard Worker
38967be5aa Snap for 9325779 from 7aeb6fe8e7 to udc-release
Change-Id: Idc16305946a9c39586827d3adec3ed29da7d8b50
2022-11-24 02:02:41 +00:00
Android Build Coastguard Worker
bff5beb9e9 Snap for 9301516 from 8001d6da73 to udc-release
Change-Id: I2153474da4acdc50f6f4c445f5fc53a43e65b6cd
2022-11-17 02:07:16 +00:00
Android Build Coastguard Worker
ee26fb7313 Snap for 9284182 from ea632b0eb1 to udc-release
Change-Id: I453f3af4f214b07ba3334571ec35e9b9f0e44a3a
2022-11-12 04:02:42 +00:00
Android Build Coastguard Worker
16ab353476 Snap for 9280350 from 18b9f37425 to udc-release
Change-Id: Ic7f07c43de6ffda3856f9c672855360273a4be2a
2022-11-11 02:07:37 +00:00
Android Build Coastguard Worker
500bb38c5a Snap for 9274386 from b81016aa89 to udc-release
Change-Id: Ibcde28d3261f40ed1e8e44a2d8864335213d58f7
2022-11-10 02:02:48 +00:00
Android Build Coastguard Worker
d2a915b914 Snap for 9250775 from 898da02fa5 to udc-release
Change-Id: Iefde7135aa236023ace56340e1ac374bcd9a9c4e
2022-11-03 03:29:39 +00:00
Android Build Coastguard Worker
73a07845af Snap for 9243198 from 4f3094adbb to udc-release
Change-Id: Ib8b407af3bd9799c4ebb7218f9814f44ac74fe90
2022-11-02 01:02:43 +00:00
Android Build Coastguard Worker
57ac1ac63b Snap for 9231933 from 630a5af43b to udc-release
Change-Id: I8c9809a95e30555f418734867fcf2d337a6fb719
2022-10-29 03:03:02 +00:00
Android Build Coastguard Worker
1237149216 Snap for 9218031 from 593965bbdb to udc-release
Change-Id: I927bcb34f761ddfdbd920193fda32a83b4cee0e4
2022-10-26 01:07:28 +00:00
Android Build Coastguard Worker
63611707af Snap for 9212694 from 886e3ca96f to udc-release
Change-Id: I1f96bfdb862ac1e128f9b13add44eb5950f3b963
2022-10-25 01:02:52 +00:00
Android Build Coastguard Worker
c31e1157e0 Snap for 9206486 from 43bf71c88d to udc-release
Change-Id: I69561dcd699d4ce8b639818c30717b4828b46b71
2022-10-22 03:02:59 +00:00
Android Build Coastguard Worker
60fb6f6178 Snap for 9201053 from 218eab8bb8 to udc-release
Change-Id: I06ba38b4e7dff203db9e17214a02647f481949de
2022-10-21 01:03:02 +00:00
Android Build Coastguard Worker
6de992cbc3 Snap for 9196024 from 26158c7a57 to udc-release
Change-Id: If1c6497f7637b9c22969c33d2206f3928526dbdc
2022-10-20 01:02:43 +00:00
Android Build Coastguard Worker
c2aaf86a8e Snap for 9185739 from 688b2b08f3 to udc-release
Change-Id: I218f69e8676402700d40f1c2d789fc6c54295b86
2022-10-18 01:02:57 +00:00
Android Build Coastguard Worker
9f109cbb27 Snap for 9178695 from fe1c8108c5 to udc-release
Change-Id: I21d9654481a2b76fd57305af89ec201c49ada227
2022-10-15 03:03:31 +00:00
Android Build Coastguard Worker
1980547945 Snap for 9168953 from c285c2c32c to udc-release
Change-Id: I94f2756c7b434a97ee584f09445cda9b0da71d50
2022-10-13 01:02:59 +00:00
Android Build Coastguard Worker
2e987a9a18 Snap for 9163570 from b02b486a42 to udc-release
Change-Id: Ie971d8e069f8ada715aae6deefd3df6eed2b6d49
2022-10-12 01:02:48 +00:00
Android Build Coastguard Worker
e0ec903704 Snap for 9153524 from c14d73beb0 to udc-release
Change-Id: I38990b1361f60593eb98156aaddc2726a2f7e0e8
2022-10-08 03:03:10 +00:00
Android Build Coastguard Worker
a9c3fb6b66 Snap for 9148142 from c4291e4959 to udc-release
Change-Id: Ia2a4bd2963400d9fa4a56195d5bb116e815c6576
2022-10-07 01:02:47 +00:00
Android Build Coastguard Worker
868e024f62 Snap for 9142107 from 7c74638f0c to udc-release
Change-Id: Iaae68cf1c67d7e1d30086f29088f70b4914d14fb
2022-10-06 01:02:44 +00:00
Android Build Coastguard Worker
f0e065a6fe Snap for 9138051 from a254fcef0c to udc-release
Change-Id: I822900f327a152745a60124ae09e464a622e4ffe
2022-10-05 01:03:04 +00:00
Android Build Coastguard Worker
ddaf70852d Snap for 9133445 from 78a524a801 to udc-release
Change-Id: Ib72f2f02c0edec3515a31e362a9c840b35584dfb
2022-10-04 01:02:42 +00:00
Android Build Coastguard Worker
778aa19050 Snap for 9121979 from cd518be161 to udc-release
Change-Id: I87297c513cb51161ed7207368cb415998857f681
2022-09-30 01:03:05 +00:00
Android Build Coastguard Worker
112c3a3402 Snap for 9117328 from 3cd9384799 to udc-release
Change-Id: I8a13e6166b0e0561d79411ede7064b5f22417656
2022-09-29 01:02:41 +00:00
Android Build Coastguard Worker
7563089395 Snap for 9094779 from 03f471518a to udc-release
Change-Id: I4d1b0cb4f4d3fd6e949b78e7f1c28e4f7fca1d3b
2022-09-23 01:03:01 +00:00
Android Build Coastguard Worker
9641a98562 Snap for 9085393 from dbbe57546a to udc-release
Change-Id: I11b49a2ac6863210bb97b3f53f279df3ceeeee9c
2022-09-21 01:03:04 +00:00
Android Build Coastguard Worker
eb4407d51c Snap for 9075788 from ea1f7edaae to udc-release
Change-Id: I89d196332c5fcf76e34d72d786f9d53470a10b40
2022-09-17 03:02:58 +00:00
Android Build Coastguard Worker
396584b9a1 Snap for 9070718 from 0ea1dac214 to udc-release
Change-Id: I0cfb1a85cbdfb8d3499201d30e4d4eb61d64e2b0
2022-09-16 01:03:02 +00:00
Android Build Coastguard Worker
f3ef91910d Snap for 9066247 from 3aaefbe1fc to udc-release
Change-Id: I6fd8e92e8d3d2be66314f6f9acaeb0504b7e0a4b
2022-09-15 02:34:35 +00:00
Android Build Coastguard Worker
f19f9adf49 Snap for 9044085 from 8c36ac66d8 to udc-release
Change-Id: Icda8c1c4e444a0bac040932d44322fd1fb036c6d
2022-09-09 01:03:03 +00:00
Android Build Coastguard Worker
2247b50b1f Snap for 9039357 from ae2feed036 to udc-release
Change-Id: I7bf8a2edbfb7584512fdc6330e027630aa039d74
2022-09-08 01:47:07 +00:00
Android Build Coastguard Worker
7552c9cd81 Snap for 9033936 from c08f9cf882 to udc-release
Change-Id: I3281c047a46deab6feba1ef6447a064a44f1a6d7
2022-09-07 01:02:41 +00:00
Android Build Coastguard Worker
0144d7b6a6 Snap for 9025309 from e6e9e34d22 to udc-release
Change-Id: Ife23dc4955036bb368b7291be0b4922312a93814
2022-09-03 03:03:05 +00:00
Android Build Coastguard Worker
6c9a7433cb Snap for 9019165 from f55fb71bf0 to udc-release
Change-Id: I6bef0b319228ff8703edc58d71a5b2be4c85f054
2022-09-02 01:12:12 +00:00
Android Build Coastguard Worker
01b969b0f9 Snap for 9010891 from d5e2902e91 to udc-release
Change-Id: Iae922eb2101531209d19ae08066a3bf1e6570a6a
2022-08-31 01:03:10 +00:00
Android Build Coastguard Worker
0fcb7cc18a Snap for 8995964 from 94f9358eed to udc-release
Change-Id: I75c39092b942d365b76b1c8c24bde0d60ff7079d
2022-08-26 01:07:38 +00:00
Android Build Coastguard Worker
bba64b1303 Snap for 8978248 from c8a49f6246 to udc-release
Change-Id: I47afc723385e04ea2af28ccab88bc1123f92b5cb
2022-08-23 01:03:07 +00:00
Android Build Coastguard Worker
416613110e Snap for 8961762 from 6570cc99e4 to udc-release
Change-Id: I3a96a8a9ca9d713465b20088881e71f05ad3b984
2022-08-18 01:02:29 +00:00
Android Build Coastguard Worker
1c7faec029 Snap for 8904202 from a3fc2a745c to udc-release
Change-Id: Ifd42e664e5a7a43abc4dfbec2af00015c44b97b9
2022-08-04 01:07:38 +00:00
Android Build Coastguard Worker
d298da85d8 Snap for 8898690 from 60920d10a6 to udc-release
Change-Id: I6137ebba03e54446d10ac88bf27ce79865a6e9ed
2022-08-03 01:02:57 +00:00
Android Build Coastguard Worker
ddbbd074ab Snap for 8893061 from e39a85ed28 to udc-release
Change-Id: Ife03d124a43298e1263b442e8ced6814ec8eea44
2022-08-02 01:02:59 +00:00
Android Build Coastguard Worker
e57056a385 Snap for 8889107 from 7e1fa791cd to udc-release
Change-Id: I4c87b9e8c00945dd90da949b627464f3ee424081
2022-07-30 23:07:34 +00:00
Android Build Coastguard Worker
a687c16c42 Snap for 8886447 from 75ba5fc5cc to udc-release
Change-Id: Iee3d14848f57ad8275fe0e823f47d178412b53d5
2022-07-30 03:02:51 +00:00
Android Build Coastguard Worker
6c62e91077 Snap for 8883296 from 3014f97824 to udc-release
Change-Id: Ied2983f69221920192395401a01c4029c65cadcc
2022-07-29 03:42:40 +00:00
Android Build Coastguard Worker
480cdad0d3 Snap for 8877481 from 5d0e11a0aa to udc-release
Change-Id: Ieb1ea225151de4a94bdaae88ac2395168c26238b
2022-07-28 01:07:33 +00:00
Android Build Coastguard Worker
587a1f5df9 Snap for 8856406 from 4bd6037084 to udc-release
Change-Id: I48bfb382a4d2329b005d5017bc0ae48699a196e6
2022-07-22 01:02:52 +00:00
Android Build Coastguard Worker
e45e3d7fcb Snap for 8847581 from bb144cecd2 to udc-release
Change-Id: If1d2ed0742f202781eb68da4d810f11786d09f29
2022-07-20 01:02:40 +00:00
Android Build Coastguard Worker
03aa6fc2ca Snap for 8840107 from 164b3ee307 to udc-release
Change-Id: Ia0c0c0844b4adb85985c150f99a9bf398737fb13
2022-07-17 23:11:53 +00:00
Android Build Coastguard Worker
12edce2fb8 Snap for 8827652 from 74d2d8963f to udc-release
Change-Id: I537e7b9d48ce69f0b0a34a16003ec04c5fe53e1a
2022-07-14 01:03:42 +00:00
Android Build Coastguard Worker
9811663874 Snap for 8818501 from c6186c2960 to udc-release
Change-Id: I575c7da9dd9de5483abfbec5bbd16672fdf73211
2022-07-12 01:03:27 +00:00
Android Build Coastguard Worker
423ddfbe31 Snap for 8807532 from 347e482d19 to udc-release
Change-Id: Ie1f7c0559eda04ebb7aa281d2fe1932a1aee8bf1
2022-07-08 01:05:16 +00:00
Android Build Coastguard Worker
a039f8fc95 Snap for 8803621 from bc85d46045 to udc-release
Change-Id: I1aac0552ce96817117eec8234a7b9cac478f404c
2022-07-07 01:03:58 +00:00
Android Build Coastguard Worker
a9e159a940 Snap for 8799945 from 7835523aea to udc-release
Change-Id: I8b010fe4afbd6b44cc90cc15810098095a9039e0
2022-07-06 01:03:15 +00:00
Android Build Coastguard Worker
c0c7696bce Snap for 8793470 from ae60f4bc6d to udc-release
Change-Id: If6ad233983e799454ede9e5a0ddd9af736ae86f1
2022-07-02 05:08:22 +00:00
Android Build Coastguard Worker
a50ddacf7d Snap for 8788539 from 67cdc2bdb0 to udc-release
Change-Id: I707fa3b3568717edd788206159bdf4aae12b2a48
2022-07-01 03:03:50 +00:00
Android Build Coastguard Worker
28ed1d4599 Snap for 8775066 from 7600ddd96b to udc-release
Change-Id: Ia10d1b3a496c0f0ba400f2036d1f14190aae1472
2022-06-28 03:02:41 +00:00
Android Build Coastguard Worker
58004c5ac4 Snap for 8756366 from f9a757b52a to udc-release
Change-Id: Id2ca5de8570155875feded9aa47bc1539d8063d9
2022-06-23 03:02:51 +00:00
Android Build Coastguard Worker
cb558a9939 Snap for 8750650 from 0cef5e66fe to udc-release
Change-Id: I81e8384f4b316630a5035b35b04e8835aab360eb
2022-06-22 03:02:44 +00:00
Android Build Coastguard Worker
a5d18ef6d1 Snap for 8741820 from 3a654c2091 to udc-release
Change-Id: I1d16af630951707ade411442300a229495246771
2022-06-18 05:07:50 +00:00
Android Build Coastguard Worker
9268212f57 Snap for 8736785 from 506635d815 to udc-release
Change-Id: I9bc0cba1cd7d12d4949545edf4d2d98f03508bec
2022-06-17 03:02:40 +00:00
Android Build Coastguard Worker
e1e8645aa7 Snap for 8722243 from d472e161ae to udc-release
Change-Id: I2fd47ae5eeb1dc5588a51cf7fb86e2d50ec867bc
2022-06-15 03:02:51 +00:00
Android Build Coastguard Worker
6eb9ff9b1c Snap for 8710910 from d6bde00936 to udc-release
Change-Id: I5c897a51ea7083a86dd2029fd51fdbbee9962b74
2022-06-11 05:08:04 +00:00
Android Build Coastguard Worker
1e5eb82d1a Snap for 8705297 from 7e5fd22585 to udc-release
Change-Id: I1e7c06ef4c03b4b2334c9bbe389945668739875d
2022-06-10 03:02:55 +00:00
Android Build Coastguard Worker
8ab7262b5d Snap for 8700596 from 3f6eba4012 to udc-release
Change-Id: Iae3958e111e1d31d723ca676526c6fca262b41f6
2022-06-09 03:03:05 +00:00
Android Build Coastguard Worker
aa4f6c29ff Snap for 8693938 from 33cd2234df to udc-release
Change-Id: I8d24d62e75b83c5741bf531b2a7a957a6f5a1fde
2022-06-08 03:03:34 +00:00
Android Build Coastguard Worker
0adc7ed508 Snap for 8672689 from e5d6c666f5 to udc-release
Change-Id: Iecf74dce7eec62f4bbe122f0ea270577681d31d8
2022-06-02 03:04:41 +00:00
Android Build Coastguard Worker
e4651d9573 Snap for 8644138 from 78fa0976a2 to udc-release
Change-Id: I99333f0acc715b9f3f101a12d65b888009d4be24
2022-05-26 03:03:06 +00:00
Android Build Coastguard Worker
aa7ad7a0d0 Snap for 8638406 from 664ab23d94 to udc-release
Change-Id: I62f9280d5bb073a75ff2b045459aba3499cae4d1
2022-05-25 03:03:33 +00:00
Android Build Coastguard Worker
75c938460e Snap for 8632302 from 5c6d914987 to udc-release
Change-Id: Ia3955ed0829d712a695ade90eb8977ecc8ceeb1f
2022-05-24 03:04:50 +00:00
Android Build Coastguard Worker
8a6b49b1b6 Snap for 8623956 from 14601e082a to udc-release
Change-Id: I0788a59aa1b25d3db3fd53ae2d8cd2b29c63fe6a
2022-05-21 05:08:05 +00:00
Android Build Coastguard Worker
67009e12e0 Snap for 8619398 from 2d9ec80fed to udc-release
Change-Id: Id6697b37896073b3bea4a3afc332170e5fba83b2
2022-05-20 03:03:31 +00:00
Android Build Coastguard Worker
b902c6dcac Snap for 8606881 from 13e8467fc0 to udc-release
Change-Id: I244e3805827852882117527da696138ea47ae5c4
2022-05-18 03:01:39 +00:00
Android Build Coastguard Worker
41d19aaa9b Snap for 8591930 from a9b034f9c1 to udc-release
Change-Id: I44c9f0ce2d56d0b6878e13b21893faca23d77d25
2022-05-14 05:08:39 +00:00
Android Build Coastguard Worker
e65feebdb3 Snap for 8573834 from 3d875278c2 to udc-release
Change-Id: I9ceaee0a8b43d92cdac9626973e03c0bed42d204
2022-05-12 03:01:39 +00:00
Android Build Coastguard Worker
8066c4b470 Snap for 8566903 from 8ffb7ce93f to udc-release
Change-Id: Ibe99604ce5f54e12f240ca7ca9956bf3b7c1fead
2022-05-11 03:02:23 +00:00
Android Build Coastguard Worker
14de9a196a Snap for 8562960 from 3cd8e14c89 to udc-release
Change-Id: I08e1979ebe5b4685f37c158cc4fcecf4f6b7a3b8
2022-05-10 03:02:00 +00:00
Android Build Coastguard Worker
8cf9a2bee3 Snap for 8555136 from 650076c577 to udc-release
Change-Id: I62730011f5509e3789974d6a9c23ba903ae24c22
2022-05-07 05:09:03 +00:00
Android Build Coastguard Worker
b0790563e0 Snap for 8548440 from a756f9d984 to udc-release
Change-Id: Ief30e64067570134e0f616e8b62e0188e7354071
2022-05-06 03:02:16 +00:00
Android Build Coastguard Worker
d6b952871a Snap for 8543047 from b9b6536ddd to udc-release
Change-Id: I708cc21efd17704796b0e9a2181d5b7484e2ffe1
2022-05-05 03:02:15 +00:00
Android Build Coastguard Worker
777c03986c Snap for 8534862 from 7a8d1e32a8 to udc-release
Change-Id: I4d610d64688793e2d70f41dd13f89eee8a7cece1
2022-05-04 03:01:50 +00:00
Android Build Coastguard Worker
4093360320 Snap for 8529598 from b81a8fead4 to udc-release
Change-Id: Iceac71e8ae9850eadb7ae4226ebde91b19decb0c
2022-05-03 03:01:47 +00:00
Android Build Coastguard Worker
ed7b45c392 Snap for 8520545 from 57cbdd934a to udc-release
Change-Id: Ib36c541bb9430da16c8c714218d38cb09b98070a
2022-04-30 05:07:22 +00:00
Android Build Coastguard Worker
2298dcad9f Snap for 8514209 from 0b08e48566 to udc-release
Change-Id: Ic50335f383bedcaa395ab15a87c52d2de95cf219
2022-04-29 03:02:36 +00:00
Android Build Coastguard Worker
8fe3df4aee Snap for 8503769 from 89b31263c0 to udc-release
Change-Id: I4e5274a23e8147a42e50ae778e813a9139867f1d
2022-04-27 03:02:44 +00:00
Android Build Coastguard Worker
1f8cefca6b Snap for 8500011 from 7df606ada7 to udc-release
Change-Id: I0895c240583fdcc42a65c7d56b2df20540678ff6
2022-04-26 03:16:51 +00:00
Android Build Coastguard Worker
4ce525c68a Snap for 8485840 from 86c1f9a20c to udc-release
Change-Id: I67fe7e2eaa0f2a3e228c49ad17d8193d3823ea3b
2022-04-22 03:03:10 +00:00
Android Build Coastguard Worker
d009feeec0 Snap for 8479392 from 05fc8062d4 to udc-release
Change-Id: I96719681d4eba05811121955fd09be09e703e2ab
2022-04-21 03:02:27 +00:00
Android Build Coastguard Worker
902ba76e13 Snap for 8474914 from 8b76f68412 to udc-release
Change-Id: I4553c3c14a54b8e19098f0eef437da683a748307
2022-04-20 03:02:44 +00:00
Android Build Coastguard Worker
f254452ba7 Snap for 8469123 from f0e359cbf6 to udc-release
Change-Id: Ibe231a165307dbcac59b9366a433e049f8f295f2
2022-04-19 03:07:09 +00:00
Android Build Coastguard Worker
faf3231390 Snap for 8463111 from 724d8c46ae to udc-release
Change-Id: Ie8f97f7f652ad621369eede72364deeb3bcd8a98
2022-04-16 05:12:55 +00:00
Android Build Coastguard Worker
bfcb90b926 Snap for 8457487 from fdc256fbcb to udc-release
Change-Id: Icb05b4700941e1f34e1e51bb4e62a51201216d9c
2022-04-15 03:02:22 +00:00
Android Build Coastguard Worker
98d3d1dea4 Snap for 8445428 from eb5807b663 to udc-release
Change-Id: I9de37cc4e49c1c7420020cb922fcf966dc720f75
2022-04-13 03:02:33 +00:00
Android Build Coastguard Worker
90aef253e2 Snap for 8440419 from f6cc2cde2c to udc-release
Change-Id: Ibe8863bc52afeea8a819a6172389133f0e5f022f
2022-04-12 03:08:03 +00:00
Android Build Coastguard Worker
bde24877e9 Snap for 8421584 from 19701a1770 to udc-release
Change-Id: Ibf2ce8506f4d85652a0fe82c5704689b82bbab32
2022-04-08 03:03:22 +00:00
Android Build Coastguard Worker
57207c406e Snap for 8414851 from 8a877f5cd8 to udc-release
Change-Id: If763db4f7f7d462f68e8ef9b0ccd5fba9a6543c3
2022-04-07 03:03:24 +00:00
Android Build Coastguard Worker
63cfbc32e3 Snap for 8401170 from 8f94db0a76 to udc-release
Change-Id: I2bc32b9b5deeac3a4ef38061e842188b459d98a9
2022-04-04 01:01:02 +00:00
Android Build Coastguard Worker
6550894686 Snap for 8398296 from 4616a263ed to udc-release
Change-Id: I686c953bce9081e3e3b0dcb96ad3bc7b11136cd0
2022-04-02 05:08:37 +00:00
Android Build Coastguard Worker
9f10e6a5bf Snap for 8378790 from 3d566a76eb to udc-release
Change-Id: I7a788796bea06f97ce3c0c6f4e7775619540583e
2022-03-30 03:01:20 +00:00
Android Build Coastguard Worker
49943e79f4 Snap for 8373271 from da758b81a4 to udc-release
Change-Id: Iaeb242e290a60847fab7c4c38056610a57c3c0df
2022-03-29 03:01:22 +00:00
Android Build Coastguard Worker
1f7cdc8dae Snap for 8362880 from e5c35aece6 to udc-release
Change-Id: I0f729ce7e96605d970b3ec6c6e5082b9f7624020
2022-03-26 05:06:30 +00:00
Android Build Coastguard Worker
d31b52b922 Snap for 8355292 from 70f473e940 to udc-release
Change-Id: Ieffb454c39cafd81b4622a09503cbc7d0d39073e
2022-03-25 03:01:26 +00:00
Android Build Coastguard Worker
613d34ad48 Snap for 8347200 from f7f5f8ab27 to udc-release
Change-Id: Ie653ef63acf8fcc36e2de1e64aaae65bcd808b44
2022-03-24 03:01:20 +00:00
Android Build Coastguard Worker
1ccf7bf36f Snap for 8340981 from d0c2478e05 to udc-release
Change-Id: I1e6da4817d6b3f3d798a08f55878f1bb7c688034
2022-03-23 03:01:11 +00:00
Android Build Coastguard Worker
ece7fbbd70 Snap for 8323526 from 64c22491ca to udc-release
Change-Id: I7221f2a508547ec9c2931d5426eb91f5261062a4
2022-03-19 05:06:24 +00:00
Android Build Coastguard Worker
86499b34f0 Snap for 8318243 from d4d02b4cfe to udc-release
Change-Id: I1b7963db6c90d400f13e56b36754a89ffd3a7f9a
2022-03-18 03:01:22 +00:00
Android Build Coastguard Worker
cebab3e9dd Snap for 8305076 from c019372a17 to udc-release
Change-Id: I151732e5b3cae927f0b5b16b314199f80e26a231
2022-03-16 03:01:21 +00:00
Android Build Coastguard Worker
01f2ee615b Snap for 8298132 from c68e3856e1 to udc-release
Change-Id: I8d1ac5d38ea0e16ef8d4f01102fdf271dc68eed2
2022-03-15 03:01:10 +00:00
Android Build Coastguard Worker
4b211100c8 Snap for 8288609 from d6dc27040e to udc-release
Change-Id: I52475a7fe8344cd5118fb0f435b71abaca9b78d5
2022-03-11 04:01:12 +00:00
Android Build Coastguard Worker
0cffc333f3 Snap for 8282595 from 58b95e5278 to udc-release
Change-Id: I205d9ed3edfa077d3fa6b76417546672a096b536
2022-03-10 04:01:14 +00:00
Android Build Coastguard Worker
7685d341f8 Snap for 8259672 from da64016221 to udc-release
Change-Id: I8f5fb3b005526cb798bb3f799636b4c4f5a6e277
2022-03-05 06:06:29 +00:00
Android Build Coastguard Worker
3cf7c583c6 Snap for 8243542 from 058dabbda9 to udc-release
Change-Id: Ia651c3ba954eeb94fa4b669806dbbdcb24668744
2022-03-03 04:01:38 +00:00
Android Build Coastguard Worker
9643e1d902 Snap for 8215644 from 1407c2c46c to udc-release
Change-Id: Ib311f9a496880e4ef4b02923c1079f898ee270f5
2022-02-24 04:01:23 +00:00
Android Build Coastguard Worker
c3c20f7318 Snap for 8211263 from dfd957cf04 to udc-release
Change-Id: I9da5309762e7bc1a484dca8ea9990cb8941b181f
2022-02-23 04:01:36 +00:00
Android Build Coastguard Worker
55bac2808f Snap for 8207854 from 34d31c907b to udc-release
Change-Id: I778763e3585cb50ed559da59c854192e92f33644
2022-02-22 04:01:08 +00:00
Android Build Coastguard Worker
1edfa7f717 Snap for 8203021 from 1b3242e008 to udc-release
Change-Id: Ib16c30dab9af5f7c8dc93e3676f9ace958363697
2022-02-19 06:06:08 +00:00
Android Build Coastguard Worker
591f174cf3 Snap for 8195043 from d95da03285 to udc-release
Change-Id: I5f31030fb8b5289eefe2d9b990482c2edd569f90
2022-02-18 04:01:16 +00:00
Android Build Coastguard Worker
3c362350b9 Snap for 8191477 from 26e6d6f2b6 to udc-release
Change-Id: I5e196b389210d7320dac5f45af397ec7777e0d89
2022-02-17 04:01:48 +00:00
Android Build Coastguard Worker
7f72532bd6 Snap for 8183730 from 78a2d63a45 to udc-release
Change-Id: Iad0d2e1bd3e5174db8c3cdc64de7d39642bd1f33
2022-02-15 04:02:20 +00:00
166 changed files with 3357 additions and 1834 deletions

View File

@@ -34,3 +34,11 @@ license {
"NOTICE",
],
}
prebuilt_etc {
name: "preinstalled-packages-product-gs101-device-debug.xml",
src: "preinstalled-packages-product-gs101-device-debug.xml",
product_specific: true,
sub_dir: "sysconfig",
filename_from_src: true,
}

37
Android.mk Normal file
View File

@@ -0,0 +1,37 @@
#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# WARNING: Everything listed here will be built on ALL platforms,
# including x86, the universal, and the SDK. Modules must be uniquely
# named (liblights.panda), and must build everywhere, or limit themselves
# to only building on ARM if they include assembly. Individual makefiles
# are responsible for having their own logic, for fine-grained control.
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,default-permissions.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,libnfc-nci.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,fstab.postinstall,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,ueventd.rc,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,wpa_supplicant.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,hals.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,media_profiles_V1_0.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,media_codecs_performance.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,device_state_configuration.xml,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,task_profiles.json,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,p2p_supplicant_overlay.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,wpa_supplicant.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-copy-files-license-metadata,device/google/gs101,wpa_supplicant_overlay.conf,SPDX-license-identifier-Apache-2.0,notice,build/soong/licenses/LICENSE,))
$(eval $(call declare-1p-copy-files,device/google/gs101,audio_policy_configuration.xml))

View File

@@ -16,18 +16,21 @@
include build/make/target/board/BoardConfigMainlineCommon.mk
include build/make/target/board/BoardConfigPixelCommon.mk
# Should be uncommented after fixing vndk-sp violation is fixed.
PRODUCT_FULL_TREBLE_OVERRIDE := true
# HACK : To fix up after bring up multimedia devices.
TARGET_SOC := gs101
TARGET_SOC_NAME := google
USES_DEVICE_GOOGLE_GS101 := true
$(call soong_config_set,googleDeviceConfig,target_soc,gs101)
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-2a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_VARIANT := cortex-a55
TARGET_CPU_VARIANT_RUNTIME := cortex-a55
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
@@ -43,9 +46,7 @@ endif
BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\"
BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10A00000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on
BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y
BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all rcutree.enable_rcu_lazy
BOARD_KERNEL_CMDLINE += swiotlb=noforce
BOARD_KERNEL_CMDLINE += cgroup.memory=nokmem
BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs
TARGET_NO_BOOTLOADER := true
@@ -69,7 +70,7 @@ TARGET_RECOVERY_FSTAB_GENRULE = gen_fstab.gs101
TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165
TARGET_RECOVERY_UI_LIB := \
//hardware/google/pixel/recovery:librecovery_ui_pixel \
librecovery_ui_pixel \
libfstab
AB_OTA_UPDATER := true
@@ -172,16 +173,7 @@ BOARD_SUPPORT_MFC_ENC_RGB := true
BOARD_USE_BLOB_ALLOCATOR := false
BOARD_SUPPORT_MFC_ENC_BT2020 := true
BOARD_SUPPORT_FLEXIBLE_P010 := true
$(call soong_config_set,video_codec,target_soc_name,$(TARGET_SOC_NAME))
$(call soong_config_set_bool,video_codec,board_use_codec2_hidl_1_2,$(BOARD_USE_CODEC2_HIDL_1_2))
$(call soong_config_set_bool,video_codec,board_use_csc_filter,$(BOARD_USE_CSC_FILTER))
$(call soong_config_set_bool,video_codec,board_use_dec_sw_csc,$(BOARD_USE_DEC_SW_CSC))
$(call soong_config_set_bool,video_codec,board_use_enc_sw_csc,$(BOARD_USE_ENC_SW_CSC))
$(call soong_config_set_bool,video_codec,board_support_mfc_enc_rgb,$(BOARD_SUPPORT_MFC_ENC_RGB))
$(call soong_config_set_bool,video_codec,board_use_blob_allocator,$(BOARD_USE_BLOB_ALLOCATOR))
$(call soong_config_set_bool,video_codec,board_support_mfc_enc_bt2020,$(BOARD_SUPPORT_MFC_ENC_BT2020))
$(call soong_config_set_bool,video_codec,board_support_flexible_p010,$(BOARD_SUPPORT_FLEXIBLE_P010))
$(call soong_config_set_bool,video_codec,board_use_codec2_aidl,$(if $(BOARD_USE_CODEC2_AIDL),true,false))
########################
BOARD_SUPER_PARTITION_SIZE := 8531214336
@@ -195,8 +187,8 @@ BOARD_GOOGLE_DYNAMIC_PARTITIONS_PARTITION_LIST := \
vendor \
vendor_dlkm
# Set error limit to BOARD_SUPER_PARTITON_SIZE - 400MB
BOARD_SUPER_PARTITION_ERROR_LIMIT := 8111783936
# Set error limit to BOARD_SUPER_PARTITON_SIZE - 500MB
BOARD_SUPER_PARTITION_ERROR_LIMIT := 8006926336
# Testing related defines
BOARD_PERFSETUP_SCRIPT := platform_testing/scripts/perf-setup/r4o6-setup.sh
@@ -208,6 +200,12 @@ BOARD_USES_GENERIC_AUDIO := true
$(call soong_config_set,aoc_audio_func,ext_hidl,true)
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
$(call soong_config_set,aoc_audio_func,dump_usecase_data,true)
$(call soong_config_set,aoc_audio_func,hal_socket_control,true)
$(call soong_config_set,aoc_audio_func,record_tuning_keys,true)
endif
ifneq (,$(filter aosp_%,$(TARGET_PRODUCT)))
$(call soong_config_set,aoc_audio_func,aosp_build,true)
endif
@@ -244,8 +242,6 @@ BOARD_USES_EXYNOS_AFBC_FEATURE := true
BOARD_LIBACRYL_DEFAULT_COMPOSITOR := fimg2d_gs101
BOARD_LIBACRYL_G2D_HDR_PLUGIN := libacryl_hdr_plugin
$(call soong_config_set,acryl,libacryl_g2d_hdr_plugin,//hardware/google/graphics/gs101/libacryl_plugins:libacryl_hdr_plugin)
$(call soong_config_set,acryl,libacryl_c_include,hardware/google/graphics/$(TARGET_BOARD_PLATFORM)/libcap)
# HWCServices
BOARD_USES_HWC_SERVICES := true
@@ -363,16 +359,12 @@ BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(KERNEL_MODULE_DIR)/vendor_dlkm.m
BOARD_DO_NOT_STRIP_VENDOR_MODULES := true
# Prebuilt kernel modules that are *not* listed in vendor_boot.modules.load
BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES = fips140.ko
BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES = fips140/fips140.ko
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_EXTRA = $(foreach k,$(BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES),$(if $(wildcard $(KERNEL_MODULE_DIR)/$(k)), $(k)))
KERNEL_MODULES += $(addprefix $(KERNEL_MODULE_DIR)/, $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_EXTRA))
# Kernel modules that are listed in vendor_boot.modules.load
# Starting from 6.1, use modules.load instead. It lists modules for vendor ramdisk regardless of the partition name.
ifneq ($(wildcard $(KERNEL_MODULE_DIR)/modules.load),)
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE := $(strip $(shell cat $(KERNEL_MODULE_DIR)/modules.load))
else
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_boot.modules.load))
endif
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE := $(strip $(shell cat $(KERNEL_MODULE_DIR)/vendor_boot.modules.load))
ifndef BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_FILE
$(error vendor_boot.modules.load not found or empty)
endif
@@ -401,5 +393,7 @@ BOARD_KERNEL_CMDLINE += log_buf_len=1024K
# Protected VM firmware
BOARD_PVMFWIMAGE_PARTITION_SIZE := 0x00100000
-include vendor/google_devices/gs-common/proprietary/BoardConfigVendor.mk
include device/google/gs101/BoardConfigLineage.mk
include device/google/gs101/BoardConfigEvolution.mk

View File

@@ -4,6 +4,4 @@
# SPDX-License-Identifier: Apache-2.0
#
BUILD_BROKEN_DUP_RULES := true
DISABLE_ARTIFACT_PATH_REQUIREMENTS := true

View File

@@ -1,10 +1,15 @@
#
# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
# Copyright (C) 2021 The Calyx Institute
#
# SPDX-License-Identifier: Apache-2.0
#
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE := true
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE := false
# Manifests
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += vendor/lineage/config/device_framework_matrix.xml
DEVICE_MANIFEST_FILE += device/google/gs101/manifest_radio.xml
# Partitions

91
CleanSpec.mk Normal file
View File

@@ -0,0 +1,91 @@
# Copyright (C) 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# If you don't need to do a full clean build but would like to touch
# a file or delete some intermediate files, add a clean step to the end
# of the list. These steps will only be run once, if they haven't been
# run before.
#
# E.g.:
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
#
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
# files that are missing or have been moved.
#
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
# Use $(OUT_DIR) to refer to the "out" directory.
#
# If you need to re-do something that's already mentioned, just copy
# the command and add it to the bottom of the list. E.g., if a change
# that you made last week required touching a file and a change you
# made today requires touching the same file, just copy the old
# touch step and add it to the end of the list.
#
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
# For example:
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
$(call add-clean-step, find $(PRODUCT_OUT) -name "*.apk" | xargs rm)
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libui_intermediates)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/root/default.prop)
$(call add-clean-step, rm -f $(TARGET_OUT)/build.prop)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/etc/mixer_paths_lb.xml)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/etc/permissions/android.hardware.camera.xml)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/root/*)
# Power HAL 1.0
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/init/android.hardware.power@1.0-service.rc)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.power@1.0-service)
# Power HAL HIDL
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power@1.3-service.pixel-libperfmgr.rc)
# Health storage HAL
$(call add-clean-step, find $(PRODUCT_OUT) -type f -name "*android.hardware.health.storage@1.0*" -print0 | xargs -0 rm -f)
# USB HAL to AIDL
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.usb-service.gs101)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.usb.gadget-service.gs101)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.usb-service.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.usb.gadget-service-gs101.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.usb-service.xml)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.usb.gadget@1.2-service.gs101.xml)
# Power Stats HAL 1.0 to AIDL
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.power.stats@1.0-service.gs101)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/etc/init/android.hardware.power.stats@1.0-service.gs101.rc)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.power.stats@1.0-service.gs101.xml)
# Keymaster to KeyMint
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.keymaster@4.0-service.trusty)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/etc/init/android.hardware.keymaster@4.0-service.trusty.rc)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.trusty.xml)
$(call add-clean-step, rm -f $(PRODUCT_OUT)/vendor/bin/hw/wait_for_strongbox)
# Health HAL to AIDL
$(call add-clean-step, find $(PRODUCT_OUT)/system -type f -name "*charger*" -print0 | xargs -0 rm -f)
$(call add-clean-step, find $(PRODUCT_OUT)/vendor -type f -name "*health@*" -print0 | xargs -0 rm -f)
$(call add-clean-step, find $(PRODUCT_OUT)/recovery/root -type f -name "*charger*" -print0 | xargs -0 rm -f)
$(call add-clean-step, find $(PRODUCT_OUT)/recovery/root -type f -name "*health@*" -print0 | xargs -0 rm -f)

5
OWNERS Normal file
View File

@@ -0,0 +1,5 @@
per-file powerhint.json = wvw@google.com,joaodias@google.com,jenhaochen@google.com,rkganesh@google.com,jychen@google.com
per-file powerhint.json = wvw@google.com,joaodias@google.com,jenhaochen@google.com,rkganesh@google.com,jychen@google.com
# per-file for Pixel device makefiles, see go/pixel-device-mk-owner-checklist for details.
per-file *.mk=file:device/google/gs-common:main:/OWNERS

2
PREUPLOAD.cfg Normal file
View File

@@ -0,0 +1,2 @@
[Builtin Hooks]
jsonlint = true

View File

@@ -49,6 +49,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_vendor.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_vendor.mk)
#$(call inherit-product, device/google/gs101/device.mk)
#$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk)
# TODO: fix
# PRODUCT_RESTRICT_VENDOR_FILES := all

30
conf/init.debug.rc Normal file
View File

@@ -0,0 +1,30 @@
# SJTAG
on init
chown system system /sys/devices/platform/sjtag_ap/interface/access_lvl
chown system system /sys/devices/platform/sjtag_ap/interface/auth
chown system system /sys/devices/platform/sjtag_ap/interface/begin
chown system system /sys/devices/platform/sjtag_ap/interface/dbg_domain
chown system system /sys/devices/platform/sjtag_ap/interface/dbg_itvl
chown system system /sys/devices/platform/sjtag_ap/interface/end
chown system system /sys/devices/platform/sjtag_ap/interface/pubkey
chown system system /sys/devices/platform/sjtag_gsa/interface/access_lvl
chown system system /sys/devices/platform/sjtag_gsa/interface/auth
chown system system /sys/devices/platform/sjtag_gsa/interface/begin
chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_domain
chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_itvl
chown system system /sys/devices/platform/sjtag_gsa/interface/end
chown system system /sys/devices/platform/sjtag_gsa/interface/pubkey
# Bluetooth
on post-fs-data
chown bluetooth system /dev/logbuffer_btlpm
chown bluetooth system /dev/logbuffer_tty16
on property:vendor.debug.ramdump.force_crash=true
write /sys/kernel/pixel_debug/trigger "null"
on property:power.battery_input.suspended=true
write /sys/kernel/debug/google_charger/input_suspend 1
on property:power.battery_input.suspended=false
write /sys/kernel/debug/google_charger/input_suspend 0

View File

@@ -1,4 +1,3 @@
import /vendor/etc/init/hw/init.gs101.storage.rc
import /vendor/etc/init/hw/init.gs101.usb.rc
import android.hardware.drm@1.2-service.widevine.rc
import init.exynos.sensorhub.rc
@@ -16,6 +15,38 @@ on init
# Disable util-awareness
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
# Boot time fs tuning
write /sys/block/sda/queue/scheduler bfq
write /sys/block/sda/queue/iosched/slice_idle 0
chown system system /proc/vendor_sched/groups/bg/set_task_group
chown system system /proc/vendor_sched/groups/cam/set_task_group
chown system system /proc/vendor_sched/groups/fg/set_task_group
chown system system /proc/vendor_sched/groups/nnapi/set_task_group
chown system system /proc/vendor_sched/groups/sys/set_task_group
chown system system /proc/vendor_sched/groups/sys_bg/set_task_group
chown system system /proc/vendor_sched/groups/ta/set_task_group
chown system system /proc/vendor_sched/groups/rt/set_task_group
chown system system /proc/vendor_sched/groups/sf/set_task_group
chown system system /proc/vendor_sched/groups/dex2oat/set_task_group
chown system system /proc/vendor_sched/groups/cam_power/set_task_group
chown system system /proc/vendor_sched/groups/ota/set_task_group
chown system system /proc/vendor_sched/groups/bg/set_proc_group
chown system system /proc/vendor_sched/groups/cam/set_proc_group
chown system system /proc/vendor_sched/groups/fg/set_proc_group
chown system system /proc/vendor_sched/groups/nnapi/set_proc_group
chown system system /proc/vendor_sched/groups/sys/set_proc_group
chown system system /proc/vendor_sched/groups/sys_bg/set_proc_group
chown system system /proc/vendor_sched/groups/ta/set_proc_group
chown system system /proc/vendor_sched/groups/rt/set_proc_group
chown system system /proc/vendor_sched/groups/sf/set_proc_group
chown system system /proc/vendor_sched/groups/dex2oat/set_proc_group
chown system system /proc/vendor_sched/groups/cam_power/set_proc_group
chown system system /proc/vendor_sched/groups/ota/set_proc_group
chown system system /proc/vendor_sched/prefer_idle_set
chown system system /proc/vendor_sched/prefer_idle_clear
chown system system /proc/vendor_sched/pmu_poll_enable
chown system system /proc/vendor_sched/pmu_poll_time
chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold
chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold
chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/limit_frequency
@@ -37,6 +68,35 @@ on init
chown system system /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/memlat_cpuidle_state_aware
chown system system /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/memlat_cpuidle_state_aware
chmod 0220 /proc/vendor_sched/groups/bg/set_task_group
chmod 0220 /proc/vendor_sched/groups/cam/set_task_group
chmod 0220 /proc/vendor_sched/groups/fg/set_task_group
chmod 0220 /proc/vendor_sched/groups/nnapi/set_task_group
chmod 0220 /proc/vendor_sched/groups/sys/set_task_group
chmod 0220 /proc/vendor_sched/groups/sys_bg/set_task_group
chmod 0220 /proc/vendor_sched/groups/ta/set_task_group
chmod 0220 /proc/vendor_sched/groups/rt/set_task_group
chmod 0220 /proc/vendor_sched/groups/sf/set_task_group
chmod 0220 /proc/vendor_sched/groups/dex2oat/set_task_group
chmod 0220 /proc/vendor_sched/groups/cam_power/set_task_group
chmod 0220 /proc/vendor_sched/groups/ota/set_task_group
chmod 0220 /proc/vendor_sched/groups/bg/set_proc_group
chmod 0220 /proc/vendor_sched/groups/cam/set_proc_group
chmod 0220 /proc/vendor_sched/groups/fg/set_proc_group
chmod 0220 /proc/vendor_sched/groups/nnapi/set_proc_group
chmod 0220 /proc/vendor_sched/groups/sys/set_proc_group
chmod 0220 /proc/vendor_sched/groups/sys_bg/set_proc_group
chmod 0220 /proc/vendor_sched/groups/ta/set_proc_group
chmod 0220 /proc/vendor_sched/groups/rt/set_proc_group
chmod 0220 /proc/vendor_sched/groups/sf/set_proc_group
chmod 0220 /proc/vendor_sched/groups/dex2oat/set_proc_group
chmod 0220 /proc/vendor_sched/groups/cam_power/set_proc_group
chmod 0220 /proc/vendor_sched/groups/ota/set_proc_group
chmod 0220 /proc/vendor_sched/prefer_idle_set
chmod 0220 /proc/vendor_sched/prefer_idle_clear
chmod 0220 /proc/vendor_sched/pmu_poll_enable
chmod 0220 /proc/vendor_sched/pmu_poll_time
start vendor.keymaster-3-0
# ZRAM setup
@@ -77,6 +137,16 @@ on init
write /sys/class/net/rmnet6/queues/rx-0/rps_cpus fe
write /sys/class/net/rmnet7/queues/rx-0/rps_cpus fe
# Create UDS structure for base VR services.
mkdir /dev/socket/pdx 0775 system system
mkdir /dev/socket/pdx/system 0775 system system
mkdir /dev/socket/pdx/system/buffer_hub 0775 system system
mkdir /dev/socket/pdx/system/performance 0775 system system
mkdir /dev/socket/pdx/system/vr 0775 system system
mkdir /dev/socket/pdx/system/vr/display 0775 system system
mkdir /dev/socket/pdx/system/vr/pose 0775 system system
mkdir /dev/socket/pdx/system/vr/sensors 0775 system system
# Boot time 183626384
write /proc/vendor_sched/groups/ta/uclamp_min 201
write /proc/vendor_sched/groups/ta/prefer_idle 1
@@ -88,11 +158,14 @@ on init
# governor setting
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor sched_pixel
write /sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/up_rate_limit_us 500
write /sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/down_rate_limit_us 5000
write /sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/down_rate_limit_scale_pow 2
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor sched_pixel
write /sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/up_rate_limit_us 500
write /sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us 20000
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor sched_pixel
write /sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/up_rate_limit_us 500
write /sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/down_rate_limit_us 20000
# memlat cpuidle awareness setting
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu0_memlat@17000010/memlat_cpuidle_state_aware 2
@@ -104,6 +177,15 @@ on init
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/memlat_cpuidle_state_aware 2
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/memlat_cpuidle_state_aware 2
# RT uclamp setting
write /proc/sys/kernel/sched_util_clamp_min_rt_default 0
# change permissions and default values for camera-daemon cpu controller
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.min
chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.max
chown root root /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive
chown system system /dev/cpuctl/camera-daemon/cgroup.procs
mkdir /dev/cpuset/camera-daemon-high-group
write /dev/cpuset/camera-daemon-high-group/cpus 0-7
write /dev/cpuset/camera-daemon-high-group/mems 0
@@ -122,6 +204,11 @@ on init
chown system system /dev/cpuset/camera-daemon-mid-high-group/tasks
chmod 0664 /dev/cpuset/camera-daemon-mid-high-group/tasks
write /proc/vendor_sched/groups/cam/prefer_idle 1
write /proc/vendor_sched/groups/cam/uclamp_min 1
chown system system /dev/cpuset/cgroup.procs
# nanohub sensor
chmod 0664 /dev/nanohub
chmod 0664 /dev/nanohub_comms
@@ -190,7 +277,6 @@ on init
chown system system /sys/class/power_supply/wireless/device/version
chown system system /sys/class/power_supply/wireless/device/features
chown system system /sys/class/power_supply/wireless/device/authtype
chown system system /sys/class/power_supply/wireless/device/authtstart
# Adaptive charge
chown system system /sys/class/power_supply/battery/charge_deadline
@@ -237,6 +323,10 @@ on init
# Power Stats HAL
chown system system /dev/bbd_pwrstat
# Add a boost for NNAPI HAL
write /proc/vendor_sched/groups/nnapi/prefer_idle 0
write /proc/vendor_sched/groups/nnapi/uclamp_min 512
# Add memlat governor settings
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu0_memlat@17000010/polling_interval 10
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu1_memlat@17000010/polling_interval 10
@@ -280,11 +370,6 @@ on late-fs
# Mount RW partitions which need run fsck
mount_all --late
on late-init
write /sys/devices/system/cpu/cpu0/cpufreq/sched_pixel/down_rate_limit_us 5000
write /sys/devices/system/cpu/cpu4/cpufreq/sched_pixel/down_rate_limit_us 20000
write /sys/devices/system/cpu/cpu6/cpufreq/sched_pixel/down_rate_limit_us 20000
on post-fs-data
# Log data folder
mkdir /data/vendor 0771 radio system
@@ -303,7 +388,7 @@ on post-fs-data
mkdir /data/vendor/radio/logs/always-on 777 system radio
# Modem extended log folder
mkdir /data/vendor/radio/extended_logs 0771 radio system
mkdir /data/vendor/radio/extended_logs 0770 radio system
# Modem MDS log folder
mkdir /data/vendor/radio/mds 0771 radio system
@@ -340,8 +425,8 @@ on post-fs-data
restorecon /sys/kernel/debug/tracing/trace_marker
# ranging sensor
chown system system /dev/ispolin_ranging
chmod 0660 /dev/ispolin_ranging
chown system system /dev/stmvl53l1_ranging
chmod 0660 /dev/stmvl53l1_ranging
# Factory calibration files
chmod 0771 /mnt/vendor/persist/camera
@@ -611,13 +696,27 @@ on property:sys.boot_completed=1
# Setup final cpuset
write /dev/cpuset/top-app/cpus ${persist.device_config.vendor_system_native.top-app_cpuset:-0-7}
write /dev/cpuset/foreground/cpus ${persist.device_config.vendor_system_native.foreground_cpuset:-0-3,4-5}
write /dev/cpuset/foreground_window/cpus ${persist.device_config.vendor_system_native.foreground_window_cpuset:-0-3,4-5}
write /dev/cpuset/background/cpus ${persist.device_config.vendor_system_native.background_cpuset:-0-3}
write /dev/cpuset/system-background/cpus ${persist.device_config.vendor_system_native.system-background_cpuset:-0-3}
write /dev/cpuset/restricted/cpus ${persist.device_config.vendor_system_native.restricted_cpuset:-0-3}
write /dev/cpuset/camera-daemon/cpus ${persist.device_config.vendor_system_native.camera-daemon_cpuset:-0-7}
setprop vendor.powerhal.init 1
# Setup final cpu.uclamp
write /proc/vendor_sched/groups/ta/uclamp_min 1
write /proc/vendor_sched/groups/fg/uclamp_min 0
write /proc/vendor_sched/groups/sys/prefer_idle 0
# Set ug group
write /proc/vendor_sched/groups/bg/ug 0
write /proc/vendor_sched/groups/sys_bg/ug 0
write /proc/vendor_sched/groups/ota/ug 0
write /proc/vendor_sched/groups/dex2oat/ug 1
write /proc/vendor_sched/groups/ta/ug 1
# Set bg group throttle
write /proc/vendor_sched/ug_bg_group_throttle ${persist.device_config.vendor_system_native.ug_bg_group_throttle:-308}
# Set uclamp.max for some groups, which could indicate cpu importance used in scheduling
write /proc/vendor_sched/groups/bg/uclamp_max 512
write /proc/vendor_sched/groups/sys_bg/uclamp_max 512
@@ -636,6 +735,24 @@ on property:sys.boot_completed=1
write /sys/devices/system/cpu/cpufreq/policy6/sched_pixel/limit_frequency 2507000
write /proc/vendor_sched/pmu_poll_time 10
# Disable PMU freq limit
write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/pmu_limit_enable 1
write /sys/devices/system/cpu/cpufreq/policy4/sched_pixel/pmu_limit_enable 1
write /sys/devices/system/cpu/cpufreq/policy6/sched_pixel/pmu_limit_enable 1
write /proc/vendor_sched/pmu_poll_enable 0
# Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%)
write /dev/cpuctl/background/cpu.shares 1024
write /dev/cpuctl/system-background/cpu.shares 1024
write /dev/cpuctl/dex2oat/cpu.shares 512
write /dev/cpuctl/system/cpu.shares 20480
# We only have system and background groups holding tasks and the groups below are empty
write /dev/cpuctl/camera-daemon/cpu.shares 20480
write /dev/cpuctl/foreground/cpu.shares 20480
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
write /dev/cpuctl/rt/cpu.shares 20480
write /dev/cpuctl/top-app/cpu.shares 20480
# gvotables for dumpstate
chown system system /sys/kernel/debug/gvotables
@@ -679,7 +796,6 @@ service init_display /vendor/bin/init.display.sh
group root system
disabled
oneshot
file /dev/kmsg w
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -z
@@ -713,12 +829,10 @@ on property:ro.build.fingerprint=*
write /sys/module/debug_kinfo/parameters/build_info ${ro.build.fingerprint}
# Bluetooth
on early-boot
on post-fs-data
chown bluetooth system /sys/devices/platform/175b0000.serial/serial0/serial0-0/bluetooth/hci0/rfkill0/state
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill0/state
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill2/state
on post-fs-data
chown bluetooth system /proc/bluetooth/sleep/btwake
chown bluetooth system /proc/bluetooth/sleep/lpm
chown bluetooth system /proc/bluetooth/sleep/btwrite
@@ -738,12 +852,50 @@ on property:vendor.thermal.link_ready=1
write /sys/devices/virtual/pmic/mitigation/clock_ratio/gpu_heavy_clk_ratio 0xfff04385
write /sys/devices/virtual/pmic/mitigation/clock_ratio/tpu_heavy_clk_ratio 0xfff041c1
write /sys/devices/virtual/pmic/mitigation/clock_ratio/cpu2_heavy_clk_ratio 0xfff041c0
write /dev/thermal/tz-by-name/smpl_gm/policy user_space
write /dev/thermal/tz-by-name/vdroop1/policy user_space
write /dev/thermal/tz-by-name/vdroop2/policy user_space
write /dev/thermal/tz-by-name/ocp_cpu1/policy user_space
write /dev/thermal/tz-by-name/ocp_cpu2/policy user_space
write /dev/thermal/tz-by-name/ocp_tpu/policy user_space
write /dev/thermal/tz-by-name/ocp_gpu/policy user_space
write /dev/thermal/tz-by-name/soft_ocp_cpu1/policy user_space
write /dev/thermal/tz-by-name/soft_ocp_cpu2/policy user_space
write /dev/thermal/tz-by-name/soft_ocp_tpu/policy user_space
write /dev/thermal/tz-by-name/soft_ocp_gpu/policy user_space
write /dev/thermal/tz-by-name/soc/policy user_space
write /dev/thermal/tz-by-name/batoilo/policy user_space
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/smpl_lvl 3100
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/ocp_cpu1_lvl 7000
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_cpu1_lvl 7000
write /sys/devices/virtual/pmic/mitigation/clock_div/tpu_clk_div 0x1
write /sys/devices/virtual/pmic/mitigation/clock_div/gpu_clk_div 0x1
write /sys/devices/virtual/pmic/mitigation/clock_div/cpu2_clk_div 0x1
chown system system /dev/thermal/tz-by-name/soc/mode
chown system system /dev/thermal/tz-by-name/batoilo/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/batoilo/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/vdroop2/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/vdroop2/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/vdroop1/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/vdroop1/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/smpl_gm/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/smpl_gm/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/ocp_cpu1/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/ocp_cpu1/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/ocp_cpu2/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/ocp_cpu2/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/ocp_tpu/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/ocp_tpu/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/ocp_gpu/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/ocp_gpu/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/soft_ocp_cpu1/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/soft_ocp_cpu1/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/soft_ocp_cpu2/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/soft_ocp_cpu2/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/soft_ocp_tpu/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/soft_ocp_tpu/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/soft_ocp_gpu/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/soft_ocp_gpu/trip_point_0_hyst
chown system system /dev/thermal/tz-by-name/soc/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/soc/trip_point_0_hyst
# Thermal
chown system system /dev/thermal/tz-by-name/quiet_therm/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/quiet_therm/trip_point_0_hyst
@@ -815,8 +967,6 @@ on property:persist.device_config.vendor_system_native.top-app_cpuset=*
write /dev/cpuset/top-app/cpus ${persist.device_config.vendor_system_native.top-app_cpuset:-0-7}
on property:persist.device_config.vendor_system_native.foreground_cpuset=*
write /dev/cpuset/foreground/cpus ${persist.device_config.vendor_system_native.foreground_cpuset:-0-3,4-5}
on property:persist.device_config.vendor_system_native.foreground_window_cpuset=*
write /dev/cpuset/foreground/cpus ${persist.device_config.vendor_system_native.foreground_window_cpuset:-0-3,4-5}
on property:persist.device_config.vendor_system_native.background_cpuset=*
write /dev/cpuset/background/cpus ${persist.device_config.vendor_system_native.background_cpuset:-0-3}
on property:persist.device_config.vendor_system_native.system-background_cpuset=*
@@ -829,14 +979,3 @@ on property:persist.device_config.vendor_system_native.camera-daemon_cpuset=*
# Set esim property for LPA
on property:persist.vendor.modem.esim_profiles_exist=*
setprop persist.modem.esim_profiles_exist ${persist.vendor.modem.esim_profiles_exist}
# Battery health
on property:persist.vendor.pulsar.opt_out=1
write /sys/class/power_supply/battery/aacp_opt_out 1
on property:persist.vendor.pulsar.opt_out=0
write /sys/class/power_supply/battery/aacp_opt_out 0
# NFC
on post-fs-data
mkdir /data/vendor/nfc 0770 nfc nfc

View File

@@ -75,7 +75,7 @@ on early-boot
mkdir /config/usb_gadget/g1/functions/uvc.0
write /config/usb_gadget/g1/functions/uvc.0/function_name "Android Webcam"
write /config/usb_gadget/g1/functions/uvc.0/streaming_maxpacket 3072
write /config/usb_gadget/g1/functions/uvc.0/streaming_maxburst 1
# write /config/usb_gadget/g1/functions/uvc.0/streaming_maxburst 5
# write /config/usb_gadget/g1/functions/uvc.0/streaming_interval 2
# setup control params
mkdir /config/usb_gadget/g1/functions/uvc.0/control/header/h
@@ -414,7 +414,3 @@ on property:vendor.usb.contaminantdisable=true
on property:ro.bootmode=usbuwb
setprop persist.vendor.usb.usbradio.config uwb_acm
# WAR for kernel 5.10 with CONFIG_USB_DUMMY_HCD enabled
on property:sys.usb.controller=dummy_udc.0
setprop sys.usb.controller "11110000.dwc3"

View File

@@ -55,6 +55,7 @@
<!-- Camera -->
<permission name="android.permission.CAMERA" fixed="false"/>
<!-- Camera Connectivity -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
<permission name="android.permission.BLUETOOTH_CONNECT" fixed="false"/>
<permission name="android.permission.BLUETOOTH_SCAN" fixed="false"/>
@@ -72,8 +73,6 @@
<permission name="android.permission.ACTIVITY_RECOGNITION" fixed="false"/>
<!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
<!-- Used by Bluetooth Module to collect bluetooth info -->
<permission name="android.permission.BLUETOOTH_CONNECT" fixed="false"/>
</exception>
<exception
@@ -171,11 +170,4 @@
<!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception>
<exception package="com.google.android.apps.pixel.relationships">
<permission name="android.permission.CALL_PHONE" fixed="false"/>
<permission name="android.permission.READ_CALL_LOG" fixed="false"/>
<permission name="android.permission.READ_CONTACTS" fixed="false"/>
<permission name="android.permission.WRITE_CONTACTS" fixed="false"/>
</exception>
</exceptions>

View File

@@ -14,6 +14,9 @@
# limitations under the License.
#
ifneq ($(BOARD_WITHOUT_RADIO),true)
-include vendor/google_devices/gs101/proprietary/telephony/device-vendor.mk
endif
include device/google/gs101/device.mk
ifneq ($(BOARD_WITHOUT_RADIO),true)

290
device.mk
View File

@@ -16,7 +16,7 @@
include device/google/gs-common/device.mk
include device/google/gs-common/gs_watchdogd/watchdog.mk
include device/google/gs-common/ramdump_and_coredump/ramdump_and_coredump.mk
include device/google/gs-common/ramdump/ramdump.mk
include device/google/gs-common/soc/soc.mk
include device/google/gs-common/soc/freq.mk
include device/google/gs-common/modem/modem.mk
@@ -25,8 +25,7 @@ include device/google/gs-common/thermal/dump/thermal.mk
include device/google/gs-common/thermal/thermal_hal/device.mk
include device/google/gs-common/pixel_metrics/pixel_metrics.mk
include device/google/gs-common/performance/perf.mk
include device/google/gs-common/power/power.mk
include device/google/gs-common/display/dump_exynos_display.mk
include device/google/gs-common/display/dump.mk
include device/google/gs101/dumpstate/item.mk
include device/google/gs-common/radio/dump.mk
include device/google/gs-common/gear/dumpstate/aidl.mk
@@ -35,11 +34,11 @@ include device/google/gs-common/gps/dump/log.mk
include device/google/gs-common/widevine/widevine.mk
include device/google/gs-common/sota_app/factoryota.mk
include device/google/gs-common/misc_writer/misc_writer.mk
include device/google/gs-common/gyotaku_app/gyotaku.mk
include device/google/gs-common/bootctrl/bootctrl_aidl.mk
include device/google/gs-common/betterbug/betterbug.mk
include device/google/gs-common/bcmbt/dump/dumplog.mk
include device/google/gs-common/fingerprint/fingerprint.mk
include device/google/gs-common/nfc/nfc.mk
ifneq ($(filter oriole raven bluejay, $(TARGET_PRODUCT)),)
include device/google/gs-common/bcmbt/dump/dumplog.mk
endif
TARGET_BOARD_PLATFORM := gs101
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
@@ -55,24 +54,72 @@ AB_OTA_POSTINSTALL_CONFIG += \
POSTINSTALL_OPTIONAL_system=true
# Set Vendor SPL to match platform
VENDOR_SECURITY_PATCH := 2025-08-05
VENDOR_SECURITY_PATCH = $(PLATFORM_SECURITY_PATCH)
# Set boot SPL
BOOT_SECURITY_PATCH := 2025-08-05
BOOT_SECURITY_PATCH = $(PLATFORM_SECURITY_PATCH)
PRODUCT_SOONG_NAMESPACES += \
hardware/google/av \
hardware/google/gchips \
hardware/google/graphics/common \
hardware/google/gchips/gralloc4 \
hardware/google/graphics/gs101 \
hardware/google/interfaces \
hardware/google/pixel \
device/google/gs101 \
device/google/gs101/powerstats
device/google/gs101/powerstats \
vendor/google_devices/common/chre/host/hal \
vendor/google/whitechapel/tools \
vendor/google/camera \
vendor/google/interfaces \
vendor/google_devices/common/proprietary/confirmatioui_hal \
vendor/google_nos/host/android \
vendor/google_nos/test/system-test-harness
LOCAL_KERNEL := $(TARGET_KERNEL_DIR)/Image.lz4
# OEM Unlock reporting
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.oem_unlock_supported=1
ifneq ($(BOARD_WITHOUT_RADIO),true)
# Include vendor telephony soong namespace
PRODUCT_SOONG_NAMESPACES += \
vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)
endif
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
#Set IKE logs to verbose for WFC
PRODUCT_PROPERTY_OVERRIDES += log.tag.IKE=VERBOSE
#Set Shannon IMS logs to debug
PRODUCT_PROPERTY_OVERRIDES += log.tag.SHANNON_IMS=DEBUG
#Set Shannon QNS logs to debug
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS=DEBUG
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS-ims=DEBUG
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS-emergency=DEBUG
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS-mms=DEBUG
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS-xcap=DEBUG
PRODUCT_PROPERTY_OVERRIDES += log.tag.ShannonQNS-HC=DEBUG
# Modem userdebug
include device/google/gs101/modem/userdebug.mk
endif
include device/google/gs101/modem/user.mk
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# b/36703476: Set default log size to 1M
PRODUCT_PROPERTY_OVERRIDES += \
ro.logd.size=1M
# b/114766334: persist all logs by default rotating on 30 files of 1MiB
PRODUCT_PROPERTY_OVERRIDES += \
logd.logpersistd=logcatd \
logd.logpersistd.size=30
endif
# From system.property
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=27 \
@@ -132,15 +179,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
telephony.active_modems.max_count=2
USE_LASSEN_OEMHOOK := true
# The "power-anomaly-sitril" is added into PRODUCT_SOONG_NAMESPACES when
# $(USE_LASSEN_OEMHOOK) is true and $(BOARD_WITHOUT_RADIO) is not true.
ifneq ($(BOARD_WITHOUT_RADIO),true)
$(call soong_config_set,sitril,use_lassen_oemhook_with_radio,true)
endif
# Use for GRIL
USES_LASSEN_MODEM := true
$(call soong_config_set, vendor_ril_google_feature, use_lassen_modem, true)
ifeq ($(USES_GOOGLE_DIALER_CARRIER_SETTINGS),true)
USE_GOOGLE_DIALER := true
@@ -159,25 +200,18 @@ USE_SWIFTSHADER := false
# HWUI
TARGET_USES_VULKAN = true
# Used in gfx_tools when defining tests with composer2 interface for gs101 devices
$(call soong_config_set,gfx_tools,use_hwc2,true)
PRODUCT_SOONG_NAMESPACES += \
vendor/arm/mali/valhall
$(call soong_config_set,pixel_mali,soc,$(TARGET_BOARD_PLATFORM))
include device/google/gs-common/gpu/gpu.mk
PRODUCT_PACKAGES += \
libGLES_mali \
vulkan.mali \
libOpenCL \
libgpudataproducer
# Install the OpenCL ICD Loader
PRODUCT_SOONG_NAMESPACES += external/OpenCL-ICD-Loader
PRODUCT_PACKAGES += \
libOpenCL \
mali_icd__customer_pixel_opencl-icd_ARM.icd
ifeq ($(DEVICE_IS_64BIT_ONLY),false)
PRODUCT_PACKAGES += \
mali_icd__customer_pixel_opencl-icd_ARM32.icd
endif
PRODUCT_VENDOR_PROPERTIES += \
ro.hardware.vulkan=mali
@@ -188,7 +222,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
PRODUCT_VENDOR_PROPERTIES += \
vendor.mali.platform.config=/vendor/etc/mali/platform.config \
vendor.mali.debug.config=/vendor/etc/mali/debug.config \
vendor.mali.base_protected_max_core_count=4 \
vendor.mali.base_protected_max_core_count=3 \
vendor.mali.base_protected_tls_max=67108864 \
vendor.mali.platform_agt_frequency_khz=24576
@@ -204,8 +238,9 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.vulkan.version-1_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
frameworks/native/data/etc/android.software.vulkan.deqp.level-2025-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
frameworks/native/data/etc/android.software.opengles.deqp.level-2025-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml
frameworks/native/data/etc/android.software.contextualsearch.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.contextualsearch.xml \
frameworks/native/data/etc/android.software.vulkan.deqp.level-2023-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
frameworks/native/data/etc/android.software.opengles.deqp.level-2023-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml
ifeq ($(USE_SWIFTSHADER),true)
PRODUCT_VENDOR_PROPERTIES += \
@@ -234,7 +269,6 @@ PRODUCT_VENDOR_PROPERTIES += ro.surface_flinger.prime_shader_cache.ultrahdr=1
DEVICE_MANIFEST_FILE := \
device/google/gs101/manifest$(LOCAL_64ONLY).xml
BOARD_USE_CODEC2_AIDL := V1
ifneq (,$(filter aosp_%,$(TARGET_PRODUCT)))
DEVICE_MANIFEST_FILE += \
device/google/gs101/manifest_media_aosp.xml
@@ -261,18 +295,16 @@ PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE := true
# Init files
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
device/google/gs101/conf/init.gs101.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.usb.rc \
device/google/gs101/conf/ueventd.gs101.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc
PRODUCT_COPY_FILES += \
device/google/gs101/conf/init.gs101.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.rc
ifneq (,$(filter 5.%, $(TARGET_LINUX_KERNEL_VERSION)))
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/gs101/storage/5.10/init.gs101.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.storage.rc
else
PRODUCT_COPY_FILES += \
device/google/gs101/storage/6.1/init.gs101.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.storage.rc
device/google/gs101/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc
endif
# Recovery files
@@ -301,10 +333,6 @@ PRODUCT_COPY_FILES += \
include device/google/gs-common/insmod/insmod.mk
# Insmod config files
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,init.insmod.*.cfg,$(TARGET_KERNEL_DIR),$(TARGET_COPY_OUT_VENDOR_DLKM)/etc)
# For creating dtbo image
PRODUCT_HOST_PACKAGES += \
mkdtimg
@@ -313,6 +341,14 @@ PRODUCT_PACKAGES += \
messaging
# CHRE
## tools
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
chre_power_test_client \
chre_test_client \
chre_aidl_hal_client
endif
## HAL
include device/google/gs-common/chre/hal.mk
PRODUCT_COPY_FILES += \
@@ -331,8 +367,13 @@ PRODUCT_PACKAGES += \
checkpoint_gc
# Vendor verbose logging default property
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.verbose_logging_enabled=true
else
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.verbose_logging_enabled=false
endif
# CP Logging properties
PRODUCT_PROPERTY_OVERRIDES += \
@@ -344,8 +385,13 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sys.modem.logging.enable=true
# Enable silent CP crash handling
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ril.crash_handling_mode=1
else
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ril.crash_handling_mode=2
endif
# Add support dual SIM mode
PRODUCT_PROPERTY_OVERRIDES += \
@@ -399,6 +445,12 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
# default usb debug functions
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.usb.usbradio.config=dm
endif
# Power HAL
PRODUCT_COPY_FILES += \
device/google/gs101/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
@@ -456,6 +508,10 @@ PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# for now include gralloc here. should come from hardware/google_devices/exynos5
PRODUCT_PACKAGES += \
android.hardware.graphics.mapper@4.0-impl \
android.hardware.graphics.allocator-V1-service
PRODUCT_PACKAGES += \
android.hardware.memtrack-service.pixel \
libion_exynos \
@@ -487,6 +543,14 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
ConnectivityOverlay
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES_DEBUG += \
f2fs_io \
check_f2fs \
f2fs.fibmap \
dump.f2fs
endif
# Storage dump
include device/google/gs-common/storage/storage.mk
@@ -494,9 +558,6 @@ include device/google/gs-common/storage/storage.mk
PRODUCT_PACKAGES += \
android.hardware.health.storage-service.default
# Battery Mitigation
include device/google/gs-common/battery_mitigation/bcl.mk
# storage pixelstats
-include hardware/google/pixel/pixelstats/device.mk
@@ -575,6 +636,10 @@ PRODUCT_PACKAGES += \
libdisplaycolor \
hwcomposer.$(TARGET_BOARD_PLATFORM)
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += displaycolor_service
endif
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.disable_backpressure=0 \
debug.sf.enable_gl_backpressure=1
@@ -648,6 +713,11 @@ PRODUCT_PACKAGES += wpa_supplicant.conf
WIFI_PRIV_CMD_UPDATE_MBO_CELL_STATUS := enabled
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += wpa_cli
PRODUCT_PACKAGES += hostapd_cli
endif
####################################
## VIDEO
####################################
@@ -664,25 +734,16 @@ PRODUCT_COPY_FILES += \
device/google/gs101/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.c2-poolmask=458752 \
debug.c2.use_dmabufheaps=1 \
media.c2.dmabuf.padding=512 \
debug.stagefright.ccodec_delayed_params=1 \
ro.vendor.gpu.dataspace=1
ifneq ($(BOARD_USE_CODEC2_AIDL), )
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.c2-poolmask=1507328
else
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.c2-poolmask=458752
endif
# Create input surface on the framework side
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.c2inputsurface=-1 \
PRODUCT_PROPERTY_OVERRIDES += media.c2.hal.selection=aidl
# 2. OpenMAX IL
PRODUCT_COPY_FILES += \
device/google/gs101/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
@@ -716,9 +777,15 @@ ifeq (,$(filter tangor citron,$(subst _, ,$(TARGET_PRODUCT))))
include device/google/gs-common/gps/brcm/device.mk
PRODUCT_COPY_FILES += \
device/google/gs101/location/gps.cer:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cer
PRODUCT_COPY_FILES += \
device/google/gs101/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
device/google/gs101/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/gs101/location/lhd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
device/google/gs101/location/scd.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
else
PRODUCT_COPY_FILES += \
device/google/gs101/location/lhd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
device/google/gs101/location/scd_user.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
endif
endif
# Trusty (KM, GK, Storage)
$(call inherit-product, system/core/trusty/trusty-storage.mk)
@@ -727,6 +794,13 @@ $(call inherit-product, system/core/trusty/trusty-base.mk)
# Trusty dump
include device/google/gs-common/trusty/trusty.mk
# Trusty unit test tool
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES_DEBUG += trusty-ut-ctrl
endif
include device/google/gs101/confirmationui/confirmationui.mk
include device/google/gs101/trusty_metricsd/trusty_metricsd.mk
PRODUCT_PACKAGES += \
@@ -738,13 +812,15 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.frp.pst=/dev/block/by-name/frp
# System props to enable Bluetooth Quality Report (BQR) feature
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=262174 \
persist.bluetooth.bqr.min_interval_ms=500
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=30 \
persist.bluetooth.bqr.min_interval_ms=500
# Enable Bluetooth AutoOn feature
PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.server.automatic_turn_on=true
endif
#VNDK
PRODUCT_PACKAGES += \
@@ -776,6 +852,12 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
Iwlan
#Iwlan test app for userdebug/eng builds
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
IwlanTestApp
endif
PRODUCT_PACKAGES += \
whitelist \
libstagefright_hdcp \
@@ -789,15 +871,24 @@ PRODUCT_PACKAGES += \
vts.bin
ifneq ($(BOARD_WITHOUT_RADIO),true)
# This will be called only if IMSService is building with source code for dev branches.
$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/shannon-ims/device-vendor.mk)
PRODUCT_PACKAGES += ShannonIms
$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/shannon-iwlan/device-vendor.mk)
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES_DEBUG += \
preinstalled-packages-product-gs101-device-debug.xml
endif
PRODUCT_PACKAGES += ShannonRcs
endif
# Exynos RIL and telephony
# Multi SIM(DSDS)
SIM_COUNT := 2
$(call soong_config_set,sim,sim_count,$(SIM_COUNT))
SUPPORT_MULTI_SIM := true
# Support NR
SUPPORT_NR := true
@@ -806,12 +897,22 @@ USE_RADIO_HAL_1_6 := true
# Support SecureElement HAL for HIDL
USE_SE_HIDL := true
#$(call inherit-product, vendor/google_devices/telephony/common/device-vendor.mk)
#$(call inherit-product, vendor/google_devices/gs101/proprietary/device-vendor.mk)
ifneq ($(BOARD_WITHOUT_RADIO),true)
$(call inherit-product-if-exists, vendor/samsung_slsi/telephony/$(BOARD_USES_SHARED_VENDOR_TELEPHONY)/common/device-vendor.mk)
endif
ifeq ($(DEVICE_IS_64BIT_ONLY),true)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
else
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
endif
#$(call inherit-product, hardware/google_devices/exynos5/exynos5.mk)
#$(call inherit-product-if-exists, hardware/google_devices/gs101/gs101.mk)
#$(call inherit-product-if-exists, vendor/google_devices/common/exynos-vendor.mk)
#$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4375/device-bcm.mk)
include device/google/gs-common/sensors/sensors.mk
$(call soong_config_set,usf,target_soc,gs101)
@@ -819,6 +920,9 @@ PRODUCT_COPY_FILES += \
device/google/gs101/default-permissions.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/default-permissions/default-permissions.xml \
device/google/gs101/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
# modem_svc_sit daemon
PRODUCT_PACKAGES += modem_svc_sit
# modem logging binary/configs
PRODUCT_PACKAGES += modem_logging_control
@@ -846,6 +950,15 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
device/google/gs101/radio/gnss_blanking.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/gnss_blanking.csv
# Vibrator Diag
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES_DEBUG += \
diag-vibrator \
diag-vibrator-cs40l25a \
diag-vibrator-drv2624 \
$(NULL)
endif
PRODUCT_PACKAGES += \
android.hardware.health-service.gs101 \
android.hardware.health-service.gs101_recovery \
@@ -855,6 +968,9 @@ PRODUCT_PACKAGES += \
include device/google/gs-common/audio/hidl_gs101.mk
## AoC soong
PRODUCT_SOONG_NAMESPACES += \
vendor/google/whitechapel/aoc
$(call soong_config_set,aoc,target_soc,$(TARGET_BOARD_PLATFORM))
$(call soong_config_set,aoc,target_product,$(TARGET_PRODUCT))
@@ -876,6 +992,22 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PACKAGES += vndservicemanager
PRODUCT_PACKAGES += vndservice
# TinyTools, debug tool and cs35l41 speaker calibration tool for Audio
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
tinyplay \
tinycap \
tinymix \
tinypcminfo \
tinyhostless \
cplay \
aoc_hal \
aoc_tuning_inft \
crus_sp_cal \
mahal_test \
ma_aoc_tuning_test
endif
PRODUCT_PACKAGES += \
google.hardware.media.c2@1.0-service \
libgc2_store \
@@ -885,9 +1017,6 @@ PRODUCT_PACKAGES += \
libgc2_cwl \
libgc2_utils
## Start packet router
include device/google/gs-common/telephony/pktrouter.mk
# Thermal HAL
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.enable.thermal.genl=true
@@ -895,7 +1024,14 @@ PRODUCT_PROPERTY_OVERRIDES += persist.vendor.enable.thermal.genl=true
include device/google/gs-common/edgetpu/edgetpu.mk
# Config variables for TPU chip on device.
$(call soong_config_set,edgetpu_config,chip,abrolhos)
# Include the edgetpu targets defined the namespaces below into the final image.
PRODUCT_SOONG_NAMESPACES += \
vendor/google_devices/gs101/proprietary/gchips/tpu/metrics \
vendor/google_devices/gs101/proprietary/gchips/tpu/tflite_delegate \
vendor/google_devices/gs101/proprietary/gchips/tpu/darwinn_logging_service \
vendor/google_devices/gs101/proprietary/gchips/tpu/nnapi_stable_aidl \
vendor/google_devices/gs101/proprietary/gchips/tpu/aidl \
vendor/google_devices/gs101/proprietary/gchips/tpu/hal
# TPU firmware
PRODUCT_PACKAGES += edgetpu-abrolhos.fw
@@ -955,11 +1091,24 @@ endif
# Wifi ext
include hardware/google/pixel/wifi_ext/device.mk
# Battery Stats Viewer
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES_DEBUG += BatteryStatsViewer
endif
# Install product specific framework compatibility matrix
# (TODO: b/169535506) This includes the FCM for system_ext and product partition.
# It must be split into the FCM of each partition.
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product.xml
# Preopt SystemUI
PRODUCT_DEXPREOPT_SPEED_APPS += SystemUIGoogle # For internal
PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI # For AOSP
# Compile SystemUI on device with `speed`.
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.systemuicompilerfilter=speed
# Keymaster configuration
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
@@ -977,10 +1126,3 @@ include hardware/google/pixel/HardwareInfo/HardwareInfo.mk
# Touch service
include device/google/gs-common/touch/twoshay/aidl_gs101.mk
include device/google/gs-common/touch/twoshay/twoshay.mk
# Allow longer timeout for incident report generation in bugreport
# Overriding in /product partition instead of /vendor intentionally,
# since it can't be overridden from /vendor.
PRODUCT_PRODUCT_PROPERTIES += \
dumpstate.strict_run=false

View File

@@ -78,7 +78,7 @@
</hal>
<hal format="aidl" optional="true">
<name>com.google.hardware.pixel.display</name>
<version>13-15</version>
<version>10</version>
<interface>
<name>IDisplay</name>
<instance>default</instance>
@@ -118,7 +118,7 @@
</hal>
<hal format="aidl" optional="true">
<name>vendor.google.wifi_ext</name>
<version>2-4</version>
<version>2-3</version>
<interface>
<name>IWifiExt</name>
<instance>default</instance>

View File

@@ -2,20 +2,10 @@ package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "dump_power",
srcs: ["dump_power.cpp"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
shared_libs: [
"libbase",
"libdump",
"libdumpstateutil",
],
sh_binary {
name: "dump_gs101.sh",
src: "dump_gs101.sh",
vendor: true,
relative_install_path: "dump",
init_rc: ["dump_power.rc"],
sub_dir: "dump",
}

10
dumpstate/OWNERS Normal file
View File

@@ -0,0 +1,10 @@
aaronding@google.com
rurumihong@google.com
adamshih@google.com
wilsonsung@google.com
lucaswei@google.com
cyanhsieh@google.com
rogerliao@google.com
cyuanjen@google.com
robinpeng@google.com
pattjin@google.com

292
dumpstate/dump_gs101.sh Normal file
View File

@@ -0,0 +1,292 @@
#!/vendor/bin/sh
echo "------ Camera HAL Graph State Dump ------"
for f in $(ls -t /data/vendor/camera/hal_graph_state*.txt |head -1); do
echo $f
cat $f
done
build_type="$(getprop ro.build.type)"
echo "\n------ Power Stats Times ------"
echo -n "Boot: " && /vendor/bin/uptime -s && echo -n "Now: " && date;
echo "\n------ ACPM stats ------"
for f in /sys/devices/platform/acpm_stats/*_stats ; do
echo "\n\n$f"
cat $f
done
echo "\n------ CPU PM stats ------"
cat "/sys/devices/system/cpu/cpupm/cpupm/time_in_state"
echo "\n------ GENPD summary ------"
cat "/d/pm_genpd/pm_genpd_summary"
echo "\n------ Power supply property battery ------"
cat "/sys/class/power_supply/battery/uevent"
echo "\n------ Power supply property dc ------"
cat "/sys/class/power_supply/dc/uevent"
echo "\n------ Power supply property gcpm ------"
cat "/sys/class/power_supply/gcpm/uevent"
echo "\n------ Power supply property gcpm_pps ------"
cat "/sys/class/power_supply/gcpm_pps/uevent"
echo "\n------ Power supply property main-charger ------"
cat "/sys/class/power_supply/main-charger/uevent"
echo "\n------ Power supply property pca9486-mains ------"
cat "/sys/class/power_supply/pca9468-mains/uevent"
echo "\n------ Power supply property tcpm ------"
cat /sys/class/power_supply/tcpm-source-psy-*/uevent
echo "\n------ Power supply property usb ------"
cat "/sys/class/power_supply/usb/uevent"
echo "\n------ Power supply property wireless ------"
cat "/sys/class/power_supply/wireless/uevent"
if [ -d "/sys/class/power_supply/maxfg" ]
then
echo "\n------ Power supply property maxfg ------"
cat "/sys/class/power_supply/maxfg/uevent"
echo "\n------ m5_state ------"
cat "/sys/class/power_supply/maxfg/m5_model_state"
echo "\n------ maxfg ------"
cat "/dev/logbuffer_maxfg"
echo "\n------ maxfg ------"
cat "/dev/logbuffer_maxfg_monitor"
else
echo "\n------ Power supply property maxfg_base ------"
cat "/sys/class/power_supply/maxfg_base/uevent"
echo "\n------ Power supply property maxfg_flip ------"
cat "/sys/class/power_supply/maxfg_flip/uevent"
echo "\n------ m5_state ------"
cat "/sys/class/power_supply/maxfg_base/m5_model_state"
echo "\n------ maxfg_base ------"
cat "/dev/logbuffer_maxfg_base"
echo "\n------ maxfg_flip ------"
cat "/dev/logbuffer_maxfg_flip"
echo "\n------ maxfg_base ------"
cat "/dev/logbuffer_maxfg_base_monitor"
echo "\n------ maxfg_flip ------"
cat "/dev/logbuffer_maxfg_flip_monitor"
fi
if [ -d "/sys/class/power_supply/dock" ]
then
echo "\n------ Power supply property dock ------"
cat "/sys/class/power_supply/dock/uevent"
fi
if [ -e "/dev/logbuffer_tcpm" ]
then
echo "\n------ Logbuffer TCPM ------"
cat "/dev/logbuffer_tcpm"
if [ -d "/sys/kernel/debug/tcpm" ]
then
echo "\n------ TCPM logs ------"
cat /sys/kernel/debug/tcpm/*
else
echo "\n------ TCPM logs ------"
cat /sys/kernel/debug/usb/tcpm*
fi
fi
echo "\n------ TCPC ------"
max77759tcpc_path="/sys/devices/platform/10d50000.hsi2c/i2c-12/12-0025"
echo "registers:"
cat $max77759tcpc_path/registers
echo "frs:"
cat $max77759tcpc_path/frs
echo "auto_discharge:"
cat $max77759tcpc_path/auto_discharge
echo "bc12_enabled:"
cat $max77759tcpc_path/bc12_enabled
echo "cc_toggle_enable:"
cat $max77759tcpc_path/cc_toggle_enable
echo "contaminant_detection:"
cat $max77759tcpc_path/contaminant_detection
echo "contaminant_detection_status:"
cat $max77759tcpc_path/contaminant_detection_status
echo "\n------ PD Engine ------"
cat "/dev/logbuffer_usbpd"
echo "\n------ POGO Transport ------"
cat "/dev/logbuffer_pogo_transport"
echo "\n------ PPS-google_cpm ------"
cat "/dev/logbuffer_cpm"
echo "\n------ PPS-dc ------"
cat "/dev/logbuffer_pca9468"
echo "\n------ Battery Health ------"
cat "/sys/class/power_supply/battery/health_index_stats"
echo "\n------ Battery Health SoC Residency ------"
cat "/sys/class/power_supply/battery/swelling_data"
echo "\n------ BMS ------"
cat "/dev/logbuffer_ssoc"
echo "\n------ TTF ------"
cat "/dev/logbuffer_ttf"
echo "\n------ TTF details ------"
cat "/sys/class/power_supply/battery/ttf_details"
echo "\n------ TTF stats ------"
cat "/sys/class/power_supply/battery/ttf_stats"
echo "\n------ maxq ------"
cat "/dev/logbuffer_maxq"
echo "\n------ aacr_state ------"
cat "/sys/class/power_supply/battery/aacr_state"
echo "\n------ TEMP/DOCK-DEFEND ------"
cat "/dev/logbuffer_bd"
echo "\n------ TRICKLE-DEFEND Config ------"
cd /sys/devices/platform/google,battery/power_supply/battery/
for f in `ls bd_*`
do
echo $f: `cat $f`
done
echo "\n------ DWELL-DEFEND Config ------"
cd /sys/devices/platform/google,charger/
for f in `ls charge_s*`
do
echo "$f: `cat $f`"
done
echo "\n------ TEMP-DEFEND Config ------"
cd /sys/devices/platform/google,charger/
for f in `ls bd_*`
do
echo "$f: `cat $f`"
done
echo "\n------ DC_registers dump ------"
cat "/sys/class/power_supply/pca9468-mains/device/registers_dump"
echo "\n------ max77759_chg registers dump ------"
cat "/sys/class/power_supply/main-charger/device/registers_dump"
echo "\n------ max77729_pmic registers dump ------"
cat /sys/devices/platform/10d50000.hsi2c/i2c-*/*-0066/registers_dump
if [ $build_type = "eng" ]
then
echo "\n------ Charging table dump ------"
cat "/d/google_battery/chg_raw_profile"
echo "\n------ fg_model ------"
for f in /d/maxfg*
do
regs=`cat $f/fg_model`
echo $f:
echo "$regs"
done
echo "\n------ fg_alo_ver ------"
for f in /d/maxfg*
do
regs=`cat $f/algo_ver`
echo $f:
echo "$regs"
done
echo "\n------ fg_model_ok ------"
for f in /d/maxfg*
do
regs=`cat $f/model_ok`
echo $f:
echo "$regs"
done
echo "\n------ fg registers ------"
for f in /d/maxfg*
do
regs=`cat $f/registers`
echo $f:
echo "$regs"
done
fi
echo "\n------ Battery EEPROM ------"
if [ -e "/sys/devices/platform/10970000.hsi2c/i2c-8/8-0050/eeprom" ]
then
xxd /sys/devices/platform/10970000.hsi2c/i2c-8/8-0050/eeprom
fi
echo "\n------ Charger Stats ------"
cat "/sys/class/power_supply/battery/charge_details"
if [ $build_type = "eng" ]
then
echo "\n------ Google Charger ------"
cd /sys/kernel/debug/google_charger/
for f in `ls pps_*`
do
echo "$f: `cat $f`"
done
echo "\n------ Google Battery ------"
cd /sys/kernel/debug/google_battery/
for f in `ls ssoc_*`
do
echo "$f: `cat $f`"
done
fi
echo "\n------ WLC logs ------"
cat "/dev/logbuffer_wireless"
echo "\n------ WLC VER ------"
cat "/sys/class/power_supply/wireless/device/version"
echo "\n------ WLC STATUS ------"
cat "/sys/class/power_supply/wireless/device/status"
echo "\n------ WLC FW Version ------"
cat "/sys/class/power_supply/wireless/device/fw_rev"
echo "\n------ RTX ------"
cat "/dev/logbuffer_rtx"
if [ $build_type = "eng" ]
then
echo "\n------ gvotables ------"
cat /sys/kernel/debug/gvotables/*/status
fi
echo "\n------ Mitigation Stats ------"
echo "Source\t\tCount\tSOC\tTime\tVoltage"
for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*`
do
count=`cat $f`
a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/last_triggered_count\//}
b=${f/last_triggered_count/last_triggered_capacity}
c=${f/last_triggered_count/last_triggered_timestamp/}
d=${f/last_triggered_count/last_triggered_voltage/}
cnt=`cat $f`
cap=`cat ${b/count/cap}`
ti=`cat ${c/count/time}`
volt=`cat ${d/count/volt}`
echo "${a/_count/} \t$cnt\t$cap\t$ti\t$volt"
done
echo "\n------ Clock Divider Ratio ------"
echo \"Source\t\tRatio\"
for f in `ls /sys/devices/virtual/pmic/mitigation/clock_ratio/*`
do ratio=`cat $f`
a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_ratio\//}
echo "${a/_ratio/} \t$ratio"
done
echo "\n------ Clock Stats ------"
echo "Source\t\tStats"
for f in `ls /sys/devices/virtual/pmic/mitigation/clock_stats/*`
do
stats=`cat $f`
a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_stats\//};
echo "${a/_stats/} \t$stats"
done
echo "\n------ Triggered Level ------"
echo "Source\t\tLevel"
for f in `ls /sys/devices/virtual/pmic/mitigation/triggered_lvl/*`
do
lvl=`cat $f`
a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/triggered_lvl\//}
echo "${a/_lvl/} \t$lvl"
done
echo "\n------ Instruction ------"
for f in `ls /sys/devices/virtual/pmic/mitigation/instruction/*`
do
val=`cat $f`
a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/instruction\//}
echo "$a=$val"
done

View File

@@ -1,788 +0,0 @@
/*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cstring>
#include <dirent.h>
#include <dump/pixel_dump.h>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
#include <time.h>
#include <vector>
#include <android-base/file.h>
#include <android-base/strings.h>
#include "DumpstateUtil.h"
void printTitle(const char *msg) {
printf("\n------ %s ------\n", msg);
}
int getCommandOutput(const char *cmd, std::string *output) {
char buffer[1024];
FILE *pipe = popen(cmd, "r");
if (!pipe) {
return -1;
}
while (fgets(buffer, sizeof buffer, pipe) != NULL) {
*output += buffer;
}
pclose(pipe);
if (output->back() == '\n')
output->pop_back();
return 0;
}
bool isValidFile(const char *file) {
FILE *fp = fopen(file, "r");
if (fp != NULL) {
fclose(fp);
return true;
}
return false;
}
bool isValidDir(const char *directory) {
DIR *dir = opendir(directory);
if (dir == NULL)
return false;
closedir(dir);
return true;
}
bool isUserBuild() {
return ::android::os::dumpstate::PropertiesHelper::IsUserBuild();
}
int getFilesInDir(const char *directory, std::vector<std::string> *files) {
std::string content;
struct dirent *entry;
DIR *dir = opendir(directory);
if (dir == NULL)
return -1;
files->clear();
while ((entry = readdir(dir)) != NULL)
files->push_back(entry->d_name);
closedir(dir);
sort(files->begin(), files->end());
return 0;
}
void dumpPowerStatsTimes() {
const char *title = "Power Stats Times";
char rBuff[128];
struct timespec rTs;
struct sysinfo info;
int ret;
printTitle(title);
sysinfo(&info);
const time_t boottime = time(NULL) - info.uptime;
ret = clock_gettime(CLOCK_REALTIME, &rTs);
if (ret)
return;
struct tm *nowTime = std::localtime(&rTs.tv_sec);
std::strftime(rBuff, sizeof(rBuff), "%m/%d/%Y %H:%M:%S", nowTime);
printf("Boot: %s", ctime(&boottime));
printf("Now: %s\n", rBuff);
}
int readContentsOfDir(const char* title, const char* directory, const char* strMatch,
bool useStrMatch = false, bool printDirectory = false) {
std::vector<std::string> files;
std::string content;
std::string fileLocation;
int ret;
ret = getFilesInDir(directory, &files);
if (ret < 0)
return ret;
printTitle(title);
for (auto &file : files) {
if (useStrMatch && std::string::npos == std::string(file).find(strMatch)) {
continue;
}
fileLocation = std::string(directory) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
if (printDirectory) {
printf("\n\n%s\n", fileLocation.c_str());
}
if (content.back() == '\n')
content.pop_back();
printf("%s\n", content.c_str());
}
return 0;
}
void dumpAcpmStats() {
const char* acpmDir = "/sys/devices/platform/acpm_stats/";
const char* statsSubStr = "_stats";
const char* acpmTitle = "ACPM stats";
readContentsOfDir(acpmTitle, acpmDir, statsSubStr, true, true);
}
void dumpPowerSupplyStats() {
const char* dumpList[][2] = {
{"CPU PM stats", "/sys/devices/system/cpu/cpupm/cpupm/time_in_state"},
{"Power supply property battery", "/sys/class/power_supply/battery/uevent"},
{"Power supply property dc", "/sys/class/power_supply/dc/uevent"},
{"Power supply property gcpm", "/sys/class/power_supply/gcpm/uevent"},
{"Power supply property gcpm_pps", "/sys/class/power_supply/gcpm_pps/uevent"},
{"Power supply property main-charger", "/sys/class/power_supply/main-charger/uevent"},
{"Power supply property pca9468-mains", "/sys/class/power_supply/pca9468-mains/uevent"},
{"Power supply property tcpm", "/sys/class/power_supply/tcpm-source-psy-i2c-max77759tcpc/uevent"},
{"Power supply property usb", "/sys/class/power_supply/usb/uevent"},
{"Power supply property wireless", "/sys/class/power_supply/wireless/uevent"},
};
for (const auto &row : dumpList) {
dumpFileContent(row[0], row[1]);
}
}
void dumpMaxFg() {
const char *maxfgLoc = "/sys/class/power_supply/maxfg";
const char *maxfg [][2] = {
{"Power supply property maxfg", "/sys/class/power_supply/maxfg/uevent"},
{"m5_state", "/sys/class/power_supply/maxfg/m5_model_state"},
{"maxfg registers", "/sys/class/power_supply/maxfg/registers_dump"},
{"maxfg logbuffer", "/dev/logbuffer_maxfg"},
{"maxfg_monitor logbuffer", "/dev/logbuffer_maxfg_monitor"},
};
std::string content;
if (isValidDir(maxfgLoc)) {
for (const auto &row : maxfg) {
dumpFileContent(row[0], row[1]);
}
}
}
void dumpPowerSupplyDock() {
const char* powerSupplyPropertyDockTitle = "Power supply property dock";
const char* powerSupplyPropertyDockFile = "/sys/class/power_supply/dock/uevent";
dumpFileContent(powerSupplyPropertyDockTitle, powerSupplyPropertyDockFile);
}
void dumpLogBufferTcpm() {
const char* logbufferTcpmTitle = "Logbuffer TCPM";
const char* logbufferTcpmFile = "/dev/logbuffer_tcpm";
const char* debugTcpmFile = "/sys/kernel/debug/tcpm";
const char* tcpmLogTitle = "TCPM logs";
const char* tcpmFile = "/sys/kernel/debug/tcpm";
const char* tcpmFileAlt = "/sys/kernel/debug/usb/tcpm";
int retCode;
dumpFileContent(logbufferTcpmTitle, logbufferTcpmFile);
retCode = readContentsOfDir(tcpmLogTitle, isValidFile(debugTcpmFile) ? tcpmFile : tcpmFileAlt,
NULL);
if (retCode < 0)
printTitle(tcpmLogTitle);
}
void dumpTcpc() {
int ret;
const char* max77759TcpcHead = "TCPC";
const char* i2cSubDirMatch = "i2c-";
const char* directory = "/sys/devices/platform/10d60000.hsi2c/";
const char* max77759Tcpc [][2] {
{"registers:", "/i2c-max77759tcpc/registers"},
{"frs:", "/i2c-max77759tcpc/frs"},
{"auto_discharge:", "/i2c-max77759tcpc/auto_discharge"},
{"bcl2_enabled:", "/i2c-max77759tcpc/bcl2_enabled"},
{"cc_toggle_enable:", "/i2c-max77759tcpc/cc_toggle_enable"},
{"containment_detection:", "/i2c-max77759tcpc/containment_detection"},
{"containment_detection_status:", "/i2c-max77759tcpc/containment_detection_status"},
};
std::vector<std::string> files;
std::string content;
printTitle(max77759TcpcHead);
ret = getFilesInDir(directory, &files);
if (ret < 0) {
for (auto &tcpcVal : max77759Tcpc)
printf("%s\n", tcpcVal[0]);
return;
}
for (auto &file : files) {
for (auto &tcpcVal : max77759Tcpc) {
printf("%s ", tcpcVal[0]);
if (std::string::npos == std::string(file).find(i2cSubDirMatch)) {
continue;
}
std::string fileName = directory + file + "/" + std::string(tcpcVal[1]);
if (!android::base::ReadFileToString(fileName, &content)) {
continue;
}
printf("%s\n", content.c_str());
}
}
}
void dumpPdEngine() {
const char* pdEngine [][2] {
{"PD Engine", "/dev/logbuffer_usbpd"},
{"PPS-google_cpm logbuffer", "/dev/logbuffer_cpm"},
{"PPS-pca9468 logbuffer", "/dev/logbuffer_pca9468"},
};
for (const auto &row : pdEngine) {
dumpFileContent(row[0], row[1]);
}
}
void dumpBatteryHealth() {
const char* batteryHealth [][2] {
{"Battery Health", "/sys/class/power_supply/battery/health_index_stats"},
{"Battery Health SoC Residency", "/sys/class/power_supply/battery/swelling_data"},
{"BMS", "/dev/logbuffer_ssoc"},
{"TTF", "/dev/logbuffer_ttf"},
{"TTF details", "/sys/class/power_supply/battery/ttf_details"},
{"TTF stats", "/sys/class/power_supply/battery/ttf_stats"},
{"aacr_state", "/sys/class/power_supply/battery/aacr_state"},
{"maxq", "/dev/logbuffer_maxq"},
{"TEMP/DOCK-DEFEND", "/dev/logbuffer_bd"},
};
for (const auto &row : batteryHealth) {
dumpFileContent(row[0], row[1]);
}
}
void dumpBatteryDefend() {
const char* defendConfig [][3] {
{"TRICKLE-DEFEND Config",
"/sys/devices/platform/google,battery/power_supply/battery/", "bd_"},
{"DWELL-DEFEND Config", "/sys/devices/platform/google,charger/", "charge_s"},
{"TEMP-DEFEND Config", "/sys/devices/platform/google,charger/", "bd_"},
};
std::vector<std::string> files;
struct dirent *entry;
std::string content;
std::string fileLocation;
for (auto &config : defendConfig) {
DIR *dir = opendir(config[1]);
if (dir == NULL)
continue;
printTitle(config[0]);
while ((entry = readdir(dir)) != NULL) {
if (std::string(entry->d_name).find(config[2]) != std::string::npos &&
strncmp(config[2], entry->d_name, strlen(config[2])) == 0) {
files.push_back(entry->d_name);
}
}
closedir(dir);
sort(files.begin(), files.end());
for (auto &file : files) {
fileLocation = std::string(config[1]) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content) || content.empty()) {
content = "\n";
}
printf("%s: %s", file.c_str(), content.c_str());
if (content.back() != '\n')
printf("\n");
}
files.clear();
}
}
void dumpBatteryCaretaker() {
const char* aacpConfig [][3] {
{"AACP Version",
"/sys/devices/platform/google,battery/power_supply/battery/", "aacp_"},
{"AACR Config",
"/sys/devices/platform/google,battery/power_supply/battery/", "aacr_"},
{"AAFV Config",
"/sys/devices/platform/google,battery/power_supply/battery/", "aafv_"},
{"AACT Config",
"/sys/devices/platform/google,battery/power_supply/battery/", "aact_"},
{"AACC",
"/sys/devices/platform/google,battery/power_supply/battery/", "aacc"},
};
std::vector<std::string> files;
struct dirent *entry;
std::string content;
std::string fileLocation;
for (auto &config : aacpConfig) {
DIR *dir = opendir(config[1]);
if (dir == NULL)
continue;
printTitle(config[0]);
while ((entry = readdir(dir)) != NULL) {
if (std::string(entry->d_name).find(config[2]) != std::string::npos &&
strncmp(config[2], entry->d_name, strlen(config[2])) == 0) {
files.push_back(entry->d_name);
}
}
closedir(dir);
sort(files.begin(), files.end());
for (auto &file : files) {
fileLocation = std::string(config[1]) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content) || content.empty()) {
content = "\n";
}
printf("%s: %s", file.c_str(), content.c_str());
if (content.back() != '\n')
printf("\n");
}
files.clear();
}
}
void printValuesOfDirectory(const char *directory, std::string debugfs, const char *strMatch) {
std::vector<std::string> files;
auto info = directory;
std::string content;
struct dirent *entry;
DIR *dir = opendir(debugfs.c_str());
if (dir == NULL)
return;
printTitle((debugfs + std::string(strMatch) + "/" + std::string(info)).c_str());
while ((entry = readdir(dir)) != NULL)
if (std::string(entry->d_name).find(strMatch) != std::string::npos)
files.push_back(entry->d_name);
closedir(dir);
sort(files.begin(), files.end());
for (auto &file : files) {
std::string fileDirectory = debugfs + file;
std::string fileLocation = fileDirectory + "/" + std::string(info);
if (!android::base::ReadFileToString(fileLocation, &content)) {
content = "\n";
}
printf("%s:\n%s", fileDirectory.c_str(), content.c_str());
if (content.back() != '\n')
printf("\n");
}
files.clear();
}
void dumpChg() {
const std::string pmic_bus = "/sys/devices/platform/10d50000.hsi2c/i2c-12/12-0066";
const char* chg_reg_dump_file = "/sys/class/power_supply/main-charger/device/registers_dump";
const std::string chg_name_cmd = "/sys/class/power_supply/main-charger/device/name";
const std::string pmic_name_cmd = pmic_bus + "/name";
const std::string pmic_reg_dump_file = pmic_bus + "/registers_dump";
const std::string reg_dump_str = " registers dump";
const char* chgConfig [][2] {
{"DC_registers dump", "/sys/class/power_supply/pca9468-mains/device/registers_dump"},
};
std::string chg_name;
std::string pmic_name;
printf("\n");
int ret = android::base::ReadFileToString(chg_name_cmd, &chg_name);
if (ret && !chg_name.empty()) {
chg_name.erase(chg_name.length() - 1); // remove new line
const std::string chg_reg_dump_title = chg_name + reg_dump_str;
/* CHG reg dump */
dumpFileContent(chg_reg_dump_title.c_str(), chg_reg_dump_file);
}
ret = android::base::ReadFileToString(pmic_name_cmd, &pmic_name);
if (ret && !pmic_name.empty()) {
pmic_name.erase(pmic_name.length() - 1); // remove new line
const std::string pmic_reg_dump_title = pmic_name + reg_dump_str;
/* PMIC reg dump */
dumpFileContent(pmic_reg_dump_title.c_str(), pmic_reg_dump_file.c_str());
}
for (auto &config : chgConfig) {
dumpFileContent(config[0], config[1]);
}
}
void dumpChgUserDebug() {
const std::string debugfs = "/d/";
const char *maxFgDir = "/d/maxfg";
const char *maxFgStrMatch = "maxfg";
const char *chgTblName = "Charging table dump";
const char *chgTblDir = "/d/google_battery/chg_raw_profile";
const char *maxFgInfo [] {
"fg_model",
"algo_ver",
"model_ok",
};
if (isUserBuild())
return;
dumpFileContent(chgTblName, chgTblDir);
if (isValidDir(maxFgDir)) {
for (auto & directory : maxFgInfo) {
printValuesOfDirectory(directory, debugfs, maxFgStrMatch);
}
}
}
void dumpBatteryEeprom() {
const char *title = "Battery EEPROM";
const char *files[] {
"/sys/devices/platform/10970000.hsi2c/i2c-8/8-0050/eeprom",
};
std::string result;
std::string xxdCmd;
printTitle(title);
for (auto &file : files) {
if (!isValidFile(file))
continue;
xxdCmd = "xxd " + std::string(file);
int ret = getCommandOutput(xxdCmd.c_str(), &result);
if (ret < 0)
return;
printf("%s\n", result.c_str());
}
}
void dumpChargerStats() {
const char *chgStatsTitle = "Charger Stats";
const char *chgStatsLocation = "/sys/class/power_supply/battery/charge_details";
const char *chargerStats [][3] {
{"Google Charger", "/sys/kernel/debug/google_charger/", "pps_"},
{"Google Battery", "/sys/kernel/debug/google_battery/", "ssoc_"},
};
std::vector<std::string> files;
std::string content;
struct dirent *entry;
dumpFileContent(chgStatsTitle, chgStatsLocation);
if (isUserBuild())
return;
for (auto &stat : chargerStats) {
DIR *dir = opendir(stat[1]);
if (dir == NULL)
return;
printTitle(stat[0]);
while ((entry = readdir(dir)) != NULL)
if (std::string(entry->d_name).find(stat[2]) != std::string::npos)
files.push_back(entry->d_name);
closedir(dir);
sort(files.begin(), files.end());
for (auto &file : files) {
std::string fileLocation = std::string(stat[1]) + file;
if (!android::base::ReadFileToString(fileLocation, &content)) {
content = "\n";
}
printf("%s: %s", file.c_str(), content.c_str());
if (content.back() != '\n')
printf("\n");
}
files.clear();
}
}
void dumpWlcLogs() {
const char *dumpWlcList [][2] {
{"WLC Logs", "/dev/logbuffer_wireless"},
{"WLC VER", "/sys/class/power_supply/wireless/device/version"},
{"WLC STATUS", "/sys/class/power_supply/wireless/device/status"},
{"WLC FW Version", "/sys/class/power_supply/wireless/device/fw_rev"},
{"RTX", "/dev/logbuffer_rtx"},
};
for (auto &row : dumpWlcList) {
if (!isValidFile(row[1]))
printTitle(row[0]);
dumpFileContent(row[0], row[1]);
}
}
void dumpGvoteables() {
const char *directory = "/sys/kernel/debug/gvotables/";
const char *statusName = "/status";
const char *title = "gvotables";
std::string content;
std::vector<std::string> files;
int ret;
if (isUserBuild())
return;
ret = getFilesInDir(directory, &files);
if (ret < 0)
return;
printTitle(title);
for (auto &file : files) {
std::string fileLocation = std::string(directory) + file + std::string(statusName);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
printf("%s: %s", file.c_str(), content.c_str());
if (content.back() != '\n')
printf("\n");
}
files.clear();
}
void dumpMitigation() {
const char *mitigationList [][2] {
{"Lastmeal" , "/data/vendor/mitigation/lastmeal.txt"},
{"Thismeal" , "/data/vendor/mitigation/thismeal.txt"},
};
for (auto &row : mitigationList) {
if (!isValidFile(row[1]))
printTitle(row[0]);
dumpFileContent(row[0], row[1]);
}
}
void dumpMitigationStats() {
int ret;
const char *directory = "/sys/devices/virtual/pmic/mitigation/last_triggered_count/";
const char *capacityDirectory = "/sys/devices/virtual/pmic/mitigation/last_triggered_capacity/";
const char *timestampDirectory =
"/sys/devices/virtual/pmic/mitigation/last_triggered_timestamp/";
const char *voltageDirectory = "/sys/devices/virtual/pmic/mitigation/last_triggered_voltage/";
const char *capacitySuffix = "_cap";
const char *timeSuffix = "_time";
const char *voltageSuffix = "_volt";
const char *countSuffix = "_count";
const char *title = "Mitigation Stats";
std::vector<std::string> files;
std::string content;
std::string fileLocation;
std::string source;
std::string subModuleName;
int count;
int soc;
int time;
int voltage;
ret = getFilesInDir(directory, &files);
if (ret < 0)
return;
printTitle(title);
printf("Source\t\tCount\tSOC\tTime\tVoltage\n");
for (auto &file : files) {
fileLocation = std::string(directory) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
ret = atoi(android::base::Trim(content).c_str());
if (ret == -1)
continue;
count = ret;
subModuleName = std::string(file);
subModuleName.erase(subModuleName.find(countSuffix), strlen(countSuffix));
fileLocation = std::string(capacityDirectory) + std::string(subModuleName) +
std::string(capacitySuffix);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
ret = atoi(android::base::Trim(content).c_str());
if (ret == -1)
continue;
soc = ret;
fileLocation = std::string(timestampDirectory) + std::string(subModuleName) +
std::string(timeSuffix);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
ret = atoi(android::base::Trim(content).c_str());
if (ret == -1)
continue;
time = ret;
fileLocation = std::string(voltageDirectory) + std::string(subModuleName) +
std::string(voltageSuffix);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
ret = atoi(android::base::Trim(content).c_str());
if (ret == -1)
continue;
voltage = ret;
printf("%s \t%i\t%i\t%i\t%i\n", subModuleName.c_str(), count, soc, time, voltage);
}
}
void dumpMitigationDirs() {
const int paramCount = 4;
const char *titles[] = {
"Clock Divider Ratio",
"Clock Stats",
"Triggered Level",
"Instruction",
};
const char *directories[] = {
"/sys/devices/virtual/pmic/mitigation/clock_ratio/",
"/sys/devices/virtual/pmic/mitigation/clock_stats/",
"/sys/devices/virtual/pmic/mitigation/triggered_lvl/",
"/sys/devices/virtual/pmic/mitigation/instruction/",
};
const char *paramSuffix[] = {"_ratio", "_stats", "_lvl", ""};
const char *titleRowVal[] = {
"Source\t\tRatio",
"Source\t\tStats",
"Source\t\tLevel",
"",
};
const int eraseCnt[] = {6, 6, 4, 0};
const bool useTitleRow[] = {true, true, true, false};
std::vector<std::string> files;
std::string content;
std::string fileLocation;
std::string source;
std::string subModuleName;
std::string readout;
for (int i = 0; i < paramCount; i++) {
printTitle(titles[i]);
if (useTitleRow[i]) {
printf("%s\n", titleRowVal[i]);
}
getFilesInDir(directories[i], &files);
for (auto &file : files) {
fileLocation = std::string(directories[i]) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
readout = android::base::Trim(content);
subModuleName = std::string(file);
subModuleName.erase(subModuleName.find(paramSuffix[i]), eraseCnt[i]);
if (useTitleRow[i]) {
printf("%s \t%s\n", subModuleName.c_str(), readout.c_str());
} else {
printf("%s=%s\n", subModuleName.c_str(), readout.c_str());
}
}
}
}
void dumpIrqDurationCounts() {
const char *title = "IRQ Duration Counts";
const char *colNames = "Source\t\t\t\tlt_5ms_cnt\tbt_5ms_to_10ms_cnt\tgt_10ms_cnt\tCode"
"\tCurrent Threshold (uA)\tCurrent Reading (uA)\n";
const int nonOdpmChannelCnt = 9;
const int odpmChCnt = 12;
enum Duration {
LT_5MS,
BT_5MS_10MS,
GT_10MS,
DUR_MAX,
};
const char *irqDurDirectories[] = {
"/sys/devices/virtual/pmic/mitigation/irq_dur_cnt/less_than_5ms_count",
"/sys/devices/virtual/pmic/mitigation/irq_dur_cnt/between_5ms_to_10ms_count",
"/sys/devices/virtual/pmic/mitigation/irq_dur_cnt/greater_than_10ms_count",
};
enum PowerWarn {
MAIN,
SUB,
PWRWARN_MAX,
};
const char *pwrwarnDirectories[] = {
"/sys/devices/virtual/pmic/mitigation/main_pwrwarn/",
"/sys/devices/virtual/pmic/mitigation/sub_pwrwarn/",
};
const char *lpfCurrentDirs[] = {
"/sys/devices/platform/acpm_mfd_bus@15500000/i2c-1/1-001f/s2mpg14-meter/"
"s2mpg14-odpm/iio:device1/lpf_current",
"/sys/devices/platform/acpm_mfd_bus@15510000/i2c-0/0-002f/s2mpg15-meter/"
"s2mpg15-odpm/iio:device0/lpf_current",
};
bool titlesInitialized = false;
std::vector<std::string> channelNames;
std::vector<std::string> channelData[DUR_MAX];
std::vector<std::string> pwrwarnThreshold[PWRWARN_MAX];
std::vector<std::string> pwrwarnCode[PWRWARN_MAX];
std::vector<std::string> lpfCurrentVals[PWRWARN_MAX];
std::vector<std::string> files;
std::string content;
std::string token;
std::string tokenCh;
std::string fileLocation;
for (int i = 0; i < DUR_MAX; i++) {
if (!android::base::ReadFileToString(irqDurDirectories[i], &content)) {
return;
}
std::istringstream tokenStream(content);
while (std::getline(tokenStream, token, '\n')) {
if (!titlesInitialized) {
tokenCh = token;
tokenCh.erase(tokenCh.find(':'), tokenCh.length());
channelNames.push_back(tokenCh);
}
// there is a space after the ':' which needs to be removed
token.erase(0, token.find(':') + 1);
channelData[i].push_back(token);
}
if (!titlesInitialized)
titlesInitialized = true;
}
for (int i = 0; i < PWRWARN_MAX; i++) {
getFilesInDir(pwrwarnDirectories[i], &files);
for (auto &file : files) {
fileLocation = std::string(pwrwarnDirectories[i]) + std::string(file);
if (!android::base::ReadFileToString(fileLocation, &content)) {
continue;
}
std::string readout;
readout = android::base::Trim(content);
std::string readoutThreshold = readout;
readoutThreshold.erase(0, readoutThreshold.find('=') + 1);
std::string readoutCode = readout;
readoutCode.erase(readoutCode.find('='), readoutCode.length());
pwrwarnThreshold[i].push_back(readoutThreshold);
pwrwarnCode[i].push_back(readoutCode);
}
}
for (int i = 0; i < PWRWARN_MAX; i++) {
if (!android::base::ReadFileToString(lpfCurrentDirs[i], &content)) {
continue;
}
std::istringstream tokenStream(content);
bool first = true;
while (std::getline(tokenStream, token, '\n')) {
token.erase(0, token.find(' '));
if (first) {
first = false;
continue;
}
lpfCurrentVals[i].push_back(token);
}
}
printTitle(title);
printf("%s", colNames);
for (uint i = 0; i < channelNames.size(); i++) {
std::string code = "";
std::string threshold = "";
std::string current = "";
std::string ltDataMsg = "";
std::string btDataMsg = "";
std::string gtDataMsg = "";
int pmicSel = 0;
int offset = 0;
std::string channelNameSuffix = " \t";
if (i >= nonOdpmChannelCnt) {
offset = nonOdpmChannelCnt;
if (i >= (odpmChCnt + nonOdpmChannelCnt)) {
pmicSel = 1;
offset = odpmChCnt + nonOdpmChannelCnt;
}
channelNameSuffix = "";
code = pwrwarnCode[pmicSel][i - offset];
threshold = pwrwarnThreshold[pmicSel][i - offset];
current = lpfCurrentVals[pmicSel][i - offset];
}
if (i < channelData[0].size())
ltDataMsg = channelData[0][i];
if (i < channelData[1].size())
btDataMsg = channelData[1][i];
if (i < channelData[2].size())
gtDataMsg = channelData[2][i];
std::string adjustedChannelName = channelNames[i] + channelNameSuffix;
printf("%s \t%s\t\t%s\t\t\t%s\t\t%s \t%s \t\t%s\n",
adjustedChannelName.c_str(),
ltDataMsg.c_str(),
btDataMsg.c_str(),
gtDataMsg.c_str(),
code.c_str(),
threshold.c_str(),
current.c_str());
}
}
int main() {
dumpPowerStatsTimes();
dumpAcpmStats();
dumpPowerSupplyStats();
dumpMaxFg();
dumpPowerSupplyDock();
dumpLogBufferTcpm();
dumpTcpc();
dumpPdEngine();
dumpBatteryHealth();
dumpBatteryDefend();
dumpBatteryCaretaker();
dumpChg();
dumpChgUserDebug();
dumpBatteryEeprom();
dumpChargerStats();
dumpWlcLogs();
dumpGvoteables();
dumpMitigation();
dumpMitigationStats();
dumpMitigationDirs();
dumpIrqDurationCounts();
}

View File

@@ -1,131 +0,0 @@
on init
# Dump maxfg
chown system system /sys/class/power_supply/maxfg/m5_model_state
chown system system /sys/class/power_supply/maxfg_base/model_state
chown system system /sys/class/power_supply/max77779fg/model_state
# Dump eeprom
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-9/9-0050/eeprom
chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom
chown system system /dev/battery_history
chmod 0644 /dev/battery_history
chown system system /dev/maxfg_history
chmod 0644 /dev/maxfg_history
# Charge stats (write 0)
chown system system /sys/class/power_supply/battery/charge_stats
# Pca Charge stats (write 0)
chown system system /sys/class/power_supply/dc-mains/device/chg_stats
# Wireless Charge stats (write 0)
chown system system /sys/class/power_supply/wireless/device/charge_stats
# Thermal Charge stats (write 0)
chown system system /sys/devices/platform/google,charger/thermal_stats
# Google Charger stats (write 0)
chown system system /sys/devices/platform/google,charger/charge_stats
# Permission for wireless charging
chown system system /sys/class/power_supply/wireless/capacity
chown system system /sys/class/power_supply/wireless/device/rtx
chown system system /sys/class/power_supply/wireless/device/rxdata
chown system system /sys/class/power_supply/wireless/device/txdata
chown system system /sys/class/power_supply/wireless/device/rxlen
chown system system /sys/class/power_supply/wireless/device/txlen
chown system system /sys/class/power_supply/wireless/device/ccreset
chown system system /sys/class/power_supply/wireless/device/status
chown system system /sys/class/power_supply/wireless/device/version
chown system system /sys/class/power_supply/wireless/device/features
chown system system /sys/class/power_supply/wireless/device/authtype
chown system system /sys/class/power_supply/wireless/device/authstart
# Adaptive charge
chown system system /sys/class/power_supply/battery/charge_deadline
# Charging policy
chown system system /sys/class/power_supply/battery/charging_policy
# BatteryHealthData
chown system system /sys/class/power_supply/battery/first_usage_date
# Battery Defender
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_cnt
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_dry_run
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_enable
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_recharge_soc
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_reset_sec
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_clear
chown system system /sys/devices/platform/google,battery/power_supply/battery/health_safety_margin
chown system system /sys/devices/platform/google,battery/power_supply/battery/swelling_data
chown system system /sys/devices/platform/google,charger/bd_drainto_soc
chown system system /sys/devices/platform/google,charger/bd_recharge_soc
chown system system /sys/devices/platform/google,charger/bd_recharge_voltage
chown system system /sys/devices/platform/google,charger/bd_resume_abs_temp
chown system system /sys/devices/platform/google,charger/bd_resume_soc
chown system system /sys/devices/platform/google,charger/bd_resume_temp
chown system system /sys/devices/platform/google,charger/bd_resume_time
chown system system /sys/devices/platform/google,charger/bd_temp_dry_run
chown system system /sys/devices/platform/google,charger/bd_temp_enable
chown system system /sys/devices/platform/google,charger/bd_trigger_temp
chown system system /sys/devices/platform/google,charger/bd_trigger_time
chown system system /sys/devices/platform/google,charger/bd_trigger_voltage
chown system system /sys/devices/platform/google,charger/bd_clear
chown system system /sys/devices/platform/google,charger/charge_start_level
chown system system /sys/devices/platform/google,charger/charge_stop_level
chown system system /sys/devices/platform/google,cpm/dc_ctl
# Important to include dd_state as it's used in battery defender in charger mode
chown system system /sys/devices/platform/google,charger/dd_state
chown system system /sys/devices/platform/google,charger/dd_settings
# for parsing thismeal.bin
chown system system /vendor/bin/hw/battery_mitigation
on early-boot
# Wait for insmod_sh to finish all common modules
wait_for_prop vendor.common.modules.ready 1
# logbuffer
chown system system /dev/logbuffer_maxfg
chown system system /dev/logbuffer_maxfg_monitor
chown system system /dev/logbuffer_max77779fg
chown system system /dev/logbuffer_max77779fg_monitor
chown system system /dev/logbuffer_maxfg_base
chown system system /dev/logbuffer_maxfg_secondary
chown system system /dev/logbuffer_maxfg_base_monitor
chown system system /dev/logbuffer_maxfg_secondary_monitor
chown system system /dev/logbuffer_maxq
chown system system /dev/logbuffer_rtx
chown system system /dev/logbuffer_ssoc
chown system system /dev/logbuffer_ttf
chown system system /dev/logbuffer_tcpm
chown system system /dev/logbuffer_usbpd
chown system system /dev/logbuffer_pogo_transport
chown system system /dev/logbuffer_wireless
chown system system /dev/logbuffer_pca9468
chown system system /dev/logbuffer_ln8411
chown system system /dev/logbuffer_cpm
chown system system /dev/logbuffer_wc68
chown system system /dev/logbuffer_max77779_fwupdate
on property:sys.boot_completed=1
# gvotables for dumpstate
chown system system /sys/kernel/debug/gvotables
# Permission for wireless charging
chown system system /sys/class/power_supply/wireless/capacity
chown system system /sys/class/power_supply/wireless/device/rtx
chown system system /sys/class/power_supply/wireless/device/rxdata
chown system system /sys/class/power_supply/wireless/device/txdata
chown system system /sys/class/power_supply/wireless/device/rxlen
chown system system /sys/class/power_supply/wireless/device/txlen
chown system system /sys/class/power_supply/wireless/device/ccreset
chown system system /sys/class/power_supply/wireless/device/status
chown system system /sys/class/power_supply/wireless/device/version
chown system system /sys/class/power_supply/wireless/device/authstart
# write serialno to battery path for pairing
write /sys/class/power_supply/battery/dev_sn ${ro.boot.serialno}

View File

@@ -1,2 +1,2 @@
PRODUCT_PACKAGES += dump_power
PRODUCT_PACKAGES += dump_gs101.sh

View File

@@ -5,7 +5,4 @@
#
# PixelParts
#include packages/apps/PixelParts/device.mk
# UDFPS
TARGET_HAS_UDFPS += true
include packages/apps/PixelParts/device.mk

View File

@@ -0,0 +1,15 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/gs101:device_google_gs101_license",
],
}
runtime_resource_overlay {
name: "FactoryOverlayFrameworkRes",
product_specific: true,
}

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project
<!-- Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -13,15 +13,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Pixel specific tethering overlays -->
<!-- Pixel specific factory overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.networkstack.tethering.overlay"
android:versionCode="1"
android:versionName="1.0">
package="com.android.frameworkres.overlay.factory">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.networkstack.tethering"
android:targetName="TetheringConfig"
android:isStatic="true"
android:priority="0" />
android:targetPackage="android"
android:isStatic="true"
android:priority="2"/>
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,15 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/gs101:device_google_gs101_license",
],
}
runtime_resource_overlay {
name: "FactoryOverlayLauncher3",
product_specific: true,
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Pixel specific factory overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.launcher3.overlay.factory">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.launcher3"
android:targetName="favorites"
android:isStatic="true"
android:priority="2"/>
</manifest>

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3">
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
<!-- Dialer, android test tool, label barcode, battery charge tool, barcode scanner -->
<resolve
launcher:container="-101"
launcher:screen="0"
launcher:x="0"
launcher:y="0" >
<favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" />
<favorite launcher:uri="tel:123" />
<favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" />
</resolve>
<resolve
launcher:container="-101"
launcher:screen="1"
launcher:x="1"
launcher:y="0" >
<favorite
launcher:packageName="com.google_npi.androidtesttool"
launcher:className="com.google_npi.androidtesttool.MainActivity" />
</resolve>
<resolve
launcher:container="-101"
launcher:screen="2"
launcher:x="2"
launcher:y="0" >
<favorite
launcher:packageName="com.google_cte.labelbarcode"
launcher:className="com.google_cte.labelbarcode.LabelBarcodeMainActivity" />
</resolve>
<resolve
launcher:container="-101"
launcher:screen="3"
launcher:x="3"
launcher:y="0" >
<favorite
launcher:packageName="com.google.batterychargetool"
launcher:className="com.google.batterychargetool.MainActivity" />
</resolve>
<resolve
launcher:container="-101"
launcher:screen="4"
launcher:x="4"
launcher:y="0" >
<favorite
launcher:packageName="com.google_cte.barcodescanner"
launcher:className="com.google_cte.barcodescanner.MainActivity" />
</resolve>
</favorites>

View File

@@ -0,0 +1,15 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/gs101:device_google_gs101_license",
],
}
runtime_resource_overlay {
name: "FactoryOverlaySettings",
product_specific: true,
}

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Pixel specific factory overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.providers.settings.overlay.factory">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.providers.settings"
android:targetName="resources"
android:isStatic="true"
android:priority="2"/>
</manifest>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<integer name="def_lockscreen_sounds_enabled">0</integer>
<bool name="def_lockscreen_disabled">true</bool>
<bool name="def_dtmf_tones_enabled">false</bool>
<bool name="def_sound_effects_enabled">false</bool>
<bool name="def_charging_sounds_enabled">false</bool>
<string name="def_immersive_mode_confirmations" translatable="false">confirmed</string>
</resources>

84
factory_common.mk Normal file
View File

@@ -0,0 +1,84 @@
#
# Copyright 2020 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
$(call inherit-product, device/google/gs101/aosp_common.mk)
$(call inherit-product-if-exists, vendor/google_devices/gs101/factory/pixel/device-factory.mk)
PRODUCT_PROPERTY_OVERRIDES += service.adb.root=1 \
ro.vendor.factory=1 \
ro.adb.secure=0
# Factory Libraries of Audio
PRODUCT_PACKAGES += audioroute libaudioroutelite
# Enable fatp by default for factory builds
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.vendor.camera.fatp.enable=1
# Disable camera related features for factory builds
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.camera.partial_result_count=1 \
vendor.camera.debug.bypass_face_ssd_processor=1 \
vendor.camera.debug.enable_face_detection=0 \
vendor.camera.debug.force_dpm_on=0 \
vendor.camera.debug.force_eis_on=0 \
vendor.camera.debug.force_eaf_on=0 \
vendor.camera.debug.force_local_tone_mapping_on=0 \
vendor.camera.debug.force_mesh_warp_on=0 \
vendor.camera.debug.force_rectiface_node_on=0 \
vendor.camera.debug.force_steadiface_on=0 \
vendor.camera.debug.force_tnr_on=0 \
vendor.camera.debug.local_tone_mapping_controller_v1.mode=0 \
vendor.camera.debug.force_segmentation_node_on=0 \
vendor.camera.debug.enable_saliency=0
# Disable ScreenDecorations for factory builds
PRODUCT_PROPERTY_OVERRIDES += \
debug.disable_screen_decorations=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=80
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_display_power_timer_ms=1000
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true
# factory should always has SELinux permissive
BOARD_BOOTCONFIG += androidboot.selinux=permissive
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
# Disable Bluetooth as default in factory build
DEVICE_PACKAGE_OVERLAYS += device/google/gs101/overlay-factory
PRODUCT_COPY_FILES += \
device/google/gs101/conf/init.factory.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.factory.rc
# Add factory-friendly changes
PRODUCT_PACKAGES += \
FactoryOverlaySettings \
FactoryOverlayLauncher3 \
FactoryOverlayFrameworkRes
# Disable DebugFS restrictions in factory builds
PRODUCT_SET_DEBUGFS_RESTRICTIONS := false
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
# PixelLogger for RF testing
PRODUCT_PACKAGES_DEBUG += \
PixelLogger
# Tool for installing Widevine keybox
PRODUCT_PACKAGES_DEBUG += \
WvInstallKeybox
endif

View File

@@ -0,0 +1,10 @@
<compatibility-matrix version="1.0" type="framework">
<hal format="hidl" optional="true">
<name>android.hardware.biometrics.fingerprint</name>
<version>2.1-3</version>
<interface>
<name>IBiometricsFingerprint</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View File

@@ -0,0 +1,15 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["device_google_gs101_license"],
}
sh_binary {
name: "fingerprint.extension.sh",
init_rc: ["init.fingerprint.extension.rc"],
src: "fingerprint.extension.sh",
system_ext_specific: true,
}

View File

@@ -0,0 +1,14 @@
# Fingerprint extension feature
ifneq (,$(filter aosp% factory%, $(TARGET_PRODUCT)))
# Skip if device is AOSP or factory build
else
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
$(call soong_config_set,fp_hal_feature,report_bug_support,true)
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/vendor/
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/system_ext/public/
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/system_ext/private/
PRODUCT_PACKAGES += \
fps_ext_bug_lib \
fingerprint.extension.sh
endif
endif

View File

@@ -0,0 +1,63 @@
#!/system/bin/sh
# BetterBug required fields
am='am start -a com.google.android.apps.betterbug.intent.FILE_BUG_DEEPLINK --ez EXTRA_DEEPLINK true '
issueTitle=' --es EXTRA_ISSUE_TITLE '
additionalComment=' --es EXTRA_ADDITIONAL_COMMENT '
componentId=' --el EXTRA_COMPONENT_ID '
requireBugReport=' --ez EXTRA_REQUIRE_BUGREPORT '
bugAssign=' --es EXTRA_BUG_ASSIGNEE '
ccGroup=' --es EXTRA_CC '
# BetterBug title
kAuthTitle="UDFPS Fingerprint authentication has high failed rate"
kLockoutTitle="UDFPS Fingerprint has too many lockout counts"
kLatencyTitle="UDFPS Fingerprint took long to unlock device"
# BetterBug context comment
kAuthComment="This bug is auto created by fingerprint HAL to track fingerprint authentication"
kLockoutComment="This bug is auto created by fingerprint HAL to track fingerprint lockout"
kLatencyComment="This bug is auto created by fingerprint HAL to track fingerprint latency"
# BetterBug assign & CC owner
kBugAssign='udfps_data_study@google.com'
kCcGroup='eddielan@google.com'
kComponentId='817555'
# Command to send intent to BetterBug
commonCommand="$componentId ${kComponentId//\ /\\ }
$requireBugReport true
$bugAssign ${kBugAssign//\ /\\ }
$ccGroup ${kCcGroup//\ /\\ }"
authCommand="$am $issueTitle ${kAuthTitle//\ /\\ }
$additionalComment ${kAuthComment//\ /\\ }"
lockoutCommand="$am $issueTitle ${kLockoutTitle//\ /\\ }
$additionalComment ${kLockoutComment//\ /\\ }"
latencyCommand="$am $issueTitle ${kLatencyTitle//\ /\\ }
$additionalComment ${kLatencyComment//\ /\\ }"
# Type of bug being triggered
# 1. Latency
# 2. Lockout
# 3. Finerprint authentication(FRR)
bug_type="$1"
send=1
if [ "$bug_type" == "latency" ]; then
intentCommand="$latencyCommand $commonCommand"
elif [ "$bug_type" == "lockout" ]; then
intentCommand="$lockoutCommand $commonCommand"
elif [ "$bug_type" == "auth" ]; then
intentCommand="$authCommand $commonCommand"
else
send=0
echo "Unknown bug_type $bug_type"
fi
if [ $send -eq 1 ]
then
eval $intentCommand
fi
# Exit
exit 0

View File

@@ -0,0 +1,19 @@
# init-fingerprint-extension-sh is to send intent command to app
# for tracking fingerprint issue.
service fingerprint-extension-bug-latency /system_ext/bin/fingerprint.extension.sh latency
group shell
user shell
disabled
oneshot
service fingerprint-extension-bug-lockout /system_ext/bin/fingerprint.extension.sh lockout
group shell
user shell
disabled
oneshot
service fingerprint-extension-bug-auth /system_ext/bin/fingerprint.extension.sh auth
group shell
user shell
disabled
oneshot

View File

@@ -0,0 +1,28 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["device_google_gs101_license"],
}
cc_binary {
srcs: [
"fp_test.cpp"
],
include_dirs: [
"device/google/gs101/fingerprint/fpc1540/fp_tool"
],
name: "fp_test",
shared_libs: [
"liblog",
"libdl",
"libutils",
"libcutils",
"libhidlbase",
"android.hardware.biometrics.fingerprint@2.1"
],
proprietary:true,
}

View File

@@ -0,0 +1,200 @@
#include <stdint.h>
#include <stdio.h>
#include <log/log.h>
#include "fp_test.h"
#include <cutils/properties.h>
#define TAG "[FP_TEST] "
#define LOGI(format,...) ALOGI(TAG format,##__VA_ARGS__)
#define LOGD(format,...) ALOGD(TAG format,##__VA_ARGS__)
#define LOGE(format,...) ALOGE(TAG format,##__VA_ARGS__)
#define CLOGI(format,...) printf(TAG format,##__VA_ARGS__)
#define CLOGD(format,...) printf(TAG format,##__VA_ARGS__)
#define CLOGE(format,...) printf(TAG format,##__VA_ARGS__)
#define LOGI_BOTH(format,...) { \
ALOGI(TAG format,##__VA_ARGS__) \
prinft(TAG format, ##__VA_ARGS__) \
} \
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
#define STRING_SIZE 32
#define FPS_SRV_PROP "fps_hal"
#define FPS_SRV_FULL_PROP "init.svc.fps_hal"
#define FPS_SRV_STATUS_PROP "vendor.fp.status"
enum ErrorType {
OK,
ERROR
};
static const char* const cmdUsage[] = {
"-------fp_test tool usage--------",
"fp_test -e: Enable FPS service",
"fp_test -d: Disable FPS service",
"fp_test -i: Idle Mode",
"fp_test -n: Navigation Mode",
"fp_test -a: Authentication Mode",
"---------------------------------",
};
void toolUsage(void) {
int numCmdUsage = ARRAY_SIZE(cmdUsage);
for(int i = 0; i< numCmdUsage; i++)
CLOGI("%s\n",cmdUsage[i]);
}
int checkParameter(int num, char **strArray)
{
int ret = 0;
char parameter[STRING_SIZE] = {0,};
if (num != 2 || (strlen(strArray[1]) > STRING_SIZE)) {
return -ERROR;
}
strcpy(parameter, strArray[1]);
if (!strncmp(parameter, "-a", sizeof("-a"))) {
CLOGI("Start Authentication Mode!\n");
LOGI("Start Authentication Mode!\n");
ret = 'a';
} else if (!strncmp(parameter, "-n", sizeof("-n"))) {
CLOGI("Start Navigation Mode!\n");
LOGI("Start Navigation Mode!\n");
ret = 'n';
} else if (!strncmp(parameter, "-i", sizeof("-i"))) {
CLOGI("Start Idle Mode!\n");
LOGI("Start Idle Mode!\n");
ret = 'n';
} else if (!strncmp(parameter, "-e", sizeof("-e"))) {
CLOGI("Start enabling FPS service!\n");
LOGI("Start enabling FPS service!\n");
ret = 'e';
} else if (!strncmp(parameter, "-d", sizeof("-d"))) {
CLOGI("Start disabling FPS service!\n");
LOGI("Start disabling FPS service!\n");
ret = 'd';
} else {
ret = -ERROR;
}
return ret;
}
int enable_disable_fps(bool set)
{
int ret = 0;
// Set property to enable/disable fingerprint service
if (set == true) {
ret = property_set("ctl.start", FPS_SRV_PROP);
} else {
ret = property_set("ctl.stop", FPS_SRV_PROP);
}
if (ret != 0) {
CLOGE("Failed to %s FPS service\n", set? "enable" : "disable");
LOGE("Failed to %s FPS service\n", set? "enable" : "disable");
return -ERROR;
}
return ret;
}
int run_auth_cmd() {
RequestStatus hidlRet;
uint64_t operationId = 0;
uint32_t gid = 0;
char tempbuf[PROPERTY_VALUE_MAX];
property_get(FPS_SRV_FULL_PROP, tempbuf, 0);
LOGE("%s : current fp service status is %s!\n",__func__, tempbuf);
if (!strncmp(tempbuf, "stopped", strlen("stopped"))) {
return -ERROR;
}
sp<IBiometricsFingerprint> service = IBiometricsFingerprint::getService();
if (service == nullptr) {
CLOGE("%s : Fail to get FingerprintService!\n",__func__);
LOGE("%s : Fail to get FingerprintService!\n",__func__);
return -ERROR;
}
hidlRet = service->authenticate(operationId, gid);
if (hidlRet == RequestStatus::SYS_OK) {
return OK;
} else {
return -ERROR;
}
}
int run_cancel_cmd() {
RequestStatus hidlRet;
char tempbuf[PROPERTY_VALUE_MAX];
property_get(FPS_SRV_FULL_PROP, tempbuf, 0);
LOGE("%s : current fp service status is %s!\n",__func__, tempbuf);
if (!strncmp(tempbuf, "stopped", strlen("stopped"))) {
return -ERROR;
}
sp<IBiometricsFingerprint> service = IBiometricsFingerprint::getService();
if (service == nullptr) {
CLOGE("%s : Fail to get FingerprintService!\n",__func__);
LOGE("%s : Fail to get FingerprintService!\n",__func__);
return -ERROR;
}
hidlRet = service->cancel();
if (hidlRet == RequestStatus::SYS_OK) {
return OK;
} else {
return -ERROR;
}
}
int main(int argc, char *argv[])
{
int input=0;
int32_t ret = 0;
LOGI("%s",__func__);
input = checkParameter(argc, argv);
if (input == -ERROR){
LOGE("Invalid Parameter\n");
CLOGE("Invalid Parameter\n");
toolUsage();
return -ERROR;
}
switch (input) {
case 'e':
CLOGI("%s: Enable fingerprint service\n",__func__);
LOGI("%s: Enable fingerprint service\n",__func__);
ret = enable_disable_fps(true);
break;
case 'd':
CLOGI("%s: Disable fingerprint service\n",__func__);
LOGI("%s: Disable fingerprint service\n",__func__);
ret = enable_disable_fps(false);
break;
case 'a':
ret = run_auth_cmd();
break;
// For the rear fingerprint module, calling cancel() will go to the
// navigation mode by default.
// For other device not enabling naivgation feature, default mode will
// be "Idle" by invoking cancel().
case 'n':
case 'i':
default:
ret = run_cancel_cmd();
break;
}
if (ret != OK)
CLOGE("FP HIDL fail to excute cmd '%c'\n", input);
else
CLOGI("FP HIDL excute cmd '%c' successfully\n", input);
return ret;
}

View File

@@ -0,0 +1,16 @@
#ifndef FP_TEST
#define FP_TEST
#include <android/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.h>
#include <android/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallback.h>
using android::hardware::biometrics::fingerprint::V2_1::IBiometricsFingerprint;
using android::hardware::biometrics::fingerprint::V2_1::IBiometricsFingerprintClientCallback;
using android::hardware::biometrics::fingerprint::V2_1::RequestStatus;
using android::sp;
int main(int argc, char *argv[]);
void toolUsage(void);
#endif //FP_TEST

View File

@@ -0,0 +1,18 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_CONFIG_BUILD_VERSION=33_aidl
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_NAVIGATION=1
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_HAL_SHARED_LIB=1
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpc1541_S_nav_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1
FPC_CONFIG_PRODUCT_DEFAULT=FPC_PRODUCT_TYPE1541_S

View File

@@ -0,0 +1,20 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_CONFIG_BUILD_VERSION=33
FPC_CONFIG_CAPACITIVE=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_NAVIGATION=0
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpc1541_S_nav_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1
FPC_CONFIG_PRODUCT_DEFAULT=FPC_PRODUCT_TYPE1541_S
# Google configuration
GOOGLE_CONFIG_FP_STATUS=1

View File

@@ -0,0 +1,30 @@
# Factory build, use HIDL hal & extension so that we can use Test tool
ifneq ( ,$(findstring factory, $(TARGET_PRODUCT)))
include device/google/gs101/fingerprint/fpc1540/sw33/fingerprint_hidl_config_factory.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fpc \
fpc_tee_test\
SensorTestTool \
ImageTool \
ImageCollection \
fp_test \
PRODUCT_PACKAGES += \
com.fingerprints.extension.xml \
com.fingerprints.extension \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
else
# Non facotry build, use fingerprint AIDL version
include device/google/gs101/fingerprint/fpc1540/sw33/fingerprint_aidl_config.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint-service.fpc \
fingerprint.fpc \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
endif

View File

@@ -0,0 +1,26 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_BUILD_ID='ff334fee0631b7d5e424e22d18287f4f'
FPC_CONFIG_BUILD_VERSION=35
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_HAL_SHARED_LIB=1
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpcmulti_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
GOOGLE_CONFIG_PERFORMANCE=1
# Enable Suez
$(call soong_config_set,fp_hal_feature,biometric_suez_support,true)
# Must add below method to each project's device.mk to show sensorLocation
#$(call soong_config_set,fp_hal_feature,pixel_product, project_XX)

View File

@@ -0,0 +1,20 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_BUILD_ID='ff334fee0631b7d5e424e22d18287f4f'
FPC_CONFIG_BUILD_VERSION=35
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
FPC_CONFIG_CAPACITIVE=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpcmulti_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1
# Google config
GOOGLE_CONFIG_FP_STATUS=1

View File

@@ -0,0 +1,30 @@
# Factory build, use HIDL hal & extension so that we can use Test tool
ifneq ( ,$(findstring factory, $(TARGET_PRODUCT)))
include device/google/gs101/fingerprint/fpc1540/sw35/fingerprint_hidl_config_factory.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fpc \
fpc_tee_test\
SensorTestTool \
ImageTool \
ImageCollection \
fp_test \
PRODUCT_PACKAGES += \
com.fingerprints.extension.xml \
com.fingerprints.extension \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
else
# Non facotry build, use fingerprint AIDL version
include device/google/gs101/fingerprint/fpc1540/sw35/fingerprint_aidl_config.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint-service.fpc35 \
fingerprint.fpc \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
endif

View File

@@ -0,0 +1,28 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_CONFIG_BUILD_VERSION=42
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
FPC_CONFIG_HAL_SHARED_LIB=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_NO_TU=0
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_OTP_DECODE_ERRORS_IGNORE=1
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpcmulti_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1
FPC_CONFIG_GOOGLE_RELEASE=1
FPC_CONFIG_TRUSTY_CLEAN_TA=1
GOOGLE_CONFIG_PERFORMANCE=1
# Enable Suez
$(call soong_config_set,fp_hal_feature,biometric_suez_support,true)
# Must add below method to each project's device.mk to show sensorLocation
#$(call soong_config_set,fp_hal_feature,pixel_product, project_XX)

View File

@@ -0,0 +1,18 @@
# ----------------------------
# Add feature flags below
# ----------------------------
FPC_CONFIG_BUILD_VERSION=42
FPC_CONFIG_GOOGLE_CUSTOMIZE=1
FPC_CONFIG_MAX_NR_TEMPLATES=5
FPC_CONFIG_NO_TU=0
FPC_CONFIG_SENSE_TOUCH_CALIBRATION_PATH=/data/fpc/calibration_sense_touch.dat
FPC_CONFIG_SENSORTEST=1
FPC_CONFIG_TA_FS=1
FPC_DEFECTIVE_PIXEL_LIST_SIZE=5000
FPC_OTP_DECODE_ERRORS_IGNORE=1
FPC_SENSOR_SDK_LOG_LEVEL=3
FPC_TEE_RUNTIME=TRUSTY
LIBFPC_NAME=libfpcmulti_debug.a
FPC_CONFIG_DEBUG=1
FPC_CONFIG_ENGINEERING=1

View File

@@ -0,0 +1,30 @@
# Factory build, use HIDL hal & extension so that we can use Test tool
ifneq ( ,$(findstring factory, $(TARGET_PRODUCT)))
include device/google/gs101/fingerprint/fpc1540/sw42/fingerprint_hidl_config_factory.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fpc \
fpc_tee_test\
SensorTestTool \
ImageTool \
ImageCollection \
fp_test \
PRODUCT_PACKAGES += \
com.fingerprints.extension.xml \
com.fingerprints.extension \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
else
# Non facotry build, use fingerprint AIDL version
include device/google/gs101/fingerprint/fpc1540/sw42/fingerprint_aidl_config.mk
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint-service.fpc42 \
fingerprint.fpc \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
endif

View File

@@ -1,7 +1,7 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<name>android.hardware.health</name>
<version>4</version>
<version>3</version>
<fqname>IHealth/default</fqname>
</hal>
</manifest>

View File

@@ -0,0 +1,24 @@
#
# Copyright (C) 2018 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=1
write /sys/class/power_supply/dc/current_max 75000
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=0
write /sys/class/power_supply/dc/current_max 1100000
on property:vendor.disable.wlc=1
write /sys/class/power_supply/wireless/online 0

View File

@@ -1,6 +1,6 @@
#
# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -26,10 +26,6 @@ PRODUCT_PACKAGES += \
# Lineage Health
include hardware/google/pixel/lineage_health/device.mk
$(call soong_config_set,lineage_health,charging_control_supports_deadline,true)
$(call soong_config_set,lineage_health,charging_control_supports_limit,true)
$(call soong_config_set,lineage_health,charging_control_supports_toggle,false)
# Linker config
PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS += \
device/google/gs101/linker.config.json
@@ -38,9 +34,5 @@ PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS += \
PRODUCT_PACKAGES += \
GoogleParts
# Tethering
PRODUCT_PACKAGES += \
TetheringOverlay
# Touch
include hardware/google/pixel/touch/device.mk

View File

@@ -1,9 +1,5 @@
{
"provideLibs": [
"liboemcrypto.so",
"lib_aion_buffer.so",
"libedgetpu_client.google.so",
"libedgetpu_tachyon.google.so",
"libedgetpu_util.so"
"liboemcrypto.so"
]
}

34
location/lhd.conf Normal file
View File

@@ -0,0 +1,34 @@
LheName=bbd
LheRsmResetTimeoutMS=10000
GpioNStdbyPath=/sys/devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby
LhePatch=/vendor/firmware/SensorHub.patch
Lhe477xDebugFlags=RPC:FACILITY=65535-dKP+CUST+LHE:STDOUT_PUTS:STDOUT_LOG
LheConsole=/data/vendor/gps/LheConsole
LogEnabled=true
Log=JAVA
LogDirectory=/sdcard/gps/broadcom/storage
LheBbdPacket=/dev/ttyBCM
LheBbdControl=/dev/bbd_control
# LheBbdSensor=/dev/bbd_sensor
LheFailSafe=/data/vendor/gps/logs/esw-crash-dump.txt
LogLevel=*:I
NvStorageDir=/data/vendor/gps/
# Enable BBD debugging at these stages:
# LheDriverDebugFlags=PATCH_BBD:LHE_BBD:FSC_BBD
LheAutoBaudDelayMS=10
TrafficLogEnabled=false
SecondaryConfigPath=/data/vendor/gps/overlay/lhd_overlay.conf
SkipSensorWakeLock=true
LoggerWakeLockEnable=false
PpsEnable=true

6
location/scd.conf Normal file
View File

@@ -0,0 +1,6 @@
LogEnabled=true
Log=JAVA
LogDirectory=/sdcard/gps/broadcom/storage
NvStorageDir=/data/vendor/gps/
TcpConnectionTimeout=20
SecondaryConfigPath=/data/vendor/gps/overlay/scd_overlay.conf

View File

@@ -12,6 +12,15 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.mapper</name>
<transport arch="32+64">passthrough</transport>
<version>4.0</version>
<interface>
<name>IMapper</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.composer</name>
<transport>hwbinder</transport>

View File

@@ -1,4 +1,13 @@
<manifest version="1.0" type="device" target-level="5">
<hal format="hidl">
<name>android.hardware.graphics.mapper</name>
<transport arch="32+64">passthrough</transport>
<version>4.0</version>
<interface>
<name>IMapper</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.composer</name>
<transport>hwbinder</transport>

View File

@@ -1,12 +1,20 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<hal format="hidl">
<name>android.hardware.media.c2</name>
<version>1</version>
<fqname>IComponentStore/default1</fqname>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IComponentStore</name>
<instance>default1</instance>
</interface>
</hal>
<hal format="aidl">
<hal format="hidl">
<name>android.hardware.media.c2</name>
<version>1</version>
<fqname>IComponentStore/default</fqname>
<transport>hwbinder</transport>
<version>1.2</version>
<interface>
<name>IComponentStore</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -8,9 +8,4 @@
<instance>default</instance>
</interface>
</hal>
<hal format="aidl">
<name>android.hardware.media.c2</name>
<version>1</version>
<fqname>IComponentStore/default</fqname>
</hal>
</manifest>

View File

@@ -100,7 +100,7 @@
</MediaCodec>
<MediaCodec name="c2.exynos.vp8.decoder" type="video/x-vnd.on2.vp8" >
<Limit name="size" min="32x32" max="3840x2160" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-32400" />
<Limit name="blocks-per-second" min="1" max="3888000" />
@@ -113,7 +113,7 @@
</MediaCodec>
<MediaCodec name="c2.exynos.vp9.decoder" type="video/x-vnd.on2.vp9" >
<Limit name="size" min="64x64" max="3840x2176" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="64x64" />
<Limit name="block-count" range="1-2040" />
<Limit name="blocks-per-second" min="1" max="3888000" />
@@ -126,7 +126,7 @@
</MediaCodec>
<MediaCodec name="c2.exynos.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
<Limit name="size" min="64x64" max="3840x2176" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="64x64" />
<Limit name="block-count" range="1-2040" />
<Limit name="blocks-per-second" min="1" max="3888000" />
@@ -203,7 +203,7 @@
</MediaCodec>
<MediaCodec name="c2.exynos.vp8.encoder" type="video/x-vnd.on2.vp8" >
<Limit name="size" min="32x32" max="3840x2160" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-32400" />
<Limit name="blocks-per-second" min="1" max="3888000" />
@@ -218,7 +218,7 @@
</MediaCodec>
<MediaCodec name="c2.exynos.vp9.encoder" type="video/x-vnd.on2.vp9" >
<Limit name="size" min="64x64" max="3840x2176" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="64x64" />
<Limit name="block-count" range="1-2040" />
<Limit name="blocks-per-second" min="1" max="243000" />

View File

@@ -19,7 +19,7 @@
<Decoders>
<MediaCodec name="c2.google.av1.decoder" type="video/av01">
<Limit name="size" min="96x96" max="3840x2160" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="36-32400" />
<Limit name="blocks-per-second" min="24" max="1944000" />
@@ -34,7 +34,7 @@
</MediaCodec>
<MediaCodec name="c2.google.av1.decoder.secure" type="video/av01">
<Limit name="size" min="96x96" max="3840x2160" />
<Limit name="alignment" value="1x1" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="36-32400" />
<Limit name="blocks-per-second" min="24" max="1944000" />

View File

@@ -115,20 +115,20 @@
</MediaCodec>
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<!-- measured 90%:342-360 med:343 N=2 -->
<Limit name="measured-frame-rate-320x240" range="542-971" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-320x240" range="342-351" /> <!-- v90%=1.0 -->
<!-- measured 90%:142-147 med:143 N=2 -->
<Limit name="measured-frame-rate-720x480" range="162-301" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-720x480" range="142-145" /> <!-- v90%=1.0 -->
<!-- measured 90%:54-56 med:55 N=2 -->
<Limit name="measured-frame-rate-1280x720" range="54-77" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1280x720" range="54-55" /> <!-- v90%=1.0 -->
<!-- measured 90%:25-26 med:26 N=2 -->
<Limit name="measured-frame-rate-1920x1080" range="25-34" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1920x1080" range="25-26" /> <!-- v90%=1.0 -->
</MediaCodec>
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="583-972" /> <!-- N=20 v90%=1.0 -->
<Limit name="measured-frame-rate-640x360" range="337-537" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-720x480" range="312-470" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1280x720" range="104-165" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1920x1080" range="54-68" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-352x288" range="583-674" /> <!-- N=20 v90%=1.0 -->
<Limit name="measured-frame-rate-640x360" range="337-352" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-720x480" range="312-324" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1280x720" range="104-108" /> <!-- v90%=1.0 -->
<Limit name="measured-frame-rate-1920x1080" range="54-56" /> <!-- v90%=1.0 -->
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="1215-1823" />

4
modem/userdebug.mk Normal file
View File

@@ -0,0 +1,4 @@
ifneq ($(BOARD_WITHOUT_RADIO),true)
PRODUCT_PACKAGES += vcd
endif
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs101/sepolicy/modem/userdebug/

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- Don't enable BT until user wants it -->
<bool name="def_bluetooth_on">false</bool>
</resources>

View File

@@ -0,0 +1,7 @@
<resources>
<string-array name="logger_entries">
<item>shannondm</item>
<item>cnss_diag</item>
<item>brcm_gps</item>
</string-array>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_logger_default_value" translatable="false">shannondm</string>
<string name="config_cfg_default_value" translatable="false">Built-in Mask #1</string>
<!-- default config file for cnss_diag logger -->
<string name="config_cfg_default_value_cnss_diag" translatable="false">cnss_diag.conf</string>
<!-- config file to enable brcm gps logger -->
<bool name="config_brcm_gps_enabled" translatable="false">true</bool>
</resources>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_message_no_message">
<item></item>
</string-array>
<string-array name="config_message_audio_warning">
<item>This will collect audio from your voice calls. Would you like to proceed?</item>
</string-array>
<string-array name="config_message_possible_audio_warning">
<item>This may collect audio from your voice calls. Would you like to proceed?</item>
<item>Pixel_Default.nprf</item>
<item>Built-in Mask #0</item>
<item>Built-in Mask #1</item>
<item>Built-in Mask #2</item>
<item>Built-in Mask #3</item>
</string-array>
<string name="config_privacy_warning_title">Privacy Warning</string>
<string name="default_config_selection_message">You are loading a user defined logging config. This may collect audio from your voice calls. Would you like to proceed?</string>
</resources>

View File

@@ -31,16 +31,6 @@
<!-- B y-intercept --> <item>-0.349361641294833436</item>
</string-array>
<!-- The fixed keyboard vibration strength in [0,1], or -1 to indicate the strength not fixed
and should depend on the touch feedback intensity user setting -->
<item name="config_keyboardHapticFeedbackFixedAmplitude" type="dimen">0.62</item>
<!-- Indicating if keyboard vibration settings supported or not. -->
<bool name="config_keyboardVibrationSettingsSupported">true</bool>
<!-- Indicating if ringtone vibration settings supported or not. -->
<bool name="config_ringtoneVibrationSettingsSupported">true</bool>
<!-- List of comma separated package names for which we the system will not show crash, ANR,
etc. dialogs. -->
<string translatable="false" name="config_appsNotReportingCrashes">com.google.android.euicc</string>

View File

@@ -20,32 +20,27 @@
<item>connectivity_thermal_power_manager/apply_action_time_seconds=10</item>
<item>connectivity_thermal_power_manager/atm_power_threshold_mw=800</item>
<item>connectivity_thermal_power_manager/cellular_thermal_adaptive_thermal_status_adaptive_action_list=</item>
<item>connectivity_thermal_power_manager/criteria_1_enabled=true</item>
<item>connectivity_thermal_power_manager/criteria_4_lte_pref_mode=3</item>
<item>connectivity_thermal_power_manager/wifi_disconnected_time_seconds=180</item>
<item>connectivity_thermal_power_manager/wifi_internet_driven_endc_product_carrier_id_set=shiba,husky,akita,komodo,tokay,caiman,comet@1,1989,2023,2576,2067,2071,2073,2577,2522,2075,2578,2083,2433,1949</item>
<!-- Live Caption (Pixel 2017 + OEM) -->
<item>device_personalization_services/Captions__allow_box_x_axis_movement=true</item>
<item>device_personalization_services/Captions__allow_use_public_speech_recognition=true</item>
<item>device_personalization_services/Captions__allow_voip_call_without_audio_recording=true</item>
<item>device_personalization_services/Captions__available_for_download=en-US;en-GB;en-CA;en-IE;en-AU;en-SG;en-IN;fr-FR;fr-CA;fr-BE;fr-CH;it-IT;it-CH;de-DE;de-AT;de-BE;de-CH;ja-JP;es-ES;es-US;cmn-Hant-TW;hi-IN;pt-BR;tr-TR;pl-PL;cmn-Hans-CN;ko-KR;ru-RU;vi-VN</item>
<item>device_personalization_services/Captions__allow_voip_call_without_audio_recording=false</item>
<item>device_personalization_services/Captions__available_for_download=en-US;en-GB;en-CA;en-IE;en-AU;en-SG;en-IN;fr-FR;fr-CA;fr-BE;fr-CH;it-IT;it-CH;de-DE;de-AT;de-BE;de-CH;ja-JP;es-ES;es-US</item>
<item>device_personalization_services/Captions__disable_prod=false</item>
<!-- <item>device_personalization_services/Captions__enable=false</item> -->
<item>device_personalization_services/Captions__enable_activation_boost=true</item>
<item>device_personalization_services/Captions__enable_adaptive_box_width=true</item>
<item>device_personalization_services/Captions__enable_augmented_modality=true</item>
<item>device_personalization_services/Captions__enable_augmented_modality_input=true</item>
<item>device_personalization_services/Captions__enable_augmented_modality_language_detection=true</item>
<item>device_personalization_services/Captions__enable_augmented_music=true</item>
<!-- <item>device_personalization_services/Captions__enable_clearcut_logging=true</item> -->
<item>device_personalization_services/Captions__enable_drag_and_double_tap_to_resize=true</item>
<item>device_personalization_services/Captions__enable_ec_integration=false</item>
<item>device_personalization_services/Captions__enable_drag_and_double_tap_to_resize=false</item>
<item>device_personalization_services/Captions__enable_language_detection=true</item>
<item>device_personalization_services/Captions__enable_one_caption_experiment=false</item>
<item>device_personalization_services/Captions__enable_punctuations=true</item>
<item>device_personalization_services/Captions__enable_setting_page=false</item>
<item>device_personalization_services/Captions__enable_survey=false</item>
<item>device_personalization_services/Captions__enable_text_transform=true</item>
<item>device_personalization_services/Captions__enable_westworld_logging=false</item>
<item>device_personalization_services/Captions__enable_zero_day=false</item>
@@ -55,9 +50,7 @@
<item>device_personalization_services/Captions__new_model_version=20210623</item>
<item>device_personalization_services/Captions__new_model_version_advanced=20221227</item>
<item>device_personalization_services/Captions__speech_threshold=0.2</item>
<item>device_personalization_services/Captions__support_lang_id_disabled_after_dismissals=true</item>
<item>device_personalization_services/Captions__supported_languages=en-US;fr-FR;it-IT;de-DE;ja-JP;es-ES;cmn-Hant-TW;hi-IN;pt-BR;tr-TR;pl-PL;cmn-Hans-CN;ko-KR;ru-RU;vi-VN</item>
<item>device_personalization_services/Captions__supported_languages_beta_quality=ja-JP;pt-BR;tr-TR;pl-PL;cmn-Hans-CN;ko-KR;ru-RU;vi-VN</item>
<item>device_personalization_services/Captions__supported_languages=en-US;fr-FR;it-IT;de-DE;ja-JP;es-ES</item>
<item>device_personalization_services/Captions__surface_sound_events=true</item>
<item>device_personalization_services/Captions__text_transform_augmented_input=true</item>
<item>device_personalization_services/Captions__visibility_playing_duration_millis=5000</item>
@@ -65,23 +58,12 @@
<!-- Now Playing (Pixel 2017) -->
<item>device_personalization_services/NowPlaying__ambient_music_apk_music_detector_min_score=0.45</item>
<item>device_personalization_services/NowPlaying__ambient_music_download_album_art_via_astrea=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_enable_resource_download_logging=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_enhanced_metadata_shards_manifest=4003:https://storage.googleapis.com/music-iq-db/updatable_db_v4/20241015-000033/manifest.json</item>
<item>device_personalization_services/NowPlaying__ambient_music_get_model_state_cooldown_seconds_cloud_search=9</item>
<item>device_personalization_services/NowPlaying__ambient_music_index_manifest_17_09_02=3105:https://storage.googleapis.com/music-iq-db/updatable_db_v3/20241013-030037/manifest.json</item>
<item>device_personalization_services/NowPlaying__ambient_music_index_manifest_17_09_02=3082:https://storage.googleapis.com/music-iq-db/updatable_db_v3/20240421-030101/manifest.json</item>
<item>device_personalization_services/NowPlaying__ambient_music_matcher_match_threshold_17_09_02=1.0E-6</item>
<item>device_personalization_services/NowPlaying__ambient_music_on_demand_enabled=true</item>
<item>device_personalization_services/NowPlaying__ambient_music_on_demand_music_confidence=0.48</item>
<item>device_personalization_services/NowPlaying__ambient_music_on_demand_search_use_new_opt_in_flow=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_show_album_art=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_support_dsp_model_tflite_p6=true</item>
<item>device_personalization_services/NowPlaying__ambient_music_use_enhanced_matches_database=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_use_metadata_shards_database=false</item>
<item>device_personalization_services/NowPlaying__ambient_music_use_yt_domain_fife_urls=false</item>
<item>device_personalization_services/NowPlaying__cloud_api_allowed=true</item>
<item>device_personalization_services/NowPlaying__create_shortcut_on_np_enabled=false</item>
<item>device_personalization_services/NowPlaying__default_music_player_setting=false</item>
<item>device_personalization_services/NowPlaying__dsp_model_checksum_enabled=false</item>
<!-- <item>device_personalization_services/NowPlaying__enable_usage_fa=true</item> -->
<item>device_personalization_services/NowPlaying__favorites_enabled=true</item>
@@ -90,12 +72,11 @@
<item>device_personalization_services/NowPlaying__handle_ambient_music_results_with_history=true</item>
<item>device_personalization_services/NowPlaying__min_training_interval_millis=86400000</item>
<item>device_personalization_services/NowPlaying__nnfp_v3_model_enabled=true</item>
<item>device_personalization_services/NowPlaying__on_demand_enable_eager_prompt=false</item>
<item>device_personalization_services/NowPlaying__on_demand_enable_eager_prompt=true</item>
<item>device_personalization_services/NowPlaying__on_demand_fingerprinter_being_setup_warning=true</item>
<item>device_personalization_services/NowPlaying__on_demand_hide_if_fingerprinter_install_not_confirmed=true</item>
<item>device_personalization_services/NowPlaying__on_demand_min_supported_aga_version=12.35.17</item>
<item>device_personalization_services/NowPlaying__on_demand_retry_fingerprinter_install=true</item>
<item>device_personalization_services/NowPlaying__shortcut_direct_create_enabled=false</item>
<item>device_personalization_services/NowPlaying__youtube_export_enabled=true</item>
<!-- Adaptive Sound (Pixel 2020) -->
@@ -120,13 +101,11 @@
<item>device_personalization_services/Translate__differentiate_simplified_and_traditional_chinese=true</item>
<item>device_personalization_services/Translate__disable_translate_without_system_animation=false</item>
<item>device_personalization_services/Translate__enable_chronicle_migration=true</item>
<item>device_personalization_services/Translate__enable_default_langid_model=true</item>
<item>device_personalization_services/Translate__enable_default_langid_model=false</item>
<item>device_personalization_services/Translate__enable_dictionary_langid_detection=true</item>
<item>device_personalization_services/Translate__enable_opmv4_service=true</item>
<item>device_personalization_services/Translate__enable_settings_backup_restore=false</item>
<item>device_personalization_services/Translate__enable_setup_wizard_dialog_v2=false</item>
<item>device_personalization_services/Translate__enable_spa_setting=false</item>
<item>device_personalization_services/Translate__enable_translate_kit_api_migration=false</item>
<item>device_personalization_services/Translate__interpreter_source_languages=de,en,ja,es,fr,it</item>
<item>device_personalization_services/Translate__interpreter_target_languages=de,en,ja,es,fr,it</item>
<item>device_personalization_services/Translate__replace_auto_translate_copied_text_enabled=true</item>

View File

@@ -229,6 +229,12 @@
<item>"/system_ext/priv-app/SystemUI/SystemUI.apk"</item>
</string-array>
<!-- Should the pinner service pin the Home application? -->
<bool name="config_pinnerHomeApp">true</bool>
<!-- Bytes that the PinnerService will pin for WebView -->
<integer name="config_pinnerWebviewPinBytes">20971520</integer>
<!-- The default intensity level for alarm vibrations. See
Settings.System.ALARM_VIBRATION_INTENSITY more details on the constant values and
meanings. -->
@@ -258,9 +264,6 @@
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
<bool name="config_zramWriteback">true</bool>
<!-- the number of the max cached processes in the system. -->
<integer name="config_customizedMaxCachedProcesses">1024</integer>
<!-- List of system components which are allowed to receive ServiceState entries in an
un-sanitized form, even if the location toggle is off. This is intended ONLY for system
components, such as the telephony stack, which require access to the full ServiceState for
@@ -297,8 +300,4 @@
<!-- Pre-scale volume at volume step 3 for Absolute Volume -->
<fraction name="config_prescaleAbsoluteVolume_index3">100%</fraction>
<!-- Whether to enable usb state update via udc sysfs. -->
<bool name="config_enableUdcSysfsUsbStateUpdate">true</bool>
</resources>
</resources>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2020, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Content description of the data connection type 5G UW. [CHAR LIMIT=NONE] -->
<string name="data_connection_5g_plus" translatable="false">5G UW</string>
</resources>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2020, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Content description of the data connection type 5G UW. [CHAR LIMIT=NONE] -->
<string name="data_connection_5g_plus" translatable="false">5G UW</string>
</resources>

42
pixelstats/Android.bp Normal file
View File

@@ -0,0 +1,42 @@
//
// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/gs101:device_google_gs101_license",
],
}
cc_binary {
name: "pixelstats-vendor",
init_rc: ["pixelstats-vendor.gs101.rc"],
srcs: [
"service.cpp",
],
shared_libs: [
"libbase",
"liblog",
"libutils",
"libpixelstats",
],
proprietary: true,
static_libs: ["chre_client"],
header_libs: ["chre_api"],
}

View File

@@ -0,0 +1,10 @@
on property:sys.boot_completed=1
chown system system /sys/class/power_supply/maxfg/fg_learning_events
start vendor.pixelstats_vendor
on post-fs-data
chown system system /sys/kernel/metrics/irq/stats_reset
service vendor.pixelstats_vendor /vendor/bin/pixelstats-vendor
class hal
user system
group system context_hub readproc
disabled

101
pixelstats/service.cpp Normal file
View File

@@ -0,0 +1,101 @@
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define LOG_TAG "pixelstats"
#include <android-base/logging.h>
#include <pixelstats/SysfsCollector.h>
#include <pixelstats/UeventListener.h>
#include <thread>
using android::hardware::google::pixel::SysfsCollector;
using android::hardware::google::pixel::UeventListener;
#define BLOCK_STATS_LENGTH 17
#define UFSHC_PATH(filename) "/dev/sys/block/bootdevice/" #filename
#define UFS_ERR_PATH(err_type) UFSHC_PATH(err_stats/) #err_type
const struct SysfsCollector::SysfsPaths sysfs_paths = {
.SlowioReadCntPath = UFSHC_PATH(slowio_read_cnt),
.SlowioWriteCntPath = UFSHC_PATH(slowio_write_cnt),
.SlowioUnmapCntPath = UFSHC_PATH(slowio_unmap_cnt),
.SlowioSyncCntPath = UFSHC_PATH(slowio_sync_cnt),
.CycleCountBinsPath = "/sys/class/power_supply/battery/cycle_counts",
.UFSLifetimeA = UFSHC_PATH(health_descriptor/life_time_estimation_a),
.UFSLifetimeB = UFSHC_PATH(health_descriptor/life_time_estimation_b),
.UFSLifetimeC = UFSHC_PATH(health_descriptor/life_time_estimation_c),
.F2fsStatsPath = "/sys/fs/f2fs/",
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
.EEPROMPath = "/dev/battery_history",
.MitigationPath = "/sys/devices/virtual/pmic/mitigation",
.SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp",
.SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion",
.SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat",
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",
.StormIRQMetricsPath = "/sys/kernel/metrics/irq/storm_irq_metrics",
.IRQStatsResetPath = "/sys/kernel/metrics/irq/stats_reset",
.UFSErrStatsPath = {
UFS_ERR_PATH(pa_err_count),
UFS_ERR_PATH(dl_err_count),
UFS_ERR_PATH(nl_err_count),
UFS_ERR_PATH(tl_err_count),
UFS_ERR_PATH(dme_err_count),
UFS_ERR_PATH(fatal_err_count),
UFS_ERR_PATH(auto_hibern8_err_count)
},
.AmsRatePath = "/sys/devices/platform/audiometrics/ams_rate_read_once",
.TempResidencyAndResetPaths = {
{
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats",
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats_reset"
},
{
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats",
"/sys/kernel/metrics/thermal/tr_by_group/spmic/stats_reset"
}
},
.GMSRPath = {
"/sys/class/power_supply/maxfg/gmsr",
"/sys/class/power_supply/maxfg_base/gmsr",
},
};
const struct UeventListener::UeventPaths ueventPaths = {
.AudioUevent = "/devices/virtual/amcs/amcs",
.TypeCPartnerUevent = "PRODUCT_TYPE=",
.FGLearningPath = {
"/sys/class/power_supply/maxfg/fg_learning_events"
},
.FwUpdatePath = "",
.FGModelLoadingPath = {
"/sys/class/power_supply/maxfg/m5_model_state"
}
};
int main() {
LOG(INFO) << "starting PixelStats";
UeventListener ueventListener(ueventPaths);
std::thread listenThread(&UeventListener::ListenForever, &ueventListener);
listenThread.detach();
SysfsCollector collector(sysfs_paths);
collector.collect(); // This blocks forever.
return 0;
}

View File

@@ -24,6 +24,7 @@
#include <log/log.h>
#define KVM_DEVICE "/dev/kvm"
#define MISC_WRITER "/vendor/bin/misc_writer"
int main() {
@@ -32,7 +33,22 @@ int main() {
pid_t pid;
int ret, wstatus;
/* Run misc_writer and return FAILURE to force a reboot. */
/* Check whether KVM device exists. */
ret = access(KVM_DEVICE, F_OK);
/* If KVM device exists, return SUCCESS to continue booting. */
if (ret == 0) {
exit(EXIT_SUCCESS);
}
if (ret != -ENOENT) {
ALOGW("Unexpected error from access(): %d", ret);
}
/*
* If KVM device does not exist, run misc_writer and return FAILURE
* to force a reboot.
*/
pid = fork();
if (pid == -1) {
ALOGE("Could not fork: %d", errno);

View File

@@ -2,10 +2,5 @@ service pkvm_enabler /vendor/bin/pkvm_enabler
reboot_on_failure reboot,pkvm-not-enabled
user root
# Old bootloaders do not set the protected_vm sysprop when pkvm is disabled
on early-init && property:ro.boot.hypervisor.protected_vm.supported=
exec_start pkvm_enabler
# New bootloaders set the protected_vm sysprop to 0 when pkvm is disabled
on early-init && property:ro.boot.hypervisor.protected_vm.supported=0
on early-init
exec_start pkvm_enabler

View File

@@ -369,6 +369,18 @@
"Type": "EndHint",
"Value": "DISABLE_TA_BOOST"
},
{
"PowerHint": "THERMAL_FLASH_LED_REDUCE_CRITICAL",
"Node": "LimitFlashCurrent",
"Duration": 0,
"Value": "100"
},
{
"PowerHint": "THERMAL_FLASH_LED_REDUCE_NONE",
"Node": "LimitFlashCurrent",
"Duration": 0,
"Value": "1500"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "PowerHALRenderingState",

View File

@@ -343,7 +343,7 @@ void addSoC(std::shared_ptr<PowerStats> p) {
}
void setEnergyMeter(std::shared_ptr<PowerStats> p) {
std::vector<std::string> deviceNames { "s2mpg10-odpm", "s2mpg11-odpm" };
std::vector<const std::string> deviceNames { "s2mpg10-odpm", "s2mpg11-odpm" };
p->setEnergyMeterDataProvider(std::make_unique<IioEnergyMeterDataProvider>(deviceNames, true));
}

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2023 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- System packages to preinstall on gs101 debug devices, per user type.
Documentation at frameworks/base/data/etc/preinstalled-packages-platform.xml
-->
<config>
<!-- Battery Stats Viewer (BatteryStatsViewer) -->
<install-in-user-type package="com.android.frameworks.core.batterystatsviewer">
<install-in user-type="FULL" />
<install-in user-type="PROFILE" />
<do-not-install-in user-type="android.os.usertype.profile.CLONE" />
<do-not-install-in user-type="android.os.usertype.profile.PRIVATE" />
</install-in-user-type>
</config>

View File

@@ -1,9 +0,0 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "TetheringOverlay",
sdk_version: "current",
product_specific: true
}

View File

@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tethering over USB this should
be empty. An example would be "usb.*" -->
<string-array translatable="false" name="config_tether_usb_regexs">
<item>rndis\\d</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
NCM interfaces. If the device doesn't want to support tethering over NCM this should
be empty. -->
<string-array translatable="false" name="config_tether_ncm_regexs">
<item>ncm\\d</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
Wifi P2P interfaces. If the device doesn't want to support tethering over Wifi P2p this
should be empty. An example would be "p2p-p2p\\d-.*" -->
<string-array translatable="false" name="config_tether_wifi_p2p_regexs">
<item>p2p-p2p\\d-.*</item>
<item>p2p\\d</item>
<item>p2p-wlan\\d-.*</item>
</string-array>
<!-- Which USB function should be enabled when TETHERING_USB is requested. 0: RNDIS, 1: NCM.
-->
<integer translatable="false" name="config_tether_usb_functions">1</integer>
</resources>

View File

@@ -0,0 +1,5 @@
# People who can approve changes for submission
etancohen@google.com
arabawy@google.com
kumachang@google.com
satk@google.com

View File

@@ -161,12 +161,4 @@
If equals to 0, it means there's no limit on the max number of channels to include per network.-->
<integer translatable="false" name="config_wifiInitialPartialScanMaxNewChannelsPerNetwork">3</integer>
<!-- Boolean indicating whether to disable firmware roaming when the device goes into idle mode.
true: firmware roaming will be disabled when the device goes into idle mode, and then
re-activated when the device exits idle mode.
false: firmware roaming will not be affected. -->
<bool translatable="false" name ="config_wifiDisableFirmwareRoamingInIdleMode">true</bool>
<!-- Boolean indicating whether to trigger bugreport for WiFi subsystem restart issue -->
<bool translatable="false" name ="config_wifi_subsystem_restart_bugreport_enabled">false</bool>
</resources>

View File

@@ -2,14 +2,12 @@ genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/backlight
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/panel_name u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/serial_number u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/refresh_rate u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/power_state u:object_r:sysfs_display:s0
genfscon sysfs /firmware/devicetree/base/drmdsim@0x1C2C0000/panel@0/compatible u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/backlight u:object_r:sysfs_leds:s0
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/panel_name u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/serial_number u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/refresh_rate u:object_r:sysfs_display:s0
genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/power_state u:object_r:sysfs_display:s0
genfscon sysfs /firmware/devicetree/base/drmdsim@0x1C2D0000/panel@0/compatible u:object_r:sysfs_display:s0
genfscon sysfs /module/drm/parameters/vblankoffdelay u:object_r:sysfs_display:s0

View File

@@ -1,6 +1,9 @@
# ConnectivityThermalPowerManager
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/connectivity_thermal_power_manager
# ramdump
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/ramdump
# twoshay
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/input
@@ -8,7 +11,7 @@ BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/input
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/googlebattery
# sepolicy that are shared among devices using whitechapel
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs101/sepolicy/whitechapel/vendor/google
BOARD_SEPOLICY_DIRS += device/google/gs101/sepolicy/whitechapel/vendor/google
# unresolved SELinux error log with bug tracking
BOARD_SEPOLICY_DIRS += device/google/gs101/sepolicy/tracking_denials
@@ -29,6 +32,9 @@ SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs101/sepolicy/system_ext/priv
# PowerStats HAL
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/powerstats
# sscoredump
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/sscoredump
# Public
PRODUCT_PUBLIC_SEPOLICY_DIRS += device/google/gs101/sepolicy/public

View File

@@ -1,5 +1,2 @@
# Oriole only sepolicy
BOARD_SEPOLICY_DIRS += device/google/gs101/sepolicy/oriole
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/vibrator/common
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/vibrator/cs40l25
BOARD_SEPOLICY_DIRS += device/google/gs101-sepolicy/oriole

View File

@@ -1,5 +1,2 @@
# Ravne only sepolicy
BOARD_SEPOLICY_DIRS += device/google/gs101/sepolicy/raven
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/vibrator/common
BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/vibrator/cs40l25
BOARD_SEPOLICY_DIRS += device/google/gs101-sepolicy/raven

View File

@@ -1,5 +0,0 @@
typeattribute pixelntnservice_app coredomain;
app_domain(pixelntnservice_app);
allow pixelntnservice_app app_api_service:service_manager find;
set_prop(pixelntnservice_app, telephony_modem_prop)

View File

@@ -5,5 +5,4 @@ persist.fingerprint.ghbm u:object_r:fingerprint_ghbm_prop:s0 exact bool
persist.modem.esim_profiles_exist u:object_r:esim_modem_prop:s0 exact string
# Telephony
telephony.TnNtn.image_switch u:object_r:telephony_modem_prop:s0 exact enum ntn tn
telephony.ril.silent_reset u:object_r:telephony_ril_prop:s0 exact bool

View File

@@ -6,6 +6,3 @@ user=_app isPrivApp=true seinfo=platform name=com.google.android.connectivitymon
# HbmSVManager
user=_app seinfo=platform name=com.android.hbmsvmanager domain=hbmsvmanager_app type=app_data_file levelFrom=all
# PixelNtnService
user=system seinfo=platform name=com.google.android.satellite domain=pixelntnservice_app type=app_data_file levelFrom=all

View File

@@ -1 +0,0 @@
type pixelntnservice_app, domain;

View File

@@ -6,8 +6,7 @@ system_vendor_config_prop(esim_modem_prop)
# Telephony
system_public_prop(telephony_ril_prop)
system_restricted_prop(telephony_modem_prop)
userdebug_or_eng(`
set_prop(shell, telephony_ril_prop)
')
')

View File

@@ -0,0 +1 @@
type pktrouter_device, dev_type;

View File

@@ -0,0 +1,4 @@
# WFC
/vendor/bin/wfc-pkt-router u:object_r:pktrouter_exec:s0
/dev/umts_wfc[01] u:object_r:pktrouter_device:s0

View File

@@ -0,0 +1,7 @@
allow netutils_wrapper pktrouter:fd use;
allow netutils_wrapper pktrouter:fifo_file write;
allow netutils_wrapper pktrouter:netlink_route_socket { read write };
allow netutils_wrapper pktrouter:packet_socket { read write };
allow netutils_wrapper pktrouter:rawip_socket { read write };
allow netutils_wrapper pktrouter:udp_socket { read write };
allow netutils_wrapper pktrouter_device:chr_file rw_file_perms;

View File

@@ -0,0 +1,14 @@
type pktrouter, domain;
type pktrouter_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(pktrouter)
net_domain(pktrouter)
domain_auto_trans(pktrouter, netutils_wrapper_exec, netutils_wrapper);
allow pktrouter pktrouter_device:chr_file rw_file_perms;
allow pktrouter radio_device:chr_file r_file_perms;
allow pktrouter self:netlink_route_socket nlmsg_write;
allow pktrouter self:packet_socket { bind create read write getattr shutdown};
allow pktrouter self:capability net_raw;
get_prop(pktrouter, vendor_ims_prop);

View File

@@ -0,0 +1 @@
vendor_internal_prop(vendor_ims_prop)

View File

@@ -0,0 +1,3 @@
# for ims service
vendor.pktrouter u:object_r:vendor_ims_prop:s0

Some files were not shown because too many files have changed in this diff Show More