Commit f2ca0429 authored by topjohnwu's avatar topjohnwu

Fix script for handling .apex files

parent 1060dd29
...@@ -313,9 +313,10 @@ mount_apex() { ...@@ -313,9 +313,10 @@ mount_apex() {
if [ -f $APEX ]; then if [ -f $APEX ]; then
# APEX APKs, extract and loop mount # APEX APKs, extract and loop mount
unzip -qo $APEX apex_payload.img -d /apex unzip -qo $APEX apex_payload.img -d /apex
DEST=/apex/$(unzip -qp $APEX apex_manifest.pb | strings | head -n 1) DEST=$(unzip -qp $APEX apex_manifest.pb | strings | head -n 1)
[ -z $DEST ] && DEST=/apex/$(unzip -qp $APEX apex_manifest.json | sed -n $PATTERN) [ -z $DEST ] && DEST=$(unzip -qp $APEX apex_manifest.json | sed -n $PATTERN)
[ -z $DEST ] && continue [ -z $DEST ] && continue
DEST=/apex/$DEST
mkdir -p $DEST mkdir -p $DEST
loop_setup /apex/apex_payload.img loop_setup /apex/apex_payload.img
if [ ! -z $LOOPDEV ]; then if [ ! -z $LOOPDEV ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment