ceriswhite / cranberry Goto Github PK
View Code? Open in Web Editor NEWRooting the ChromeOS Android Subsystem post v77
License: Other
Rooting the ChromeOS Android Subsystem post v77
License: Other
Script output:
mke2fs 1.45.6 (20-Mar-2020)
Discarding device blocks: done
Creating filesystem with 384000 4k blocks and 96000 inodes
Filesystem UUID: 9aaf63c8-d481-467f-a825-48b8a6faf1df
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
SELinux set to Permissive.
Copying files into new android image
Errors about acct, dev, or oem are normal
mkdir: cannot create directory '/usr/local/cranberry/new/acct': File exists
mkdir: cannot create directory '/usr/local/cranberry/new/dev': File exists
stat: cannot statx '/usr/local/bin/busybox': No such file or directory
stat: cannot statx '/usr/local/cranberry/supersu/supersu.zip': No such file or directory
File did not download correctly! Retrying.
Unzipping SuperSU...
Installing SU.
Do NOT edit /usr/share/arc-setup/config.json. Making changes to this file will permanently trash your new image.
If you want to make changes to your system, remove the symlink, reboot, and mount it as a loop device using
"mount -o loop,rw,sync /usr/local/cranberry/system.rooted.img /usr/local/cranberry/new"
Patching SELinux. Android apps will stop working until reboot.
supolicy v2.82 (ndk:x86) - Copyright (C) 2014-2017 - Chainfire & CCMT
Patching policy [/var/run/arc/sdcard/default/emulated/0/Download/policy.30] --> [/var/run/arc/sdcard/default/emulated/0/Download/policy.30_new] ...
libsepol.policydb_index_others: security: 1 users, 4 roles, 1903 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 99 classes, 29564 rules, 0 cond rules
- Success
Reboot and enjoy!
And Android apps are not closed after completed.
Android version is still 9 (Pie).
Welcome to crosh, the Chrome OS developer shell.
If you got here by mistake, don't panic! Just close this tab and carry on.
Type 'help' for a list of commands.
If you want to customize the look/behavior, you can use the options page.
Load it by using the Ctrl-Shift-P keyboard shortcut.
crosh> shell
chronos@localhost / $ curl https://raw.githubusercontent.com/RennBurris/CrAnberry/main/cranberry.sh | sudo sh
System Image already replaced with symlink?
There's a symlink in place for the android image, but no original image to work with?
Get a copy of your device's system.raw.img and put it in "/opt/google/containers/android/"
rm: cannot remove '/opt/google/containers/android/system.raw.img': No such file or directory
I'm currently in their beta and they started supporting arm v8 applications and I feel like you guys should try upgrading it.
Now android dir is /opt/google/vms/android
Please, fix the script as soon as possible if you are able to do so.
Thx
I know this is probably useless information but some ARM chromebooks are being updated to the Android 11 subsystem (ArcVM). So this may not work anymore on more Chromebooks.
Hi, sorry my english, after doing root in my dell 11 3180, chromeos 103, is working well (thanks!!!) but i lost more than 1GB disk space
I see a file system.rooted.img is almost 1GB, maybe i can erase a backup or something to recover the lost space? sadly i needed to uninstall cranberry because this, but i really want a rooted android, but with limited space 1GB+ is too much
I was thinking in create a ext2 partition in a SD card and move this file there, then symlink or something... i see the file is in
/mnt/stateful_partition/dev_image/cranberry
/usr/local/cranberry
thanks!
I can install it just fine, but then android apps fail to launch. Unlike chrome os 98 where everything seemed to work just fine.
Using Lenovo Chromebook duet installation halts with the several error message:
"Error: No space left on device"
Expanding disk image size (dd seek=1G > 2G) in the script made it work in my case.
The script runs without problems, the policy file is correctly patched with supersu and in /opt/google/containers/android/rootfs/root/system/xbin are all the necessary binaries, but after reboot, the directory /opt/google/containers/android/rootfs/root/ is left empty. I don't know why this happens, I need some help.
and does it matter for selinux to be permissive
I'm a Chinese,and my english is not good now.
Show this after running,how to fix it?
No android system image present in /opt/google/containers/android/
chronos@localhost / $ curl https://raw.githubusercontent.com/CerisWhite/CrAnberry/main/cranberry.sh | sudo bash
0+0 records in
0+0 records out
0 bytes copied, 2.1442e-05 s, 0.0 kB/s
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 384000 4k blocks and 96000 inodes
Filesystem UUID: a389f001-9ef7-4489-b2e9-bd3285382d7b
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
SELinux set to Permissive.
Copying files into new android image
Errors about acct, dev, or oem are normal
*i used it on FydeOS
Magisk can work on systems that can only be mounted as read only. It's fairly cool too! (Magisk modules, edxposed or Lsposed) so that should be your goal instead of the trashy old superSU
Is this is possible to patch android subsidiary container kernel patch using kernel su it is best and easy way if you can compile kernel for it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.