Rooting Zenfone 2 WW under Linux? - ZenFone 2 Q&A, Help & Troubleshooting

Is there a tutorial or explanation, how to root a Zenfone 2 WW under Linux, especially with Ubuntu?

lg-optimus said:
Is there a tutorial or explanation, how to root a Zenfone 2 WW under Linux, especially with Ubuntu?
Click to expand...
Click to collapse
Same as windows but easier, do sudo apt-get install android-tools then just follow the other guides on here but don't do the parts where it says to install adb and setup drivers
If android-tools doesn't work (can't remember the exact package name as I don't use Debian distros) then try phablet-tools

Niropa said:
Same as windows but easier, do sudo apt-get install android-tools then just follow the other guides on here but don't do the parts where it says to install adb and setup drivers
If android-tools doesn't work (can't remember the exact package name as I don't use Debian distros) then try phablet-tools
Click to expand...
Click to collapse
I think he's talking about the fact that the scripts to root are windows scripts.

Maybe I can look at the windows-script and transfer the commands to Linux. But I would be glad, if someone can name the needed commands. The last Asus device, I have rooted under Linux, was a Nexus 7 and this was very easy, same with a LG P880. It is always an adventure, when you have to fear you brick the phone.
This is already installed:
ii android-tools-adb 4.2.2+git20130218-3ubuntu23 amd64 Android Debug Bridge CLI tool
ii android-tools-fastboot 4.2.2+git20130218-3ubuntu23 amd64 Android Fastboot protocol CLI tool
Click to expand...
Click to collapse
But I don't know, if it is necessary to define udev-rules.

Related

Installing boot.IMG with Ubuntu

Hi!
I recently switched over to ubuntu from Windows and I don't know how to flash boot.IMG with Ubuntu. Anybody can give me a tutorial?
Btw, when I try running an ADB command inside terminal I get a message that tells me that it's not known as a command.
Tingelholm said:
Hi!
I recently switched over to ubuntu from Windows and I don't know how to flash boot.IMG with Ubuntu. Anybody can give me a tutorial?
Btw, when I try running an ADB command inside terminal I get a message that tells me that it's not known as a command.
Click to expand...
Click to collapse
hello
follow this tutorial
http://doc.ubuntu-fr.org/android
you don tneed to install all the sdk just the android sdk tool
than if it s not working follows this
http://ptspts.blogspot.fr/2011/10/how-to-fix-adb-no-permissions-error-on.html
hope it s help for me it s working for ubuntu and other linux
JEZ69 said:
hello
follow this tutorial
http://doc.ubuntu-fr.org/android
you don tneed to install all the sdk just the android sdk tool
than if it s not working follows this
http://ptspts.blogspot.fr/2011/10/how-to-fix-adb-no-permissions-error-on.html
hope it s help for me it s working for ubuntu and other linux
Click to expand...
Click to collapse
I'm sorry, but you haven't got the first link by any possibility in English?
Try this http://www.xda-developers.com/android/script-helps-users-configure-adb-and-fastboot-on-linux/

[HOW TO] set up adb on UBUNTU 12.04, 11.10 and 11.04 easy way

If you are using Windows 8.1 or Windows 8, you will know that the HTC drivers are not compatible and you cannot get fastboot access using Windows.
So what is the next best option? Dual boot to LINUX (UBUNTU).
This guide is a step by step noob friendly guide to set up the adb and fastboot tools on UBUNTU without the hassels of downloading SDK or JDK
Step 1: Open teminal on UBUNTU
Step 2: type the following as it is one at a time
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
Step 3: Update the adb packages by typing the following in the terminal
Code:
sudo apt-get install android-tools-fsutils
Step 4: Now download the Linux Fastboot files from downloads below. Extract on Desktop
Step 5: Run termial and type the following one by one
Code:
sudo adb devices
This will start the adb server
Code:
cd Desktop
This moves you to your desktop
Code:
cd Fastboot/ Linux
This will get you inside the fastboot folder extracted on the desktop
Code:
sudo fastboot devices
This will show the list of all the fastboot devices connected to the PC
(Remember to keep your phone in the fastboot mode by holding the "power + volume down" keys and then selcting fastboot from the bootloader menu)
Thats it!!
Congratulation you have now access to fastboot on your linux UBUNTU PC!
Hit that THANKS button if it helped!
Soutik said:
Code:
[/ sudo adb devices]
[/QUOTE]
Thanks for the info! One caveat, you forgot to terminate your code blocks with /CODE :D
like this:
[CODE][/ sudo adb devices]
Click to expand...
Click to collapse
selivanow said:
Thanks for the info! One caveat, you forgot to terminate your code blocks with /CODE
like this:
Code:
[/ sudo adb devices]
Click to expand...
Click to collapse
Thanks a lot!!! I was wondering why it wasnt like the other posts.
This is my first post!! Thanks for correcting me!
I thought the android tools where available in the standard repositories?
I am running mint and have never added the new repo.
Yes they are.. But setting them up requires u to install SDK and then extract the libs from there... This one just gets going for noobs who face trouble on win 8 and really really have to use Linux to access boot loader and fastboot.. Hence a guide
Sent from my Nexus 5 using xda app-developers app

[GUIDE] ADB & Fastboot not working under Windows? UBUNTU WILL DO!

The keystone of this guide: make ADB & fastboot working in Ubuntu, when nothing else helps with with Windows. Resent Windows OS versions are getting less flashing-friendly and some brands (like Samsung) release new devices on the market without compatible USB drivers. Before losing countless hours trying to solve the problems, try this, possibly very easy solution.
Compatible devices: ADB will work on nearly all devices, fastboot should be also usable for very most of the devices with bootloader mode: Nexus, HTC, Sony etc.
The guide is posted here in Nexus 7 (2013) thread for high amount of reported bootloops right after unlocking the bootloader- or problems with executing fastboot commands in Windows, which must work to unbrick the device.
DISCLAIMER:
Code:
* [I]I am not responsible for bricked devices or PCs, personal crisis, depressions[/I]
* [I]sleeples nights, termonuclear wars, electricity blackouts, short circuits,[/I]
* [I]or for bad weather in your region that will brick your Android device or your PC.[/I]
* [I]I try to help here, but it may not work for you. You do all on your own risk.[/I]
Click to expand...
Click to collapse
INSTALL ONLY FASTBOOT :
Windows can cause so many problems, that sometimes ADB & Fastboot simply won't work.
Run therefore ADB or fastboot in Ubuntu if Windows fails.
Installing ONLY fastboot in Ubuntu (should work with 10.x, 11.x and 12.x)
(internet connection required)
Run in the Terminal:
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
Reboot isn't required.
Save all the flashing files on home folder, or navigate with "cd" to your files.
Happy flashing!
For the case it doesn't work after this, try THIS method which is little bit more complicated, but should work in actually all Linux OS variants.
Click to expand...
Click to collapse
INSTALL ADB AND FASTBOOT :
To fix a bootloop, for unbricking, to root, to unlock/relock the bootloader, for flashing of a stock firmware, kernel, or recovery: for all those things fastboot must work reliably. And in Windows, it sometimes simply won't work at all, whatever you try.
Windows OS is complicated. And needs drivers at all times. Successful use of ADB or Fastboot with Windows is totally dependent on perfectly installed drivers. And there we have the source of many problems. As way around all those in fact Windows related promblems, we will use here Linux instead of Windows. Linux needs no drivers. Linux is free. Linux needs no antivirus software. Linux gets optimized day by day. Your Android device is Linux based.
After reading how many users encounter day by day countless issues by attempt to run fastboot and ADB commands (especially here in Nexus threads), I've decided to make this guide. There are some longer and complicated guides here around. I like fast, easy and secure way- so I hope this will help.
STEP 1: how to run Linux on Windows PC
There are many variants of Linux OS, but to keep the things really simple I will refer here entirely to the most popular variant of Linux: Ubuntu.
Windows users have three common ways to run Ubuntu on their Windows PC:
OPTION 1: installing Ubuntu permanently (my personal preference)
Pros: you will gain Ubuntu OS besides Windows and possibility for dual-boot. Reboot between Windows and Ubuntu takes about 1 minute. Full functionality of both operating systems.
Cons: in very seldom cases the installation of Ubuntu doesn't work flawless and if Ubuntu gets installed on the same HDD, Windows OS can get partly damaged or unusable, or has to be re-installed. Part of HDD memory space has to be permanently reserved for Ubuntu (min. 10GB recommended) and won't be accessible from Windows anymore.
OPTION 2: running Ubuntu from bootable live-CD
Pros: Ubuntu won't get physically installed, it runs 100% virtually from bootable live-CD and uses only RAM of the PC. People who don't desire to install Ubuntu permanently will have no changes on their PSs. No potential risks due to unsuccessful installation. In general, works with most of the computers.
Cons: No data or settings can get permanently saved in Ubuntu, especially Linux novices will have to learn quickly about setting the permissions: each time again after restarting Ubuntu session from the live-CD. Ubuntu is considerably slower this way.
OPTION 3: running Ubuntu from VirtualBox (in your Windows OS)
Pros: easy way to run Ubuntu directly from Windows in kind of "sandbox"
Cons: doesn't work well with some PCs
STEP 2: INSTALLING FASTBOOT & ADB IN UBUNTU
Now when your Linux OS is working, we can finally go for it!
Make sure to have internet connection
open the Software Center in Ubuntu
install openjdk-7-jdk
install Eclipse
download adt-bundle for your respective OS (32-bit or 64-bit version) from http://developer.android.com/sdk/index.html
extract the folder and paste the extracted folder to prefered folder and rename it to your prefered folder name
run the Terminal and navigate (cd) to the unzipped folder into "platform-tools"
Example for novices: I have pasted my extracted adt-bundle folder under "Home" and renamed it to "SDK", so I have to navigate to my platform-tools this way:
Code:
cd /home/tetakpatak/SDK/sdk/platform-tools
After this, you should be able to execute all the ADB and fastboot commands
Now just mind to paste all the files you desire to flash or push or sideload into your "platform-tools" folder!
Happy flashing!
Click to expand...
Click to collapse
DOWNLOAD LINKS
Ubuntu OS: DOWNLOAD HERE
Virtual Box: DOWNLOAD HERE
Warning: VirtualBox supports only the 32-bit version of Ubuntu, so also owners of 64-bit PC-systems should make sure to download the 32-bit version of Ubuntu, and not the 64-bit version!
ADDITIONAL INFORMATION AND USEFUL LINKS
Checklist for ADB:
for using in Android OS make sure to enable USB debugging under "developer options"
ADB works in Android OS and in the recovery mode, but not in the bootloader mode
make always sure at the very beginning that your ADB connection works by typing "adb devices" (the response must include a serial number on the left and "device" right after it!)
Basics about ADB: check for example this excellent ADB guide
Checklist for fastboot:
fastboot commands can be executed only in bootloader mode
fastboot commands will work also if USB debugging was disabled
make always sure at the very beginning that your fastboot connection works by typing "fastboot devices" (the response must include a serial number on the left and "fastboot" right after it!)
by using fastboot for the first time on a PC or Android device, never start with bootloader flashing! Missmatched bootloader flashing can hard-brick the device. Rather first execute "fastboot reboot-bootloader" and try to flash a kernel or recovery to make sure flashing commands are working and the connection is established.
Flashing with fastboot (example Nexus 7 v2012): check this excellent guide by @comminus
My self made video of flashing a full factory image with manually done fastboot commands in real time (example Nexus 7 v2012):
Click to expand...
Click to collapse
Please use "thanks" button beyond my posts if you find this guide useful. I've spent my time to help you, who read this.
TROUBLESHOOTING:
Occasionally, the device's storage doesn't get recognized in Ubuntu (something like MTP Camera error, can't mount camera, or so). The source of this problem is, that Ubuntu 12.04 doesn't support MTP natively yet, hopefully 13.04 will do.
This is the solution that should work with Ubuntu 12.04, enter in Ubuntu Terminal following:
Code:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
sudo apt-get install gvfs
restart your PC, now everything should work (enable USB debugging if it doesn't)
If this method wasn't successful, you can try alternatively to do the same thing with these two repos:
Code:
sudo add-apt-repository ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install go-mtpfs
After the last command just reboot the PC
Also this repo could work:
Code:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
sudo apt-get dist-upgrade
If none of both repos works and you want to uninstall both of them, just enter:
Code:
sudo ppa-purge ppa:webupd8team/unstable
sudo ppa-purge ppa:langdalepl/gvfs-mtp
great tutorial!
tetakpatak said:
reserved
Click to expand...
Click to collapse
Hey brother, great tutorial...
I know this will help so many people in the future and i love to see anything linux based! I have been using linux/bsd based operating systems for years and i love the way linux and android work together!
Take care my friend and thanks again for all of the hard work.
-droidshadow
You can also put your computer in test mode which bypasses msm kernel mode code signing policy. This will enable the ability to install the drivers needed. From the administration profile on your PC open a command prompt and type
Bcdedit.exe -set TESTSIGNING ON
Then restart your computer.
Edit: This is for Windows 7 X64 and Windows 8 users alike.
Sent from my Nexus 7 Flo running CM 11 4.4.2 with ElementalX Kernel using XDA Premium 4 mobile app
I keep getting a keyserver error when entering first command.
Got it to install the problem I see now is with java
Steve One said:
I keep getting a keyserver error when entering first command.
Click to expand...
Click to collapse
Which Linux version do you use?
tetakpatalked from Nexus 7 flo
tetakpatak said:
Which Linux version do you use?
tetakpatalked from Nexus 7 flo
Click to expand...
Click to collapse
Mint15
Here's another shot
Steve One said:
Here's another shot
Click to expand...
Click to collapse
Please google a bit, I think you need another repo for Mint 15, I think I saw it somewhere in www last week. Sorry, I can't research right now until end of week.
tetakpatalked from P5110
tetakpatak said:
Please google a bit, I think you need another repo for Mint 15, I think I saw it somewhere in www last week. Sorry, I can't research right now until end of week.
tetakpatalked from P5110
Click to expand...
Click to collapse
I'm truly stumped went from Windows Vista to all Linux to be able to use adb and still can't get it to recognize my device.
I installed the java 7 sdk but it still doesn't recognize my device..........guess I will try to get a Petra CD don't know what else to do ha ha and I thought this was the easy way to get adb to work. Thank you for your help kind Sir.
Steve One said:
I'm truly stumped went from Windows Vista to all Linux to be able to use adb and still can't get it to recognize my device.
I installed the java 7 sdk but it still doesn't recognize my device..........guess I will try to get a Petra CD don't know what else to do ha ha and I thought this was the easy way to get adb to work. Thank you for your help kind Sir.
Click to expand...
Click to collapse
It should definitely work with Ubuntu versions 10. 11. and 12.04 even without extra installing Java. I didn't try it with other Linux versions.
Which Linux did you install? Did you enable USB debugging?
Check in www as there are different repos available for ADB and fastboot.
Opening post updated: added procedure for enabling all ADB and fastboot functions in Ubuntu, for the short way with enabling fastboot only doesn't work with every Ubuntu version.
tetakpatalked from the legendary i9000

Moving from Windows to Linux

Hi,
I'm considering moving ftom Windows to Linux and i want to know if there are any alternative of the tools we used to bring the life to our Zen like xFSTK, fastboot, adb, Asus adb driver.
And does the command in linux different from Windows like
fastboot flash recovery ....img
adb reboot recovery
And the last one, can we run Windows batch tools like ZE55XML Modder (bat) on linux?
The distro is ElementaryOS
HungNgocPhat said:
Hi,
I'm considering moving ftom Windows to Linux and i want to know if there are any alternative of the tools we used to bring the life to our Zen like xFSTK, fastboot, adb, Asus adb driver.
And does the command in linux different from Windows like
fastboot flash recovery ....img
adb reboot recovery
And the last one, can we run Windows batch tools like ZE55XML Modder (bat) on linux?
The distro is ElementaryOS
Click to expand...
Click to collapse
Hi,
1. Fastboot and ADB:
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
However, fastboot needs you to run it as superuser so it could detect the device:
Code:
sudo fastboot -any command here-
2. Asus ADB Driver isn't needed.
3. xFSTK alternative? I don't know.
4. Is there a bash script on it?
Sent from my ASUS_Z00A using XDA Labs
krasCGQ said:
Hi,
1. Fastboot and ADB:
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
However, fastboot needs you to run it as superuser so it could detect the device:
Code:
sudo fastboot -any command here-
2. Asus ADB Driver isn't needed.
3. xFSTK alternative? I don't know.
4. Is there a bash script on it?
Sent from my ASUS_Z00A using XDA Labs
Click to expand...
Click to collapse
Does xfstk works on wine if i install intelsoc and other needed driver in wine?
And also, can i attach the moorefield to a windows xp VM on linux?
HungNgocPhat said:
Does xfstk works on wine if i install intelsoc and other needed driver in wine?
And also, can i attach the moorefield to a windows xp VM on linux?
Click to expand...
Click to collapse
Don't use Wine. Instead, make a Virtual Machine and install Windows over it with their drivers.
Sent from my ASUS_Z00A using XDA Labs

Replacing stock 6.0 system.img with rooted system.img? (like 13b root method)

Are we able to take our firmware to 6.0 (2BA) and swap out the system.img with a rooted system.img like we did on 13b?
I am currently unable to UsE because I only have a mini laptop that's 32 bit and I cannot get ANYTHING to work, I cannot even boot FWUL in Virtual Box, live, nothing.... ..
I am currently in 13b root and there are NO custom roms I can use. Nothing. And no way to upgrade and keep root I believe?.
robles4242 said:
Are we able to take our firmware to 6.0 (2BA) and swap out the system.img with a rooted system.img like we did on 13b?
I am currently unable to UsE because I only have a mini laptop that's 32 bit and I cannot get ANYTHING to work, I cannot even boot FWUL in Virtual Box, live, nothing.... ..
I am currently in 13b root and there are NO custom roms I can use. Nothing. And no way to upgrade and keep root I believe?.
Click to expand...
Click to collapse
not posable...
google made a verification system for Android 6.0+ (locked bootloader only) that will check if anything in the system partition has changed...
I believe SALT can run on any architecture( x86 32 or 64bit, arm, arm64, etc ). you can use a different distro and install salt from there. you can use Linux Mint or MX Linux since They still have 32bit versions and are easier to use. you can use VirtualBox (have to install the distro) or USB(you can run directly off of it). to start the installation of SALT you need an internet connection. open terminal by Ctrl + Alt + t or by searching it in the app menu.
type these commands in the terminal:
Code:
sudo apt update
sudo apt install policykit-1 yad git xterm python3 python3-usb python3-crypto python3-pip
sudo pip3 install zstandard
git clone [url]https://github.com/steadfasterX/SALT.git[/url]
cd SALT
sudo ~/SALT/salt
after that just follow the USU thread...

Categories

Resources