mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 11:11:22 +00:00
customize: Validate CPU architecture before installing
This commit is contained in:
parent
3a110a895e
commit
e82c3d0674
@ -1,5 +1,14 @@
|
||||
#!/sbin/sh
|
||||
|
||||
# We check the native ABI instead of all supported ABIs because this is a system
|
||||
# service, and underlying AIDL/HIDL ABIs may not match. We also link against other
|
||||
# system libraries.
|
||||
arch="$(getprop ro.product.cpu.abi)"
|
||||
if [[ "$arch" != "arm64-v8a" ]]; then
|
||||
ui_print "Unsupported CPU architecture: $arch"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sdk="$(getprop ro.build.version.sdk)"
|
||||
version="$(getprop ro.vendor.build.version.release)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user