Android Noob here
I want to use fastboot on a softbricked Moto G (XT1033 last running OTA 5.0.2) on an Ubuntu 15.04 64 bit. However, I am not showing USB connected on the device in fastboot mode, and fastboot devices gives blank output (i.e. no devices detected), while it's recognized on Windows. The device is unlocked.
I have already installed fastboot using sudo apt-get install android-tools-fastboot
Created an anroid.rules file named ##-android.rules in /etc/udev/rules.d/. A persistent.rules file already existed with ##=70, so I used the same number for the android.rules file first. I also tried with ##=91, ##=50 and ##=51 after deleting the old files. None worked.
Tried all these variants in the android.rules file
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", MODE="0666", OWNER="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2e76", MODE="0666", OWNER="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
Restarted udev using service udev restart. Rebooting yeilded same effect.
using mfastboot v2 (found on xda forums) didn't help. Device was still undetected
Device doesn't show USB connected when connected to Ubuntu while in fastboot. It connects when using Windows.
How do I get fastboot working with my XT1033 on Ubuntu?
I did not enable USB debugging before the boot issues so I cannot use ADB. I just want to flash recoveries using fastboot/mfastboot.
Related
I'm looking to dabble in making my own rom just for the hell of it, and to learn what the devs do
but before I start I need to set up usb access for my phone, and was wondering if you guys could point me in the right direction for doing so
download and install Android SDK,
in the phone just go into settings --> applications --> development --> usb debugging
and use ADB to connect and execute commands
done
that's it? damn I thought I had to configure something else been using this guide, and it threw me for a loop on the usb access part
http://source.android.com/source/initializing.html
ROB281 said:
that's it? damn I thought I had to configure something else been using this guide, and it threw me for a loop on the usb access part
http://source.android.com/source/initializing.html
Click to expand...
Click to collapse
The "Configuring USB Access" part is for using adb with regular user account on Ubuntu . Because normally you need to have root permission to access a USB device e.g. you have to type sudo adb devices instead of only adb devices
To follow the guide, use the following command:
Code:
cd /etc/udev/rules.d
sudo nano 51-android.rules
Then copy/paste the lines in the guide into the file and change <username> to your account name, in my case it would be something like: (notice the OWNER= part)
Code:
# adb protocol on crespo (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="suksit"
# fastboot protocol on crespo (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0600", OWNER="suksit"
Then save the file and plug in your Nexus S. If you can use the command adb devices then you're good to go.
I just got a refurbished Xoom wifi from woot.com. I am trying to access it via adb from my Ubuntu PC, but it doesn't seem to recognize it. I have followed the guides for the udev rules, and it works (to a degree). It seems that my PCIIDS may be different, and this may be the problem.
I previously owned a g-tablet and a Zenithink epad, and was able to access them through adb, after changing the udev rules.
I also want to root it, and I understand that it must be able to recognize it to do that. There seems to be three modes that you can start it up in, RSD, Fastboot and Android Recovery. I'm not sure if I should be in RSD or Fastboot for adb to work, but each mode gives a slightly different PCIID.
I do have a fastboot binary for Linux, but it too needs the PC to first "see" the Xoom.
For me, in opensuse
lsusb to see the constructor and id ( be careful the id change between normal mode, recovery and fastboot)
mine is :
In normal mode
Bus 002 Device 006: ID 22b8:70a8 Motorola PCS
with debug on
Bus 002 Device 006: ID 22b8:70a9 Motorola PCS
In Bootloader
Bus 002 Device 006: ID 18d1:708c Motorola PCS
In bootRSD
Bus 002 Device 006: ID 22b8:70a4 Motorola PCS
Edit or create your /etc/udev/rules.d/92-motorola-xoom.rules
to reflect the id's of your xoom
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="22b8", SYSFS{idProduct}=="70a8", MODE="0666" SYMLINK+="xoom"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="22b8", SYSFS{idProduct}=="70a9", MODE="0666" SYMLINK+="xoomdebug"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="18d1", SYSFS{idProduct}=="708c", MODE="0666" SYMLINK+="xoombootloader"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="22b8", SYSFS{idProduct}=="70a4", MODE="0666" SYMLINK+="xoombRSD"
Click to expand...
Click to collapse
restart udev or reboot
sudo /etc/init.d/boot.udev restart
And normally you should see your device with
adb devices
Thanks for the reply.
I have been trying something very similar. I don't believe that I can directly copy a SuSE version to use on Ubuntu, but it gives me some ideas.
Here is what worked for my g-tablet:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0955", MODE="0666"
I think that was for mounting it to transfer files. I tried something like that for the Xoom IDs, but it didn't give me adb access.
I'll keep plugging away!
I finally got it to find it in adb. I'm not sure what did it, but rebooting the PC may have helped.
I am still not getting it to be seen by fastboot. I am following a How-To for rooting that first requires unlocking the bootloader. That is why I am trying to get fastboot to work.
If you know of a better way to root it, please advise me.
Thanks.
Just plug it when in fastboot and note the ID and constructor (mine change from 22b8 to 18d1 depending of the state) in that state and add it to your rules
reboot and try again
I've done that, with and without USB debugging enabled.
I think that the Linux versions of fastboot that I am trying may not be working. I am currently trying to install everything needed on my Win 7 laptop. The windows SDK includes fastboot, where the Linux version doesn't.
Ran it in windows and it is now performing the unlocking. It's disappointing that it isn't working in Linux.
I found another copy of Linux flashboot, from somewhere on the web. That one seems to work if I run it with root permissions (sudo). Otherwise I get this:
Code:
$ fastboot devices
no permissions fastboot
I'm not sure if tweaking the udev rules will fix this, but running it with sudo is no big deal. I'm just glad I got it to work.
Hey guys,
So i'm trying to install a custom recovery on my TF700 I got yesterday. I have already rooted it and have installed the android SDK(tools only+some extras i installed). I got some USB drivers for my tablet (i got from http://forum.xda-developers.com/showthread.php?t=1706588) and installed them all manually via pnputil -i -a drivers*.inf.
So my problem is that adb is not responding to most commands. The only ones I can get it to do anything are
-adb help
and
-adb version
i've tried redownloading the program/s several times to no avail, and messing with the adb daemon/service. Any other command I run will just sit there with a flashing underscore __ forever. (I am running Windows 7 64 bit)
I've used fastboot to try and flash CWM to the tablet but it gets stuck on [waiting for device]. I have made sure USB debugging is on and that the security option for installing apps is turned off.
This is really bugging me because I can't figure out the problem. I haven't been on the forums for a while, so I forgot my login and had to re-register.
My main goal is just to get a custom recovery on there so I can flash a rom. I tried the google play app that let's you do that, (starts with goo) and it didn't work after trying it many times. My tablet is 100% working right now and rooted.
Any suggestion that anyone could throw out there would be greatly appreciated and I thank you in advance.
EDIT: i'm on android 4.1.1 stock on the unlocked wifi only version
D3vildog said:
Hey guys,
So i'm trying to install a custom recovery on my TF700 I got yesterday. I have already rooted it and have installed the android SDK(tools only+some extras i installed). I got some USB drivers for my tablet (i got from http://forum.xda-developers.com/showthread.php?t=1706588) and installed them all manually via pnputil -i -a drivers*.inf.
So my problem is that adb is not responding to most commands. The only ones I can get it to do anything are
-adb help
and
-adb version
i've tried redownloading the program/s several times to no avail, and messing with the adb daemon/service. Any other command I run will just sit there with a flashing underscore __ forever. (I am running Windows 7 64 bit)
I've used fastboot to try and flash CWM to the tablet but it gets stuck on [waiting for device]. I have made sure USB debugging is on and that the security option for installing apps is turned off.
This is really bugging me because I can't figure out the problem. I haven't been on the forums for a while, so I forgot my login and had to re-register.
My main goal is just to get a custom recovery on there so I can flash a rom. I tried the google play app that let's you do that, (starts with goo) and it didn't work after trying it many times. My tablet is 100% working right now and rooted.
Any suggestion that anyone could throw out there would be greatly appreciated and I thank you in advance.
EDIT: i'm on android 4.1.1 stock on the unlocked wifi only version
Click to expand...
Click to collapse
I haven't experienced it yet, but adb can supposedly very difficult to get working on W7-64. Many have to edit config files to make it happen. Its far from cut and dry. If at all possible, making it work on XP is cake by comparison. I didn't even have to install drivers that I recall. If you have access to someones XP machine I suggest you use it to install the SDK platform tools (is all you need) and get adb working to flash your recovery then from there your ROM. But if you'll be stuck with W7-64 then you can follow these links and get it done but it may be painful, frustrating, and take you awhile to figure out.
http://forum.xda-developers.com/sitesearch.php?q=adb on windows 7 64
reply
Thanks for the reply, I think i'm going to go on my linux distro and try it later.
D3vildog said:
Thanks for the reply, I think i'm going to go on my linux distro and try it later.
Click to expand...
Click to collapse
Yes, under Linux it is much easier, because you don't need drivers.
If you need a udev rule:
Code:
# Transformer TF700T
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c90", GROUP="plugdev", MODE="0660" # MTP (normal)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c91", GROUP="plugdev", MODE="0660" # MTP + USB Debugging
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c92", GROUP="plugdev", MODE="0660" # RNDIS
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c93", GROUP="plugdev", MODE="0660" # RNDIS + USB Debugging
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c94", GROUP="plugdev", MODE="0660" # PTP
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c95", GROUP="plugdev", MODE="0660" # PTP + USB Debugging
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4daf", GROUP="plugdev", MODE="0660" # Fastboot
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7030", GROUP="plugdev", MODE="0660" # Tegra APX
Put that into some file in /etc/udev/rules.d and make sure you are in the plugdev group.
This is just with Linux Mint- works in OS X.
adb in Mint works with Nexus 4 and One X every time but the OPO won't show up at all whether stock OS or Mahdi.
Any way to fix?
JAMCx said:
This is just with Linux Mint- works in OS X.
adb in Mint works with Nexus 4 and One X every time but the OPO won't show up at all whether stock OS or Mahdi.
Any way to fix?
Click to expand...
Click to collapse
Did u allow your pc from the phone when connecting it to adb?
JAMCx said:
This is just with Linux Mint- works in OS X.
adb in Mint works with Nexus 4 and One X every time but the OPO won't show up at all whether stock OS or Mahdi.
Any way to fix?
Click to expand...
Click to collapse
Just "sudo adb devices"
Happens to me on my ubuntu build VM too
bud77 said:
Just "sudo adb devices"
Happens to me on my ubuntu build VM too
Click to expand...
Click to collapse
Didn't work. The OTO does not show up in Mint as a connected device for some reason while the Nexus 4 and One X do and they respond to adb devices.
The OTO says connected as media device, android debugging enabled. Again it does connect and respond in OS X.
JAMCx said:
Didn't work. The OTO does not show up in Mint as a connected device for some reason while the Nexus 4 and One X do and they respond to adb devices.
The OTO says connected as media device, android debugging enabled. Again it does connect and respond in OS X.
Click to expand...
Click to collapse
Did yo follow these steps already ?
If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs, below. To set up device detection on Ubuntu Linux:
Log in as root and create this file: /etc/udev/rules.d/51-android.rules.
Use this format to add each vendor to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
In this example, the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node.
Note: The rule syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules.
Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules
Click to expand...
Click to collapse
(From here)
bud77 said:
Did yo follow these steps already ?
(From here)
Click to expand...
Click to collapse
Above my pay grade ... I'll just plug it in the Mac
Thanks though.
Just plugged it into a W7 Pro machine and it saw it as a portable device and let me browse the folders without any tweaking.
JAMCx said:
Above my pay grade ... I'll just plug it in the Mac
Thanks though.
Just plugged it into a W7 Pro machine and it saw it as a portable device and let me browse the folders without any tweaking.
Click to expand...
Click to collapse
Just had the same problem and solved it by creating the file above.
Create the file
sudo vim /etc/udev/rules.d/51-android.rules
add the line below:
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="plugdev"
and reload the the new rules by using this command (or reboot ):
sudo udevadm control --reload
unplug the device and plug it back in and now "sudo adb devices" should show the correct name and status.
Do sudo bash, then password, the adb and fastboot work fine for me. If using windows cmd, run as admin.
So dont ask me why, but I was redoing windows and just for no reason ended up with Ubuntu instead with actually no knowledge of Linux. Still I love trying out new things and I think I am loving Ubuntu so far, only can't get fastboot/adb to work with phone. Honestly I thought it would be easier here than on windows... Alas..
Problem is 'adb devices' when I connect phone within ROM works, (adb debugging enabled), result is:
List of devices attached
3530B61945F400EC device
But when I run the same command from bootloader it does not list any devices.
Even from the ROM when i try fastboot reboot command it just gets stuck on <waiting for device>.
Did some googling and came across:
sudo gedit /etc/udev/rules.d/51-android.rules
and added:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0600", OWNER="fasih"
fasih being my username.
Still no luck.
Any help?