[GUIDE][LINUX]How to setup adb and fastboot on Linux for the Robin - Nextbit Robin

Hello Robiners ,
it's been a long time I unlocked my bootloader , but I remember I wrestle a long time to make fastboot able to see my device. Here how to do it :
Requirement:
• Ubuntu (tested on 16.04LTS an 18.04LTS) or Linux
• Admin Password
• Basic knowledge about Linux command line
Step 1 :
Open the terminal and enter this code :
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
Code:
sudo apt-get update
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
Step 2 :
Enter the command
Code:
adb device
Try two or three time and see if your device is recognized (worked on Ubuntu 18.04 LTS the second time)
Step 3 : (Tested and working on Ubuntu 16.04LTS and 18.04LTS )
Enter this command:
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
This will open the 51-android.rules , this file is created when you install fastboot and adb
Go all the way to the bottom of the file and add this code:
Code:
# Nextbit
SUBSYSTEM=="usb", ATTR{idVendor}=="2c3f", MODE="0666", GROUP="plugdev"
Then save and exit gedit.
Step 4:
Enter those command:
Code:
adb kill-server
Code:
adb start-server
Congratulation , your adb is ready to work properly now .
If this helped you press the thank button :good:
Oups , it looks like I posted on the wrong section , my apologies.

Related

OS X .bash_profile

Ok, so i was creating a bash profile following a tutorial to use ADB through terminal
- Download the Android SDK for Macintosh at: Android SDK | Android Developers
- Extract it
- Download Fastboot for OSX (If not included with SDK)
- Extract fastboot and place it in your /tools folder.
- Open up a terminal window
- type: pico .bash_profile (this will create a .bash_profile)
- type the following in the new screen: export PATH=$
{PATH}:<sdkfolder>/tools
- Hit CNTRL + X
- Hit Y (for yes to save)
- It will return you to the terminal screen… type: exit
- Restart terminal.
Click to expand...
Click to collapse
it worked the first time, but i just tried opening terminal again and it wouldn't work, so i started doing it again and i got to where i type export path=$ etc etc. now i screwed up and terminal thought my android SDK was in /users/myname/sdkfolder and not users/myname/android.....no worries i just renamed android to asdkfolder and all was well....
but now when i open terminal i get
-bash: {PATH}:: command not found
i can type
cd /users/myname/sdkfolder/tools and it will change directories but adb shell or fastboot devices doesn't work.
i'm super confused and i've tried googling solutions and found this thread
http://www.droidforums.net/forum/ha...-changing-path-terminal-new-bash-profile.html
who had a similar problem but i'm still stuck.
Last login: Fri Jul 2 21:51:52
-bash: {PATH}:: command not found
new-host:~ myname$ cd /users/myname/sdkfolder/tools
new-host:tools myname$ adb shell
-bash: adb: command not found
new-host:tools myname$ fastboot devices
-bash: fastboot: command not found
new-host:tools myname$
bump for help
i started off using a bash profile and decided it wasn't necessary. just navigate to the folders you need to via terminal. from what i understand it causes more problem then its worth. i know this doesn't answer any questions just my .02 good luck.
I think the new SDK moves ADB to platform-tools.
So if you installed in folder "SDK" the new path should be...
"export PATH=${PATH}:/SDK/platform-tools"
you have to tell the terminal where to look for the command if it isn't in your profile.
I just navigate to the folder my sdk stuff is in then use a ./ infront of the command
Example
./adb shell instead of adb shell

Easier ADB/Fastboot Usage Mac/Linux

Let's pretend you're running Mac OS X or Linux. You might have your adb and fastboot files in a directory such as:
Code:
~/Android/
Which means to execute the command you have to
Code:
cd ~/Android/
then execute
Code:
./adb
You must be thinking, "There has to be a similar way!" Well, there is!
Code:
sudo cp ~/Android/adb /usr/bin
followed by
Code:
sudo cp ~/Android/fastboot /usr/bin
Now, all you have to do, no matter what you're present location in your file system is to simply type whichever command you want. This will probably speed up using the commands and make your time in terminal a little easier.
It is much more efficient to add the ~Android dir to PATH.
If you ever update your android sdk you'd have to copy the files again.
so better:
Code:
export PATH=~/Android:$PATH
if you want it persistent just change your ~/.profile file (depending on your distribution)
same would work in Windows, there you have to set PATH in the system settings.

Ubuntu 12.04lts x64 and adb / fastboot android one x

I usually flash a new ROM for my One X in win7 but I'm sick of restarting computer and logging back into windows everytime I want to do something with my One X. Is there a guide or tutorial or can something let me know how to use fastboot / adb for flashing ROMS. When I try for example; "fastboot flash boot boot.img", it just says unknown command. I'm in the right folder in terminal btw.
try this in the terminal:
sudo apt-get install -y android-tools-adb android-tools-fastboot
This will install the fastboot and adb commands so you can use them in the terminal.
*For adb to work properly you must be working as root (sudo)
svenvv said:
try this in the terminal:
sudo apt-get install -y android-tools-adb android-tools-fastboot
This will install the fastboot and adb commands so you can use them in the terminal.
*For adb to work properly you must be working as root (sudo)
Click to expand...
Click to collapse
Thanks. I put in what you wrote but...
[email protected]:~$ sudo apt-get install -y android-tools-adb android-tools-fastboot
[sudo] password for kris:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package android-tools-adb
E: Unable to locate package android-tools-fastboot
It worked in 12.10 Did a bit of googling though, this keeps popping up:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools*
Thanks. I just tried
wget http://dl.google.com/android/android-sdk_r21.1-linux.tgz
tar xzvf android-sdk_r21.1-linux.tgz
cd android-sdk-linux/tools./android sdk
And now I'm downloading sdk tools, etc through the sdk manager, so hopefully that works, if not I'll try your method.
Cheers
This message did pop up though while installing
Stopping ADB server failed (code -1).
Unable to run 'adb': Cannot run program "/home/kris/android-sdk-linux/platform-tools/adb": error=2, No such file or directory.
Starting ADB server failed (code -1).
Starting The adb server should be done as root, otherwise you'll het errors. Fastboot should work without root though.
Verstuurd van mijn HTC One X met Tapatalk
Still doesn't work after installing the tools...
Sent from my HTC One X using xda premium
shinigamikris said:
Still doesn't work after installing the tools...
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Did you do as above, sudo first then adb commands?
Sent from my HTC One X using xda app-developers app
treebill said:
Did you do as above, sudo first then adb commands?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
[email protected]:~/android-sdk-linux/platform-tools$ dir
aapt aidl dexdump fastboot llvm-rs-cc renderscript
adb api dx lib NOTICE.txt source.properties
[email protected]:~/android-sdk-linux/platform-tools$ sudo fastboot erase cache
sudo: fastboot: command not found
[email protected]:~/android-sdk-linux/platform-tools$ sudo adb reboot recovery
sudo: adb: command not found
[email protected]:~/android-sdk-linux/platform-tools$ fastboot erase cache
fastboot: command not found
Am I doing this right?
Tried fastboot with sudo and without, am trying adb with sudo. Or am I putting in the wrong commands?
First (only once): chmod 777 fastboot
(Make it executable)
Tot start:
sudo ./fastboot [command]
I'll try this in the morning. Cheers.
Sent from my HTC One X using xda premium
This method works on raring:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
svenvv said:
First (only once): chmod 777 fastboot
(Make it executable)
Tot start:
sudo ./fastboot [command]
Click to expand...
Click to collapse
Thankyou! Working perfect now. Haven't tested adb functions though but was mainly after fastboot. Cheers
hey people, I've got a problem as well with the fastboot commands on ubuntu, but a different one. ADB works without fault but in fastboot after a command it keeps saying :waiting for device
Am I missing a driver or something?
oh btw it started happening when I updated from 12.10 to 13.04
any help is welcome!
@Bram89
Try sudoing.
TToivanen said:
@Bram89
Try sudoing.
Click to expand...
Click to collapse
Great, Thanks!! sudo fastboot command worked
the easiest way is to download the sdk without the extra eclipse package, download the adb/fastboot tools with the SDK manager and then adding that folder in the .bashrc

How to setup and use SP Flash Tool on Ubuntu 20.04/later/other Distro based on Ubuntu 20.04/later

Hello!
I had problems with setup SP Flash Tool on Ubuntu/Kubuntu 20.04. So here is a guide, how to do it .
1. Download SP Flash Tool for Linux: https://spflashtool.com/download/
2. Extract it, and rename folders, so that there are files in the "Flash Tool" folder
3. Delete "Lib"folder
4. Type this commands:
Code:
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0
sudo apt install libusb-dev
5. Type
Code:
cd ~/Downloads/"Flash Tool"
sudo chmod a+x flash_tool
sudo chmod a+x flash_tool.sh
sudo ./flash_tool
If you have problem with " libqtwebkit4.so.4", follow this steps:
Open Terminal and type:
Code:
sudo add-apt-repository ppa:rock-core/qt4
sudo apt update
sudo apt install libqtwebkit4
SP Flash Tool will now works.
Voila!
Hello,I don't seem to have a field for the Scatter txt.Any ideas?
Show screenshot
It's alright,I used a Windows PC to do it,but thanks for the reply anyway
Hi had trouble as attached.I deleted lib and renamed folder all I got is bland screen.Attach will show.
Did it all again,and just named the extracted folder.
Went through your commands and it worked
Downloaded upgradeed Ubuntu 20
And truly,Thank You for your work.
Oldlearner said:
Hi had trouble as attached.I deleted lib and renamed folder all I got is bland screen.Attach will show.
Did it all again,and just named the extracted folder.
Went through your commands and it worked
Downloaded upgradeed Ubuntu 20
And truly,Thank You for your work.
Click to expand...
Click to collapse
This worked for me: https://github.com/P0cL4bs/WiFi-Pumpkin-deprecated/issues/53#issuecomment-309120875
Basically, its adding
Code:
QT_X11_NO_MITSHM=1
in the system variable file.
The first cmd is not working this is my download as there been updates on the site is my drive correct .. this cmd not workingsudo add-apt-repository ppa:linuxuprising/libpng12

[GUIDE]How to build unruu from source on Debian GNU/Linux based distributions

This program is for unpacking rom.zip from RUU on Unix-like operating systems
All commands below are to be executed from the terminal NOT as root
1)
Code:
sudo apt install m4 git unshield libunshield-dev dh-autoreconf
2)
Code:
git clone https://github.com/kmdm/unruu.git
3)
Code:
cd unruu
4)
Code:
./autogen.sh
5)
Code:
./configure
6)
Code:
make
7)
Code:
sudo make install
To use this utility is very simple: unruu /path/to/ruu/ruu.exe
For example: unruu /home/alex/RUU_Express.exe

Categories

Resources