[Q]ADB/Fastboot on Ubuntu - Optimus One, P500, V Q&A, Help & Troubleshooting

My question says it...
I know it is possible on Google devices, but what about our O1? I had my phone to the service just because I couldn't install the drivers on 4 versions of windows...
Is it possible to use them to save our O1 from a permanent brick?

Are you talking about using adb on Linux to connect to your phone? It's quite possible, actually. It's not Ubuntu, but I was using Arch Linux when I rooted my O1. I bricked it once, but was able to revive it using fastboot. Anyway, check out the Ubuntu documentation on installing the Android SDK on Ubuntu. Once you have the SDK, you should have no problems running adb, etc.
---------------
Sent from my LG-P500 via Derpy Mail

onepinksheep said:
Are you talking about using adb on Linux to connect to your phone? It's quite possible, actually. It's not Ubuntu, but I was using Arch Linux when I rooted my O1. I bricked it once, but was able to revive it using fastboot. Anyway, check out the Ubuntu documentation on installing the Android SDK on Ubuntu. Once you have the SDK, you should have no problems running adb, etc.
---------------
Sent from my LG-P500 via Derpy Mail
Click to expand...
Click to collapse
Ok thank you, my problem is that I have no security in case I get my phone with a corrupted recovery and ROM at the same time...
So the phone is detected in fastboot/adb without any additional drivers?(that's what I hate about windows)
Sent from my LG-P500

vlt96 said:
Ok thank you, my problem is that I have no security in case I get my phone with a corrupted recovery and ROM at the same time...
So the phone is detected in fastboot/adb without any additional drivers?(that's what I hate about windows)
Sent from my LG-P500
Click to expand...
Click to collapse
Android and Ubuntu are about the same and may not need drivers. I tried it don't know if it will work for u
Sent from my LG-P500 using xda premium

vlt96 said:
Ok thank you, my problem is that I have no security in case I get my phone with a corrupted recovery and ROM at the same time...
So the phone is detected in fastboot/adb without any additional drivers?(that's what I hate about windows)
Sent from my LG-P500
Click to expand...
Click to collapse
For what it's worth, I didn't have to install any drivers at all, and I was able to adb & fastboot just fine. Just be sure to read the Ubuntu documentation on using Android on Linux, just in case there's any configuring needed.
---------------
Sent from my LG-P500 via Derpy Mail

Easy way to install ADB/Fastboot on ubuntu 11.04 to 12.04
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

Related

Noob Tutorial: Ubuntu on Transformer

I've been looking around for some good tutorials, but in my opinion, almost everything was pretty difficult to understand for me.
But finally I found out how things are working (except of wifi, can You help me?
http://forum.xda-developers.com/showthread.php?t=1295718)
So I want to share my knowledge with You all and try to make it easy to understand.
1. The ony way in the moment to install Ubuntu on Your Transformer is over a Ubuntu or other Linux PC. (I easily installed Ubuntu virtually in VMware Workstation)
2. Get the required files on Your Linux machine:
http://forum.xda-developers.com/showthread.php?t=1191141
On this link, in the second post is written flash kit for linux:
klick on "here" to download the flash kit.
3. Extract the flash kit into a folder (e.g. Desktop)
4. Now download the Ubuntu root files. They are located here:
http://rootzwiki.com/showthread.php?1072-ubuntu-on-the-transformer
You have to scroll a bit down then You see
"ubuntu-rootfs:
is available here md5sum(95eda389e64461533c51fd1e4e237a30)"
Again, click on "here" to download the rootfiles. (It'll take a while, since the file is 950mb)
4. Once this is done, extract the rootfiles into linux-flash-kit/images. (This folder is the one You have extracted in 3.
5. When You want to Dual-Boot Your device with Andoid AND Ubuntu, read on, otherwise go to point 6.
You have to download a nvflashable rom like for example "PRIME!"
http://forum.xda-developers.com/showthread.php?t=1251044
There You download the NVflash version and extract the image files in it, to linux-flash-kit/images, like You have done it with the ubuntu image file.
6. Now You have to choose.
If You want only linux: remember flash-purelinux.sh
If You want linux and Android Dual-Booting with Android as default OS:
flash-linux-android.sh
If You want linux and Android Dual-Booting with Linux as default OS:
flash-linux.sh
If You want to restore back to android: flash-android.sh
If You want to get to factory state: restore-default.sh
Now You have to install the APX drivers. How to do this, You can read in other threads. Basically download the NVflash file from this thread, in it, You'll find the drivers: http://forum.xda-developers.com/showthread.php?t=1123429
So connect Your tablet to Your PC, turn it off, and turn it on while holding down the Power Button and the Volume+ button.
What You'll see is nothing. Now Your device is in APX mode.
In Your Linux Computer, open up the console and go to the linux-flash-kit directory (In my case it is on the Desktop)
so I do:
cd Desktop\linux-flash-kit
So now You are in Your linux-flash-kit directory. From here You have to type:
sudo sh flash-linux-android.sh
OR You type this in what You have remembered in Point 6.
e.g.
sudo sh flash-purelinux.sh
or
sudo sh flash-linux.sh
This will take a while because the files are transfered to Your device.
7.
When it's done, Your device will start.
Turn it off, and start into Your Ubuntu.
When Ubuntu is Your main system, You start it up normally by pressing the power button.
When Android is Your main system and You are Dual-Booting it, hold down the power button and the Volume down key until the device says that Your have to press the Volume-up key. Do this and You will see a Linux code with two penguins on the top running down Your screen. That's just good like it is.
Finally You should see the Ubuntu Setup with the language selection.
Now You can go on, and now You can set up Your Ubuntu PC!
FYI:
When You have not got a keyboard-dock, Connect Your tablet with Your pc and enter the adb shell
When You don't know how to enter it:
open up Your console, get into the directory of the android-sdk and into the platform-tools.
Then You type:
adb shell
Now You should be in the ADB shell
Now You can type:
DISPLAY=:0 onboard
Then a virtual keyboard should appear on Your tablet and You're ready to go!
Just to create a vocal point, This requires root doesn't it?
Also, is the wifi and stuff working? What's not working?
Mr.Ox said:
1. The ony way in the moment to install Ubuntu on Your Transformer is over a Ubuntu or other Linux PC. (I easily installed Ubuntu virtually in VMware Workstation)
Click to expand...
Click to collapse
Nice guide. There is one correction: it took me a while to find this but there is a windows-flash kit that I've used to install ubuntu on the transformer from Windows 7.
roflcopterofl said:
Just to create a vocal point, This requires root doesn't it?
Click to expand...
Click to collapse
I don't think so, because everything is flashed via nvflash. This way, You can flash a rom without having it rooted, too.
But I'm not quite sure..
moseskim said:
Nice guide. There is one correction: it took me a while to find this but there is a windows-flash kit that I've used to install ubuntu on the transformer from Windows 7.
Click to expand...
Click to collapse
Oh, that's a nice one, I haven't seen this yet! Thank You!
asdfuogh said:
Also, is the wifi and stuff working? What's not working?
Click to expand...
Click to collapse
What's working and not You can read in the Q&A Thread, there is written everything, I just tried to explain it a littlebit easier.
The thread is here:
http://forum.xda-developers.com/showthread.php?t=1191141
There You can see what's working, what not, and how to connect to a WiFi network (For me it doesn't work...)
Thank for this, I am itching to try this... Is there any "easy" way to get back to stock honeycomb after i try this ?
(sorry for this stupid question, I do no know much about these things)
In my opinion it's very easy.
On the one hand, run the command
Flash-android.sh
Or
Restore-default.sh
Or your use nvflash to wipe the device and get a normal rom on it.
Sent from my HTC Desire using xda premium
Thanks, I will try this later today then
tombolek said:
Thanks, I will try this later today then
Click to expand...
Click to collapse
Yeah, when You get Your wifi working, please tell me how because mine does not work
Sent from my HTC Desire using xda premium
Hello yesterday i've try to put linux and android on transformer, all work's great but after 5 minut nvidia apx was disconnected because battery load 0%; i work on vmware machine; after I've charged my dock e tablet and run again the script but that's is the result
sudo sh '/media/Nuovo volume/linux-flash-kit/flash-linux-android.sh'
/media/Nuovo volume/linux-flash-kit/flash-linux-android.sh: 2: /ubuntu/abootimg-i386: not found
/media/Nuovo volume/linux-flash-kit/flash-linux-android.sh: 3: /nvflash: not found
rm: impossibile rimuovere "linux.img": File o directory non esistente
why?
I've already tryed to restore with nvflash all partition and download all in new virtual hdd but not work.

ADB is not detecting my phone

Hi guys, I have been having major reboots problem with my Sensation after upgrading to the new ICS firmware. I have described my problem in this thread. The last attempt to fix my problem was flashing the firmware from this thread. I'm trying to flash other firmwares from the development section, but i keep getting the wrong model ID error. After some research, I believe I need to change my phone's CID to superCID using ADB.
And I have followed the instructions from this thread to do the superCID on my phone. Unfortunately, ADB is not detecting my phone. I installed ADB on two other Windows machines with the same result. Any help is greatly appreciated.
If you're running ADB from Linux (Ubuntu or something like it) by chance, you can run the commands as root. Put 'sudo' in front of the commands. That might fix it.
Also, try killing the server and restarting it. I don't know if this works in Windows.
Linux commands....
sudo ./adb kill-server
sudo ./adb start-server
./adb devices
Windows commands....if this even works in Windows (I've never tried using ADB in Windows so I have no idea)
Same, just take out sudo and "./"
Not sure if needed, but do you need to have HTC sync for adb to work properly?
Skipjacks said:
If you're running ADB from Linux (Ubuntu or something like it) by chance, you can run the commands as root. Put 'sudo' in front of the commands. That might fix it.
Also, try killing the server and restarting it. I don't know if this works in Windows.
Linux commands....
sudo ./adb kill-server
sudo ./adb start-server
./adb devices
Windows commands....if this even works in Windows (I've never tried using ADB in Windows so I have no idea)
Same, just take out sudo and "./"
Click to expand...
Click to collapse
Thanks for the reply buddy. I don't have any machine running Linux at the moment, but I will try killing the server in Windows.
In the mean time, can anyone help me find an older/stable firmware please? My phone have been rebooting every 2 minutes. Opens camera, reboots. Opens youtube app, reboots. Makes a call, reboots. It's driving me crazy!!
i had the same problem when i tried to flash the radio for my new ics...
so what i did was to to untick and retick the usb debugging mode and suddenly my windows 7 can automatically install some drivers in my computer... i also install htc sync too... then only my phone can be detected by my computer and i was able to flash the radio...
Thank you for the help guys. It turns out i didn't install HTC Sync. I just flashed a new firmware from the dev forum. Hopefully it will solve my nightmare.
I have come to the conclusion that the latest firmware broke all the gingerbread based rom , and so far only the 4.0.3 Sense ROM works, and not even the asop based 4.0.3 rom.
Sent from my HTC Sensation using Tapatalk

[Q] Rumrunner problem

I'm having a little problem to S-OFF my HTC One S with rumrunner. When my phone reboots the second time into bootloader, it says:
FATAL: Download updated package at rumrunner's website.I read that I had to turn off my firewall and disable the anti virus but even after doing so, the problem is still there. Anybody a suggestion ?
Try rumrunner with Ubuntu. It worked on the first try for me. Live CD or USB drive should work.
Sent from my Nexus 5 using Tapatalk
You mean the ubuntu package or in a ubuntu device? Isn't that like trying to run an ios program on Windows?
Ubuntu is an operating system for PC. If you're familiar with any Linux then you can use it instead of Ubuntu. When you have a working installation of Linux or live CD / USB drive, run rumrunner in it.
Sent from my Nexus 5 using Tapatalk
attelaut said:
Ubuntu is an operating system for PC. If you're familiar with any Linux then you can use it instead of Ubuntu. When you have a working installation of Linux or live CD / USB drive, run rumrunner in it.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Not familiar at all.. thanks, but any other way?
Bump?
attelaut said:
Try rumrunner with Ubuntu. It worked on the first try for me. Live CD or USB drive should work.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Will you have to install the linux adb drivers before running rumrunner?
cyberusman said:
Will you have to install the linux adb drivers before running rumrunner?
Click to expand...
Click to collapse
There's no need to install drivers on Ubuntu since the drivers should be integrated to Linux kernel. Just download rumrunner and follow the instructions. Remember to turn on root access for ADB in developer settings and run rumrunner as root user (sudo...).
attelaut said:
There's no need to install drivers on Ubuntu since the drivers should be integrated to Linux kernel. Just download rumrunner and follow the instructions. Remember to turn on root access for ADB in developer settings and run rumrunner as root user (sudo...).
Click to expand...
Click to collapse
I tried it on windows and it worked the first time.

VMware Player hosted Ubuntu doesn't recognize Nexus 5

I am using VMware Player 7.1.2 to host Ubuntu 14.04 on a Windows 7 PC.
My N5 is recognized by Windows, but not by Ubuntu.
USB Debugging is enabled.
The strange thing, and maybe this holds the answer, when my N5 is booted into Fastboot mode or Recovery (TWRP), Ubuntu recognizes and can access it. It is only when the N5 is booted into Android (system) that it is not recognized.
Any ideas?
creeve4 said:
I am using VMware Player 7.1.2 to host Ubuntu 14.04 on a Windows 7 PC.
My N5 is recognized by Windows, but not by Ubuntu.
USB Debugging is enabled.
The strange thing, and maybe this holds the answer, when my N5 is booted into Fastboot mode or Recovery (TWRP), Ubuntu recognizes and can access it. It is only when the N5 is booted into Android (system) that it is not recognized.
Any ideas?
Click to expand...
Click to collapse
It's bcuz of driver issues, there has always been issues with pass thru on VMware, try looking up "project rookie" in that tutorial u will find how to properly set up USB access in ubuntu
Sent from my XT1585 using Tapatalk
soupysoup said:
It's bcuz of driver issues, there has always been issues with pass thru on VMware, try looking up "project rookie" in that tutorial u will find how to properly set up USB access in ubuntu
Sent from my XT1585 using Tapatalk
Click to expand...
Click to collapse
I have already followed this instructions from here for configuring ADB access, that is not exactly my problem. My problem is that VMware Player does not recognize my phone and so the guest OS, Ubuntu, cannot access it.
creeve4 said:
I have already followed this instructions from here for configuring ADB access, that is not exactly my problem. My problem is that VMware Player does not recognize my phone and so the guest OS, Ubuntu, cannot access it.
Click to expand...
Click to collapse
Did u configure USB access within Ubuntu? If Ubuntu can see the device while it's in fastboot mode then it's not VMware issue, its the USB access within Ubuntu
Sent from my XT1585 using Tapatalk
soupysoup said:
Did u configure USB access within Ubuntu? If Ubuntu can see the device while it's in fastboot mode then it's not VMware issue, its the USB access within Ubuntu
Sent from my XT1585 using Tapatalk
Click to expand...
Click to collapse
Yep, I configured USB access in Ubuntu like this:
Code:
wget -S -O - http://source.android.com/source/51-android.rules | sed "s/<username>/$USER/" | sudo tee >/dev/null /etc/udev/rules.d/51-android.rules; sudo udevadm control --reload-rules

USB debugging not working properly (on Ubuntu)

Hello,
I just got a new U11, hoping to use it to test/debug my Android apps. But I cannot get it connect to ADB reliably. I have tried everything I could, including
enabling developer options + USB debugging
adb kill-server, adb start-server and adb devices
revoking USB debugging authorizations
authorizing & remembering my PC
I've tried countless combinations of the above, but adb keeps showing unauthorized or offline. Very very occasionally adb shows "connected", but Android Studio freezes when I run my app. When I unplug, Android Studio immediately unfreezes. But again, when I plug my phone it becomes unauthorized/offline.
My other Android phone works without any issues. Is it a bug with the stock firmware?
The phone is running stock European firmware, with everything stock (including locked bootloader).
Could anyone please test/confirm this on their Linux laptop/desktop? Any fixes? Thanks a lot!
Strangely, it works on Windows. Maybe Ubuntu kernel update yesterday broke adb :crying:
I get my phone tomorrow and will update adb and try to connect. Have you tried starting the adb server as root?
sudo adb start-server
Sent from my XT1575 using Tapatalk
drzoo2 said:
I get my phone tomorrow and will update adb and try to connect. Have you tried starting the adb server as root?
sudo adb start-server
Click to expand...
Click to collapse
Yes, I did all adb commands after $ sudo -s
As it works without any problems on Windows, perhaps I should ask on a Linux forum?
For now I would use Windows until I found a solution
spolarbear said:
Yes, I did all adb commands after $ sudo -s
As it works without any problems on Windows, perhaps I should ask on a Linux forum?
For now I would use Windows until I found a solution
Click to expand...
Click to collapse
I have the same problem.
I have Debian in my computer (MSI GS40 6QE) and in my girlfriend's computer (Asus UX32V) . Same update state in both of them.
I'm unable to use adb or fastboot in my computer but it works correctly in my girlfriend's computer.
microcris said:
I have the same problem.
I have Debian in my computer (MSI GS40 6QE) and in my girlfriend's computer (Asus UX32V) . Same update state in both of them.
I'm unable to use adb or fastboot in my computer but it works correctly in my girlfriend's computer.
Click to expand...
Click to collapse
Haha, at least the issue is not unique to my phone (and laptop) :laugh:
I suspect Android SDK is most well tested on Windows, at least everything is already set up for you. But Linux allows you to run most dev tools in your HOME folder, so they don't mess things up.
Hopefully someone comes up with a fix.
My Xiaomi running LineageOS (basically AOSP) doesn't have any issue. Perhaps HTC Sense heavily modified some USB options?
spolarbear said:
Haha, at least the issue is not unique to my phone (and laptop) :laugh:
I suspect Android SDK is most well tested on Windows, at least everything is already set up for you. But Linux allows you to run most dev tools in your HOME folder, so they don't mess things up.
Hopefully someone comes up with a fix.
Click to expand...
Click to collapse
I have no problem with my M8 and my computer.
Android "is" Linux. By that, at least, tools like adb and fastboot must be very well tested under Linux :angel:.
Try to open you computer file browser and to browse or copy some files from/to your computer/phone. I'm unable to do that also.
I tried to root my phone in the same day I received it and I was getting really worried because I was unable to use fastboot (I by that I was thinking that my device was defective), even the simple "fastboot getvar all". Then I remembered to switch to another computer and voilĂ , everything was working perfectly.
Maybe HTC has something broken in the USB3.0 stack.
File transfer and fastboot don't work on my Ubuntu either.
spolarbear said:
File transfer and fastboot don't work on my Ubuntu either.
Click to expand...
Click to collapse
I don't know if it related with kernel (in computer side). I already tried version 4.9, 4.10 and 4.11 (the one I'm running right now).
microcris said:
I don't know if it related with kernel (in computer side). I already tried version 4.9, 4.10 and 4.11 (the one I'm running right now).
Click to expand...
Click to collapse
I tried 4.10 and 4.4, neither worked
I have same problem with Windows 10 64Bit.
All working fine here.
Sounds like udev. Have you followed the setting up usb access part of
https://source.android.com/source/initializing?
I have solved my problem. I have install Windows 10 new and now all working.
Flinny said:
All working fine here.
Sounds like udev. Have you followed the setting up usb access part of
https://source.android.com/source/initializing?
Click to expand...
Click to collapse
What Linux distro/version are you running? I've been trying to get this working with Arch and it's driving me nuts!
I run various flavours of Debian and Ubuntu across my machines and have ADB working on them all..
Flinny said:
All working fine here.
Sounds like udev. Have you followed the setting up usb access part of
https://source.android.com/source/initializing?
Click to expand...
Click to collapse
Flinny said:
I run various flavours of Debian and Ubuntu across my machines and have ADB working on them all..
Click to expand...
Click to collapse
Got it working by downloading adb straight from Google instead of using the Arch package.

Categories

Resources