Screen shots via DDMS? - Nexus One General

Is anybody else having trouble getting screen shots on DDMS or even having their phone show up at all on DDMS? I Had no problems using DDMS on my G1, but I haven't been able to get it to come up with my G1. Just wondering if there is some update I needed to do. I have the SDK set up properly and ADB works great, but for some reason I can't use DDMS.

I don't recall the exact reason for it but pics all come out yellowed. The easiest way to take a screenshot with DDMS now is to hit the copy button and then paste it into paint or something and save it from there.
Or you can get ShootMe from the market (free). It takes pretty good screenshots from the phone.

Have you installed the newest drivers for adb? They are in a sticky post around here somewhere.

ADB works great, I believe I have the most updated version. DDMS doesn't even seem to recognize my phone is connected. I don't know what makes DDMS and ADB so different.

Related

[Q] Adb.exe has stopped working.

Win7 64bit.
Latest drivers/adb/sdk.
Using appinventor
I searched and found only this forum (which was obv of no help):
'ADB Magically Stopped Working" (Can't link it because it's a new account)
Ok, now that the required infomation is out let me get to the question.
I am using googles appinventor to make a small app for a game (read FOR a game NOT a game).
While it does have quite a few pictures included in the app, it doesn't have anymore than similar apps on the market.
It wasn't until I started adding the extra pictures (~15-45kbs each) that I got the error: "adb.exe has stopped working".
The logcat for it is attached.
What I am wondering, is that because it has started to crash when I added more images, is there some sort of -notimeout command for ADB that I can use?
If not does anyone see anything that could possibly help?
Thanks a bunch!
It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?
mstorer3772 said:
It looks like your app was killed by the OS for not being active enough. Once that happens, the debugger might be understandably disgruntled.
Was this on a device or an emulator?
Click to expand...
Click to collapse
On both. At first it was my G1. Then I tried connected it to the emulator and it was doing the same thing.
Thanks for the response.

Facebook pictures in 3rd Party Apps. (Requires Root)

I know this has been addressed before, but I never saw a fix for it in the Droid X world. Basically, since version 1.3 of the Facebook app and Android 2.x, your contact pictures would not show up in 3rd party apps such as Dialer One, Launcher Pro widgets, and some messaging apps. This is a facebook thing, not Android.
In any case, I've used SyncMyPix for some time, but was tired of having to go manually update the pictures and what not, so I returned to my old home in the Eris forums and did some searching. Zanfur, one of the great devs over there worked out a more permanent fix at the database level. You can see the original thread HERE.
Unfortunately, this doesn't work with Blur, so I had to do a little screwing around with the code to get it to go. I take absolutely zero credit for this. All I did was write a batch file that works with our Blur-enabled phones.
Basically, the script will remove the permissions restrictions on existing contacts and add a trigger to automatically remove them whenever a new contact is added, synced, etc.
WARNING: As of yet, I have had no issues with this, however, you ARE fooling with a database that you SHOULDN'T be playing in. Therefore, make a NAND backup before doing this. I take no responsibility if you screw up your phone.
You must have the Android SDK installed and working for this to work. If you don't have that up and running already, you probably shouldn't be doing this.
Instructions:
1) Unzip the file to the \tools directory of the SDK
2) Open a command prompt and navigate to your tools folder. *see note
3) Type "facebookfix" without the quotes. Note: This will reboot your phone!
4) Wait for your phone to reboot, and enjoy your facebooky goodness.
*Alternatively, you can just doubleclick "facebookfix.bat", but when someone is doing things to my phone, I like to see what's going on.
Another warning: If you are running a ROM without BlurContacts, this will not work. I doubt it will break anything, but it will most likely error out.
Do you happen to have a solution for the opposite?
I hate how FB dominates my phone. I absolutely love an option to choose between the FB photo and a custom photo like I had on my WinMo phone (Touch Pro 2).
It's a Catch 22 with FB. I love having status updates when I get a call and picture updates, but I also don't like how some pictures it misses a face and I see the persons torso... or worse yet a picture of their pets instead of them.
EtherBoo said:
Do you happen to have a solution for the opposite?
I hate how FB dominates my phone. I absolutely love an option to choose between the FB photo and a custom photo like I had on my WinMo phone (Touch Pro 2).
It's a Catch 22 with FB. I love having status updates when I get a call and picture updates, but I also don't like how some pictures it misses a face and I see the persons torso... or worse yet a picture of their pets instead of them.
Click to expand...
Click to collapse
Just open the contact and manually set a picture. It will always override the FB pics.
Only does for other applications, but not for the address book and / or the phone app.
EtherBoo said:
Only does for other applications, but not for the address book and / or the phone app.
Click to expand...
Click to collapse
I wrote a little SQL script that will set your contacts to only read pictures from google, but obviously you would need to manually sync up your photos from SyncMyPix or the like. You should still get all your status updates and what-not.
Just hook up to adb and copy and paste these one at a time.
Code:
adb pull /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db
sqlite3 contacts2.db "UPDATE blur_sources SET picture_source=0 WHERE gams_account_type in ('com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE'); UPDATE blur_sources SET picture_source=1 WHERE gams_account_type in ('com.google');"
adb push contacts2.db /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db
adb shell "chmod 777 /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db"
adb reboot
Should you decide this isn't what you want, you can run it again reversing picture_source=. Should put you back to normal.
erishasnobattery said:
I wrote a little SQL script that will set your contacts to only read pictures from google, but obviously you would need to manually sync up your photos from SyncMyPix or the like. You should still get all your status updates and what-not.
Just hook up to adb and copy and paste these one at a time.
Code:
adb pull /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db
sqlite3 contacts2.db "UPDATE blur_sources SET picture_source=0 WHERE gams_account_type in ('com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE'); UPDATE blur_sources SET picture_source=1 WHERE gams_account_type in ('com.google');"
adb push contacts2.db /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db
adb shell "chmod 777 /data/data/com.motorola.blur.providers.contacts/databases/contacts2.db"
adb reboot
Should you decide this isn't what you want, you can run it again reversing picture_source=. Should put you back to normal.
Click to expand...
Click to collapse
Sweet!
You mean copy each line by itself?
A friend told me I could also do this via a terminal app (can't install Android SDK on work laptop, and I'll be out of town until next week).
Yeah, just run one line at a time.
I've tried this like 100 different ways in terminal emulator, but something with permissions seems to be preventing me from editing the database in place, hence pulling it off the phone, modifying it, and sticking it back.

[ADB & ROOT] Control Android from your computer!!

ex-Windows Mobile users like me should know what My Mobile is..
Android has a similar app. Its called Screencast.
You first need to get the ADB, and you should be able to run commands on the shell. If you can, Screencast can do the rest.
root users can control the android's touchscreen as well as the keyboard, and non-roots can do nothing but watch (and record video)
download and run. if you have adb u must have JRE so it should work perfectly.
Link to Google Project page
Download
Ahh,gonna chk it out !!
thanks. i use something quite similar to look at the contents of my android... it's called myphoneexplorer. =D
Android ScreenControl without root
If you have not rooted your device have a look at
http://piglings.blogspot.com/2011/08/android-screen-control-without-root.html
Cheers,
Vikram.
NO control over android
I have a rooted phone with android 2.3.5, usb debugging enabled and the cracked display (digitizer not working too). I was able to see android screen on pc using adb and [email protected] but can not control it from mouse or keyboard. Any idea why?
Thanks! Saw someone doing the same concept on iOS.
andarian said:
I have a rooted phone with android 2.3.5, usb debugging enabled and the cracked display (digitizer not working too). I was able to see android screen on pc using adb and [email protected] but can not control it from mouse or keyboard. Any idea why?
Click to expand...
Click to collapse
Same here. I am running 4.2.2 on a nexus 5 and get the same thing. I am looking for a way to control phone through USB only. No internet this program seems to only do the display half of thing unfortunately. It is so frustrating that it's all over internet which I would think is much more complicated than just plug in and control but apparently not. Just getting so frustrated now.
dugie33 said:
Same here. I am running 4.2.2 on a nexus 5 and get the same thing. I am looking for a way to control phone through USB only. No internet this program seems to only do the display half of thing unfortunately. It is so frustrating that it's all over internet which I would think is much more complicated than just plug in and control but apparently not. Just getting so frustrated now.
Click to expand...
Click to collapse
I'm on a SGS2 i727R (rogers/fido version) Skyrocket running JB 4.1, rooted, usb debugging enabled and also cannot control through androidscreencast, only view. Phone's screen is busted, digitizer is gone but the non-screen touch buttons respond, as I'm able to make screenshots (power/stndby + home). My lockscreen is pattern so to manually input touch events to unlock my pattern seems pretty daunting.
To mention, I did buy another i727 (at&t version), did a blind backup of the broken one through cwm (4down, enter, 5down, enter) and restored it to the new one but all the calendar entries and notes I took through samsung's bloatware sNote, didn't restore and I had a lot of them. I can't seem to find where they're located on the filesystem and I never had a samsung account (required to sync your notes and calendar entries) so they're not backed up online. My guess is they might be encrypted locally and only be available to the same device/uid, though I might be wrong.
I was hoping to use androidscreencast to get past the unlock screen (pattern lock) and eventually export or sync the notes and calendar entries. Considering the phone's rooted, I'm wondering why I can't input touch events using androidscreencast. Is there an ADB command or a variable I have to change for this to be possible?

getting data off of broken G1/Dream [rooted]

I have a broken G1, the screen is shot, and something else is screwed up, because it won't process anything. Once it boots it shows the background for a moment, then the lock screen comes on, but without a background. Then it looses all functionality. I can't get it to do anything. However, what's interesting, is that if I get an incoming call, I can answer using the button (not screen), and talk normally. Anyway, I want to know if there is a way, probably using ADB to get all my contacts minimally (since they're not all sync'd w/ Google), but ideally I would like to make a system image from it and run it in one of the emulators (Eclipse, Spring Source or Android SDK is what I have installed now). Any help would be awesome. There are also a few nandroid backups that I could use somehow, but they are a little old.
As far as I know, contacts data is stored in a sqlite-database which is located on /data. As long as you can connect with adb to your phone, you can copy that database to your pc and analyze it using sqlite3.
In this article you can find some additional information. It's a bit old, but still valid and at least it can give you a hint.
If you cannot access to your phone using adb, you can also extract the contacts.db from your latest nandroid backup. You can use unyaffs or mount your image on a linux system as yaffs file system and extract the file(s) you want. Then you can use again sqlite3 to extract the contacts data.
The same way, you can extract other data. It's enough to concentrate on the /data partition of the G1. As long as adb is running, you can copy them to your local PC, if not, you need to extract them from your latest nandroid backup in the same way I described above.
there is an awesome application called droid explorer (i forget the developers name) that you can download free to your pc (probably mac too) if you have usb debugging turned on then all you have to do is plug your phone into pc via usb.
when your phone comes up you have all the options you need here plus more!
seriously i recommend it to everyone. i use it at work sometimes to access my phone without getting caught, it has a great screen-cast function (a bit laggy)
if you dont have usb debugging turned on then look in the forum how to do it via adb. if you cant find droid explorer let me know and i can put it in my dropbox.
another option is get a used g1 from ebay and swap motherboards. or just fix your screen or whatever the problem is
Ok... So I did a little snooping via adb, and fortunately I did leave usb debugging on, so that's a plus. Now there were 2 things that I've tried pulling:
/data/data/com.android.contacts
and
/data/data/com.android.providers.contacts
Unfortunately, these both just gave me .xml files that only had a few lines of code, none of which included contacts or any kind of useful info.
@AndDiSa: I'm going to read the linked article now, but currently I don't have anything useful from /data. Any tips on how I would go about extracting the contacts.db? Articles or links are always great!
@demkantor: I will check that out. Since I don't really know how messed up the phone is, I don't know how useful droid explorer will be, but it sounds like a good utility anyway.
I don't really feel like getting parts for my phone. It's already waaaay behind the curve, and while it's a super fun phone to mess around with, I think it's time to move to something new (like the Droid 1 that I got as a toy phone/media player since I don't have verizon).
Anyway, further help appreciated!
(Oh, and I have to replace the digitizer for my Droid. LOL)
I am not on my PC at the moment, but try to look for
/data/com.android.providers.contacts/databases/contacts2.db
at least in GB this should be the right file or do a
find /data -name "cont*db" -print
in adb shell to look for it.
Sent from my Gingerbread on Dream using XDA App
I'll check it out tomorrow and let you know how it goes. Thanks!
OK! Good news. I found the contacts2.db and was able to pull it. I got SQLite3.exe and started messing around with it. Now what I tried from the link didn't work, as I couldn't get the .db file imported, and don't really know how to declare that as the target of commands. Using the .tables or .databases commands didn't get any results either. .databases just said something like 0-Main and 9-local or something. Do you know how to pull this part off? Hope to hear back soon.
Thanks,
kyle_engineer
Didn't try to use sqlite3 on windows yet, on the phone, you need to do
sqlite3 contacts2.db
> .dump
and you will get all content of the database dumped as sql statements.
Sent from my Gingerbread on Dream using XDA App
Awesome man!!! the .dump worked and I was able to actually get a table output on the screen. Now I just need ot know how to make that something printable (ideally), and I need to try it with my actual G1, not my Droid1... I'll thank you tomorrow when it's done.
Ugh!
So I've been able to correctly import a .db from my droid 1 and get it properly printed on the screen using sqlite3. That worked fine. Now I've pulled the .db from my G1 (which has the needed contacts), and I can't get it to print correctly. Here is what I'm dealing with...
Code:
SQLite3 version 3.7.20
Enter ".help? for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
_sync_state settings
_sync_state_metadata status_updates
accounts v1_settings
activities view_contacts
agg_exceptions view_contacts_restricted
android_metadata view_data
calls view_data_restricted
contact_entities_view view_groups
contact_entities_view_restricted view_raw_contacts
contacts view_raw_contacts_restricted
data view_v1_contact_methods
groups view_v1_extensions
mimetypes view_v1_group_membership
name_lookup view_v1_groups
nickname_lookup view_v1_organizations
packages view_v1_people
phone_lookup view_v1_phones
properties view_v1_photos
raw_contacts
sqlite>
From here, no matter what I try to use the .schema and "select * from XXXX" on, I don't get any user friendly table like I did with the other .db file... could something be messed up with this .db?
Please let me know when you get a chance.
Thanks in advance!
-kyle_engineer

PLEASE I need the name of this app to get info off phone, touch screen not responding

I haven't been using my HD2 in quite awhile & when I went to use it last the touch screen stopped responding. I use to have this app you install on Windows where you would run the app & it would connect to your phone. Can anyone please tell me what that is called? There are a ton of people that use it I just can't recall what it was. I want to download it again so that I can connect my phone to it & get my pics & stuff off it. I wish I could give you a better description but all I can remember is it had tons of features to it. It is a windows program you install on your computer so that you can connect your phone & see everything on your computer. I think you could do debugging, move folders, install stuff to certain locations, maybe it even had a emulator with it but I am not sure on that 1. It would be very useful so that I can get this stuff. Thanks for any help.
It is not the Android SDK but I think it may have had Android in the name.
Never mind, I found it. It was called Droid Explorer.

Categories

Resources