Skip to content

Commit

Permalink
init: Don't read serial_number
Browse files Browse the repository at this point in the history
Pixels use ro.product.model for product, this has no effect

Change-Id: I6caea23a88986633ed25df5ae45fde857bb0fb60
  • Loading branch information
mikeNG committed May 24, 2023
1 parent f3eb1ca commit b02d889
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions init.qcom.usb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,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
Expand Down

0 comments on commit b02d889

Please sign in to comment.