g2: make omni compatible

Change-Id: I1b5bb51f3b1b15dd01752c118de556d0bfa49976
Add TWRP support

Signed-off-by: dr87 <nb00870@gmail.com>
Fix TWRP build