Moving from Windows to Linux - ZenFone 2 Q&A, Help & Troubleshooting

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

Related

What is adb??

I don't get it..??
I'm using mac by tha way.
I downloaded the the sdk but I don't know how to work it,
Any help??
Sent from my HTC Vision using XDA App
ADB = Android Debug Bridge
you can debug your phone from PC (via USB cable)
I think the new version of the SDK requires you to update the software to get the tools.
Unzip/untar the SDK somewhere on your mac
Open a terminal window using the terminal application (Applications/utilities/terminal)
cd to the tools folder (cd /somewhere/on/your/mac/android_sdk/tools)
run the android program (either type android or probably ./android)
(it might be ...android_sdk/SDK manager in the new version)
The SDK and AVD should start up... click on buttons until the packages are updated. After that, you should have the adb tools. You might as well install fastboot while you are at it.
http://forum.xda-developers.com/showthread.php?t=865685
http://forum.xda-developers.com/showthread.php?t=835777
8.- What is ADB ??
ADB is the Android Debug Bridge. It uses linux commands to send instructions to the phone.
You can use ADB commands straight from an MS-DOS prompt or open an ADB shell to type linux commmands.
With ADB you can install apps, remove apps, flash images to your phone, and make many changes, all from your PC.
If you are not familiar with MS-DOS / LINUX commands this can be a bit complicated, so this is for slightly advanced users.
To get an ADB shell setup and running you need to download the Android SDK, add your SKD's path to the environmental variables, and then open an MS-DOS command line box on your Windows PC.

[Q] HTC-Drivers needed on linux?

Hello,
i am quite new on linux now, because Windows is ****ing me up with its bluescreens and bugs right now, but i cant find any htc drivers for linux.
Do i need any special program for linux, or can i use the default adb and fastboot of the SDK?
I recognized, that the adb devices just shows : ???????????????? no permissions.
JoePi
JoePi said:
Hello,
i am quite new on linux now, because Windows is ****ing me up with its bluescreens and bugs right now, but i cant find any htc drivers for linux.
Do i need any special program for linux, or can i use the default adb and fastboot of the SDK?
JoePi
Click to expand...
Click to collapse
cd to the directory where the fastboot\adb files are
sudo su -
password
./adb startserver
./adb whateverhere
or
./fastboot whateverhere
(i never need drivers some people will say oh you need to do this this and this but meh)
Ok thank you .
i knew to run as root user, but i though there were drivers for htc phones.
But now i am done : thank you
Lloir said:
cd to the directory where the fastboot\adb files are
sudo su -
password
./adb startserver
./adb whateverhere
or
./fastboot whateverhere
(i never need drivers some people will say oh you need to do this this and this but meh)
Click to expand...
Click to collapse
Thanks for this! Now I'll be able to flash without worries when I'm on my eeepc.
Sent from my HTC One V using Tapatalk 2

[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

Rooting Zenfone 2 WW under Linux?

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.

Categories

Resources