Closed deadpixel134 closed 2 years ago
Sorry for my late response.
Thank you for using this script. Did you meet all the Preconditions?
Especially mount -o remount,rw /
?
The scirpt was written for ChromeOS R90 Stable Rammus. So I can't promise it will work with other Versions too.
I don't know much about linux, so I didn't know mount -o remount,rw /
works or not. but I thought there's no error message so It worked.
If you tell me how to check mount -o remount,rw /
worked or what I should do make this command works, I'll do that with pleasure.
Sorry for noob's basic question.
In ChromeOS you have 2 overlayed Anroid/Linux Systems. The outer Linux that mounts/starts the inner Android system.
In order to get root installed on Android, you must be already root on the outer Linux in order to mount Linux
in a writable state. To check this, you run this command mount -o remount,rw /
If this works for you, which I guess is
default in Brunch, you should be good to go. You can try to bring you System.raw.img back.
ctrl+alt+t -> crosh> shell
cd $PORTAGE_CONFIGROOT && sudo su
curl -LO https://raw.githubusercontent.com/newbit1/rootCROS/master/rootCROS.sh
export restore=true
bash ./rootCROS.sh
reboot
If this works for you, you can try again.
cd $PORTAGE_CONFIGROOT && sudo su
curl -LO https://raw.githubusercontent.com/newbit1/rootCROS/master/rootCROS.sh
bash ./rootCROS.sh
reboot
Well, restore didn't work, so I'm trying to install rammus 90, so I'll write comment after that
localhost ~ # bash ./rootCROS.sh [-] Moving to the location /usr/local/crosswork [] Re-Execute the script proper bash: /usr/local/crosswork/./rootCROS.sh: Permission denied bash: line 0: exec: /usr/local/crosswork/./rootCROS.sh: cannot execute: Permission denied localhost ~ # bash ./rootCROS.sh [-] Moving to the location /usr/local/crosswork [] Re-Execute the script proper bash: /usr/local/crosswork/./rootCROS.sh: Permission denied bash: line 0: exec: /usr/local/crosswork/./rootCROS.sh: cannot execute: Permission denied localhost ~ # cd /usr/local/crosswork localhost /usr/local/crosswork # bash ./rootCROS.sh [] Restore Backup File of /opt/google/containers/android/system.raw.img rm: cannot remove '/opt/google/containers/android/system.raw.img': No such file or directory [] Backup remains [] Restore Backup File of /etc/selinux/arc/policy/policy.30 [] Backup remains localhost /usr/local/crosswork #
Ok, my apologies for this inconvenience. I will have a look at Rammus 93 and see If I can update the script.
I just check out with Rammus 90 and It worked. Thank you for awesome script. I can close this issue at this moment, but I'll leave this by your decision
Thanks for your feedback. So this points to a difference between Rammus 90 and 93.
Edit: Is fixed now. It seems the SquashFS Tools are removed from the Brunch R93. So I took them from the R90 and added them to the repo. I've tested it with both Versions Rammus R90 and R93, both are working fine now.
Hello! I'm looking for the way to root android subsystem in brunch framework about 3~4 days and I found this repo.
I've tried this repo's rootCROS.sh, and It didn't work.
After I execute rootCROS.sh and reboot, Android subsystem is kinda broken I think.
I'll post my shell text , and thank you in advance!
(Rammus ChromeOS 93)
and after this,
When I reboot after this, It can't open up android apps.