Jump to content

ADB in Linux


Recommended Posts

Guest Epic-Emodude
Posted

Hello,

I am using ubuntu 10.04 and I am trying to get ADB to work. On the Pulse wiki page its says I need to create a udev.

Linux users will need to add a "udev" rule as described in the SDK documentation. Make sure you use the Pulse's Device and Product IDs rather than the ones Google provide. Simply create the file /etc/udev/rules.d/51-android.rules (as root or superuser), and add the following, and then reboot.

SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", MODE="0666"

I have tried creating the folder udev in etc using root explorer,it says folder created successfully but I cannot see the folder.

Does anyone know how I can do this?

Thanx

Aaron

Guest gusthy
Posted (edited)
Hello,

I am using ubuntu 10.04 and I am trying to get ADB to work. On the Pulse wiki page its says I need to create a udev.

I have tried creating the folder udev in etc using root explorer,it says folder created successfully but I cannot see the folder.

Does anyone know how I can do this?

Thanx

Aaron

U should create this udev rule on desktop, not the phone.

then run "restart udev" as root (also on desktop).

no reboot is needed.

Edited by gusthy
Guest Epic-Emodude
Posted
U should create this udev rule on desktop, not the phone.

then run "restart udev" as root (also on desktop).

no reboot is needed.

If I create it on the desktop, how do i get it onto the phone?

Guest TheNano
Posted
If I create it on the desktop, how do i get it onto the phone?

you shouldnt need the udev rule , even if adb devices says ????? you can adb shell , adb install ...

Guest Epic-Emodude
Posted
you shouldnt need the udev rule , even if adb devices says ????? you can adb shell , adb install ...

Thanx. I installed a custom boot animation so it seems to have worked. One final question. Can I use ADB if my phone is in recovery mode or whatever (if i cant boot into android)

Thanx

Aaron

Guest TheNano
Posted
Thanx. I installed a custom boot animation so it seems to have worked. One final question. Can I use ADB if my phone is in recovery mode or whatever (if i cant boot into android)

Thanx

Aaron

it depends, normally yes

Guest gusthy
Posted
you shouldnt need the udev rule , even if adb devices says ????? you can adb shell , adb install ...

The udev rule is for adb's desktop side to recognise the phone, it helps ADB recognizing that a given vendor ID - that can be read from the usb device list (lsusb for example), means and Android phone. So it is needed for phones that does not report themselves as "Android adapter", like original G1.

Guest Epic-Emodude
Posted

Recovery mode tells me to run things via adb. Please coudl someone give me an example of how to do this.

For example when trying to do a bart backup it says run 'bart' via adb. Ive tried sudo ./adb bart but this doesnt seem to work.

I just need a basic model of what to type in to do things in recovery mode. It also tells me to run wipes, nandroid backups and restored from adb.

Thanx

Aaron

Guest Epic-Emodude
Posted

Could someone at least tell em how to do wipes, nandroid backups and restores through adb?

Thanx

Aaron

Guest jonathonf
Posted

http://developer.android.com/guide/developing/tools/adb.html

If the commands are to be run on the phone you'll need to run 'adb shell' first. This gives you unrestricted command-line access to the underlying Linux OS running on the Pulse. From there, for example, typing 'bart' would run the 'bart' program. The other commands will depend on the program; nandroid has its own set of scripts that can be run in the same way (IIRC something like nandroid_backup, nandroid_restore).

The easiest way to do all of this, however, is to use recovery mode. To enter recovery mode turn off your Pulse, then while holding MENU and RED press the power button. Keep the MENU and RED buttons pressed until the recovery mode menu appears.

If you don't have a recovery image installed on your phone you will need to install one. Follow the instructions on this thread: http://android.modaco.com/content/t-mobile...on-your-device/

Guest Epic-Emodude
Posted
http://developer.android.com/guide/developing/tools/adb.html

If the commands are to be run on the phone you'll need to run 'adb shell' first. This gives you unrestricted command-line access to the underlying Linux OS running on the Pulse. From there, for example, typing 'bart' would run the 'bart' program. The other commands will depend on the program; nandroid has its own set of scripts that can be run in the same way (IIRC something like nandroid_backup, nandroid_restore).

The easiest way to do all of this, however, is to use recovery mode. To enter recovery mode turn off your Pulse, then while holding MENU and RED press the power button. Keep the MENU and RED buttons pressed until the recovery mode menu appears.

If you don't have a recovery image installed on your phone you will need to install one. Follow the instructions on this thread: http://android.modaco.com/content/t-mobile...on-your-device/

Thanx. I do have the recovery image but it gives me errors on pretty much everything except a normal nandroid backup and the factory restet wipe. This means I cant do a full wipe or restore my nandroid backups. Hopefully this will help me.

Thanx

Aaron

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.