m7: update extract script

Change-Id: Id99dfbdca3a6736dff18f8fa483cb95144234e7b