You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
validate security patch date
This commit is contained in:
@@ -41,7 +41,8 @@ if [ "$TODAY" -ge "$vendor_patch_after_1y" ]; then
|
||||
[ -z "$security_patch" ] && security_patch=$(getprop ro.build.version.security_patch)
|
||||
|
||||
formatted_security_patch=$(echo "$security_patch" | sed 's/-//g')
|
||||
if [ -n "$formatted_security_patch" ]; then
|
||||
security_patch_after_1y=$(echo "$formatted_security_patch + 10000" | bc)
|
||||
if [ -n "$formatted_security_patch" ] && [ "$TODAY" -lt "$security_patch_after_1y" ]; then
|
||||
TS_version=$(grep "versionCode=" "$TS/module.prop" | cut -d'=' -f2)
|
||||
if [ "$TS_version" -lt 158 ]; then
|
||||
resetprop ro.vendor.build.security_patch "$security_patch"
|
||||
|
||||
Reference in New Issue
Block a user