mirror of
https://github.com/Evolution-X-Devices/device_google_redbull
synced 2026-02-01 09:20:23 +00:00
init: Don't read serial_number
Pixels use ro.product.model for product, this has no effect Change-Id: I6caea23a88986633ed25df5ae45fde857bb0fb60
This commit is contained in:
committed by
Michael Bestas
parent
a6fc35ef6c
commit
3b0a12b85b
@@ -157,13 +157,6 @@ esac
|
||||
|
||||
# check configfs is mounted or not
|
||||
if [ -d /config/usb_gadget ]; then
|
||||
# Chip-serial is used for unique MSM identification in Product string
|
||||
msm_serial=`cat /sys/devices/soc0/serial_number`;
|
||||
msm_serial_hex=`printf %08X $msm_serial`
|
||||
machine_type=`cat /sys/devices/soc0/machine`
|
||||
product_string="$machine_type-$soc_hwplatform _SN:$msm_serial_hex"
|
||||
echo "$product_string" > /config/usb_gadget/g1/strings/0x409/product
|
||||
|
||||
# ADB requires valid iSerialNumber; if ro.serialno is missing, use dummy
|
||||
serialnumber=`cat /config/usb_gadget/g1/strings/0x409/serialnumber` 2> /dev/null
|
||||
if [ "$serialnumber" == "" ]; then
|
||||
|
||||
Reference in New Issue
Block a user