android_device_meizu_meilan2 icon indicating copy to clipboard operation
android_device_meizu_meilan2 copied to clipboard

Add 'M2' device assertion

Open Ant95 opened this issue 8 years ago • 2 comments

Just had this case problem to flash this rom on a Meizu M2 (mini). The device was identified as "M2" and not "m2". Not sure if it's the right file to edit to fix the problem as I don't have the required env to build and test it. Anyway to fix my problem I had to edit this file in the zip: "./META-INF/com/google/android/updater-script".

Ant95 avatar Aug 20 '16 22:08 Ant95

Yeah, this is the right file. Meantime the problem is that recovery (or maybe ROM) creators does not follow any convention and are inventing new identifiers. I will include this patch into the next release, but this can be easily broken by new recovery... BTW, which recovery was in use when you encounter the issue?

divis1969 avatar Aug 22 '16 11:08 divis1969

Ok, I didn't know that the device identifier was defined by the recovery itself. I was using a TWRP 3.0 recovery downloaded at: https://drive.google.com/open?id=0ByjTaBzI678NQTBZaTFkNlVYYU0 (Link source: http://www.theverdict.in/how-tos/updated-twrp-3-0-recovery-meizu-m2/)

BTW, I wanted to thank you for your work, everything works fine for now :)

Ant95 avatar Aug 22 '16 12:08 Ant95