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

fix assertions for angler mdb08l #6

Closed Inphi closed 8 years ago

Inphi commented 8 years ago

The page size of the mdb08l boot.img is 32767. Assertions need to be updated for super-bootimg to do its thing.

phhusson commented 8 years ago

32767?!? A page size not a power of two is REALLY unlikely And then, abootimg says it's 4096: angler-mdb08l % abootimg -i boot.img

Android Boot Image Info:

And I don't hit the assert when building by myself. Perhaps you hadn't rebuild the tools before-hand ? The older prebuilt binary were still as old as 2048-only pagesize I updated them

Inphi commented 8 years ago

you're right. That was the issue. When I saw the assertion errors, I looked at the boot.img manually myself and mixed up the endianness. The odd page size should have been a giveaway.

phhusson commented 8 years ago

no problem