0

When I flash my Nexus 7 2013 with a rebuilt aosp system.img using fastboot, the data in the partition (as read back by dd) is very slightly different from the system.img data used to flash it. A block of "20..." bytes appears to have moved.

Any idea why? The partition isn't mounted rw at any point (that messes it up even further by setting the superblock s_mtime and s_wtime values).

Update: Actually it seems that just a byte at offset 0x560 has been changed from 0x00 to 0x02. Now that I dig into the details, this is the s_flags of the superblock, with 0x02 representing "Unsigned directory hash in use", which would make some sense (although "Signed directory hash in use" would make more sense given I'm using dm-verity).

I still don't think it should be modifying the data given that it is never mounted rw though...

  • 1
    'A block of "20..." bytes appears to have moved.' Could you be more specific? Are you missing some bytes from the end of the filesystem? How many? Where have they moved to? – Dan Hulme Nov 26 '14 at 16:44
  • Good question - posting edited to add the details. – lane Nov 27 '14 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.