[Q] Help needed to understand ADB for Rooting - Motorola Atrix 2

Hi,
I recently got ATRIX2 (MB865).
I own G-tablet where I use multiple ROMS and bit familiar with Custom ROMs, Flashing, Titanium Backup etc. However I never used ADB as it didn't needed.
My Question is do we need to install Android SDK for using ADB commands as explained on "how to Root?" thread. Is it necessary for both manual and 1-click methods?
I tried to use search but couldn't find much help. Hoping some one could help me out here. Sorry its such noob and repetitive question.
Thank you.
-Nambi

sazhagianambi said:
Hi,
I recently got ATRIX2 (MB865).
I own G-tablet where I use multiple ROMS and bit familiar with Custom ROMs, Flashing, Titanium Backup etc. However I never used ADB as it didn't needed.
My Question is do we need to install Android SDK for using ADB commands as explained on "how to Root?" thread. Is it necessary for both manual and 1-click methods?
I tried to use search but couldn't find much help. Hoping some one could help me out here. Sorry its such noob and repetitive question.
Thank you.
-Nambi
Click to expand...
Click to collapse
Yes you must have the Android SDK, for both the one click and the manual root options. The one click method also uses adb, which is just a utility that will get you a command prompt on the phones OS. The one-click is best for newbies, that run windows. If you don't run windows, then you will have to do the manual method.

Thank you!
jimbridgman said:
Yes you must have the Android SDK, for both the one click and the manual root options. The one click method also uses adb, which is just a utility that will get you a command prompt on the phones OS. The one-click is best for newbies, that run windows. If you don't run windows, then you will have to do the manual method.
Click to expand...
Click to collapse
Gotcha, Thank you for clarifying it and also for very quick answer.

If you need help installing ADB go here http://developer.android.com/sdk/installing.html

lilhaiti said:
If you need help installing ADB go here ://developer.android.com/sdk/installing.html
Click to expand...
Click to collapse
Thank you. Now I installed Android SDK (including Eclipse though I understand it may not needed now) as explained on site.
When I navigate to platform-tools folder under android-sdk in command prompt and issue ADB command works as expected. How ever ADB command isn't working from C:\ . Do I need to update the PATH Environment to enable this? OR Can I put EXPLOIT folder under platform-tools and try for root ?
Please forgive my ignorance.
Thank you.

sazhagianambi said:
Thank you. Now I installed Android SDK (including Eclipse though I understand it may not needed now) as explained on site.
When I navigate to platform-tools folder under android-sdk in command prompt and issue ADB command works as expected. How ever ADB command isn't working from C:\ . Do I need to update the PATH Environment to enable this? OR Can I put EXPLOIT folder under platform-tools and try for root ?
Please forgive my ignorance.
Thank you.
Click to expand...
Click to collapse
Update the PATH for C:\path\to\SDK\platform-tools

Related

[ADB Setup] Motorola Backflip

1. DOWNLOAD USB DRIVERS
Motorola ADB Driver 32bit
Motorola ADB Driver 64bit​
2. INSTALL THE SDK
-Download latest SDK http://developer.android.com/sdk/index.html
-Extract Archive to C:\SDK\ (or C:\Android, or whatever you want)​
3. Enable debugging on your phone (thanks naplesbill)
-Goto Settings > Applications > Development > and Check the USB debugging option​
4. Optional, but recommended
-Setup Enviroment Variables:
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/ directory to the path AFTER A SEMICOLON (;C:\SDK\tools\) .​-Setup Droid Explorer:
Goto Droid Explorer Downloads and snatch the latest version, then install. (mine showed an error during install i believe due to the lack of HTC drivers. If you installed motorola's drivers it should still be in your start menu and work fine)​
If for some reason you can't figure it out, install the drivers then try this installation guide: ADB For Dummies Guide
ADB APK Install instructions
j101399j said:
1. Create a folder called adb on your C drive
2. Extract all files to your adb folder
3. Copy the cmd.exe file (copy the file don't make a shortcut to it or move it) from your "C:\Windows\System32" folder to the adb folder
4. Install the downloaded USB driver
4. Once you have the driver installed, on your phone enable debugging mode (Menu --> Settings --> Applications --> Development --> Check USB Debugging)
5. Copy the apk files you want installed to your "C:\adb\tools" folder. The adb.exe and cmd.exe should be in that tools folder.
5. Open the cmd.exe file
6.Type the following command:
Code:
Code:
adb install [B]application.apk[/B]
Where application.apk is the name of the apk to install
Your app should now be installed
Please note that you cannot install apps used on 1.6, 2.x builds
Click to expand...
Click to collapse
BACKFLIP SYSTEM DUMP http://forum.xda-developers.com/showthread.php?t=642684
BACKFLIP SOURCE CODE http://forum.xda-developers.com/showthread.php?t=645369
Don't you still need root?
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Charrion said:
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Click to expand...
Click to collapse
It doesn't help deleting the protected apps, but it makes it easier to install apks. This is especially helpful since the backflip doesn't allow anything to be installed through phones interface except through the market.
Ok, it works, but only if you turn on the Applications, Development, USB Debugging in the settings menus.
Well, that's kind of a given as ADB won't work without USB Debugging on.
Charrion said:
I fail to see how this can help without rooting the Backflop unless Droid Explorer has some way of overriding that setting.
Click to expand...
Click to collapse
We meet again Charrion! This is like the third time today I've run into you.
Don't need to have root to install APKs via ADB. Even us poor Milestone owners can do it via 'ADB install <app.apk>.'
I am just pointing that out for those that aren't familiar with that. I imagine there will be users who wouldn't normally bother with this, doing it just to be able to install non-market apk files.
naplesbill said:
I am just pointing that out for those that aren't familiar with that. I imagine there will be users who wouldn't normally bother with this, doing it just to be able to install non-market apk files.
Click to expand...
Click to collapse
Ah, fair enough. Sorry about that.
Unimaginative said:
Well, that's kind of a given as ADB won't work without USB Debugging on.
We meet again Charrion! This is like the third time today I've run into you.
Don't need to have root to install APKs via ADB. Even us poor Milestone owners can do it via 'ADB install <app.apk>.'
Click to expand...
Click to collapse
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Charrion said:
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Click to expand...
Click to collapse
The use debug mode is indeed available, I just forgot to mention turning it on.
From what I understand, this phone will be rooted like the cliq.... unfortunately for that to happen certain key files need to be leaked.
@moosefist;
Thank you so much for posting this.
I am now able to install non-Market apps
moosefist said:
The use debug mode is indeed available, I just forgot to mention turning it on.
From what I understand, this phone will be rooted like the cliq.... unfortunately for that to happen certain key files need to be leaked.
Click to expand...
Click to collapse
So; I'm new to the whole Android stuff; but what files need to be "leaked" in order to do this?
Squeaky369 said:
So; I'm new to the whole Android stuff; but what files need to be "leaked" in order to do this?
Click to expand...
Click to collapse
According to Skrilax_CZ a modmymoto moderator:
If we are up to root it; we need the shx/sbf flashfile, which must be leaked. Then I can see if the CLIQ RAMDLD exploit is present in here or whether has it been fixed as on the new CLIQ firmwares.
Click to expand...
Click to collapse
It was those files being leaked that allowed the CLIQ to be rooted...
I will be watching this thread closely I'm tired of having edge on my android....I need 3g for once!
Has anyone given this a try under Linux? I read the ADB beginners guide, but it didn't mention anything about drivers or whatnot. I'd really like to get this phone, but if I can't develop for it on my platform of choice, I don't think I need it that badly.
JK_the_Slacker said:
Has anyone given this a try under Linux? I read the ADB beginners guide, but it didn't mention anything about drivers or whatnot. I'd really like to get this phone, but if I can't develop for it on my platform of choice, I don't think I need it that badly.
Click to expand...
Click to collapse
This is from androidforums.com about this spicifically
http://androidforums.com/motorola-b...on-market-apps-via-adb-solved.html#post419647
On MacOS, ADB doesn't need a USB driver for your phone. Just download the SDK, and you can execute ADB from a terminal.
On Linux, all you need to do are to follow the instructions here:
Developing on a Device | Android Developers
Specifically the bit about creating and chmod'ing an /etc/udev/rules.d/51-android.rules file.
Hope AT&T fixes this issue soon, it's ridiculously stupid to attempt to disallow non-market apps given that ADB works.
Click to expand...
Click to collapse
j101399j said:
This is from androidforums.com about this spicifically
(URL deleted for forum reasons)
Click to expand...
Click to collapse
Thanks much, I'm just getting started on navigating all these forums. =)
Would it be possible for someone to create a utility to turn this option on, then load it via ADB? Or would this require root access?
BetterCut or AnyCut?
Charrion said:
I'm on a crusade
OK, so you can install apks through adb even without unknown sources being enabled.
Has anyone determined if the option to enter debug mode is still available on the backflop? I wouldn't be at all surprised if they disabled that option also.
I'm also curious whether the backflop has a signed mbm like the Milestone to prevent loading custom roms.
Click to expand...
Click to collapse
I don't have a Backflip, but it may be possible to find hidden settings / controls by using BetterCut or AnyCut. Both are in the Market.
I'd be interested in knowing. A crippled phone is a tiny electronic soul yearning to breathe free and live free.
I have a backflip, and just installed anycut. Do you know what I would need to fill in as the new shortcut to get to that option? I'm at work now, but will be doing the development method to install apks later under linux (gowalla app, most likely)
This is my first android phone, so I'm pretty excited to get it broken open and crapware free.
I just ordered the Backflip. Yes, I'm a newb at all this andriod, and rooting stuff. But, I'm in the process of learning more. I think it will be easier when I have the phone in hand to play with.
But, do you guys really think that someone will take the time to root the backflip, considering, (what I have read) that it is alittle out dated?
I'm going to attempt the non-market app install, once I get the phone. This forum is great, from what I've seen so far. I'll definatly be staying tuned to this thread.
Thanks guys,
J

[Q] ADB & Linux

Anyone have adb working with linux? I've had zero luck hacking around with udev. Any assistance (udev rules, etc) appreciated! I do have adb-wireless working. My distro is Debian Sid.
probably not the best way, but i just threw it in the bin folder so i dont have to bother with it at all
I had no issues installing the sdk on lucid on my amd64. Never could get the sdk to install on xp(flp), so I had to install the one click root one line at a time from the *.bat
Sent from my SPH-D700 using XDA App
here for future reference, its a quick little script that will root your phone
http://www.mediafire.com/?hk59z8j5dve6tgf this works as long as your using bash shell cannot confirm for any others..
make sure to set click here as executable and make sure debugging is on your phone
shabbypenguin said:
probably not the best way, but i just threw it in the bin folder so i dont have to bother with it at all
Click to expand...
Click to collapse
I've installed the SDK and my phone is already rooted. My problem is that adb does not detect the phone. Sorry for any confusion.
hmm try this
adb kill-server
sudo adb start-server
adb devices
Click to expand...
Click to collapse
let me know what it says
shabbypenguin said:
hmm try this
let me know what it says
Click to expand...
Click to collapse
Thanks, working after the adb server restart. I could swear I had tried that before, but obviously not
Code:
List of devices attached
D700bc859a65 device
yea i know i have to use sudo start server on my computer otherwise i get ???????

How to install adb windows 7 32 and 64 and should work on XP

From what I read a few people have had problems installing ADB on windows 7 so I figured this might help some so here we go
1st Down load the android sdk found here= http://developer.android.com/sdk/index.html
2nd download the java jdk found here= http://www.oracle.com/technetwork/java/javase/downloads/index.html
3rd download Mobile Stream Easy tether. You can find it on the android market. You can use the free version or the pro. Either version will do.
Now install the java jdk and let it run that's all for the java.
Second extract the android sdk to your c:\ drive.
Meaning right click on the android sdk and choose extract.
A window will appear. In the address bar of that window is were the files will currently be extracted to. Please delete everything in the address bar except the c:\ Then click ok and close the window.
Then go to your start menu and click on it. From there go to computer and click on it. Then you will see an icon that says (c That's your hard drive were you extracted the android sdk. Click/Double click on this icon. From there you should see a folder named Android-sdk something something, Right click on this folder and rename it to AndroidSDK
Please rename the folder exactly as I wrote it capitol letters and all.
Next make sure that you have usb debuggin enabled on your phone. If you can't find this, "PLEASE STOP UNTIL YOU DO"
Now open up the mobile stream easy tether application on you phone. This is needed because it gives you an option to download the .exe file for your os/ windows. - So download the .exe and when its done go to your sd card and find the .exe It should be in your downloads folder on your sd card. Once you have the file transfer it to your Laptop/Pc.
Now run the .exe file and when it opens up it will give you an option of Easy tether core or Android USB drivers. Please choose the Android USB drivers. But "STOP" and click the little arrow next to ANDROID USB DRIVERS. A menu will appear. When it does please choose ENTIRE FEATURE WILL BE INSTALLED ON C:\ DRIVE. Check that option as well. Click install and let it finish.
Now please REBOOT your Laptop/Desktop.
When your pc/laptop is up and running, plug your phone into your pc the drivers should begin to install let it finish.
If your using Windows vista 32bit/64bit or Windows 7- 32bit/64bit go to your start menu and click on it. In the search box at the bottom of the start menu type in cmd. After that press the enter key on your keyboard. If your using Windows Xp then go to your start menu and click on "run" This will bring up a little box on the left side of your desktop. In that menu box type cmd and hit enter on your keyboard. This will bring up a command window as well.
When that command window appears. Type this command.
cd\
then hit enter
Now type cd\AndroidSDK\tools\
then hit enter
Now type adb devices. You should see a bunch of numbers.
Those numbers. Represent your phone.
Now type
adb shell
Then hit enter on your keyboard.
You should see the # sign. That means you have adb installed. To test it just type reboot recovery and it should reboot your phone into your current recovery. From there you got it.
I hope this helps anyone who was having a hard time installing adb with the htc drivers.
Edit if you need help installing adb on ubuntu see my thread here
http://forum.xda-developers.com/showthread.php?t=794624
thanks really needed this a while back
Great guide, but this is all I do if I need basic adb to access my phone to get shell access or push/pull apk files, etc. It takes maybe 5mins tops depending on my download speed.
If all you need is adb to access your phone for shell access, or to push or pull files (like .apk) then do the following:
Download HTC Sync software from HTC's website. Install this software. It includes the needed USB drivers. This works on 64 bit machines as well. I know because it is what I use.
Download the Android SDK for Windows.
Use your favorite tool to extract the Windows Android SDK to the location of your choice. I use 7-zip, but Windows supports extraction of .zip files by default. Right click the file and choose Extract All. For the sake of this guide we will use C:\. Put that in the box when it asks where to extract to.
Once extracted you should have C:\android-sdk-windows folder on your computer, assuming you extracted to C:\ like this guide uses.
Now click your start menu, choose All Programs, click on Accessories, and choose Command Prompt. Power users will know you can also press the 'Windows Key' + R and type CMD and hit enter. Same result either way.
Now type into the black box (command prompt) the following (without the "quotes"): "cd c:\android-sdk-windows\tools\" and press enter. CD stands for change directory. We are navigating your hard drive using the command prompt.
Now you can use adb commands. Simply type adb and hit enter to see a full list of commands. The most common command is "adb shell" (no quotes again) to get to your phones shell.
Remember, your phone needs to be in USB debugging mode (on your phone from the desktop: Menu Key, Settings, Applications, Development, check the USB Debugging box, and accept the notice when prompted) and you need the HTC USB Drivers installed.
I say this is simple, but I'm also not new to computers or the command line so it might not be clear to everyone. If you need clarification please ask.
Note: I've edited my post many times to make it not sound like an attack on OP. There are many ways to do the same thing. Do whatever works best for you.
Actually to correct you --- you have to download the development platforms via adb tools .exe to do development also you will need the eclipse software as well this is for just adb the Java helps in some cases you will see wen using adb Java is helpful also if people want to use the theme injector the Java is there all they would have to do is add it to there path also from what I read quiet a few people were having problems with the HTC sync drivers so this is a way to do it if you can't get the HTC drivers to work and this can't be over complex this takes like 15 min and your done how complex is that????? And to clarify your statement on -- this is the Heroc forum lol really is not the hero android??? That's y I said use the easy tether its gives you the option to install the ABD Android USB drivers but thanks also y not post ur way of installing adb its all usefull knowledge
Root-Hack-Mod-Always™
joselv456 said:
thanks really needed this a while back
Click to expand...
Click to collapse
A man just hope it helps but thanks
Root-Hack-Mod-Always™
laie1472 said:
Actually to correct you --- you have to download the development platforms via adb tools .exe to do development also you will need the eclipse software as well this is for just adb the Java helps in some cases you will see wen using adb Java is helpful also if people want to use the theme injector the Java is there all they would have to do is add it to there path also from what I read quiet a few people were having problems with the HTC sync drivers so this is a way to do it if you can't get the HTC drivers to work and this can't be over complex this takes like 15 min and your done how complex is that????? Lol but thanks also y not post ur way of installing adb its all usefull knowledge
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
Well the topic said "how to install adb" so I was confused as to why it was so in-depth. It didn't say anything about development, Eclipse IDE, etc.
My post was my way of doing it.
Dude you didn't even post ur commands you put what ever what ever a man you can post on this thread it's not like I own it but at least b clear for beginners on what commands you use and make your instructions clear and if this is in-depth I don't get it this is as plain and simple as it gets
Root-Hack-Mod-Always™
Porkrinds said:
Well the topic said "how to install adb" so I was confused as to why it was so in-depth. It didn't say anything about development, Eclipse IDE, etc.
My post was my way of doing it.
Click to expand...
Click to collapse
And I told you about the development platforms because you had stated that my guide was for full on development and its not you need those features to develop like the op says this is just for ADB
Root-Hack-Mod-Always™
laie1472 said:
Dude you didn't even post ur commands
Click to expand...
Click to collapse
I did now, and why so defensive? I'm not attacking your guide or anything. If it works it works. I just said it seemed complex if all you needed was adb.exe to get shell access or to push/pull files.
Defense no way dude just saying if your gonna post ur guide please be clear on what you did so the people know
Root-Hack-Mod-Always™
Porkrinds said:
I did now, and why so defensive? I'm not attacking your guide or anything. If it works it works. I just said it seemed complex if all you needed was adb.exe to get shell access or to push/pull files.
Click to expand...
Click to collapse
See that's what's up the more people know the better thanks I wanna make it so whoever wants ADB can have it in minutes so once again thanks
Root-Hack-Mod-Always™
laie1472 said:
Defense no way dude just saying if your gonna post ur guide please be clear on what you did so the people know
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
You got it. I've edited my first post and hope it clears things up and to make it not sound like I was saying you were wrong or something.
Now what would really help newer users would be a video or some pictures. Might be something to look into later.
And to make it clear anyone who wants to post any kind of way to install adb on any os please do like porkrinds said there are many so all ways are welcomed and if any one needs help installing adb on Ubuntu check my other thread on how to install ABD on Ubuntu
Root-Hack-Mod-Always™
Porkrinds said:
You got it. I've edited my first post and hope it clears things up and to make it not sound like I was saying you were wrong or something.
Now what would really help newer users would be a video or some pictures. Might be something to look into later.
Click to expand...
Click to collapse
Ill post a video later and yea that is a super good idea
Root-Hack-Mod-Always™
Worked great. I was having problems using the HTC sync method and had given up on adb altogether. Thanks for the straight forward and easy to follow guide
trip187 said:
Worked great. I was having problems using the HTC sync method and had given up on adb altogether. Thanks for the straight forward and easy to follow guide
Click to expand...
Click to collapse
No prob just glad u got it up and running
Root-Hack-Mod-Always™
Should work for xp as well
Root-Hack-Mod-Always™
In addition to the OP, if you'd like the ability to run adb commands from any directory via command line, simply copy adb.exe and adbwinapi.dll to your computer's ?:\Windows\System32 directory, where obviously "?" is your Windows installation's drive letter; usually "C".
expxxx said:
In addition to the OP, if you'd like the ability to run adb commands from any directory via command line, simply copy adb.exe and adbwinapi.dll to your computer's ?:\Windows\System32 directory, where obviously "?" is your Windows installation's drive letter; usually "C".
Click to expand...
Click to collapse
I rather just add it to my PATH variable.
Example: http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
I'd add (on my computer) E:\android-sdk\platform-tools to my PATH variable. No moving files needed.
Trying to keep it simple for new users lol. But many thanks for the post.
Root-Hack-Mod-Always™

How to install and configure sdk/adb on Ubuntu

I want to be able to use adb to pull/ push apps to my phone.
I recently converted my PC to Ubuntu 10.10 from windows and I am finding it impossible to find any sort of noob friendly guide as to how I can actually get it installed and working.
Can anyone help? Or point me towards a guide. All the stuff I find seems to assume you either already have it installed or know how to do it already!
Sent from my GT-I9000 using XDA App
Well thanks for your help folks
Sent from my GT-I9000 using XDA App
here ya go http://tinyurl.com/44zscrd
Follow the first guide, if you still have problems post back and I'll try to help you with what you need
Ok I tried this, I realise you were taking the piss but the guide was good except I could not get Ubuntu to recognise my device. Followed the instructions to the letter. I know Linux is not meant to be easy but why is it SO hard?
Sent from my GT-I9000 using XDA App
branalvere said:
Ok I tried this, I realise you were taking the piss but the guide was good except I could not get Ubuntu to recognise my device. Followed the instructions to the letter. I know Linux is not meant to be easy but why is it SO hard?
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
ubuntu recognizes it by default unless you modified your settings or messed with the kernel.
http://developer.android.com/sdk/index.html
Download the Linux tools. Extract it then open your terminal and go to the extracted folder, inside here is a folder called tools, with the terminal cd into tools and type ./android.....app should open, go to available packages, android repository, check the first one and should be android sdk tools.
Click install selected at the bottom right. Once it's done you will have adb installed.
On your phone, go to settings, applications, development, check usb debugging. Also check unknown sources.
Inside the folder you are in, there should be a file/ script called adb. This means you can run the adb commands from here.
In terminal, assuming you are in the folder where the adb file is located, type:
Sudo ./adb start-server
This should recognize your phone.

Q. How can i install adb/fastboot in my windows xp

Hi im newbie in android. I knew about flashing rom in cwm mod. But i have no knowledge of using adb/fastboot interface. Can someone guide me on a step by step tutorial on how to install adb/fastboot interface on my windows xp pc. And also please include on how to install drivers. Thanks in advance and godbless. Ill be waiting for answers.
Download sdk file from google..make sure the right one and match your pc os..
Sent from my Nexus S
See http://dottech.org/tipsntricks/2153...ows-computer-for-use-with-your-android-phone/. It is probably the easiest guide on how to install adb/fastboot.
DarkAgent said:
See http://dottech.org/tipsntricks/2153...ows-computer-for-use-with-your-android-phone/. It is probably the easiest guide on how to install adb/fastboot.
Click to expand...
Click to collapse
I tried to install it, my path adress is:
%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\QuickTime\QTSystem\
I tried to add ;C:\Android at the end, but I can't get Fastboot to open! Help?

Categories

Resources