How to connect with ubuntu 12 - Nexus 4 Q&A, Help & Troubleshooting

Just have this amazing smartphone. But how do I connect it good with Ubuntu. It only c it as photocam.
Please some help
Sent from my Nexus 4 using xda premium

Hey man I had this problem at first. figured it out though.
You need to open the terminal and enter:
Code:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
You should be prompted for your password.
After entering such let it do it's thing, and after it finishes open the software updater and install all updates.
Restart your computer, and with your nexus 4 plugged in, unlock it, and it should appear as it would appear on windows or anything Thank this post if i helped.

It worked like a charm, thanks mate buy yourself a beer or something else
Sent from my Nexus 4 using xda premium

Related

Nothing working

Well I try to root my phone i installed sdk and I did the adb but the cmd on my pc dose not see my phone all am trying to do is downgrade my phone so I can root how do I get the pc to see my phone it told me it hass adb but when I run cmd it dose not know its there plz help I really want this phone root it I been at this for the last 2 weeks
Sent from my T-Mobile G2 using xda premium
explain what you did and what you do exactly. Based on which instruction.
you're computer is a Windows VP / Vista / 7?
did you reboot afgter installing?
And post the command line you have.
We will without question need to know what you tried before anyone here can help.
Also, check to see if you phone was in USB debug mode. If it was not, no matter what you try it will not work.
I try to to downgrade my phone useing cm fourm on how to doundgrade a g2 well I use the coustom usb and I put it in the sdk folder were it was suppost to go well I try to run cmd and it tells me no such thing sorry not exacly what it says but close to what it dose tell me so now what do I do I really want a rom on this
Sent from my T-Mobile G2 using xda premium
First off, not to knock you, and I apologize if English isn't your first language, but you're posts are very hard to follow. Some punctuation and spelling would help immensely.
Second, you need to give us more detail. Step by step, as to what you are doing (commands entered, what error messages actually say, etc).
Third, some simple instructions are below, see if it helps:
1) Go to Start > Run (or hold the Windows Key and press R) to give you the run prompt.
See picture #1
2) At the command prompt, type in (without quotes) "cd\program files\android\android-sdk\platform-tools" NOTE: This is the path for default install for the google SDK installer with Windows 32bit. If you are running Windows 64bit I believe it is "cd\program files (x86)\android\android-sdk\platform-tools"
See picture #2
3) type in "adb" (again, minus quotes) to see the list of adb commands.
See picture #3
Hopefully you can take it from there.
Ok I have windows 7 well I download the sdk ok I was doing every thing from the cm forms well I all so did the thing with adb were on the cm forms it ask me to download the usb thing in place it in the folder were in extras sorry if miss spell I rann cumman prompt cmd it dose not see my phone that it it says here go this this in the forms look for need help that's my post to
Sent from my T-Mobile G2 using xda premium
Hey mate, I'd be willing to help you if you took your time (slowed down) and worked on your posts a bit. I tried really hard to understand what you're trying to tell us and I just can't get it.
Sent from my HTC Vision using XDA App
Can any one call me in help 614 962 1447
Sent from my T-Mobile G2 using xda premium
I tried to install sdk. Cm told me in their forums to install an adb in usb custom. The cmd does not recognize my phone.
Sent from my T-Mobile G2 using xda premium
Ok, so we will assume the SDK is installed properly. Then you open a command prompt and change the directory to the directory you installed the SDK using the "cd" command. From there you type "adb devices" and what is displayed on the command prompt?
We need to take this one step at a time. Everyone wants to help, but we need to be able to understand what is going on.
Can some one call me and help me plz 614 962 1447
Sent from my T-Mobile G2 using xda premium
Ok now the pc that my phone adb ok but when I put in adb divice cmd dose not see it and what's with this run thing all I do in my pc is run search for cmd
Sent from my T-Mobile G2 using xda premium
I think I understand what you are saying. So, you search for cmd in windows and then click on it to open. Once you do that you enter "adb devices" correct? Do you enter any other commands before "adb devices?" Also, have you gone to settings/apps/development and clicked Enable USB Debug on your phone?
I doubt you will find anyone willing to call you, but if you can clearly tell us what is going on; you will find help here.
Yes you are right I did adb devices but no other commainds but it tells me no external devices and some other stuff it says
Sent from my T-Mobile G2 using xda premium
And debuging good on my phone and sdk is on windows and under device manger it tells me my phone adb
Sent from my T-Mobile G2 using xda premium
This could be your problem. Before you enter "adb devices" you need to change the directory to where you installed the SDK. So, open a command prompt, enter "cd [directory where you installed the SDK]." Once the directory is changed enter "adb devices."
As for the location of the SDK, if you installed it to the hard drive it would be: C:\android-sdk\platform-tools. So you would enter "cd c:\android-sdk\platform-tools."
Try that and let us know what happens.
when I put this in cmd c:\program files (x86)\android\android-sdk\platform-tools it tells me file name derectory name or volume label syntax is incorrect
Sent from my T-Mobile G2 using xda premium
When I run cmd in put adb devices it tells me the system can not find the path specified
Sent from my T-Mobile G2 using xda premium
Can I plz get help
Sent from my T-Mobile G2 using xda premium
ok, these are not the recommended ways of gaining root, but your knowledge seems to be not good enough for the usual guides... (you are sure you want to root?)
here is one tool:
http://forum.xda-developers.com/showthread.php?t=1097977
or contact this guy:
http://forum.xda-developers.com/showthread.php?t=1500370
good luck (or ask for a remote session - i dont have time for this right now)

[Q] Adb always says "Device offline"

Hi guys,
I'm currently experiencing a probem with my Nexus 4. No matter what OS I use (Linux or Windows) or what driver I use adb keep saying that my device is offline. As I saw elsewhere I tried an other usb cable or port but nothing seemed to work. Does anyone got an idea for this ? This thing is gonna drive me crazy !
Thanks
Task Manager, then kill the ADB one. Then open ADB, adb devices again.
Otherwise, did you check the debugging =.= Or reinstall the driver manually (not by WIndows).
I have had a problem with this and it has been unsolved as of yet, but I may be able to help you. In the SDK Manager, there is an extras area, if you don't have the drivers from there I have found you may have trouble. It could be something else, but this should be a sufficient launchpad.
Sent from my ADR6425LVW on GrayTheWolf's CM10 build.
Thanks to you both, but I mainly use Ubuntu and not Windows. I've tried killing and restarting adb a lot of times.
saintjimmy said:
Thanks to you both, but I mainly use Ubuntu and not Windows. I've tried killing and restarting adb a lot of times.
Click to expand...
Click to collapse
Are you on 4.2.2 they changed somethings with the update. Have you updated your SDK?
Try installing PDAnet drivers. They will make it work.
xdaOSdev.team said:
Try installing PDAnet drivers. They will make it work.
Click to expand...
Click to collapse
I can verify this, it solved the problem I have been having for a few months in Linux OSes.
Sent from my ADR6425LVW on GrayTheWolf's CM10 build.
saintjimmy said:
Thanks to you both, but I mainly use Ubuntu and not Windows. I've tried killing and restarting adb a lot of times.
Click to expand...
Click to collapse
Guys, he said he's using ubuntu lol there are no usb drivers to install
try this...it sounds like your adb may be out of date. This will also reinstall fastboot, unless you leave 'android-tools-fastboot' off the last command
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
btw, if you haven't already done so, you should get the full sdk installed. It's better to have it and not need it than to not have it and realize after three hours of pulling your hair out you should have had it all along lol (I've done it, so I speak from experience)
Thanks @hp420 but sadly the device is still offline. I'm just realizing it now but I didn't have the warning message about the association with the computer that I usually have when activating USB debugging with 4.2.2
Load latest SDK version. Load driver inf fix. Search forum. Known problem. Easy fix.
sent from my nexus 4; cat on lap, beer in hand
This is due to the new whitelist for adb in 4.2.2.
Some of these steps may be unnecessary, but I know this works (I've had to do it a few times to all my devices that have been upgraded to 4.2.2).
You need the adb from the latest SDK.
Untick USB Debugging.
Reboot the phone.
Tick USB Debugging.
Reboot the phone.
On your PC, make sure you add the new SDK/tools to the PATH then do adb kill-server; adb start-server
Unlock your phone.
Plug it in to your PC.
A message on your phone will appear asking to add the PC to the whitelist.
Accept this and your phone should appear when you do an adb devices
No need for driver i'm running linux...
Sent from my Nexus 4 using xda app-developers app
Nark.GA60 said:
This is due to the new whitelist for adb in 4.2.2.
Some of these steps may be unnecessary, but I know this works (I've had to do it a few times to all my devices that have been upgraded to 4.2.2).
You need the adb from the latest SDK.
Untick USB Debugging.
Reboot the phone.
Tick USB Debugging.
Reboot the phone.
On your PC, make sure you add the new SDK/tools to the PATH then do adb kill-server; adb start-server
Unlock your phone.
Plug it in to your PC.
A message on your phone will appear asking to add the PC to the whitelist.
Accept this and your phone should appear when you do an adb devices
Click to expand...
Click to collapse
Tanks fort that answer I'll try it as soon as possible !
Sent from my Nexus 4 using xda app-developers app
Try typing
adb kill server
adb start-server
Sent from my Nexus 4 using Tapatalk 2
scream4cheese said:
Try typing
adb kill server
adb start-server
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Already did that countless times...
Sent from my Nexus 4 using xda app-developers app
saintjimmy said:
Already did that countless times...
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
try a live cd of ubuntu and see what happens. that will at least narrow it down to whether it's your ubuntu installation or your phone. if it still won't mount in the live cd we can assume it's an issue with your phone. from there you can run a nandroid backup and reflash the factory images to see if that fixes the issue. if it does, you can try a fresh install of the rom you're using. if it still works, then restore all your apps/app data
if it's your ubuntu installation there are other avenues you can try.
saintjimmy said:
Already did that countless times...
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You can try uninstalling SDK and perform a fresh install. Move your platform tools to a more convenient locations and change the path under windows properties.
I don't know if you tried this already but..
Have you tried uninstalling and reinstalling the drivers for phone?
switch to another USB port? A different usb cable?
scream4cheese said:
You can try uninstalling SDK and perform a fresh install. Move your platform tools to a more convenient locations and change the path under windows properties.
I don't know if you tried this already but..
Have you tried uninstalling and reinstalling the drivers for phone?
switch to another USB port? A different usb cable?
Click to expand...
Click to collapse
UBUNTU!!!!!
lol
hp420 said:
UBUNTU!!!!!
lol
Click to expand...
Click to collapse
Or try using Ubuntu. LOL.
But dual-booting to another OS is a hassle.(?) If ubuntu is not your daily driver, you're gonna have to keep rebooting in between OSs.
scream4cheese said:
Or try using Ubuntu. LOL.
But dual-booting to another OS is a hassle.(?) If ubuntu is not your daily driver, you're gonna have to keep rebooting in between OSs.
Click to expand...
Click to collapse
Thann you all for your answers! I use linux mint which is my main OS. I manage to resolve my problem in a weird way: first I push a CWM recovery with fastboot and then I flash the ZIP from SuperSu ! From now USB debugging is working properly and I get the usual warning !
What I would like to know now is why ? Does the SuperSU ZIP reset something ?
Sent from my Nexus 4 using xda app-developers app

Ubuntu 12.10 doesn't recognize my Nexus 4!

I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
LRC1710 said:
I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
Click to expand...
Click to collapse
Also having this problem.
LRC1710 said:
I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
Click to expand...
Click to collapse
matt0401 said:
Also having this problem.
Click to expand...
Click to collapse
Ubuntu doesnt support mtp out of the box... You will have to add it with something like this...
http://www.webupd8.org/2013/01/upgrade-to-gvfs-with-mtp-support-in.html
I haven't tested it personally i usually transfer files via WiFi but the comments suggest it works well.
Sent from my Nexus 4 using xda premium
same issue here.
i tried this method,
http://forum.xda-developers.com/showthread.php?t=2004182
but some how, after this
8. Mount with the following command:
sudo mtpfs -o allow_other /media/nexus4
nothing happens.
mtpfs does not work as it should be.
This works for me on Debian Unstable using manual metod below :
search in google : how-to-mount-android-40-ubuntu-go-mtpfs ( i still can not post url's )
Manual install steps :
sudo apt-get install golang fuse git-core libmtp-dev libfuse-dev
mkdir /tmp/go
cd /tmp/go
go get github.com/hanwen/go-mtpfs
sudo mv /tmp/go/bin/go-mtpfs /usr/bin/
Now, go-mtpfs is installed. To mount your Android device, run these commands:
mkdir /media/nexus4
Plugin USB cable in your Nexus and :
go-mtpfs -allow-other=true /media/nexus4/
Voila! Your device’s contents can now be found at the /media/nexus4. If you belong to the “everything must be unmounted safely” tribe (like I do), then here’s your unmounting command:
umount /media/nexus4
Ubuntu 13.04 will support mtp out of the box. My laptop that I upgraded to 13.04 recognized the phone perfectly.
Sent from my Nexus 4 using xda premium
tory13579 said:
Ubuntu 13.04 will support mtp out of the box. My laptop that I upgraded to 13.04 recognized the phone perfectly.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Is ubuntu 13.04 already available?
Sent from my Nexus 4
LRC1710 said:
Is ubuntu 13.04 already available?
Sent from my Nexus 4
Click to expand...
Click to collapse
"Daily" builds are available but it is not a final product I believe.
Here's the link - http://cdimage.ubuntu.com/daily-live/current/
Sent from my Nexus 4 using xda premium

Need a root guru!

My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
To get adb you need:
androidsdk
For linux you would:
tar xfv androidsdk.tar.gz
cd android-sdk/platform-tools
./adb shell
Once in shell just type su to gain root access on android, su app might appear on phone so you can grant access.
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
Need a root guru
Click to expand...
Click to collapse
no complaints yet, however, ask away I will help any way I can.
Here's a small tip, to raise command prompt in a directory that uses adb or fastboot. Hold down Shift key, right click and "open command here".
Hope that helps
Regards
JustSueMe said:
To get adb you need:
androidsdk
For linux you would:
tar xfv androidsdk.tar.gz
cd android-sdk/platform-tools
./adb shell
Once in shell just type su to gain root access on android, su app might appear on phone so you can grant access.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
From what I understand he wants to root from the device using a terminal emulator, not from a computer. "su" will do nothing in this case. Not an expert by far but I am pretty sure that except for the exploit/vulnerability discovered in S3 some time ago, you can't root the device that easily. You need to flash (rewrite) something before ...
rsndetre said:
From what I understand he wants to root from the device using a terminal emulator, not from a computer. "su" will do nothing in this case. Not an expert by far but I am pretty sure that except for the exploit/vulnerability discovered in S3 some time ago, you can't root the device that easily. You need to flash (rewrite) something before ...
Click to expand...
Click to collapse
You can connect to adb via terminal emulation if:
Adb start-server
Adb connect to localhostort
But unfortunately even though it connects its useless.
I know an exploit , I made a script to run the exploit over usb from another phone via adb. But again that wont work as it was patched by ICS.
Sent from my GT-I9505 using xda app-developers app
---------- Post added at 01:19 PM ---------- Previous post was at 01:16 PM ----------
Ravenstears said:
My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
How about getting a .zip of a rooted rom and .img of twrp from xda forums.
Then hit the playstore there's an app called SGS4Flasher.
Use that to flash the .img then boot into recovery backup phone and then flash the .zip. reboot into your rooted rom
Sent from my GT-I9505 using xda app-developers app
I appreciate the replies but to be a bit more direct I have a cline s4 with am Imei number of s3. Linked to a pc it shows up as HTC dream interface. Ergo, the rooting is mot simple. This is my first unlocked phone and I have absolutely no clue what to do, to spare the stress let's say I'm am a dummy. I need step by step laid out so your grandma can do it... No I'm not old lol. But I am new to this. Oh and I'm a girl
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
I appreciate the replies but to be a bit more direct I have a cline s4 with am Imei number of s3. Linked to a pc it shows up as HTC dream interface. Ergo, the rooting is mot simple. This is my first unlocked phone and I have absolutely no clue what to do, to spare the stress let's say I'm am a dummy. I need step by step laid out so your grandma can do it... No I'm not old lol. But I am new to this. Oh and I'm a girl
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Ok, if you can connect your phone to a computer, this is what you have to do:
1. Get the USB driver from here and install it.
2. Follow the instructions:
- for I9500 from here.
- for I9505 from here.
To find out what version you have head to Settings -> ... More (tab ) -> About device -> look under Model number
What ever program is launched when you connect your phone to the pc, close it. Use that I have linked above.
That's part of the problem, I can't hook it to a pc. The root needs to be done by manually entering commands into a terminal emulator via the device.
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
That's part of the problem, I can't hook it to a pc. The root needs to be done by manually entering commands into a terminal emulator via the device.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Well I don't think adb will allow u to send commands.
A connection can be made to localhost but thats about it.
U could try adb over otg from another.device or wireless adb ?
Sent from my GT-I9505 using xda app-developers app
Try activate USB debugging option in the "Developers Option" section...
Goto settings - About Device -
Under About device keep tapping on (I think) either baseband or kernel version several times... Once u do it, u will see Developers Option under the "settings" which initially was not there...
Once u have the Developers Options, click on it and u will see USB debugging section.... Check on it and then connect your phone to your computer using the USB cable... Your computer will detect it and automatically install its driver...
Done!!!!!
Sent from my GT-I9300 (Hassan Khalid Malik) using xda premium
Only way to root it is to have it connected to a computer. There's no exploit where you can root it directly from the phone
Sent from my GT-I9505 using xda app-developers app

Problems with ADB and Terminal on Macbook.

Hi guys I followed the instructions to root the Verizon G2 on my Mac. I installed adb and have an android folder but when I access terminal and type ./adb devices it detects the phone but says device offline. I'm wondering how to fix this? I feel like I've done every step right up to this point if I can get it to recognize adb commands I'm just stuck. Thanks for the help.
Sent from my VS980 4G using XDA Premium 4 mobile app

Categories

Resources