yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] Lurk:
Just wanted to add my voice.

I had the original pre-NoDo and debugging was fine, but now with Mango (v2 ROM), I can deploy, but the debugger won't start.

Anyone have any ideas on a solution?

While I'm de-lurked, Huge thanks to XBMod and Yuki and all other involved in this incredible piece of work.

Thanks!

iOS is so 1984.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] Ooije:
I’ve been using the Visual Studio dev dlls (Microsoft.SmartDevice.Connectivity) for an app I’ve been working on so I’ve noticed a difference between official devices and the HD2. Whenever I try to run "Microsoft.SmartDevice.Connectivity.RemoteApplication.Launch()” on a HD2 the device fails with the code “0x80040202”. This works on a real WP7 device and is probably the call that fails when Visual Studio tries to start a debugging session.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] Hobb:
Are there any news on this issue?
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] spaikers:
ROM for debuggin in Visual Studio 2010

Is there any HD2 ROM that works for debug in Visual Studio?

XBmod-Yuki v2 not found, ""The application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed."

Dev_unlock.cab not found.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] ultrashot:
well, if you have full access to registry (don't know if you do or not), you may try http://xdaforums.com/showthread.php?t=1336137

or ask your chef to add this tweak.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] theRealBigP:
ultrashot, I saw your registry edits in that other post. I pushed a registry editor onto my HD2, but as you suggested, I don't have full access to the registry: drilling down a few levels into the HKEY_LOCAL_MACHINE hive gives an access denied message.

My question is basically this: if the DevUnlock CAB is itself setting some registry keys on the device, is it not possible to somehow create another CAB that will set these extra registry keys to enable Visual Studio debugging?
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] xboxmod:
Hi Guys

try the cab attached.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] FelipeMR:
Thanks It worked
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] W.I.N.C.O.:
Added also into wCabSender ;-)

http://xdaforums.com/showthread.php?t=1315179
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] sius071:
i tried your rom and i cannot get a reliable internet connection. I use htc connection setup it worked for a couple minutes then no connection. when i flash android rom everything is fine please help me.
[Nook Touch Android Development] AcoQ:
Hi Nook developers,

I rooted my Nook STR using Touchnooter and almost everything works fine (finally Sudoku on my Nook! ;)) but one thing bothers me.

In some Apps and System settings etc. the text of some things is just missing.

Examples include the market (I can search it fine with Search Market) where I can't see the application details, the ADW.Launcher settings (I can see the icons but not the text) and the calendar.

I thought there is some color the nook wrongly translates to white, but as it turns out...

...DDMS sees it as white too.

Is this some known glitch I somehow haven't read about, or am I the only one experiencing this?
[Nook Touch Android Development] apeine:
I have some of those, only on menus (but not on the 2nd page menus). Haven't heard of something to improve this... Most menus are try-and-error...
[Nook Touch Android Development] aryanwicked:
it is very annoying, I have same problem, it would be nice if someone could answer :D
[Nook Touch Android Development] crazy_jake:
same problem here, lots of problems with menus in all programs. Any fix would be great!
[Nook Touch Android Development] mdall:
Maybe a modification of the theme would fix it ...

If someone is able to do it, it could be useful
[Nook Touch Android Development] cristoslc:
+1. I don't know that I have it on all the screens you show, but it is on a lot of mine as well. Running TouchNooter 2.1.31 over Nook 1.1.0.

Does anyone know where to go/what tools to use to modify the theme?

I also have a problem with a lot of popup text (e.g., in the XKCD browser, "Hint" function) being invisible. See: http://xdaforums.com/showthread.php?p=24486593
[EVO 4G General] linsalata28:
ROM Toolbox is available for all ROMs now, if your rooted you should definitely check it out.

Created by JRummy

http://www.pressbyte.com/4844/rom-toolbox-customizes-tweaks-rom-android-phones/

Market link.

https://market.android.com/details?id=com.jrummy.liberty.toolbox
[EVO 4G General] saprano614:
this is the exact same thing as rom manager from clockwork
[EVO 4G General] taadow1030:
Way more options than Rom Manager. Should be quite useful. Thanks Linsalata. Will press button also.
[EVO 4G General] teh roxxorz:
Seems like a super powered rom manager. :p
[EVO 4G General] linsalata28:
You need to look through all the settings the ROM Manger part is just one window on the app this has a lot more options then rm.
[EVO 4G General] IcFuSIoN:
Looks nifty. Seems like it has a few more features to it than Rom Manager does by itself.
[EVO 4G General] erklat:
Just downloaded it and changed my fonts in a jiffy. Looks nice at first, will see later if it brings any ill effects. I think some of the parameters as vm heap size and autokiller size are best not played with. Anyone know how to avoid app names in app drawer being cut off after font change, or is it impossible to avoid with fonts other than default?
[EVO 4G General] linsalata28:
You would need to change the size of the fonts there is a app for it on the market I don't remember the name off hand.

And I used it to change vm heap with no problems I've used fix permissions as well and it seems to work.

I've played with some other things as well with no issues so far I really want to know if the battery icon changer works I'm on deck 1.3d right now so no point to try it but it would be cool if it does and the dev adds more icons.
[EVO 4G General] erklat:
Is there any reason to fix permissions even if you don't get any force closes? I think rom developers assign the needed values themselves so I'm not comfortable doing it and potentially compromising roms stability. I could change wireless scan interval. Also it would be better you posted in general Android forums.
[EVO 4G General] Braneless:
What? No.

The free app is OK, but all of the useful tools are unlocked only in the paid version.
[EVO 4G General] megabiteg:
I have a question,

You guys know that ROM manager requires CWM. Now I have Amon_RA on my phone, if I install this app will it try to replace my recovery or will it use what I have?
[EVO 4G General] djviruss:
To use Tom manager you have to use clockwork .. it will force an install.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Elementary Adb commands

Ok, now that you've got adb all setup and prepared your computer to use it, you're ready to learn some basic adb commands. I'll be teaching some of them in this section.

Understanding how adb and the shell works

Let's first check if adb is working by asking it to communicate with our phone. Connect the phone with a usb cable to the PC. Note that you should have installed the HTC drivers already (They come with HTC Sync)

From your Windows Start Menu, Click on Run, then type the following and press enter. That should open a command shell:

cmd

Once there, type out the following:

adb devices

This will display a list showing the connected phones with their serial numbers (and emulators-But let us not worry about what these are, right now)

Great, now we have confirmation that adb is working! We're now ready to issue our basic commands.

First thing to note is the basic command to enter the Android custom linux shell. Like Windows has cmd.exe to enter the dos shell, the graphical eyecandy with Sense overlay that you see on your device has a custom linux kernel running, so basically the language of its shell is the Linux shell language.

Accessing the Linux terminal (adb shell) is what we do to issue commands. To enter the shell of our device, the basic command is:

adb shell

Immediately, you will get a prompt like this:

sh-3.2#

Now we can type out any (most) linux commands and these will be executed in our device.

The file system on Android is laid out over MTD partitions in your device's NAND (Internal memory), and the SD card. The Nand is strictly organized in a Linux system with Linux file permissions and ownership rights (Just know that these exist, for now)

So, right now, you will be dropped in the "root" of the filesystem, from where you can navigate to other places.

My tutorial is about adb commands, and not linux, so I'll give only a short summary of elementary linux commands below. I will expand the list and explanation for this at a later date if you require it:

Elementary Adb commands

Installing applications with adb

You can install any apk from your PC to the phone very easily. Open a cmd shell, and then type in:

adb install

followed by a space. Now drag an apk file in Windows explorer to the shell we have opened. Immediately, the path of the file becomes inserted in our prompt that it becomes:

adb install C:\Desktop\TitaniumBackup.apk

assuming that the file TitaniumBackup.apk was present in the location C:\Desktop. Hit enter and you will notice that it gets installed.

Transferring files to the sdcard without connecting the device as Disk drive:

adb push C:\Desktop\TitaniumBackup.apk /sdcard/

will trasfer the file C:\Desktop\TitaniumBackup.apk to the root (main) directory of your sdcard. Likewise, you can transfer any file from the PC to any location on your device.

Eg: I want to transfer a file called wallpaper.zip to a location /data/local. The command would be:

adb push C:\Desktop\wallpaper.zip /data/local/

Contd..

Don't forget to Hit the Thanks button to let me know that my posts helped you!
[Desire Q&A, Help & Troubleshooting] Droidzone:
More elementary adb commands:

Getting a file from your phone to your PC:

To get a file /system/etc/init.d/01data to your PC, you would type out the following:

adb pull /system/etc/init.d/01data

which will transfer the spcified file to the location on your pc where you have opened the cmd.exe shell.

Mounting the system partition as Read Write to transfer files to your /system partition:

Method 1:

adb remount

Method 2:

This can also be accomplished with the more advanced mount command in the adb shell. First we need to know the mount point of the partitions.

Type:

adb shell
mount

For me, it displays:

rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
[B]/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0[/B]
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /system/data yaffs2 rw,nosuid,nodev,noatime,nodiratime 0 0
/dev/block/mmcblk0p2 /data ext4 rw,nosuid,nodev,noatime,nodiratime,commit=50,bar
rier=0,stripe=64,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,u
id=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset
=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
sh-3.2#

Note that the entry for system partition shows:

/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0

The ro means that /system is mounted as RO-i.e Read Only. The whole line means that the Nand MTD block device on /dev/block/mtdblock3 is mounted on the mount point /system, to use technical jargon.

We need to mount it as RW (Read Write)

The command is:

mount -o rw,remount /dev/block/mtdblock3 /system

This essentially mounts the /system as Read Write so that you can write to it (Normally you cant write to the /system partition), which is what "adb remount " also does. However the commands above can be executed from a Terminal Emulator application too.

Next: Getting an Adb logcat

Don't forget to Hit the Thanks button to let me know that my posts helped you!
[Desire Q&A, Help & Troubleshooting] Droidzone:
Getting an adb logcat

Many a time, you might have heard people telling you to get a logcat to report your error with a Rom installation.

What is a logcat?

A logcat is a report from the Android logging system, which takes place in the background the whole time your phone is on. It starts the moment you switch on the phone, and continues till you shut it down completely. This log is extremely useful for finding out what went wrong with your system. It is useful to find out why your phone is having bootloops or force closes. It is infact useful for all errors!

How to get the logcat?

Basically, you can view the logcat log with the following command:

adb logcat

But that means getting overwhelmed by an endless haze of output flowing at a rate that you cant read and will overwhelm your command shell's capacity very soon.

So the system we normally use is to output the log to a file from which we can read later. This is done by the following command:

adb logcat > log.txt

My Technique

As a Rom developer and apk patcher, I have to constantly check for errors in my system. So I've devised an ingenous method to easily log logcat, and view them readily. I use a combo of commands executed in succession:

adb kill-server
echo "" > log.txt
start log.txt
adb logcat > log.txt

These commands essentially create a blank file named log.txt in the same path as the command shell you've opened. Then, it opens the file log.txt (which is blank at this point of time. Then it logs logcat output to that file. Once you refresh the opened file, it will show the output of logcat to this point of time. Refresh it once again, and it updates once more. You should install Notepad++ and associate .txt files with it, to get best results.

Instead of executing these four commands, you can download the batch file getlog.cmd and extract it from the zip file to the folder containing adb.exe. Once you type in the following command (from anywhere in Windows), you will achieve the same result as typing the four commands as above! Ingenious, eh? :D

Don't forget to Hit the Thanks button to let me know that my posts helped you!
[Desire Q&A, Help & Troubleshooting] Droidzone:
See the next post for Kernel errors..
[Desire Q&A, Help & Troubleshooting] Droidzone:
How to get Kernel error messages

You can get debug messages from a running kernel with:

adb shell
dmesg

If you have reboots due to kernel panic, you should make users capture the last_kmsg log from /proc immediately on the reboot.

Note that dmesg can be disabled by the kernel maintainer, and hence some roms/kernels may not support the command.

adb shell
cat /proc/last_kmsg > /sdcard/last_kmsg

Should be done immediately after the reboot..Otherwise it will just get overwritten by newer kernel message.

So in brief, if you'd like to look at what the kernel is doing right now (any errors etc), you should use dmesg. If you want to know why your kernel rebooted, use the file proc/last_kmsg

It's extremely useful!

Don't forget to Hit the Thanks button to let me know that my posts helped you!
[Desire Q&A, Help & Troubleshooting] Droidzone:
Guys, part of the tutorial is over.. Hope it is helpful. Will add more useful and advanced stuff later.. Hope it helps the newbies and some more seasoned users.

Feel free to ask any doubt that you think is silly, without fear of being ridiculed or being asked to search the thread! It should be related to adb though! ;)
[Desire Q&A, Help & Troubleshooting] Deleted member 4123551:
Impressive tutorial. You'll get my thanks when im back at my home pc :)
[Desire Q&A, Help & Troubleshooting] coolexe:
Nice tutorial bro. shoud be on dev section...???
[Desire Q&A, Help & Troubleshooting] Droidzone:
Thanks bro.. I thought that might scare away newbies, plus since I havent done any actual development.. :D
[Desire Q&A, Help & Troubleshooting] coolexe:
Hi,

there is lots of thread in dev. section which doesn't belong to development...anyway nice tutorial for noobs...if possible add QtADB tool...:D

EDIT: Added to my threads
[Desire Q&A, Help & Troubleshooting] Droidzone:
Will add a GUI section. Good tip.. It's a very useful tool :)
[Desire Q&A, Help & Troubleshooting] jesseuy:
Hi there.

Well this is a nice tut for android newbies like me :D

can you also add a basic symlinking tut? (especially how to symlink a folder to an already existing symlink :rolleyes:)

thanks!
[Desire Q&A, Help & Troubleshooting] jesseuy:
Thanks for adding the tut. Will be reading and will definitely try it out.

Thanks again!
[Desire Q&A, Help & Troubleshooting] DroidMayu:
Thanks a lot for the tutorial. Basic stuff nicly explained. i tried the push method via adb to push a font into system/fonts directory still it says read only permission :(

error mesg

PS: pull works like charm. please guide me if u hav time. Thanks.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Yup, on an s on system, even though system can be mounted as rewrite, writing isn't allowed. You have to execute the commands in recovery mode
[Desire Q&A, Help & Troubleshooting] Talon26:
Great tutorial! Thanks for that, definitely noob friendly...

Have a question about the following,

DATAOPTS:

(no option) - don't touch the data partition

-w - wipe the data partition

-d - flash the data partition

I have the Samsung Galaxy S I9000 (not sure if that makes a difference) and if my screen breaks or i have some sort of hardware problem. After flashing the stock rom back on do i use the above commands to wipe the evidence of any programs that suggest the device was previously rooted. If so which one wipe or flash?

Thanks
[Desire Q&A, Help & Troubleshooting] puncha1580:
Thank You!!!

Hey Droidzone,

I'm really in awe of you, and need to thank you for the amazing work you're doing here - at XDA.

I just can't find the thank you button on the forums.(I could be blind :confused: :o !!!)

Thanks a zillion!!!
[Desire Q&A, Help & Troubleshooting] OzBoy08:
I have found this tutorial very helpful. It has enabled me to play around with adb on a basic level without the fear of anything going wrong. Well done and many thanks.
[Desire Q&A, Help & Troubleshooting] bortak:
why is this not a sticky?!
[Desire Q&A, Help & Troubleshooting] scherfa:
Thanks
[Desire Q&A, Help & Troubleshooting] WRson:
Very helpful !

Thank you
[Desire Q&A, Help & Troubleshooting] john-au:
Quote:

Instead of executing these four commands, you can download the batch file getlog.cmd and extract it from the zip file to the folder containing adb.exe. Once you type in the following command (from anywhere in Windows), you will achieve the same result as typing the four commands as above! Ingenious, eh?

/Quote:

Not sure about getting a logcat.

I have d/led getlog.cmd and placed it in the same folder as adb.exe

Now what?

I tried typing in adb logcat and got all the info in the cmd window but how do you get it to a txt file? Also tried the four commands but kept getting an error at the echo line.

Sorry very new to adb.

Edit: I created a txt file called log.txt in the same folder as adb.exe and clicked on getlog.cmd and I think it worked. Anyone tell me if this is correct.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Sorry about all the screenshots disappearing. They're hosted on my server which has experienced a power outage and data corruption. Hopefully it'll be fixed in a couple of days.
[Desire Q&A, Help & Troubleshooting] trust-no-one:
Great tutorial, prior to reading this I had no idea about how to use ADB, but now I can get around reasonably well... I don't even have a Desire, or even a HTC phone yet, but I learnt on my Transformer, and it works great! My first step to becoming an Android dev I guess :p might even consider cooking a ROM soon.

tno~~
[Desire Q&A, Help & Troubleshooting] Droidzone:
That's cool! :)
[Desire Q&A, Help & Troubleshooting] Droidzone:
How to get Kernel error messages

Added another one to OP

You can get debug messages from a running kernel with:

adb shell
dmesg

If you have reboots due to kernel panic, you should make users capture the last_kmsg log from /proc immediately on the reboot.

adb shell
cat /proc/last_kmsg > /sdcard/last_kmsg

Should be done immediately after the reboot..Otherwise it will just get overwritten by newer kernel message.

So in brief, if you'd like to look at what the kernel is doing right now (any errors etc), you should use dmesg. If you want to know why your kernel rebooted, use the file proc/last_kmsg

It's extremely useful!
[Desire Q&A, Help & Troubleshooting] fs1023:
Problem - adb logcat > log.txt

Droidzone thanks for your fantasic newb guide.

I am looking at your guide to learn and get a better understanding of what went wrong with my phone the other day (all is Ok now) when I had to use Fastboot for my phone to be recognised again by pc/phone, of which i was/am clueless at what i did.

I had already installed ADB SDK files/tools a while ago in case i have a USB brick on my desire.........

I have done 'adb install' and dragged apk file to cmd which was a success but not having any luck with 'adb logcat > log.txt. Curser just hangs for about 5 mins then goes back to cmd prompt.

I have looked at post 25 (john-au) and i do not know what he did.

Regards

fs1
[Desire Q&A, Help & Troubleshooting] Droidzone:
Look inside the file log.txt
[Desire Q&A, Help & Troubleshooting] fs1023:
Thanks for quick reply.

I have created a log.txt file and put it in adb exe folder.

Typed in cmd >adb logcat > log.txt hit enter and get

-waiting for device-

What an i doing wrong?

EDIT: Did a file search and it was not in folder with adb.exe but in c:\users\myname.
[Desire Q&A, Help & Troubleshooting] Droidzone:
The path is used for executables. Unless specified otherwise, log.txt is created in wherever your current directory is.
[Desire Q&A, Help & Troubleshooting] angusc:
If you want to see your Battery logs:

adb shell dumpsys batteryinfo

or from Android Terminal window:

dumpsys batteryinfo > /sdcard/batterystats.txt

And then check the file created on the sdcard "batterystats.txt"
[Desire Q&A, Help & Troubleshooting] keolawills:
thank you for this guide, i have been learning a lot quickly using this. saved me multiple times.:D
[Desire Q&A, Help & Troubleshooting] TVTV:
Thanks for the great guide! The only thing i don't like about it is the beg for "Thanks" at the end of each post. It's not elegant, if you ask me.
[Desire Q&A, Help & Troubleshooting] Droidzone:
Who's begging for thanks? Thanks is just an indicator of how many people found a post useful. Hit the button or not, I couldn't care less. Much better than begging for thanks in ones signature, or begging for money any day.

Swyped on my Htc Desire running on Supernova Extreme - Gingerbread goodness with 2 GB of Internal memory
[Desire Q&A, Help & Troubleshooting] Droidzone:
There's a lot more about adb to explain. There are advanced filters you can set, and commands to make the phone obey instructions like open an app, click a button etc. Will add more when I have time.

Swyped on my Htc Desire running on Supernova Extreme - Gingerbread goodness with 2 GB of Internal memory
[Desire Q&A, Help & Troubleshooting] Misterjokerboy:
Another awesome post from you, thanks for all the info :-)
[Desire Q&A, Help & Troubleshooting] the_bone_collector:
Excellent tutorial buddy !