Also check in aosp 8.1

This commit is contained in:
Pierre-Hugues Husson 2018-11-03 20:57:44 +01:00
parent 3f872fa462
commit ad1795f6ed

View file

@ -41,7 +41,9 @@ find -name AndroidManifest.xml |while read manifest;do
grep -qE '^'$key'$' tests/knownKeys && continue
#Run the ag only on phh's machine. Assume that knownKeys is full enough.
#If it's enough, ask phh to update it
if [ -d /build/AOSP-9.0 ] && ag '"'$key'"' /build/AOSP-9.0/frameworks/base/core/res/res > /dev/null;then
if [ -d /build/AOSP-9.0 ] && \
(ag '"'$key'"' /build/AOSP-9.0/frameworks/base/core/res/res || \
ag '"'$key'"' /build/AOSP-8.1/frameworks/base/core/res/res)> /dev/null ;then
echo $key >> tests/knownKeys
else
echo $xml defines a non-existing attribute $key