Need help rooting on ubuntu - Nexus 4 Q&A, Help & Troubleshooting

Hi, I've been having all sorts of problems trying to root/unlock with my windows7 PC. Another xda user even remoted into my computer and was unable to install the correct drivers.
I was able to unlock using a 13 year old xp PC, but when trying to unlock, the computer would freeze up every time.
Anyway, I've set up a dual boot system on my PC with win7 and unbuntu. I was hoping someone would be able to point me in the right direction to show me how to install the correct drivers in unbuntu (I'm a complete noob at it). Thanks in advance.
Sent from my Nexus 4 using xda app-developers app

Austin Ag06 said:
Hi, I've been having all sorts of problems trying to root/unlock with my windows7 PC. Another xda user even remoted into my computer and was unable to install the correct drivers.
I was able to unlock using a 13 year old xp PC, but when trying to unlock, the computer would freeze up every time.
Anyway, I've set up a dual boot system on my PC with win7 and unbuntu. I was hoping someone would be able to point me in the right direction to show me how to install the correct drivers in unbuntu (I'm a complete noob at it). Thanks in advance.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Do you have the android sdk installed? If you have no idea what that is then it is a no. If you don't then you will need to install it first.

Root
I upladed a package for you that that will automate the install process. You will have to put in the password you use to login and at one point.
To run the package, unzip the attachment to you desktop and open a terminal.
run:
Code:
cd ~/Desktop/root/
chmod a+x install_sdk.sh
chmod a+x root_nexus4.sh
./install_sdk.sh
You will have to choose which packages to install for the android sdk. A screen will popup in the middle of the install and give you options to select the packages. Check to "Tools" folder and continue. This link might help.
When this is finished run
Code:
./root_nexus4.sh

Thanks for the replies. I don't have the SDK installed. Do I need it to install the required drivers?
Sent from my Nexus 4 using xda app-developers app

Austin Ag06 said:
Thanks for the replies. I don't have the SDK installed. Do I need it to install the required drivers?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
There are no drivers to install like windows.
Post #62 in the thread below is a walk through for getting everything setup on Ubuntu 12.10
http://forum.xda-developers.com/showthread.php?p=19446284
Note: The java files have changed to version 7 so the commands in the walkthrough need to be changed to reflect this. ADB does not work without java installed. You also have to manually enter the Nexus 4 into the list of devices which is covered under the editing udev section of the post.
If your not familiar with Linux this isn't easy to get setup, Linux isn't windows that's for sure. You might be better served trying to use one of the toolkits to root your phone. I've used mskips toolkit without any problems.
http://forum.xda-developers.com/showthread.php?t=1995688
---------- Post added at 10:25 AM ---------- Previous post was at 09:59 AM ----------
Austin Ag06 said:
Hi, I've been having all sorts of problems trying to root/unlock with my windows7 PC. Another xda user even remoted into my computer and was unable to install the correct drivers.
I was able to unlock using a 13 year old xp PC, but when trying to unlock, the computer would freeze up every time.
Anyway, I've set up a dual boot system on my PC with win7 and unbuntu. I was hoping someone would be able to point me in the right direction to show me how to install the correct drivers in unbuntu (I'm a complete noob at it). Thanks in advance.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Do you have java installed properly in windows 7 and did you use the sdk manager to download and install the proper packages including the drivers?
http://developer.android.com/sdk/win-usb.html

Austin Ag06 said:
Thanks for the replies. I don't have the SDK installed. Do I need it to install the required drivers?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
In Ubuntu you do not need drivers. I attached a file that will automate the sdk install process. However, I did not include a java jdk installation. You will need that installed on ubuntu in order for the sdk to work. In the SDK there is a tool called "adb", and another called "fastboot". These two tools are what you will use to root your phone using ubuntu. If you absolutely need help installing the java jdk then let me know. Otherwise a google search "install java jdk ubuntu 12.04" should lead you to some good guides. NOTE: I am assuming you are using Ubuntu 12.04. Check which version you actually have.

Thanks for the links. I'll do some reading and try to get this set up tonight.

Austin Ag06 said:
Thanks for the links. I'll do some reading and try to get this set up tonight.
Click to expand...
Click to collapse
I just built an Ubuntu 12.10 box a couple weeks ago and followed the instructions in the link and it worked with no problems. Hardest part is setting up java as I had the instructions up on my windows pc and couldn't cut and paste the commands, the syntax has to be 100% correct or the command won't run and it was hard to judge where I needed to use spaces or not. This is the one thing I hate about Linux and that's having no executables to easily install things like java like there are in windows.

Related

Manually installing Samsung Galaxy S USB Driver for Windows x64

MS_Guru posted earlier to manually install these Samsung USB drivers since the installer is problematic.
Can someone reply with a step-by-step guide to installing them? Obviously, the first step is to plug in the phone via the USB cable to the Windows machine. From there, what is next?
Download them to your comp... Click the .exe
If that was difficult I am going to recommend using droid explorer to setup adb...
Google droid explorer and click the setup .exe
Then read the first post that says "read before posting"
Sent from my SGH-T959 using XDA App
jdancer said:
MS_Guru posted earlier to manually install these Samsung USB drivers since the installer is problematic.
Click to expand...
Click to collapse
junkdruggler said:
Download them to your comp... Click the .exe
Click to expand...
Click to collapse
True this should be in general, but he was asking how to install them manually... I used the installer and it is a gamble at best to connect my phone it would seem, so I wouldn't mind an answer either...
Like I said... Install manually by downloading and clicking the install .exe then download droid explorer to setup adb
Sent from my SGH-T959 using XDA App
Try these drivers they install easy: http://forum.xda-developers.com/showthread.php?t=728929
junkdruggler hes asking how to install without using the .exe file, or possibly how to extract from the .exe without using the .exe
I would like the know the minimum files needed to install the driver as well, 20 gig for drivers is a bit overkill, looking for the quick and dirty

[Prerequisite to Rooting] Android SDK Installer - v3.0 for Windows

**Microsoft Windows ONLY*
This installer is for new people looking to root their HTC Thunderbolt (not sure on other HTC devices but should work.) I compiled an SDK installer that installs all the necessary files to the directory of your choice (default C:\sdk) to your PC. This installer also includes HTC Sync for the Drivers as well as Java if you do not already have Java installed.
So if you're new to Android and want the tools to root, this might be the place to start before making that big step.
**If you have problems with it installing, try right clicking and running as administrator
Android SDK Installer with HTC Sync and Java v3.0 - 117 MB
*This is a pretty good size file but remember it also includes HTC Sync and Java within the installer.
*You cannot download Java and HTC Sync at the same time, so be patient.
*If you do not want to install HTC Sync but want the driver allow it to install them and then cancel out when asking to install HTC Sync.
*If you already have Java you can cancel out of the Java Installer.
**Download might take longer depending on your Internet Connection.
Please let me know what you think below.
Thanks!
Changelog:
v3.0 - Maintenance Update
v2.0 - Fixed Directory Issues
v1.0 - Initial Release
Also, here is a great tutorial brought to you by Captainkrtek.
http://forum.xda-developers.com/show....php?p=9959449
The only difference in the tutorials is the path.
The path for adb with this installer will be: C:\sdk\platform-tools
*Big thanks to CoolSilver for helping me test this out
Looks good! But where's the link?
Sorry, was still uploading it. Its updated now.
Tried it out, works fine. ADB setup and working.
Such a good idea. Trying to talk someone through installation of sdk is kind of maddening. Do we still have to add the path?
lortay78 said:
Such a good idea. Trying to talk someone through installation of sdk is kind of maddening. Do we still have to add the path?
Click to expand...
Click to collapse
No, it auto installs to C:\sdk
C:\sdk\platform-tools\
This will help a lot of those I see struggling with root not knowing anything about sdk/adb. Great post. Perhaps linking a guide to adb will help people as well?
Looks good. Newbs all around are rejoicing.
jaskru said:
This will help a lot of those I see struggling with root not knowing anything about sdk/adb. Great post. Perhaps linking a guide to adb will help people as well?
Click to expand...
Click to collapse
Here is a great tutorial brought to you by Captainkrtek.
http://forum.xda-developers.com/showthread.php?p=9959449
The only difference in the tutorials is the path.
The path for adb with this installer will be: C:\sdk\platform-tools
Andrew. You. Are. Amazing!!
Norton Antivirus Deletes it once downloaded, Its Saying it a bad Program.
Im going to Disable it and give it a shot.
failed msxml 4.0 sp3
failed windows media format 11 runtime
first time i ran with java installing also and nothing installed, so i reran it after and this time the first two failed, im assuming i do need both, should i get them from the source instead?
Ghost401 said:
Norton Antivirus Deletes it once downloaded, Its Saying it a bad Program.
Im going to Disable it and give it a shot.
Click to expand...
Click to collapse
I can guarantee and you have my word that the applicaton installer is clean. Norton AV also has many false positives.
arasky said:
failed msxml 4.0 sp3
failed windows media format 11 runtime
first time i ran with java installing also and nothing installed, so i reran it after and this time the first two failed, im assuming i do need both, should i get them from the source instead?
Click to expand...
Click to collapse
Hmm, strange. What version of Windows are you running?
Also, check to see whether you already have java installed. If you do then java is not necessary to complete the installation successfully.
Great job man great contribution! Cheers to you
andrew8806 said:
Hmm, strange. What version of Windows are you running?
Also, check to see whether you already have java installed. If you do then java is not necessary to complete the installation successfully.
Click to expand...
Click to collapse
windows vista ultimate, im running it boot camp on my mac. its what i used when i rooted my droid back in the day. java was installed using the package above since the last time i used it was to root
Edit: using a different computer, running fine, thanks
arasky said:
windows vista ultimate, im running it boot camp on my mac. its what i used when i rooted my droid back in the day. java was installed using the package above since the last time i used it was to root
Edit: using a different computer, running fine, thanks
Click to expand...
Click to collapse
Glad you were able to get it to work!
Thanks for this!!! My plan is to slowly get to root. I want to try to push a few apps first.
This works really well. Made setting up adb and rooting the thunderbolt so easy.
Thanks I used this to help root my phone.
Only issue I notice is that when I click sdk manager.exe the console comes up shortly and dissappears after about 2 seconds. How do I fix this? Is it because your program only installs the non-jdk version of Java possibly?
Any tips would be appeciated

Rooting via Parallels on Mac?

Has anyone been able to successfully root their Nexus 7 on a Mac using Parallels? Or VM Ware? Both rooting methods in the development section are Windows only, so a little cautious about trying it on a virtual machine. Any help would be appreciated.
Forget Parallels just have the Android SDK and Superboothttp://forum.xda-developers.com/showthread.php?p=28267712
Sent from my i777 using xda app-developers app
Agreed, forget VM solutions on OS X.
Install the Mac sdk, open up Terminal and have a play with adb and fastboot, plenty of guides around for the details
I tried using one click root (written for windows), with XP on my iMac via VMWare. It did not work. The problem relates to tablet could not reconnect in time to virtual machine in between reboots.
I ended up going to a Windows laptop, and it worked.
if you're comfortable with adb & fastboot, can search and read, you dont need one clicks or windows.....
tehSmoogs said:
if you're comfortable with adb & fastboot, can search and read, you dont need one clicks or windows.....
Click to expand...
Click to collapse
+1
Sent from my i777 using xda app-developers app
Well, I'm not but I think I'm about to be! Reading about and installing adb on my Mac now. That part was easy! We'll see how it goes from here. Thanks.
I use Parallels on my Mac ALL the time and have never had an issue. In fact, if you have multiple devices and worry about conflicting drivers simply copying the VM and having one for each device is the way to go. Do it all the time and I have MANY devices from different manufactures.
Edit.... BTW ... I used parallels to s-off an HTC Rezound which had many steps where the device would reboot. Re-connecting to the VM was never an issue for me.
I rooted LGL21 using Parallels on Macbook(OS X)
I'm using Parallels 9 on Macbook(OS X) and ther is Windows7 Pro.
I made trial and error using Android SDK and LG's ADB, and the beginning did not reach well.
Windows was not able to find LGL21.
but I changed USBcable 1m to 10cm
But Windows came to be able to find LGL21 when I changed a USBcable 1m to 10cm.
I thought the cause to be a ADB driver, but might be a problem of the hardware.
When you change hardware and try it, how about?
However, I'd changed both the hardware and the ADB at the same time, and the connection of the USB port changed ! I confirm an exact cause from now on !

Nexus 7 - how to on linux

Hello All,
I've read that linux does not open up the file system of nexus 7 when connected? Is that right? if yes, how can one transfer files to nexus 7?
Am waiting on my device which should arrive in few days. I really dont want to go some where else to copy my files or use apps to transfer files over the air. My phone is android and linux shows me the sd card folder right away after plugging in...
Also, can you guys please point me towards howto on rooting my device while on linux? I have seen wndows has one click method which is pretty awesome. I realize we might not have one click methods in linux, am willing to do it the hardway too..just need some direction.
Any help would really be appreciated. Thanks for taking your time.
Linux mint user here if that makes any difference. Thanks
Boomboy said:
Hello All,
I've read that linux does not open up the file system of nexus 7 when connected? Is that right? if yes, how can one transfer files to nexus 7?
Am waiting on my device which should arrive in few days. I really dont want to go some where else to copy my files or use apps to transfer files over the air. My phone is android and linux shows me the sd card folder right away after plugging in...
Also, can you guys please point me towards howto on rooting my device while on linux? I have seen wndows has one click method which is pretty awesome. I realize we might not have one click methods in linux, am willing to do it the hardway too..just need some direction.
Any help would really be appreciated. Thanks for taking your time.
Linux mint user here if that makes any difference. Thanks
Click to expand...
Click to collapse
I have no problems loading the file system on my Arch System. However, I personally rooted using Windows and the One-Click. Since all it does is use adb to push files onto the system, it is 100% possible to root and unlock using Linux. Just make sure you have the Android SDK installed. Follow this guide here: http://forum.xda-developers.com/showthread.php?t=1741395 for the acutal rooting
-Twitish
twitish said:
I have no problems loading the file system on my Arch System. However, I personally rooted using Windows and the One-Click. Since all it does is use adb to push files onto the system, it is 100% possible to root and unlock using Linux. Just make sure you have the Android SDK installed. Follow this guide here: http://forum.xda-developers.com/showthread.php?t=1741395 for the acutal rooting
-Twitish
Click to expand...
Click to collapse
Thanks for taking you time out. When you say you had no problem on arch, are you saying the file explorer just showed the nexus files? were you able to just copy and paste stuff into nexus?
Thanks for the link..will go through it
Boomboy said:
Thanks for taking you time out. When you say you had no problem on arch, are you saying the file explorer just showed the nexus files? were you able to just copy and paste stuff into nexus?
Thanks for the link..will go through it
Click to expand...
Click to collapse
By "showing Nexus files" do you mean the SD card? Linux supports PTP / MTP so this won't be a problem. You won't be able to directly view any other files without some other server installed on the Nexus, such as NFS or CIFS. As already stated, if you install the Android SDK, you will be able to root the device using adb / fastboot shell commands.
I think it depends on which distribution you are using. Ubuntu doesn't have mtp support by default.
Sent from my Nexus 7 using Tapatalk 2
gbroon said:
I think it depends on which distribution you are using. Ubuntu doesn't have mtp support by default.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Easy to get it though.
Yes, i am able to mount my internal storage in Arch if that's what you are asking. As stated before, you must have MTD support in your distro. Since Mint is based on Ubuntu, you may have to do some work. Sorry, not really sure how in Ubuntu.
Sent from my Nexus 7 using xda app-developers app
twitish said:
I have no problems loading the file system on my Arch System. However, I personally rooted using Windows and the One-Click. Since all it does is use adb to push files onto the system, it is 100% possible to root and unlock using Linux. Just make sure you have the Android SDK installed. Follow this guide here: http://forum.xda-developers.com/showthread.php?t=1741395 for the acutal rooting
-Twitish
Click to expand...
Click to collapse
wmoore said:
Easy to get it though.
Click to expand...
Click to collapse
Thanks a ton buddy! Guess I gotta follow that link as am a Mint user..

[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

Categories

Resources