corbindavenport / nexus-tools

Installer for ADB, Fastboot, and other Android tools on Linux, macOS, Chrome OS, and Windows
http://forum.xda-developers.com/general/general/tool-nexus-tools-2-8-featured-xda-t3258661
GNU General Public License v3.0
844 stars 86 forks source link

Acer C720 Chromos adb "permission denied" #32

Closed mdeguzis closed 8 years ago

mdeguzis commented 8 years ago

This did nothing after entering shell:

bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)

So I downloading the raw script and ran it after making my / partition rw:

wget https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh
sudo chmod +x install.sh
./install.sh

This installed the tools fine, but I had to do this, per the readme below. I don't think nexus tools is properly added to path. Any new tab with shell doesn't show it.

PATH=~/.nexustools:$PATH

This piece of code seems to do nothing to ~/.bash_profile:

echo "[INFO] Adding $HOME/.nexustools to \$PATH..."
PATH=~/.nexustools:$PATH echo 'export PATH=$PATH:~/.nexustools' >> ~/.bash_profile

Running that last command as a normal user adds it fine. Once I added this to the path, everything worked.

So... I would suggest this be added to the readme for ChromeOS folks

If you have read/write access to your file system first, or bash execute will not work, in which you must run 'bash install.sh'. Otherwise, './install.sh' will work fine.

wget https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh sudo chmod +x install.sh ./install.sh

Run the following command if ~/.bash_profile is unaltered:

PATH=~/.nexustools:$PATH echo 'export PATH=$PATH:~/.nexustools' >> ~/.bash_profile

corbindavenport commented 8 years ago

Do you know the commands/steps required to make the file system RW?

mdeguzis commented 8 years ago

See: https://sites.google.com/site/cr48ite/getting-technical/remove-rootfs-verification-make-read-write

However, do note that I had to use --partitions 2 instead of --partitions 4. You can double check this by ommitting the partitions argument, as it should warning/exit with the proper command. This does require developer mode, as commonly known for things like crouton.

corbindavenport commented 8 years ago

Thanks, I've created a wiki page with the instructions and linked to it in the readme.