g3: modify for TWRP