6 Commits

Author SHA1 Message Date
bgkim
d93d355fb6 bootctrl: fixed OOB read in BootControl
Fixed OOB read in BootControl::isSlotMarkedSuccessful() by checking
if "in_slot" is negative

Flag: EXEMPT bugfix
Test: tested on Husky device
Bug: 353516777
Signed-off-by: bgkim <bgkim@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b584b9c7e081d803b32f0ff5f059573dfa6c0a0e)
Merged-In: I634c32a8c12403008fe5a724bc447f82931ae9c5
Change-Id: I634c32a8c12403008fe5a724bc447f82931ae9c5
2024-09-20 00:18:45 +00:00
Jason Chiu
ec2a9a0c7a gs-common: bootctrl: integrate blowAR() for gs101 & zuma
Common bootcontrol use zuma version for the base, and blowAR()
can't be used by gs101. So we need to port ag/18743149 into
common bootcontrol.

Bug: 313615120
Change-Id: I25febde96a56279e6592a6d7740be9a2e385543b
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:48 +08:00
Jason Chiu
2a201a74c2 gs-common: bootctrl: check both properties in setActiveBootSlot
properties: ro.boot.bootdevice, ro.boot.boot_devices

Bug: 313092597
Change-Id: Ib158c2b2aadf87b2155c4c268264f06bc659b544
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 09:14:38 +08:00
Jason Chiu
3303171462 gs-common: move bootctrl hal aidl implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I9b8318eee17e51f40577d7f4c6514703483b8eaa
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 00:46:22 +08:00
Sebastian Pickl
60a8e27b76 Revert "gs-common: move bootctrl hal aidl implementation to gs-c..."
Revert submission 25477883-gs-common_bootctrl-aidl

Reason for revert: breaking builds b/314240126

Bug: 314240126

Reverted changes: /q/submissionid:25477883-gs-common_bootctrl-aidl

Change-Id: Id9d272e7f9832a5b27b2c02d50665ee1b26ae9f8
2023-12-01 11:30:35 +00:00
Jason Chiu
34acb6f0b5 gs-common: move bootctrl hal aidl implementation to gs-common
copy from device/google/zuma/interfaces/boot
  $ git log --oneline -1 interfaces/boot/
    193e5e8 zuma:interfaces:boot: add aidl interface support

Bug: 265063384
Change-Id: I6f21c4af66a8404b34bc1ab5cce108f23e1962b3
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-28 16:11:54 +08:00