Commit graph

53 commits

Author SHA1 Message Date
Sushrut1101
fd0474646b hiphi: Exclude the Default USB Init
Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
Signed-off-by: Emmanuel <alzadidine33@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:49:36 +03:00
7Soldier
42a65d2b89 [SQUASH] hiphi: recovery/root: Reorganize init files
Nuke useless init files and import needed.
Refactor main init.

Co-authored-by: Captain Throwback <captainthrowback@hotmail.com>
Co-authored-by: s4704 <igorkud00@gmail.com>
Co-authored-by: TheMalachite <eliasgheeraert@gmail.com>
Co-authored-by: Woomymy <github@woomy.ovh>
Co-authored-by: Andrew Hexen <SyberHexen@gmail.com>
Co-authored-by: Alexander <alexvl1972@hotmail.com>
Co-authored-by: sekaiacg <sekaiacg@gmail.com>
Co-authored-by: nebrassy <nebras30@gmail.com>
Co-authored-by: Aseem Athale <athaleaseem@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:49:04 +03:00
7Soldier
2994aa888c [SQUASH] hiphi: recovery/root: Import TWRP flags and refactor fstab
Co-authored-by: brigudav <brigudav@gmail.com>
Co-authored-by: sekaiacg <sekaiacg@gmail.com>
Co-authored-by: TheMalachite <eliasgheeraert@gmail.com>
Co-authored-by: SVB <shef@intech-stv.ru>
Co-authored-by: Pranav-Talmale <67180305+Pranav-Talmale@users.noreply.github.com>
Co-authored-by: Aseem Athale <athaleaseem@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:48:41 +03:00
7Soldier
0621defba9 hiphi: Move recovery.fstab to system/etc directory
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Adithya R
3275448d84 hiphi: Switch to dot product CPU variant
* hiphi:/ $ cat /proc/cpuinfo | grep -m 1 Features
   Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
   atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc
   dcpop sha3 sm3 sm4 asimddp sha512 asimdfhm dit uscat
   ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint i8mm bti

 * From this, it's evident that our CPU (Snapdragon 8 Gen 1)
   supports all the features of ARMv8.2-DotProd [1].
   Moreover AOSP sets this arch variant in their generic
   cortex-a55 ART target as well [2]. This should unlock
   some optimizations in different code paths.

[1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Sarthak
cf68f2bd15 hiphi: Change sensor used for CPU temp indicator
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Aayush Gupta
7d9289c3d2 hiphi: Include logcat binary in TWRP
- logcat is useful for debugging issues

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
Change-Id: I71b719c92e89a5b38e3d0fe185c3a3665a160791
2023-05-04 15:45:38 +03:00
dianlujitao
f7b4fcbb50 hiphi: Advertise EDL mode
Change-Id: I701407ead4b09d48b6245a506c0b8eed0da4f5c0
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
LuK1337
3ebbff3b71 hiphi: Enable TARGET_RECOVERY_QCOM_RTC_FIX
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
nebrassy
6642851a60 hiphi: Render at 60 FPS
Required commits to pick:
 * https://gerrit.twrp.me/c/android_bootable_recovery/+/5639/1
 * https://gerrit.twrp.me/c/android_bootable_recovery/+/5691/1

Change-Id: I602ec6a5ca4ffbcc01f6eb7e4f35899df0616ae5
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Albert I
3ca5106fb9 hiphi: Define brightness-related flags for TWRP
Saving your time for recursive search of sysfs :)

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
Change-Id: I6eab8dca82f36cfea6af6f40073c6f4981b78cbf
2023-05-04 15:45:38 +03:00
Albert I
aab1993974 hiphi: Disable blank screen on boot
Causes weird display flashes upon boot.

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
SahilSonar
6abbc4d6a6 hiphi: Add masking to hide notch cutout
Change-Id: I944b8532039ffded855b2893f0b360e38700f70e
Signed-off-by: SahilSonar <sss.sonar2003@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Alexander Koskovich
291a4790aa hiphi: Update to Boot Control HAL v1.2
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
7Soldier
a554ca4681 hiphi: gpt-utils: Remove odm from AB_PTN_LIST
Co-authored-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
together08
db40dca405 hiphi: gpt-utils: Add vendor_dlkm to AB_PTN_LIST
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Arian
e6ccc94d4c hiphi: gpt-utils: Drop unused sparse_crc32
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Sushrut1101
dfd6f8f016 hiphi: gpt-utils: Use Generic Kernel Headers
* Kernel source will no longer be needed to build the recovery

Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Akilesh Kailash
f70785956d hiphi: gpt-utils: FSync after block device writes
When markBoolSuccessful is invoked, we update
the partition table. These writes should be
synced before merge operation is resumed post OTA.
If not, any crash before these writes are landed to
backing storage will lead to incorrect switching of
slots.

BUG: 175711601
Test: Verify slot switching correctly after crash when merge in progress
Change-Id: I2da9286490d5d063df0c9d4dc491e0fbf28f51bb
Signed-off-by: Akilesh Kailash <akailash@google.com>
Signed-off-by: sekaiacg <sekaiacg@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Siddeswar Aluganti
7bdb2813f0 hiphi: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

[Also contains partitions information update from sm8350]

Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Benergy Meenan Ravuri
7e8fed40e2 hiphi: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Cosmin Tanislav
d668daaf63 hiphi: Add bootctrl HAL and gpt-utils
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Alessandro Astone
71401010e3 hiphi: Build fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
7Soldier
1e98a27606 [SQUASH] hiphi: Configure missing stuff for A/B
Co-authored-by: s4704 <igorkud00@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: brigudav <brigudav@gmail.com>
Co-authored-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Mohammad Afaneh
808c22c144 hiphi: Exclude fonts data from backup 2023-05-04 15:45:38 +03:00
Synesio Neto
0ba0a62d33 hiphi: Enable NTFS-3G in TWRP Builds
Change-Id: I8c52f22fd868a71ce7e5c92583f85ccb741f8c9c
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Alex Damaratski
b2d39a351f hiphi: Recreate /data/media folder after format data
Change-Id: Ie6aa2792afd073c7f4a07af34239cb4264df3b2e
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Alexander Koskovich
f125bf6f65 hiphi: Build F2FS recovery utilities
Change-Id: Ie6dacddcfc055ddb48a58d262286e256966e077f
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Anirudh Gupta
879c861485 hiphi: Build userdata image as f2fs
Change-Id: Iba951e193144ab3739b0a3c8472e97562b426eca
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
AdarshGrewal
41a30789ba hiphi: motorola_dynamic_partitions -> qti_dynamic_partitions
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Cosmin Tanislav
053ef16e4e hiphi: Inherit emulated storage
Co-authored-by: Captain Throwback <captainthrowback@hotmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Ash Blake
b20bc0953f hiphi: props: Import initial properties
Co-authored-by: sekaiacg <sekaiacg@gmail.com>
Co-authored-by: brigudav <brigudav@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
roynatech2544
bfb4010ef6 hiphi: Build resetprop and libresetprop
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
DarkJoker360
e4c8e4b906 hiphi: Enable back updatable apexes
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Bowgo Tsai
171243a4ef hiphi: Adding GSI keys
Bug: 112293933
Test: build and checks the keys are installed into ramdisk
Change-Id: I216f3900e9511e0929418af050ff964898d0aea1
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Sebastiano Barezzi
992b2a04ec hiphi: Use RSA4096 key also for vbmeta_system
* Per https://android.googlesource.com/platform/external/avb/+/master/README.md#build-system-integration, SHA256_RSA4096 is used if BOARD_AVB_ALGORITHM isn't defined
* We can assume bootloader is able to understand a RSA4096 key for vbmeta_system as well

Change-Id: I1d7a539731add04feb8d89c2234e8050e209c5c1
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
AdarshGrewal
840ea9d871 hiphi: Configure vbmeta for product, system and system_ext
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Jyotiraditya
015f831c0a hiphi: Specify AVB recovery flags
Change-Id: I576883b03b9c4239f9010bbc200179958e6fe95c
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:05 +03:00
Aseem Athale
b9786c41f6 hiphi: Add motorola otacert
Also remove prop override for ro.vendor.build.security_patch
as already set by VENDOR_SECURITY_PATCH

Change-Id: I3a66636547298ec044fe3f0749f0a66d7aaecc73
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
TheMalachite
50bbd8a42f hiphi: Set UTC date to 0
Change-Id: I921c74f2d74cd16d4974ff1ae8f0860f43a64e41
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
TheMalachite
98a59ef459 hiphi: Spoof vendor security patch with anti-rollback hack
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Woomymy
a1be4ae5bf hiphi: Update PLATFORM_VERSION
* Should fix a13 decryption (still works on a12)
* Thanks to peoples on TWRP zulip for the values

Signed-off-by: Woomymy <github@woomy.ovh>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Jeferson
3044d47594 hiphi: Update PLATFORM_VERSION and add PLATFORM_VERSION_LAST_STABLE
Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Garret Kelly
2befb37c00 hiphi: Set BOOT_SECURITY_PATCH during build
This property is now used during boot to provide the TEE-backed
keymaster with the correct boot SPL.  Set it to the platform SPL until
it diverges as part of an update.

Bug: 119549677
Test: verified boot.img has property using avbtool
Change-Id: Ice8e7747059492fc8729128e99119d8678fe5562
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Chris Fries
8881edaba4 hiphi: Set VENDOR_SECURITY_PATCH to platform
Set the VENDOR_SECURITY_PATCH level to match the platform
security patch level.  These are functionally the same.

Bug: 125914443
Change-Id: Ib77ab115d6faabd21958c34e2dae49ec96421fdd
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
7Soldier
ecce8592ee hiphi: Introduce device and model spoofing
Co-authored-by: Zinadin Zidan <zidan44@pixelexperience.org>
Co-authored-by: TTTT555 <albukerko@gmail.com>
Co-authored-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Co-authored-by: luk1337 <priv.luk@gmail.com>
Co-authored-by: sekaiacg <sekaiacg@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
me-cafebabe
074c7804b5 hiphic: Add $(DEVICE_PATH) to TARGET_RECOVERY_DEVICE_DIRS
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Ethan Chen
96b34e2f0b hiphi: Use Soong namespace to avoid device build conflicts
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Alexander Winkowski
a48afdc05b hiphi: Set shipping API level
This is just to reduce logspam.

Change-Id: I02044e3dd0bc42019d0df144c91c13dca692765a
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00
Aseem Athale
57815c8e63 hiphi: Remove TW_USE_TOOLBOX
Toolbox has long been the default in TWRP, this flag is no longer needed
or used. In fact, it is automatically assumed true, unless you
specifically specify TW_FORCE_USE_BUSYBOX.

Change-Id: If19d67f9377481e522a488364bd881c5fb389611
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:44:02 +03:00