PDA

View Full Version : adb tips and tricks



Nemo aeternamn
09-30-2011, 12:41 PM
hey all... i just thought i should start a thread about adb and it's tips and ticks..
if anyone out there wants to get set up with adb *all credit's on this one goes to chevyno1*
http://www.droidxforums.com/forum/chevyno1/33427-your-1-adb-source-7-29-11-a.html
and here is google's site talking about adb and some commands
http://developer.android.com/guide/developing/tools/adb.html
(http://developer.android.com/guide/developing/tools/adb.html)
post in the thread... or message me... and i'll add to the op to make for easy access

and so the real purpose of this thread... chevy has thread about getting it set up.. i just wanted to make this a place where people could ask questions
or even just stop by and leave a trick they have learned along the way....

Edit: here's the first... i just learned this... it kinda funny... adb lolcat works identical to adb logcat...haha...
Edit: Credit to cory for this little tip to capture a bug report/sysdump or what not..
adb bugreport >bugreport.txt


Edit: here's a couple links thanks to cory46
adb how to http://www.droidforums.net/forum/hacking-help/30464-how-adb-why-i-love-adb-commands-3-a.html
(http://www.droidforums.net/forum/hacking-help/30464-how-adb-why-i-love-adb-commands-3-a.html)and for you rockin linux http://rootzwiki.com/entry.php?31-Android-SDK-NDK-Eclipse-and-ADB-Auto-Installer-(Ubuntu-Linux-Mint)

nemosfate
09-30-2011, 11:17 PM
Adb bugreport
MOVED TO OP
root, roms and themes oh my!

Nemo aeternamn
09-30-2011, 11:24 PM
awesome find nemos!!!!
i've been looking for something like this...

nemosfate
09-30-2011, 11:33 PM
awesome find nemos!!!!
i've been looking for something like this...

it's gonna take awhile to read through it all now though lol

root, roms and themes oh my!

Nemo aeternamn
09-30-2011, 11:34 PM
but hey... it's all there to look through

DirtyDroid
09-30-2011, 11:39 PM
wow, i kinda wish i would have seen this when i rooted my xoom...not sure how much different the set up is....could have just been me in a "new world"

nemosfate
09-30-2011, 11:44 PM
wow, i kinda wish i would have seen this when i rooted my xoom...not sure how much different the set up is....could have just been me in a "new world"

What do you mean how much different?

root, roms and themes oh my!

Nemo aeternamn
09-30-2011, 11:45 PM
well... you can start learning and play around even more now dirty!!!

DirtyDroid
09-30-2011, 11:51 PM
What do you mean? How much different?

root, roms and themes oh my!

wasn't sure if it was easier this way..I know the instructions that went through to set it up for the xoom, seemed like a pain, but like i said that could have just been me.


Edit: yeah kinda the wrong thread...lol I was referring to the actual "setting up of ADB" - phew long night

DirtyDroid
09-30-2011, 11:52 PM
well... you can start learning and play around even more now dirty!!!

yeah definitely worth looking into more, as soon as i get some hours back in my day haha, subscribed tho!

nemosfate
10-01-2011, 12:07 AM
wasn't sure if it was easier this way..I know the instructions that went through to set it up for the xoom, seemed like a pain, but like i said that could have just been me.


Edit: yeah kinda the wrong thread...lol I was referring to the actual "setting up of ADB" - phew long night

It's extremely simple, just trying to learn the commands now though lol

root, roms and themes oh my!

DirtyDroid
10-01-2011, 12:09 AM
It's extremely simple, just trying to learn the commands now though lol

root, roms and themes oh my!

Haha yea, between this and the boot manager, I think I got a nice long weekend ahead of me!

Sent from my DROIDX using Droid X Forums

cory46
10-01-2011, 12:52 AM
Another resource for anyone wanting to learn

http://www.droidforums.net/forum/hacking-help/30464-how-adb-why-i-love-adb-commands-3-a.html


O and if your using a Linux box try adb hell instead of ADB shell
1Kitkatdidiwags

Nemo aeternamn
10-01-2011, 12:54 AM
Another resource for anyone wanting to learn

http://www.droidforums.net/forum/hacking-help/30464-how-adb-why-i-love-adb-commands-3-a.html


O and if your using a Linux box try adb hell instead of ADB shell
1Kitkatdidiwags

syweet cory... I'll add to the op


We have nothing to fear but running out of beer

cory46
10-01-2011, 12:59 AM
Another goodie if you like Linux like me haha

http://rootzwiki.com/entry.php?31-Android-SDK-NDK-Eclipse-and-ADB-Auto-Installer-(Ubuntu-Linux-Mint)

1Kitkatdidiwags

nemosfate
10-01-2011, 01:10 AM
Awesome Cory... Glad you did start this Nemo.a

root, roms and themes oh my!

DirtyDroid
11-07-2011, 11:47 PM
hey nemo, heres one for people on miui, (anyone really) ... not sure if its really what your looking for.. :/ but consider it a friendly bump if not.

[TUTORIAL]How to Customize your Status Bar Icons!!! - xda-developers (http://forum.xda-developers.com/showthread.php?t=1245404)

chuck54
12-04-2011, 10:04 PM
Okay so I just was introduced to this awesomeness and so far all I see with this is things I can do on terminal emulator on the phone itself. So what I'm hoping to do is this. I'm on apex, and there is no customizing like there is with liquid. Can I customize apex through adb? If not, what is the big point in this adb and hiw do I do it?

Sent from my DROIDX using Droid X Forums

cory46
12-04-2011, 10:14 PM
Okay so I just was introduced to this awesomeness and so far all I see with this is things I can do on terminal emulator on the phone itself. So what I'm hoping to do is this. I'm on apex, and there is no customizing like there is with liquid. Can I customize apex through adb? If not, what is the big point in this adb and hiw do I do it?

Sent from my DROIDX using Droid X Forums

Adb is ran from a computer terminal or Windows command prompt. There isn't any customization done in adb itself. You use adb to manipulate files / apks off your phone , to your phone etc. You also can use adb for debugging purposes.(hence the name android debug bridge) What's the big deal you ask, well if your not theming your phone, developing kernels, roms, or simply debugging your phone adb is useless to you.

It's pretty simple to pull any file from your phone theme it if you so choose then push back all without touching your phone.

Also if you create an app you can test it then push it to your device

Sent from my DROIDX using Droid X Forums

chuck54
12-04-2011, 10:25 PM
Well themeing would be nice and theming and creating apps woukd be cool, but developing kernels I thought couldn't be done for the DROIDX?? And how could I do all this? I installed the Chevy sdk and everything else besides the rsdlite (because I use the 1kds method) and so I was researching and its kind of getting no where after I read all that I was given by nemo(thanks again nemo)!!!!

Sent from my DROIDX using Droid X Forums

cory46
12-04-2011, 10:30 PM
Just about everything you need to learn adb is in this thread. And just because droid x can use custom kernels doesn't mean other phones can't :) adb is an android thing. Every phone can use adb

Sent from my DROIDX using Droid X Forums

chuck54
12-04-2011, 10:50 PM
Well that's awesome!! Does that possibly mean that I can develop Tom's through adb also? I saw how neat moemod was and it was developed by a 12 year old!!!

Sent from my DROIDX using Droid X Forums

cory46
12-04-2011, 10:53 PM
Well that's awesome!! Does that possibly mean that I can develop Tom's through adb also? I saw how neat moemod was and it was developed by a 12 year old!!!

Sent from my DROIDX using Droid X Forums

Do you know programming languages? Are you familiar with Linux?

And you don't develop roms through adb you would debug roms through adb and develop apps through an IDE usually and if using eclipse probably avd since it integrates with the SDK easily

Sent from my DROIDX using Droid X Forums

The persuader
12-05-2011, 01:40 PM
Do you know programming languages? Are you familiar with Linux?

And you don't develop roms through adb you would debug roms through adb and develop apps through an IDE usually and if using eclipse probably avd since it integrates with the SDK easily

Sent from my DROIDX using Droid X Forums

Well there you have it

Chow

Its Bubba :)
Sent from my Droid X

chuck54
12-05-2011, 06:21 PM
Okay, so I basically need to know Linux to do anything? And so I could debug liquid 3.2 so thing's don't have to force close?

I am completely sorry for my lack of knowledge here, but do you have a 'how to' link for an ied for creating ROMS?

Sent from my DROIDX using Droid X Forums

cory46
12-05-2011, 07:25 PM
Okay, so I basically need to know Linux to do anything? And so I could debug liquid 3.2 so thing's don't have to force close?

I am completely sorry for my lack of knowledge here, but do you have a 'how to' link for an ied for creating ROMS?

Sent from my DROIDX using Droid X Forums


Do you need to absolutely know Linux? no but it will help since android is a form of Linux. Could you debug Liquid. Yes but that all depends if you understand the output. for instance here is a logcat and debugging window without any parameters set to narrow down what your looking at:

this is DDMS (can also be used for screen shots)
http://i.imgur.com/2mRNF.png



this is adb logcat
http://i.imgur.com/AajBm.png

now you'll have to have a little bit of knowledge to decipher those.
Logcat stuffs:
http://forums.acsyndicate.net/showthread.php/3482-Learn-to-logcat-like-a-Pro!?p=15700#post15700

Dont apologize :) we all had to learn at some point. You're just starting out no need to feel dumb or ashamed or apologize! You don't really need programming language knowledge to make a rom but it helps tremendously so you know how to troubleshoot and understand exactly what is going on. To get started in making a rom check out building cyanogen from source -this is for the droid x :
Motorola Droid X: Compile CyanogenMod (Linux) - CyanogenMod Wiki (http://wiki.cyanogenmod.com/wiki/Motorola_Droid_X:_Compile_CyanogenMod_(Linux))

and the source tree / github

http://github.com/CyanogenMod/android_device_motorola_shadow


IDE's are used a lot for making apps. Like Eclipse has a plug-in for android and that usually involves Java.... usually :)

Managing Projects from Eclipse with ADT | Android Developers
(http://developer.android.com/guide/developing/projects/projects-eclipse.html)

and the tutorial just about everyone uses when they are first learning Java

Hello, World | Android Developers (http://developer.android.com/resources/tutorials/hello-world.html)

this is just a small sample hope it helps!

chuck54
12-05-2011, 09:30 PM
Thank you so much! I am marching into my school tomorrow and askig if there are any classes I can take on this. Nemo hooked me up with a link to the free tech classes and that's what I'm going to do for my major when college hits. I love these forums because everyone is willing to help out a total noob (like me!!) Thanks again!! I have some reading to do.

Sent from my DROIDX using Droid X Forums

nemosfate
12-06-2011, 07:14 AM
When you get eclipse and the sdk setup don't do what I did and forget the adt plugin lol


Root, Roms and Themes, oh my...

chuck54
12-06-2011, 09:59 AM
I don't have an eclipse, do EU's it still be helpful to have?

Sent from my DROIDX using Droid X Forums

macpro88
12-06-2011, 10:05 AM
I don't have an eclipse, do EU's it still be helpful to have?

Sent from my DROIDX using Droid X Forums

Eclipse is a piece of software, free, found here, that is used for development: Eclipse Downloads (http://www.eclipse.org/downloads/)