• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [TUTORIAL] ADB Workout Tutorial for Linux+Windows (100% working)

mastermind1024

Android Expert
I found many having difficulty in getting adb working especially in linux so created this seperate fullproof thread as tried,tested & working method to get adb working.

This method can also be used for other Android phones which are not supported by google drivers (so called third party usb vendors).Replace 0x1d91 with your device vendor id.If u don't know vendor id then ask here I will guide u how to know vendor id.
If u don't have usb drivers for your device then also ask me I will guide how u can modify google usb drivers to use with your device.

Now let's talk of Micromax A70:

WINDOWS 7:

Drivers for Micromax A70- Micromax A70 USB Driver.rar

Install JDK and Android SDK and update SDK.(google if u want to know how)

Turn on USB Debugging in phone in Settings>Applications>Development

Connect phone to PC & install drivers
Your pc may not find the drivers so go to Device Manager n Update Driver n choose location of the downloaded drivers.

Now Most important part.

Create adb_usb.ini file in C:\Users\YOUR USERNAME\.android folder and add following to the file.


0x1d91

(filename is adb_usb.ini, if u already have that file then delete it & create new one OR u can add 0x1d91 to next line without deleting anything in file.)

Save the file and exit.


OR

Download this adb_usb.ini file n place it in C:\Users\YOUR USERNAME\.android

Now open command prompt and navigate to platform-tools directory of android sdk.
Type "adb devices" without quote and hit enter.

Your Micromax A70 will show up in connected devices for sure.
No need to install 91pc suite anymore.


WINDOWS 7 64bit:

Same steps of above 32bit system but I added this to avoid Driver not signed problem at boot which forced to use F8 option to disable driver signing check.

Driver Signature Enforecement Overrider

This software will take care of this issue.How-to is also on the download page.U can download it here-
Download Driver Signature Enforcement Overrider 1.3b Free - Use this tool to easily bypass the Driver Signature Enforcement in both 32-bit and 64-bit version of Microsoft Windows Vista - Softpedia

LINUX (Ubuntu):

Install JDK and SDK. (i will provide link to install jdk 7 which i used)
JDK- How To Install Oracle Java 7 (JDK) In Ubuntu ~ Web Upd8: Ubuntu / Linux blog
SDK-
Download tar.gz package & extract it.
In terminal

cd /home/user/extracted_folder/android-sdk-linux_x86/tools
./android

Download all necessary packages by clicking on "Available packages" and checking "Android Repository". Then click on "install selected" button and another window will pop up. Check "accept all" and click on "install" button. Wait and you will have all SDK packages installed,adb too.

Code:
sudo gedit /etc/udev/rules.d/99-android.rules

Then paste following in it.(I am writing code for Micromax only,there is a list of all manufactures,if u want I can give it.U can also get it using link at bottom from xda)

#Micromax
SUBSYSTEM=="usb", SYSFS{idVendor}=="1d91", MODE="0666"

Now, use following instead so u will also get fastboot working alongwith adb.

#ADB on Micromax A70
SUBSYSTEM=="usb", SYSFS{idVendor}=="1d91", MODE="0666"
#fastboot on Micromax A70
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

Save & Exit.

For ubuntu 11.04,paste this.(i m not sure of this but found in more then 2 guides)

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d91" TEST=="/var/run/ConsoleKit/database", RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

Save & exit.

FOR UBUNTU 12

#ADB on Micromax A70
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d91:0009", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"
#fastboot on Micromax A70
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1:0009", SYMLINK+="android_fastboot", MODE="0666" GROUP="plugdev"
TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

save & exit.

Code:
sudo chmod a+rx /etc/udev/rules.d/99-android.rules

sudo service udev restart

sudo gedit .bashrc

At the end paste this-

export PATH=${PATH}:/home/YOUR-USERNAME/android-sdk-linux_x86/platform-tools

(this may change according to your android-sdk directory)

Code:
source ~/.bashrc

Now the most important part, again at Terminal,

Code:
mkdir -p ~/.android && echo 0x1d91 > ~/.android/adb_usb.ini && adb kill-server && adb devices

Viola!!!

Trust me,if you follow all steps properly adb will work for sure.

HIT THANKS IF IT HELPED...
 
Problem:

No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'mdb' from package 'mono-debugger' (universe)
Command 'kdb' from package 'elektra-bin' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'ab' from package 'apache2-utils' (main)
Command 'ad' from package 'netatalk' (universe)
adb: command not found

My ubuntu 11.04 doesn't recognize ADB!
 
Problem:

No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'mdb' from package 'mono-debugger' (universe)
Command 'kdb' from package 'elektra-bin' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'ab' from package 'apache2-utils' (main)
Command 'ad' from package 'netatalk' (universe)
adb: command not found

My ubuntu 11.04 doesn't recognize ADB!

did u updated your sdk?if not then 1st update it coz adb is not provided in tar.gz package of sdk.
@terminal, cd to android-sdk/tools and run ./android
this will open avd & sdk manager, install all available packages.
I had this problem earlier n solved by updating sdk.
 
I thought the same but it didn't work after updating SDK :/

1. open a terminal

2. paste the following commands one by one but change to your orginal user name ok

sudo gedit .bashrc

At the end paste this-

export PATH=${PATH}:/home/YOUR-USERNAME/android-sdk-linux_x86/platform-tools

most probably your sdk path is not set in the .bashrc file. (the . in the .bashrc file is important it shows that (dot)bashrc or .bashrc is hidden)

or you can simply run adb by

1. open a terminal

2. cd android-sdk-linux_x86/platform-tools

3. issue the command adb.


also if java is not installed properly adb wont work.

all the best. bring it up man fast.
 
Not working. although its not giving ne error but dont even display the device. Screenshot attached. Untitled.png
 
Figured out the problem. The driver was not installed properly as it is not digitally signed. Now adb working. Thanks for the tutorial :)
 
Figured out the problem. The driver was not installed properly as it is not digitally signed. Now adb working. Thanks for the tutorial :)
Well good it worked.
And dude please use that big Thanks button on the post if u really thankful, anywhere in forum if u find something useful to u, hit the Thanks button.
 
i am getting access denied when i press enter on adb devices
Well it will help if u specify which system u r on n all steps u took.
Just make sure USB Debugging is on in Settings on phone & Device manager shows your device.
Try running command prompt with administrative privileges.
These are not solutions but wild guess only cause I don't know which system u r on...i m taking it for granted that u r on windows 7 32 bit.
 
not getting my device in list of devices attached
Try what varun has said and did u created adb_usb.ini file and added 0x1d91 to it in .android folder which is in your home directory???
And man please elaborate your problem a little bit,answer what are u asked and possibly u can attach screenshots.
just do this
right click on computer>click manage>click device manager>expand the adb interface section and see whether there is exclamation mark under Micromax A70 ADB Interface
I told him in 1st place to check that i don't know why he is not explaining nicely.
 
i did that
i got that file already in the .android folder
there was something already written
i deleted that
and typed 0x1d91
saved
there was no exclamation mark on micromax a70 in adb
was there another adb_usb.ini file already??????
hows that possible.
you have to create it.
i think that u must have edited another file.
 
i did that
i got that file already in the .android folder
there was something already written
Strange!!!
Dude it will sound strange(don't mind) but let me make it sure that u r using Micromax A70...(because 0x1d91 is for micromax only,u had adb_usb.ini file already so i suspected this.if u have some other phone then u have to change that value thats y i m asking,don't mind)
Make sure that USB Debugging is ON...
We are here to help,just give us what we ask.
 
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
this i got in the preloaded adb_usb.ini file
 
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
this i got in the preloaded adb_usb.ini file


Strange!!!
No idea.
Just try to uninstall and reinstall sdk and drivers also.
Or wait for other members.
They might have some proper soln
 
I think google added this to its latest sdk revision 15 and platform-tools revision 9.
I m having sdk revision 13 and platform-tools revision 7.
I will update my sdk tonight and check for it.
Update u if I find something on this meanwhile just check what is your sdk & platform-tools revision in SDK Manager.
 
I think google added this to its latest sdk revision 15 and platform-tools revision 9.
I m having sdk revision 13 and platform-tools revision 7.
I will update my sdk tonight and check for it.
Update u if I find something on this meanwhile just check what is your sdk & platform-tools revision in SDK Manager.

i think i got the solution
delete that pre loaded file and create a new one
in the list of devices attached you will find b0da700505000150
 
Back
Top Bottom