otasigcheck: include multi-digit cert indices
If the cert index is greater than 9, we still want to include it. Change-Id: I82787e59557ae0bb7f15da16630d2b0afb7cff06
This commit is contained in:
parent
7a65923a92
commit
63c0f71ea4
@ -4,7 +4,7 @@
|
||||
# system
|
||||
|
||||
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:]]\)".*|\1|g')
|
||||
relCert=$(grep -A3 'package name="com.android.htmlviewer"' /data/system/packages.xml | grep "cert index" | head -n 1 | sed -e 's|.*"\([[:digit:]]\+\)".*|\1|g')
|
||||
|
||||
grep "cert index=\"$relCert\"" /data/system/packages.xml | grep -q `cat /tmp/releasekey`
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user