How to give adb commands using an android phone without PC? - Android Q&A, Help & Troubleshooting

Brother i have a android but i don’t have any pc. So i want to give adb commands. So can i give those adb fastboot commands without pc with another android?

@Md Nafis Muhtadi
ADB ( to be correct: the ADB client ) is a driver to get installed and be run on computers.

Impossible. Adb runs on PC and communicates to the device.

Md Nafis Muhtadi said:
Brother i have a android but i don’t have any pc. So i want to give adb commands. So can i give those adb fastboot commands without pc with another android?
Click to expand...
Click to collapse
It's like asking a patient to do its own surgery, it would be convenient but not possible.

Then how to unlock bootloader of my j500H without PC?

@Md Nafis Muhtadi
Ask a friend who owns a computer ( Windows, Linux, Mac ) for assistence.

Related

[Q] htc sync (or any other working drivers) in ubuntu

Name of topic is clear, does anyone have drivers for this working in ubuntu? tried to search htc sync for linuks, but not succeded.
(also I am pretty noobish in linux, my roommate is giving adviced whenever he can, but he has samsung smartphone and another linux using friends have nexus devices...)
myusernamewastoken said:
Name of topic is clear, does anyone have drivers for this working in ubuntu? tried to search htc sync for linuks, but not succeded.
(also I am pretty noobish in linux, my roommate is giving adviced whenever he can, but he has samsung smartphone and another linux using friends have nexus devices...)
Click to expand...
Click to collapse
You don't need HTC sync in Ubuntu. Download the Linux version of adb and fastboot and you're good to go.
Regards,
navmad
why fastboot devices inst working then?
myusernamewastoken said:
why fastboot devices inst working then?
Click to expand...
Click to collapse
Working fine for me.
Regards,
navmad
Install android-tools-adb and android-tools-fastboot via a package manager.
To use ADB and Fastboot, you have to start and run them as root, to have hardwareaccess.
To do so, just use:
Code:
sudo adb kill-server
sudo adb start-server
sudo adb [command]
also
Code:
sudo fastboot [command]
have a nice day

[Tutorial] How to use a linux live CD connecting your phone to PC via adb/fastboot

As I have noticed, many users here in the DX Forum have problems connecting their phones to the PC via fastboot / adb. So I decided to write a short tutorial on how to achieve this with the help of a linux live cd. As you may know, there won't appear problems in linux with the drivers because they're already included in the kernel.
First, lets start with what you need.
You'll need:
A blank USB pendrive
A PC capable of booting from USB (will explain that later)
A micro USB cable
An HTC Desire X
If you meet all these requirements, first download a few things:
YUMI: http://www.pendrivelinux.com/yumi-multiboot-usb-creator/
A linux live CD. For this tutorial I use system rescue cd: http://www.sysresccd.org/Download
adb and fastboot binaries for linux, which I'll attach to the thread.
Then, you need to make your stick bootable using YUMI. Just start the downloaded file and follow the instructions. Be careful to choose the right volume! All data on the volume chosen will be lost! Scroll down to find the entry for system rescue cd and choose the appropriate iso image you downloaded before, let YUMI finish your stick. Before rebooting, copy the adb and fastboot binary to the USB drive using explorer.
After this is done, restart your PC. Check boot priority in BIOS to be sure it will boot your stick before your harddrive. In the YUMI boot menu, choose System Tools -> System Rescue CD. In the system rescue cd menu, choose "Directly start graphical environment". Wait for Linux to boot up. You'll be greeted by the LXDE screen with a terminal window showing a root prompt. There, you just type "cd /livemnt/boot". Connect your HTC Desire X to the PC. Make sure USB Debugging is enabled. Now, you can type "./adb devices" and see if it recognizes your phone. If you want to use fastboot, just type "./adb reboot bootloader" and your phone will directly boot into fastboot mode. There, you can test connectivity with "./fastboot devices".
If you want to flash a kernel, be sure to copy the boot.img to your USB drive before booting the live cd. When you successfully tested connectivity with your phone via "./fastboot devices", just issue "./fastboot flash boot boot.img". For a recovery, do a "./fastboot flash recovery recovery.img" (make sure the file recovery.img exists).
I hope this will help many users with the procedure of flashing kernels via fastboot and connect their phones via adb.
Thank you very much
Good work
navmad
thanks man cant connect with win8 properly adb dont work but fastboot does
Sent from my HTC Desire X using xda app-developers app
Give this a try on Win 8.1 (not win 8) .. got both adb and fastboot permission denied.
ckpv5 said:
Give this a try on Win 8.1 (not win 8) .. got both adb and fastboot permission denied.
Click to expand...
Click to collapse
When did you get permission denied? On which step? adb and fastboot binaries are for linux only. They're extracted from platform-tools folder of android-sdk for linux and to be run on a linux live cd as I wrote in my tut. Just follow the steps exactly.
dansou901 said:
When did you get permission denied? On which step? adb and fastboot binaries are for linux only. They're extracted from platform-tools folder of android-sdk for linux and to be run on a linux live cd as I wrote in my tut. Just follow the steps exactly.
Click to expand...
Click to collapse
It works on Win7 but not Win8.1
And I guess it works on Win8 too.
ckpv5 said:
It works on Win7 but not Win8.1
And I guess it works on Win8 too.
Click to expand...
Click to collapse
I already said. The goal of my tutorial is to be able to run adb and fastboot from a linux live system, not to run them on Windows. The usb stick has to be prepared in Windows though, which should work on Win 8.1 too (didn't got the oppurtunity to test, I'm waiting for the official update rather than running beta software).
dansou901 said:
I already said. The goal of my tutorial is to be able to run adb and fastboot from a linux live system, not to run them on Windows. The usb stick has to be prepared in Windows though, which should work on Win 8.1 too (didn't got the oppurtunity to test, I'm waiting for the official update rather than running beta software).
Click to expand...
Click to collapse
Let's forget it as I said before that I don't really need this, it may come handy for some people.
And this
It works on Win7 but not Win8.1
And I guess it works on Win8 too
Click to expand...
Click to collapse
is referring to running by booting to the linux live cd which is in the usb stick not on windows itself
(more or less the same way I run the gparted live cd)
ckpv5 said:
Let's forget it as I said before that I don't really need this, it may come handy for some people.
And this
is referring to running by booting to the linux live cd which is in the usb stick not on windows itself
(more or less the same way I run the gparted live cd)
Click to expand...
Click to collapse
You mean you can't boot the usb stick? You have to set the options in BIOS correctly. If you have a new PC with Windows 8 or 8.1 preinstalled, you need to disable Secure Boot and activate CSM Boot Modus.
dansou901 said:
You mean you can't boot the usb stick? You have to set the options in BIOS correctly. If you have a new PC with Windows 8 or 8.1 preinstalled, you need to disable Secure Boot and activate CSM Boot Modus.
Click to expand...
Click to collapse
I can boot the usb stick, no problem with that.
There's something in DX and One S that got problem with Win 8.1 but not for One X and One V.
hi , this is great , but any way to use it with sony xperia models ? thanks.
I don't know those, so I can't tell what you need there exactly to do similar things with your phone through adb and fastboot, so maybe just try yourself and find out?

[HELP]How to Flash U-Xboot via terminal ??

How to Flash U-Xboot via terminal
can anyone answer me??
OK define terminal, you mean a Linux os terminal on your pc, a command prompt on windows, or a terminal emulator on android? If the process is from your PC you are going to need omap4boot to do it unless the phone is unlocked already, in which case fastboot would do it unless you already bricked the device. More details will help us help you.
Sent from my Amazon Tate using Tapatalk

adb device not found

In Windows I cannot find it at all, running adb devices gives me an error.
In ubuntu it shows up as ??????????? but i have no permissions for some reason, so I cannot do the steps to Bump
Anyone have a way to fix this so I can Bump and finally get on to flashing the Modem, then custom roms finally!
You can also install it from Terminal Emulator, right on the phone, rather than adb. In TE, skip the "adb shell" line, input the 2nd - 4th lines, starting from "su".
chewyTree said:
In Windows I cannot find it at all, running adb devices gives me an error.
In ubuntu it shows up as ??????????? but i have no permissions for some reason, so I cannot do the steps to Bump
Anyone have a way to fix this so I can Bump and finally get on to flashing the Modem, then custom roms finally!
Click to expand...
Click to collapse
You can also use Flashify to flash the bump'd TWRP recovery - that's what I did, worked beautifully. You can find Flashify in the Play Store.
For Linux, you must run sudo adb devices... Then the rsa key will pop up on the phones screen, then your good to go. You must run the sudo command first, or you'll need to run the adb kill-server command, then start again with elevated permissions. If your on 11c, you must be in ptp mode, for 10b ethernet mode.
For Windows, well who cares, use Linux...
annoyingduck said:
For Linux, you must run sudo adb devices... Then the rsa key will pop up on the phones screen, then your good to go. You must run the sudo command first, or you'll need to run the adb kill-server command, then start again with elevated permissions. If your on 11c, you must be in ptp mode, for 10b ethernet mode.
For Windows, well who cares, use Linux...
Click to expand...
Click to collapse
Thank you all. Those adb kill commands were it. Everything worked out fine.. but now when i do the rest of the steps i boot into system recovery (not twrp) but like the phone system recovery, and it seems like thats not what i should be booting into.
annoyingduck said:
For Linux, you must run sudo adb devices... Then the rsa key will pop up on the phones screen, then your good to go. You must run the sudo command first, or you'll need to run the adb kill-server command, then start again with elevated permissions. If your on 11c, you must be in ptp mode, for 10b ethernet mode.
For Windows, well who cares, use Linux...
Click to expand...
Click to collapse
Yeah but those things are spendie and my 3 kids devour any dollars I get lol
WHATSAMATTA U ALUMNI

Root on linux?

I'm trying to root my phone on linux, but once i do adb reboot bootloader, my device is nowhere to be found. anyone have a fix? I've searched everywhere.
/thread
Fixed my own issue by plugging the usb cable in the back of my computer. yup, seriously. Thanks to everyone trying to help. Also, thanks for not pointing out what a noob I am.
yepimjosh said:
I'm trying to root my phone on linux, but once i do adb reboot bootloader, my device is nowhere to be found. anyone have a fix? I've searched everywhere.
Click to expand...
Click to collapse
I am not familiar with Linux but on Windows waiting for device comes up when the driver for that phone is installed. May be you can look into it for a solution.
Install the drivers and then give it a try.
yepimjosh said:
I'm trying to root my phone on linux, but once i do adb reboot bootloader, my device is nowhere to be found. anyone have a fix? I've searched everywhere.
Click to expand...
Click to collapse
You need to install adb fastboot these are the instructions you need to type in the terminal you just opened. Type one line at a time and press enter after each. Allow Ubuntu to do it's stuff.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
after you reboot to the bootloader you use fastboot commands ,not adb
clsA said:
You need to install adb fastboot these are the instructions you need to type in the terminal you just opened. Type one line at a time and press enter after each. Allow Ubuntu to do it's stuff.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
after you reboot to the bootloader you use fastboot commands ,not adb
Click to expand...
Click to collapse
I have adb. I'm trying to say, when I'm in recovery mode, my phone is no longer found on my computer. Not just adb, the whole computer
yepimjosh said:
I have adb. I'm trying to say, when I'm in recovery mode, my phone is no longer found on my computer. Not just adb, the whole computer
Click to expand...
Click to collapse
What recovery ? Stock recovery does not support adb
clsA said:
What recovery ? Stock recovery does not support adb
Click to expand...
Click to collapse
Sorry, I'm messing up what I'm trying to say. I have adb and fastboot installed, running on ubuntu 16.04. I plug my phone in, open Terminal, and run adb devies. My device pops up, it's there. So I run adb reboot bootloader, my phone goes on the white screen with the android fellow, and all is good. Now, I i try adb devices again, nothing. I put in lsusb (lists all usb devices connected to computer), and nothing. So, naturally, when i try fastboot oem unlock and my code, I'm stuck on <waiting for device>
yepimjosh said:
Sorry, I'm messing up what I'm trying to say. I have adb and fastboot installed, running on ubuntu 16.04. I plug my phone in, open Terminal, and run adb devies. My device pops up, it's there. So I run adb reboot bootloader, my phone goes on the white screen with the android fellow, and all is good. Now, I i try adb devices again, nothing. I put in lsusb (lists all usb devices connected to computer), and nothing. So, naturally, when i try fastboot oem unlock and my code, I'm stuck on <waiting for device>
Click to expand...
Click to collapse
adb does not work in the bootloader
After reboot bootloader it's fastboot devices
If you get no response try a different usb port
Or different usb cord
Sent from my SM-N920T using Tapatalk
clsA said:
If you get no response try a different usb port
Or different usb cord
Click to expand...
Click to collapse
used the rear usb port and magically decided to work, edited the original post. Thank you for your help and I apologize for the much noobiness you had to encounter.

Categories

Resources