From 7a65923a925b1e816f722997a28cf227cb614d34 Mon Sep 17 00:00:00 2001 From: "Brint E. Kriebel" Date: Thu, 10 Jul 2014 18:00:44 -0700 Subject: [PATCH] otasigcheck: set verification package to com.android.htmlviewer We need to use something that will always be there and not replaced by other packages. Change-Id: Ide942865f284239ae2ae2503005ccc7e8272995c --- prebuilt/common/bin/otasigcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prebuilt/common/bin/otasigcheck.sh b/prebuilt/common/bin/otasigcheck.sh index 49def3c8..f629c0df 100644 --- a/prebuilt/common/bin/otasigcheck.sh +++ b/prebuilt/common/bin/otasigcheck.sh @@ -4,7 +4,7 @@ # system if [ -f /data/system/packages.xml -a -f /tmp/releasekey ]; then - relCert=$(grep -A3 'package name="com.android.providers.calendar"' /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