1. Are you ready for the Galaxy S20? Here is everything we know so far!

[dev] ensuring your rom only flashes on the intended phone model

Discussion in 'Android Devices' started by DRockstar, Sep 17, 2011.

  1. DRockstar

    DRockstar Newbie
    Thread Starter

    For the record, I'm putting these tutorials in the second post of the All in One Root thread, but I didn't think some would think to look there, and this is important information for all ROM developers, especially for the indulge phone, since both models have different mounts and ROMs between the two really shouldn't be mixed if the mount points are used, or kernels are involved.

    ENSURING YOUR ROM ONLY FLASHES ON THE INTENDED PHONE MODEL

    Since the SCH-R910 (MetroPCS) and SCH-R915 (Cricket) phone models differ in their mounts, ROMs that use model exclusive mount points and kernels should have an assert included in the top of the updater-script to ensure that the zip will only flash on the intended phone model. This can be achieved by using the foollowing edify script:
    Code (Text):
    1. ui_print("Verifying Phone Model...");
    2. assert(getprop("ro.product.device") == "SCH-R910" ||
    3.        getprop("ro.build.product") == "SCH-R910");
    This will prevent a lot of borks we have to deal with in the IRC channels due to someone with with a Cricket model flashing a MetroPCS ROM, for example.
     


    tiede and isujoy like this.

    1. Download the Forums for Android™ app!


      Download

       
  2. PlayfulGod

    PlayfulGod Extreme Android User

    yea CM does this automatically when it packages after compiling.

    Very good info and a must for phones like the indulge.
     

Samsung Galaxy Indulge Forum

The Samsung Galaxy Indulge release date was February 2011. Features and Specs include a 3.5" inch screen, 3MP camera, GB RAM, processor, and 1500mAh battery.

February 2011
Release Date
0
Reviews
Loading...

Share This Page

Loading...