Comments (4)
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.
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.
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.
Interesting suggestion, will look into this. Cheers!
from aroc.
Related Issues (20)
- HP Chormebook X2 - Intel. Please post working modified script HOT 3
- Busybox file not found error HOT 2
- Architecture detection isn't working properly. "If" statements not evaluating correctly. HOT 4
- sed can't read directory. HOT 3
- Many Errors and files not found. (still need help!) HOT 6
- A lot of files cannot be accessed HOT 3
- Root error on Chromebook X2 (soraka) 72.0.3626.74 Android Pie HOT 1
- android root error su binary not found HOT 4
- Potential sleep duration issue in combined script HOT 1
- Problem with installing xposed
- Root not working on ChromeOS 74 HOT 3
- Error: runcon: exec /system/bin/sh: Permission denied
- No longer works with Chrome OS 77 and up - This project appears abandoned HOT 1
- Cannot root my chromebook! HOT 2
- doesn't work, anyone got a fix?
- just doesn't work no matter what HOT 2
- ERROR: No running Android system found. Unable to patch sepolicy. HOT 2
- Developer mode
- Can't seem to be able to root my chromebook android subsystem whatever I try. HOT 4
- Android apps not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aroc.