HD2 How to change serial for development


ian mc

Members
Mar 19, 2013
3
11
Hi, I have the MIUI ROM 2.3.30 on my HD2 which I run from the SD card.

I do development with android and I have to keep swapping the usb leads between my HD2 and my Momo8 tablet because they both appear on the ADB as having the same serial number of

0123456789ABCDEF

I tried adding a line to the startup.txt file so that the whole file looks like this:

set serial 12345
set mtype 2524
set ramaddr 0x11800000
set ramsize 0x1e400000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
set cmdline "rel_path=Android_Yugo data_size=1024 lcd_density=240 gps_zone=uk"
boot

### Leave cmdline as default if you don't know what you are doing ###
# default: set cmdline "rel_path=Android"
# sample: set cmdline "rel_path=Android data_size=512 lcd_density=200 gps_zone=us"

### Meaning of Variable ##################################################
# rel_path: folder name of the build#
# data_size: size of data.img, 1024 means 1024MB#
# lcd_density: default value for android is 240
# gps_zone: country code, us, fr, jp, etc.
### Leave cmdline as default if you don't know what you are doing ###
i added the set serial 12345 line
but nope. doesn't work.
Do you know how I can change the serial?
Doesn't really matter what I change it to, just as long as I can change it.
Thanks
ian
 
hello, more information please !.what serial would you change ? usb serial or imei number ? have you a usb hub ?

regards ,
 
Hi the ADB is the Android Debugging Bridge which connects via a USB cable.
Sorry for not making that clear.

It would seem that if the device doesn't have a serial number set then it gets one assigned as 0123456789ABCDEF

Nothing to do with the IMEI number.

Any help much appreciated, cheers.