Giter Site home page Giter Site logo

Comments (4)

mmirg avatar mmirg commented on August 19, 2024

Increasing the size of the image using count=2194629 (which I imagine is too big since du says that the rootfs directory is 2110834 but I bumped it up just in case) allowed the script to run and for successful rooting.

from aroc.

nolirium avatar nolirium commented on August 19, 2024

Just wanted to (belatedly) say thanks for both pointing this issue out, and following up with your workaround.

I've now had a chance to inspect the Pixelbook recovery image (but not the Pixelbook itself unfortunately), and I can see that its system.raw.img is indeed about double the size of the older Intel Chromebook's. Comparing the files therein with e.g. the R11's, the difference appears to be the inclusion of x84_64 compatible files, where previously the subsystem appeared to only contain (and support) x86. Interesting! ...The chief space hog seems to be the 64 bit PrebuiltGmsCoreRelease. I wonder if all the newer Chromebooks will support 64 bit Android going forward.

Anyway, It looks we can quite easily add a conditional to the script which checks for ro.product.cpu.abilist64=x86_64, perhaps by reading build.prop, or maybe piping getprop to the android-sh script, e.g. printf "getprop ro.product.cpu.abilist64" | android-sh then adjusting the size of the created container accordingly.

Maybe something slightly smaller than what worked for you would be good for now, although I guess we may want to reserve some extra space for potential customizations, such as hosts files, extra fonts and so on (per the other open issue here, the rooting process currently breaks certain non-English fonts which are mounted in a weird way from Chrome OS, and the easiest fix appears to be just copying the required ones over into /system/fonts/chromeos, which can take up extra space...

Coming from a device with 16 gigs of storage, I've been keen to preserve 'disk space', although this is less of an issue on the newer devices, I suppose...

from aroc.

hall757 avatar hall757 commented on August 19, 2024

Take advantage of sparse files to use just enough space and no more on the real file system.

/usr/bin/truncate/truncate -s 2G /usr/local/Android_Images/system.raw.expanded.img

from aroc.

nolirium avatar nolirium commented on August 19, 2024

Interesting suggestion, will look into this. Cheers!

from aroc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.