p1-common: changes for TWRP

Change-Id: I1e707b33fc45f6e2fa646d03139350bb79beaf82