Open sjevtic opened 3 years ago
Does your device have a dedicated cache partition? I haven't seen that on a device in a while.
Does your device have a dedicated cache partition? I haven't seen that on a device in a while.
Same happens on poco f1 when using any a10 or up recoveries. Works fine on a9 recovery. Sadly cant use any a9 recovery on poco x3 pro so scripts in there do not work.
Device codename: samsung_y2s TWRP version: 3.5.2_10-0
WHAT STEPS WILL REPRODUCE THE PROBLEM?
WHAT IS THE EXPECTED RESULT?
TWRP wipes cache and reboots into system.
WHAT HAPPENS INSTEAD?
Nothing. TWRP sits on the main menu indefinitely.
ADDITIONAL INFORMATION
This is core functionality since a system image should be able to expect to perform tasks like a factory reset using the /cache/recovery/command interface.
The breaking change appears to be introduced as part of commit df8436b51ae92449c5b45141d344b14b439bc42b (2020/10/21: fastboot: implement fastbootd in twrp).
Of note, in args::get_args() (bootable/recovery/install/get_args.cpp):
In main() (bootable/recovery/twrp.cpp):
startupArgs::parse(), the caller of args::get_args(), is called before process_recovery_mode(), which which fstab handling/filesystem mounting is performed. The predecessor to args::get_args() (get_args()) was called much later, after filesystem mounting is complete.
On a related housekeeping note, code that is now unreachable as a consequence of this refactor (e.g., get_args()) remains in the project.