otasigcheck: skip otasigcheck in headless mode

We should assume that headless mode is going to handle data wipe as
needed.

Change-Id: Iea01a061458f5b5ecc881e41ec8ac2200722eeed
This commit is contained in:
Brint E. Kriebel 2014-11-28 17:39:21 -08:00
parent 3428311ad8
commit 1d055a3fbc

View File

@ -9,6 +9,12 @@ if [ $? -eq 0 ]; then
exit 0 exit 0
fi fi
grep -q "Command:.*\"--headless\"" /tmp/recovery.log
if [ $? -eq 0 ]; then
echo "Headless mode install; skipping signature check..."
exit 0
fi
if [ -f /data/system/packages.xml -a -f /tmp/releasekey ]; then if [ -f /data/system/packages.xml -a -f /tmp/releasekey ]; then
relCert=$(grep -A3 'package name="com.android.htmlviewer"' /data/system/packages.xml | grep "cert index" | head -n 1 | sed -e 's|.*"\([[:digit:]][[:digit:]]*\)".*|\1|g') relCert=$(grep -A3 'package name="com.android.htmlviewer"' /data/system/packages.xml | grep "cert index" | head -n 1 | sed -e 's|.*"\([[:digit:]][[:digit:]]*\)".*|\1|g')