These are personal test builds of mine. In no way do I hold responsibility if it/you messes up your device. Proceed at your own risk.
Install repo tool from here: https://gerrit.googlesource.com/git-repo
Initialize and sync minimal manifest TWRP: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
Clone device tree:
# Assuming you're in the synced TWRP repo
mkdir -p device/oneplus
git clone https://github.com/arminask/android_device_oneplus_hotdog device/oneplus/hotdog
To build, execute these commands in order
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export LC_ALL=C
lunch twrp_hotdog-eng
mka adbd recoveryimage
To test it:
# To temporarily boot it
fastboot boot out/target/product/hotdog/recovery.img
# Since 7T / Pro has a dedicated recovery partition, you can flash the recovery with
fastboot flash recovery recovery.img
Blocking checks
- Correct screen/recovery size
- Working Touch, screen
- Backup to internal/microSD
- Restore from internal/microSD
- reboot to system
- ADB
Medium checks
- update.zip sideload
- UI colors (red/blue inversions)
- Screen goes off and on
- F2FS/EXT4 Support, exFAT/NTFS where supported (F2FS support is untested)
- all important partitions listed in mount/backup lists
- backup/restore to/from external (USB-OTG) storage
- backup/restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
- decrypt /data
- Correct date
Minor checks
- MTP export (Untested)
- reboot to bootloader
- reboot to recovery
- poweroff
- battery level
- temperature
- encrypted backups (Untested)
- input devices via USB (USB-OTG) - keyboard, mouse and disks
- USB mass storage export (Untested)
- set brightness
- vibrate
- screenshot
- partition SD card (Device doesn't have an SD card slot)
- Flashing ROMs (custom OS's)
- all important partitions listed in mount/backup lists
- MTP export
- ADB: sideload, push/pull, logcat, shell
- FBEv1: decrypt /data - Only working for Custom OS's (not tested on STOCK)
- FBEv1: decrypt /data/media (internal storage)
- Backup/Restore to/from internal storage
- A/B slot switching
- F2FS support
- backup/restore to/from external (USB-OTG) storage
- backup/restore to/from adb
- adb connection only starts working when user decrypts userdata on TWRP bootup prompt. Not sure if it's by design, but expected functionality is adb starts working immediately on bootup. This will mainly affect users who use roms with different userdata encryption, to get around it, start adb sideloading and then cancel it, adb connection will start working normally.
- Rabilgic hotdogb device tree for reference to fix slot switching
- AXP-OS / steadfasterX for modifying TWRP tree
- CaptainThrowback for original trees.
- mauronofrio for original trees.
- TWRP team and everyone involved for their amazing work.
- SystemAD for the further development on these trees