Linux programs - Motorola Droid 3

What programs can be used in Linux in order to SBF or root the D3?

bogdan_wrc said:
What programs can be used in Linux in order to SBF or root the D3?
Click to expand...
Click to collapse
Moto-fastboot for Linux.
Also if you have a xt860 zergrush has a Linux script
Sent from my XT860 using xda premium

ok. thanks for this answer.
so..more exactly what file from here?
http://forum.xda-developers.com/showpost.php?p=15020756&postcount=1
and how to install it?

Depends on if you have 32 or 64 bit system. The moto-fastboot is 64 and moto-fastboot32 is 32 bit, that's the one I use. Download the one you want, unzip it and place it in a folder that's in your path, like /bin or something. Then you just use it in the terminal. Just typing moto-fastboot32 while give you the help. Flashing a partition is
Moto-fastboot32 flash system system.img
Or
Moto-fastboot32 flash preinstall preinstall.img
Sent from my XT860 using xda premium

thanks.
that will be much easier than doing it on my work notebook )) with windows

i cannot place it in my bin folder. something regarding permissions. possibly i dont have root. i placed in on desktop.
and when i try to type moto-fastboot32 in terminal, i get moto-fastboot32: command not found error. any help?

bogdan_wrc said:
i cannot place it in my bin folder. something regarding permissions. possibly i dont have root. i placed in on desktop.
and when i try to type moto-fastboot32 in terminal, i get moto-fastboot32: command not found error. any help?
Click to expand...
Click to collapse
Permissions will need to be added for execution and be sure you cd to the correct location.
cd ~/Desktop
chmod 755 moto-fastboot32
./moto-fastboot32

ok. now i get the options. but how do i choose one? what command shall i use?
thank you for your patience.

bogdan_wrc said:
ok. now i get the options. but how do i choose one? what command shall i use?
thank you for your patience.
Click to expand...
Click to collapse
You can follow instructions here http://forum.xda-developers.com/showthread.php?t=1295839&highlight=linux+tut

i know. but i dont get it from there.
i get usage: fastboot [ <option> ] <command> and a list of commands and options.
how do i chose devices...for example? to see the devices connected?

bogdan_wrc said:
i know. but i dont get it from there.
i get usage: fastboot [ <option> ] <command> and a list of commands and options.
how do i chose devices...for example? to see the devices connected?
Click to expand...
Click to collapse
Not sure if you can, however keep in mind that device must be in fastboot mode. All I do is put device in fastboot, plug it in and run a command
Sent from my XT860 using xda premium

Related

Many Questions in 1 Thread

1) I just got Ubuntu on my computer. How do I use adb on it? I have already put the file in that udev folder and debugging is on already. What files do I need and what do I run in terminal?
2) Adb&fastboot do not work for me anymore. It always says "waiting for device" but nothing happens
3) Are there any alternates to applying your nandroid backups other than fastboot?
4) I just got LucidREM's new JFv1.51 but whenever I receive a call my phone vibrates then just loses all connection and has me input my 4 digit sim card key to unlock it. Anyone else get this problem?
5) What is the latest system recovery utility build? Mine is JFv1.42
First, make sure you have set up the adb compatibility for your distribution:
http://telyas.com/wordpress2/2009/04/29/ubuntu-jaunty-and-android-adb/
Note this is for jaunty.
do you have the android SDK? you need to download it, then run adb from the tools folder, or add it to your .bashrc profile so that you can type "adb" from anywhere.
http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r2.zip
http://developer.android.com/sdk/1.5_r2/installing.html
There are no "image all" alternates to fastboot. If you need a compiled for linux fastboot (32 bit), here:
http://yochai.dyndns.org:8888/android/fastboot
I can't help you with the last one.
yochaigal said:
First, make sure you have set up the adb compatibility for your distribution:
http://telyas.com/wordpress2/2009/04/29/ubuntu-jaunty-and-android-adb/
Note this is for jaunty.
do you have the android SDK? you need to download it, then run adb from the tools folder, or add it to your .bashrc profile so that you can type "adb" from anywhere.
http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r2.zip
http://developer.android.com/sdk/1.5_r2/installing.html
There are no "image all" alternates to fastboot. If you need a compiled for linux fastboot (32 bit), here:
http://yochai.dyndns.org:8888/android/fastboot
I can't help you with the last one.
Click to expand...
Click to collapse
So I installed the adb. It is in /android/tools/
How do I get to it
either use
Code:
cd /android/tools
./adb devices
or
Code:
sudo cp /android/tools/adb /usr/bin/adb
adb devices
either one will work. if you use the second one you can use adb from any directory. Also the latest recovery image for the G1 is 1.43 but i still use 1.42 since i don't think there is a differnce
tubaking182 said:
either use
Code:
cd /android/tools
./adb devices
or
Code:
sudo cp /android/tools/adb /usr/bin/adb
adb devices
either one will work. if you use the second one you can use adb from any directory. Also the latest recovery image for the G1 is 1.43 but i still use 1.42 since i don't think there is a differnce
Click to expand...
Click to collapse
Thanks ill try that out later.
Also, how can I restore my boot.img, system.img, data.img without fastboot?
Abolfazl said:
Thanks ill try that out later.
Also, how can I restore my boot.img, system.img, data.img without fastboot?
Click to expand...
Click to collapse
you can't
tubaking182 said:
you can't
Click to expand...
Click to collapse
Ok I have fastboot and I put it in /android/tools
I did sudo cp /android/tools/fastboot /usr/bin/fastboot
But when I run "fastboot" I get "bash: /usr/bin/fastboot: Permission denied"
Any help?
Abolfazl said:
Ok I have fastboot and I put it in /android/tools
I did sudo cp /android/tools/fastboot /usr/bin/fastboot
But when I run "fastboot" I get "bash: /usr/bin/fastboot: Permission denied"
Any help?
Click to expand...
Click to collapse
use: sudo fastboot
korndub said:
use: sudo fastboot
Click to expand...
Click to collapse
sudo: fastboot: command not found
Fastboot is in /usr/bin :\
use the path
either try specifying the full path to fastboot in your sudo command, or ensure that sudo is installed, which should obtain, since Ubuntu installs it by default
arqueware said:
either try specifying the full path to fastboot in your sudo command, or ensure that sudo is installed, which should obtain, since Ubuntu installs it by default
Click to expand...
Click to collapse
Alright I got fastboot working.
Now my only problem is that whenever I use fastboot to restore the 3 .img's my phone just goes to the android image and it keeps on cycling the boot

[Q] Help about sideloading apk files

Hi,
Nook Color CM7 RC1.
I am trying to sideload Google+ apk using adbwireless.
ADB seems to work OK in the PC, adbwireless is active, but I get device not found.
Is there a a tutorial or step-by-step explanation somewhere that explains how to use adb commands?
I come from DOS days, and know how to use command line, but I have very limited experience with Linux.
Thanks for answers
velizet said:
Hi,
Nook Color CM7 RC1.
I am trying to sideload Google+ apk using adbwireless.
ADB seems to work OK in the PC, adbwireless is active, but I get device not found.
Is there a a tutorial or step-by-step explanation somewhere that explains how to use adb commands?
I come from DOS days, and know how to use command line, but I have very limited experience with Linux.
Thanks for answers
Click to expand...
Click to collapse
Hi,
Solved the problem myself..
There is no man page, but running 'adb' by itself will print a description of the syntax.
By far the easiest way to do it is to download the apk to your Nook using your Nook's web browser, then navigate to the apk with Astro File Manager, select it and choose "install."
dsf3g said:
By far the easiest way to do it is to download the apk to your Nook using your Nook's web browser, then navigate to the apk with Astro File Manager, select it and choose "install."
Click to expand...
Click to collapse
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.
neidlinger said:
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.
Click to expand...
Click to collapse
why the -s switch?
velizet said:
why the -s switch?
Click to expand...
Click to collapse
adb install -s app_name.apk
Click to expand...
Click to collapse
will install the app onto the sdcard.
-l means forward-lock the app
-r means reinstall the app, keeping its data
-s means install on SD card instead of internal storage
neidlinger said:
To each his own. And you are titled to your opinion just as i am mine.
downloading an App on a computer storing it to your c:/<android_tools> folder then typing
Code:
adb install -s app_name.apk
is super easy.
most people are scared of ADB because it requires using the dreaded command prompt on your computer. And people are afraid of that.
Click to expand...
Click to collapse
No need to store the app in that folder. I keep my apks in a random one under my documents. When you want to install, just
Code:
adb install "drag the apk into command prompt"
and it will install just fine.
Nburnes said:
No need to store the app in that folder. I keep my apks in a random one under my documents. When you want to install, just
Code:
adb install "drag the apk into command prompt"
and it will install just fine.
Click to expand...
Click to collapse
Is it not possible to specify the folder of the apk file in the command line?
Something like:
adb install C:\<app_folder_path>\app_name.apk

Help in Linux

What software do I need so I can use fastboot cmds? or is it ADB?
I'm wanting to load a ROM =)
MazinDLX said:
What software do I need so I can use fastboot cmds? or is it ADB?
I'm wanting to load a ROM =)
Click to expand...
Click to collapse
did you follow the directions to unlock your bootloader? if so, you already have all the tools you need
I was on a wind0ze box..
I am running gentoo only now.
You also need eclipse to flash hboots and at least 3 ubuntus to compile and flash baksmalis.
Sent from my HTC PH39100 using xda premium
I just want to flash a ROM.. do I really need 3 ubuntus to do that??
At least 3. Do you alreadiy have a flash-resistant USB cable?
Sent from my HTC PH39100 using xda premium
I just want to install the ROM... I dont understand where it got so complicated??
lol, KX
OP, just set up ADB SDK for linux...
no u need 2 ubuntu distros first to use compiler and compile 16 bit kernel then ubuntu 64 bit to make 32 arm kernel then u need again 32 bit linux, altho ubuntu is bit buggy for diff byte calc. but you can try so you need do diff on both kernels and diff apply to 16 bit kernel to get 18 bit kernel.
or
or you could use fastboot flash tool to flash new kernel or rom to your device...
aZuZu said:
no u need 2 ubuntu distros first to use compiler and compile 16 bit kernel then ubuntu 64 bit to make 32 arm kernel then u need again 32 bit linux, altho ubuntu is bit buggy for diff byte calc. but you can try so you need do diff on both kernels and diff apply to 16 bit kernel to get 18 bit kernel.
or
or you could use fastboot flash tool to flash new kernel or rom to your device...
Click to expand...
Click to collapse
Chumby, this is a dual core phone, so you have to diff twice for 36 bit.
Sent from my HTC PH39100 using xda premium
Ok, I'm on Gentoo Linux
I was following the guide here.
But I'm unsure how to make the program "android" actually start.
If anyone could help me I'd appreciate it.
http://developer.android.com/sdk/installing.html
Sent from my HTC PH39100 using xda premium
Ok, I have Android SDK installed, Platform Tools added.
Now when I try to get ADB or Fastboot going, It says permission denied.
But if I try to start Fastboot or ADB in SU/Root it says command not found.
WTF?
Once again, I'm on the newest Gentoo && 3.1.6 Custom Kernel.
Thanks for your time.
sudo ./adb devices
you either have to be in the same directory as the adb binary or you need to have platform tools in your PATH. if you added your PATH, you need to log out and log back in or reboot it
or restart bash....i prefer the log out
I don't know what the PATH is so i'm assuming I didn't add it.
Care to explain ?
Do I need to add my root/su account to a certain profile?
Like I said it works under my regular account, just not as root.. which is like sudo in ubuntu.
Sent from my HTC PH39100 using xda premium
http://developer.android.com/sdk/installing.html
How to update your PATH
Adding both tools/ and platform-tools/ to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way:
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path.
On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ and platform-tools/ directories to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools
On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you don't already have one
Click to expand...
Click to collapse
MazinDLX said:
Do I need to add my root/su account to a certain profile?
Like I said it works under my regular account, just not as root.. which is like sudo in ubuntu.
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
well that doesnt make sense. why are you trying to run as root? thats completely not necessary
You're enabling, PG.
kxhawkins said:
You're enabling, PG.
Click to expand...
Click to collapse
i love you
#nohomo

Unlock phone on a Mac

http://forum.xda-developers.com/showthread.php?t=1417839
Here is a thread that helps us mac users with what we need to do to get our phones unlocked, etc. Just read about it and wanted to share with everyone.
Also wanted to mention that Vivid Tools for OSX in the Dev thread worked for me. I was able to unlock and relock. It's also simplified, so there's no need for terminal commands or anything, it does it all. The root option doesn't work though; just FYI.
I'm OSX Lion 10.7.3, and I think the app is for 64 only, so may not open on older macs running 32.
Do any of you know how to flash a kernel on a Mac? Should be just like in Windows only following that HTC Rezound example?
flasozzi said:
Do any of you know how to flash a kernel on a Mac? Should be just like in Windows only following that HTC Rezound example?
Click to expand...
Click to collapse
I believe so. I couldn't get it to work but I am not sure that I placed the boot.img in the same folder as the fastboot. Also make sure to open the command prompt inside of the folder with those two files.
http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder
Here is a guide that allows you to open the terminal inside the folder to make it easier to flash.
Sent from my HTC PH39100 using xda premium
megatronisabeast said:
I believe so. I couldn't get it to work but I am not sure that I placed the boot.img in the same folder as the fastboot. Also make sure to open the command prompt inside of the folder with those two files.
http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder
Here is a guide that allows you to open the terminal inside the folder to make it easier to flash.
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
Yeah I tried here and worked out just fine.
I placed fastboot and adb in a folder inside my mac's root folder so it's easier to get to it through terminal. I named it Android.
Then I placed boot.img in that same folder.
Opened terminal and typed
Code:
cd /Android
Then typed
Code:
/Android/fastboot flash boot boot.img
/Android/fastboot reboot
Worked just fine. In case you need it some day
flasozzi said:
Yeah I tried here and worked out just fine.
I placed fastboot and adb in a folder inside my mac's root folder so it's easier to get to it through terminal. I named it Android.
Then I placed boot.img in that same folder.
Opened terminal and typed
Code:
cd /Android
Then typed
Code:
/Android/fastboot flash boot boot.img
/Android/fastboot reboot
Worked just fine. In case you need it some day
Click to expand...
Click to collapse
Great job! Glad it worked out for you!

[Q] help rooting nexus 6 using crunchbang linux

I've got java and SDK tools properly installed. I've tried several methods. Always gives error command fastboot not found. I'm on crunchbang Linux
If you go to general > sticky roll-up thread....
You'll find my fastboot thread which tells you how to use fastboot correctly.
@NiNJAwitaRaZR,
Did you type ./ before the fastboot command?
cam30era said:
@NiNJAwitaRaZR,
try using sudo ./ before the fastboot command.
Click to expand...
Click to collapse
You don't need sudo for fastboot. But you do need to know where the fastboot binary is.
Or he can use an adb and fastboot installer script which should put it in a known PATH
rootSU said:
You don't need sudo for fastboot. But you do need to know where the fastboot binary is.
Or he can use an adb and fastboot installer script which should put it in a known PATH
Click to expand...
Click to collapse
Aahh, OK.
I still prefer to do things manually, so that I understand how it works.
cam30era said:
Aahh, OK.
I still prefer to do things manually, so that I understand how it works.
Click to expand...
Click to collapse
Me too. Personally I just drop them directly in /usr/bin

Categories

Resources