Last active
November 20, 2024 02:22
-
-
Save ThEMarD/142cb35b24304b627deff955a9c91ab9 to your computer and use it in GitHub Desktop.
Get Motorola build fingerprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOURCE=$1 | |
PRODUCT_MANUFACTURER=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.manufacturer= | cut -c 32-) | |
SYSTEM_NAME=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.name= | cut -c 24-) | |
SYSTEM_DEVICE=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.device= | cut -c 26-) | |
VERSION_RELEASE=$(cat $SOURCE/system/system/build.prop | grep ro.system.build.version.release= | cut -c 33-) | |
VENDOR_BUILD_ID=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.id= | cut -c 20-) | |
VENDOR_VERSION_INCREMENTAL=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.version.incremental= | cut -c 37-) | |
SYSTEM_VERSION_INCREMENTAL=$(cat $SOURCE/system/system//build.prop | grep ro.system.build.version.incremental= | cut -c 37-) | |
SYSTEM_BUILD_TYPE=$(cat $SOURCE/system/system/build.prop | grep ro.system.build.type= | cut -c 22-) | |
SYSTEM_BUILD_TAGS=$(cat $SOURCE/system/system/build.prop | grep ro.system.build.tags= | cut -c 22-) | |
SECURITY_PATCH=$(cat $SOURCE/system/system/build.prop | grep ro.build.version.security_patch= | cut -c 33-) | |
echo $SYSTEM_NAME-$SYSTEM_BUILD_TYPE $VERSION_RELEASE $VENDOR_BUILD_ID $VENDOR_VERSION_INCREMENTAL-$SYSTEM_VERSION_INCREMENTAL $SYSTEM_BUILD_TAGS | |
echo $PRODUCT_MANUFACTURER/$SYSTEM_NAME/$SYSTEM_DEVICE:$VERSION_RELEASE/$VENDOR_BUILD_ID/$VENDOR_VERSION_INCREMENTAL-$SYSTEM_VERSION_INCREMENTAL:$SYSTEM_BUILD_TYPE/$SYSTEM_BUILD_TAGS | |
echo | |
echo security patch: $SECURITY_PATCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example:
themard@themard-ubuntumate:/media/themard/SSHD/blobs$ ./moto_build_fingerprint.sh XT2175-1_XPENG_RETEU_12_S1RXS32.50-13-23_subsidy-DEFAULT_regulatory-XT2175-1-EU_cid50_CFC.xml
xpeng_g-user 12 S1RXS32.50-13-23 37821c-6bd54 release-keys
motorola/xpeng_g/xpeng:12/S1RXS32.50-13-23/37821c-6bd54:user/release-keys
security patch: 2023-11-01