phhusson / super-bootimg

Tools to edit Android boot.img. NDK buildable, to be usable in an update.zip
GNU General Public License v3.0
226 stars 121 forks source link

modified checkNexus.sh as checkNexusNewer.sh to add only Marshmallow … #18

Closed Haul22 closed 8 years ago

Haul22 commented 8 years ago

…images and only add images for devices which we've already added

Haul22 commented 8 years ago

The checkNexus.sh script as two main problems: 1) It adds really old images like ICS and Jelly Bean. 2) It adds old EOL devices which don't even have Marshmallow images available, such as the Nexus S and Galaxy Nexus.

I've modified your checkNexus.sh script to add images only if a device is already in the repository, and only if the image is Marshmallow (by checking if the "release" starts with an M).

I've tested the output of the new checkNexusNewer.sh script and it produced these files:

known-imgs/nexus/angler/MDA89D
known-imgs/nexus/angler/MDB08K
known-imgs/nexus/angler/MMB29N
known-imgs/nexus/angler/MTC19V
known-imgs/nexus/bullhead/MDA89E
known-imgs/nexus/bullhead/MDB08I
known-imgs/nexus/bullhead/MDB08L
known-imgs/nexus/bullhead/MMB29V
known-imgs/nexus/bullhead/MTC19V
known-imgs/nexus/fugu/MOB30M
known-imgs/nexus/fugu/MRA58K
known-imgs/nexus/hammerhead/MOB30M
known-imgs/nexus/razor/MOB30M
known-imgs/nexus/razor/MRA58K
known-imgs/nexus/razor/MRA58U
known-imgs/nexus/razor/MRA58V
known-imgs/nexus/razorg/MMB30H
known-imgs/nexus/razorg/MMB30J
known-imgs/nexus/razorg/MOB30M
known-imgs/nexus/razorg/MRA58K
known-imgs/nexus/razorg/MRA58N
known-imgs/nexus/razorg/MRA59B
known-imgs/nexus/ryu/MXB48J
known-imgs/nexus/ryu/MXC89H
known-imgs/nexus/shamu/MMB30J
known-imgs/nexus/shamu/MOB30M
known-imgs/nexus/shamu/MRA58K
known-imgs/nexus/shamu/MRA58N
known-imgs/nexus/volantis/MOB30M
known-imgs/nexus/volantis/MRA58K
known-imgs/nexus/volantisg/MMB29K
known-imgs/nexus/volantisg/MMB29R
known-imgs/nexus/volantisg/MMB29S
known-imgs/nexus/volantisg/MMB29V
known-imgs/nexus/volantisg/MOB30M
known-imgs/nexus/volantisg/MRA58K
known-imgs/nexus/volantisg/MRA58N

These files include today's security updates as well as about 30 older Marshmallow images. This newer script would make it easier to generate new image files in the future, at the cost of adding a bunch of older images.

Given that Android build numbers aren't always alphanumerically increased (e.g. MHC19I can be newer than MMB29V despite coming earlier in the alphabet), it is difficult to automatically determine what the newest available build is. This new script seems like a godo compromise.

Haul22 commented 8 years ago

Closing this. I'll submit a replacement soon.