[Q] How to root an XPeria Z..? in Linux ?? - Xperia Z Q&A, Help & Troubleshooting

Good morning Gents and Ladies
This is my first post in xda-developers.
I am planning to buy a smartphone for pen-testing besides of other normal smartphone usage sutff.
My choices have bioled down to the Sony Xperia Z, and the Samsung Galaxy S4...
Only problem is tha i do not know how to root these devices.... by what i have seen so far, it requires flashing the ROM, of them, but i have no access to Windows computers... i only have an Ubuntu 12.04 installation in my laptop, but all the tutorials i have seen so far, involve using some sort of win applications....
I need to root the device in order to get Kali linux, or backtrack linux, or BackBuntu to run in a chroot in an SD card... as well as to install ANTI, and dSploit...
Any hints of how to do this using Linux..??
and more.. the kernel images used in the rooting process are no longer hosted in the websites, where can i get them..?
best regards
Alex

You don't need Windows to root the device. I've successfully rooted the device with locked and unlocked bootloader under linux. You can just run the needed adb commands under linux if you have the android sdk installed.

Downloading Android SDK now... Installed Eclipse already...
djselbeck said:
You don't need Windows to root the device. I've successfully rooted the device with locked and unlocked bootloader under linux. You can just run the needed adb commands under linux if you have the android sdk installed.
Click to expand...
Click to collapse
Hi, thanks for the answer, is the source code of ADB packed in the SDK, and i just need to build an executable, ? or is it just a stand-alone binary..?
BRGDS
Alex

All you need is the platform-tools folder from the sdk. The binary for adb will be present for your platform. I rooted on a mac.
Sent from my Nexus 10 using Tapatalk HD

Related

Unlocking and rooting N1 with a ppc mac?

I searched with all of the tools, and cant find an answer.
My only computer is an eMac G4 running OSSX10.4 tiger. Bought it for $20 at a school garage sale after my laptop got stolen. I own a nexus one that I wanna root so I can flash cyanogenmod. I've flashed WM plenty of times on my old computer, but I've never tried anything on the eMac.
So when I was trying yesterday, I couldn't even unlock the bootloader, none of my commands were working. I cd'd the fastboot folder and tried multiple commands, and './fastboot-mac devices' wouldn't show anything (would just give a command error, as if I was typing the wrong thing, not as if the device wasn't present. Can my Power PC mac with tiger accept these commands? I need to know.
To my understanding, the sdk needs at least a mac running OSX10.5 leopard or higher, and I am running a g4 ppc on OSX10.4 tiger. I didn't think I actually needed the sdk though, just the tools. Someone with any insight, please help!
First of all, you need to download the Android SDK (setup) for MAC as it contains the necessary tools and USB Drivers. Download from http://developer.android.com/sdk/index.html
As far as I know, cd command is not available in MAC and is present only on Windows based systems. You need to do some research with the MAC terminal. Try using help command.

Can't install ADB? Please help...

I've tried following the tutorials on several sites, including XDA, and no matter when I try, every time I navigate to the folder with the drivers the tutorial says to download, it tells me no drivers were found for my device. I'm beginning to get a little frustrated.
I'm running windows Vista 64-bit ultimate on my desktop and win 7 64-bit ultimate on my desktop. Neither worked. I tried installing motorola's ADB drivers too. Those installed properly, but I couldn't run ADB still. Help?
I can't get ADB to work properly either. I have it installed correctly because it works in my other devices and adb shell works on the X, but adb remount does not work at all for me.
Breakthecycle2 said:
I can't get ADB to work properly either. I have it installed correctly because it works in my other devices and adb shell works on the X, but adb remount does not work at all for me.
Click to expand...
Click to collapse
I finally figured out what I was doing wrong. It's more of a problem of omission from all the tutorials.
Jyosua said:
I've tried following the tutorials on several sites, including XDA, and no matter when I try, every time I navigate to the folder with the drivers the tutorial says to download, it tells me no drivers were found for my device. I'm beginning to get a little frustrated.
I'm running windows Vista 64-bit ultimate on my desktop and win 7 64-bit ultimate on my desktop. Neither worked. I tried installing motorola's ADB drivers too. Those installed properly, but I couldn't run ADB still. Help?
Click to expand...
Click to collapse
I actually did not install the SDK or the drivers from the download. I just installed the moto-connect drivers, and then I use ADB and DDMS.bat out of the tools folder from the SDK zip file. I don't know if those drivers in the SDK might be your problem?
Zaphod-Beeblebrox said:
I actually did not install the SDK or the drivers from the download. I just installed the moto-connect drivers, and then I use ADB and DDMS.bat out of the tools folder from the SDK zip file. I don't know if those drivers in the SDK might be your problem?
Click to expand...
Click to collapse
I ended up reinstalling the moto-drivers, and then installing the SDK and using the ADB from the tools there, and that worked.
For a good guide on his to root that goes into really good detail and if you follow it to a tee you should have no problems check out alldroid.org/default.aspx?g=posts&t=554 it was originally written by rainabba but then I took it into a depth that no one has done yet
Sent from my DROIDX using XDA App

ubuntu 12.10 android tools (ADB and fastboot)

Hello, first post ever so sorry if Ihave posted this in the wrong section.
I just thought I would share this info with fellow Ubuntu users who may be interested in unlocking and rooting their devices.
You can download and install ADB and Fastboot in ubuntu 12.10 through the synaptic package manager (which itself can be installed from the software center).
The package is known as Android-tools. This will ensure you have the tools to carry out ADB and fastboot requests. I think the android SDK will still be required though so still download that.
This should work on linux mint and other ubuntu based distros.
Also, you can download these repos on other versions of ubuntu too using the terminal.
Just follow http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html guide.
No offense to "Web Upd8", but adding some random blog's PPA to your system to do something that Google has made completely trivial on Ubuntu is pretty dumb to say the least

How To Use ADB Without SDK

Hello Everyone.
Let me just start by saying I AM NOT a developer and do not take credit for this information. Just did some Googling and came across it and I haven't really seen this in the forum here and I really found it useful. It is a link to an article with instructions on how to set up ADB without the massive developer download that comes packaged with the standard Android SDK. Written by Lalit Indoria on the "Hack My Android" site.
Basically it allows you to easily run ADB commands without ANY complicated set up. Remember you will still need the proper drivers for your device and always follow instructions so you don't bork anything up. I followed this to both flash the new 4.4 image and also root my Nexus 4. With it being the weekend I don't suspect we will get any OTA until Monday at the earliest so for those of us that are growing ever impatient.. here you go. Enjoy. :good:
http://www.hackmyandroid.com/use-adb-fastboot-commands-without-installing-android-sdk/2479
Also on recent debian distributions (currently debian jessie - testing - and debian sid - unstable), or ubuntu quantal and newer, you can simply install adb and fastboot by installing a few packages:
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
jcnbama said:
Hello Everyone.
Let me just start by saying I AM NOT a developer and do not take credit for this information. Just did some Googling and came across it and I haven't really seen this in the forum here and I really found it useful. It is a link to an article with instructions on how to set up ADB without the massive developer download that comes packaged with the standard Android SDK. Written by Lalit Indoria on the "Hack My Android" site.
Basically it allows you to easily run ADB commands without ANY complicated set up. Remember you will still need the proper drivers for your device and always follow instructions so you don't bork anything up. I followed this to both flash the new 4.4 image and also root my Nexus 4. With it being the weekend I don't suspect we will get any OTA until Monday at the earliest so for those of us that are growing ever impatient.. here you go. Enjoy. :good:
http://www.hackmyandroid.com/use-adb-fastboot-commands-without-installing-android-sdk/2479
Click to expand...
Click to collapse
Mini-adb comes with adb.exe, fastboot.exe and two adb .dlls needed to run adb in windows. So basically to run adb all that is required is 3 files. Also fastboot doesn't require anything except the executable. Mini-adb has been out there for about 2 years that I know of on androidforums.
fredericve said:
Also on recent debian distributions (currently debian jessie - testing - and debian sid - unstable), or ubuntu quantal and newer, you can simply install adb and fastboot by installing a few packages:
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
Click to expand...
Click to collapse
If you do that, you also need to do step 1 from here: http://bernaerts.dyndns.org/linux/74-ubuntu/245-ubuntu-precise-install-android-sdk
You can install the Wugs nexus toolkit. It has all the features you need.
eksasol said:
If you do that, you also need to do step 1 from here: http://bernaerts.dyndns.org/linux/74-ubuntu/245-ubuntu-precise-install-android-sdk
Click to expand...
Click to collapse
That was not necessary on my debian Sid install. Yesterday I simply installed the packages, Co nected my nexus 7 and used adb sideload to flash the kitkat ota.
The steps seem to apply to Ubuntu precise. Maybe it is not necessary in newer versions.

[Q] TWRP ADB not working on windows?

I've noticed that I can't use ADB while in recovery mode on windows yet it works fine on linux. I'm assuming it's a driver issue being that with windows you have to install motorola's driver and on linux, like with everything, it just kinda works. My question is is there a way to get ADB within recovery working on windows. It would be helpful to not be limited to only being able to use it and mount as a storage device while inside userland. I do have a linux machine but whenever I'm on my gaming rig it would be nice to be able to use ADB and USB storage in recovery. Thanks!
I'm currently running Windows 7 SP1, Android 4.4.4 Kitkat, Linux Mint 17, and TWRP 2.8.0.1(I just noticed there was a 2.8.1.0 update although I doubt any difference will be made)
Have you updated the Android SDK?

Categories

Resources