diff --git a/proprietary-files.txt b/proprietary-files.txt index 0a7f738..76cebcd 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -31,11 +31,11 @@ lib64/libdpmctmgr.so|20101d5929ba97f16083ad9c71933111cb9ae8ff lib64/libdpmfdmgr.so|45061fee7721b8f94aef431f589e4024d4eae374 lib64/libdpmframework.so|623095565a453e10498a5a28ef689f52c85e8784 lib64/libdpmtcm.so|1b43a23871a0a247e4adbe1e63c5e0864740938b -lib/com.qualcomm.qti.dpm.api@1.0.so|5611079765fce66c5997eb61ae64ec2e7d7eadda -lib/libdpmctmgr.so|39a22fed0691797322ad3361ab064cce944a1621 -lib/libdpmfdmgr.so|cbba45c4b84d0eea7b014fb7b9b861fc62607d9f -lib/libdpmframework.so|b2af27bc930e61d06cbbb9c90d5f150354708630 -lib/libdpmtcm.so|326cc53ac27ef6598a61ca257ac080eaee6090a5 +lib/com.qualcomm.qti.dpm.api@1.0.so|2f0691c71c5c8d2330f5db04582cf766c192d465 +lib/libdpmctmgr.so|995723ead7cf4519cbf0f6ce709f1815d28198ae +lib/libdpmfdmgr.so|9e2dd9627116cc63262cb3752d0b034c97e5304d +lib/libdpmframework.so|b457438cf92795a035af58ef3fe563f33d11a1ed +lib/libdpmtcm.so|2321e7a3678c8a0224702d96a14bbfacfd0b6675 -priv-app/dpmserviceapp/dpmserviceapp.apk|a642336052f3e5d70580700e2aebba230a5f663f # Fingerprint sensor diff --git a/update-sha1sums.sh b/update-sha1sums.sh new file mode 100755 index 0000000..e0cdde6 --- /dev/null +++ b/update-sha1sums.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# +# Copyright (C) 2017 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +filename="proprietary-files.txt" +filelines="$(cat $filename)" +vendor="../../../vendor/realme/sdm710-common/proprietary" + +for line in $filelines ; do + if [[ $line == *"|"* ]]; then + + # Get the name of the blob and remove '-' + # when it is the first character + blob=$(echo $line | cut -f1 -d'|' | sed 's/^-//g') + + # Get the old sha1sum + oldSHA1=$(echo $line | cut -f2 -d'|') + + # Get the new sha1sum from vendor path + newSHA1=$(sha1sum $vendor/$blob | awk '{print $1}') + + # Replace oldSHA1 with newSHA1 + sed -i "s/$oldSHA1/$newSHA1/g" "$filename" + + fi +done