Use the AT+EGMR command with parameters set for writing ( 1 ) to the IMEI field ( 7 ). Instructions to change the IMEI - PinePhone - PINE64 Forum
# Connect to EC25 at 115200 baud AT # Response: OK quectel ec25 change imei