Closed pommedeterresautee closed 11 years ago
Well, it isn't that easy. It is all in /system/build.prop file. The perfect place is "ro.product.name". However, there are variations between different manufacturers and devices. Some keep it is "ro.product.name" which is normally used for region specific variations. Some keep an extension like "GT-I9100" where the codename is just "i9100". And then there are custom ROM's which does all the messing-up possible. Lastly, there are user modifications. All these make it difficult to automatically detect. It's best to leave it to the user to choose. Of-course, you can do some filtering and so on to make it easier.
Thank you for your answer, I just checked of my phone, and you are right it is not standardized. I've an idea for a more clean way... I keep you in touch if I have something sure.
You have a list of devices codenames here https://github.com/ameer1234567890/OnlineNandroid/blob/master/part_layouts/codenames .
To include your script in my application I need to recognize the phone and install the partition table file. Can you tell me please where you get the name as the basic API from the SDK doesn't give the correct result?
Thank you