Hi guys! I'm working on a program in VB.NET which involves pushing files to phones. I know how to execute the commands from inside my program, but I'm struggling with the output. I can't get the output from adb. By output I mean the result of the function, for example, some error message or success message. Anybody knows how to get the output from adb and/or store it in a .txt file? Any help will be greatly appreciated.
Anyone????
Related
My phone has been rebooting many times recently. I have read about people mentioning a logcat when connected via USB. I am keen to help shed light on reboots so want to know what I need to do after a reboot.
Do I simply hook up the phone to my PC via USB and run a command to dump some sort of error log file?
Darren
ADB is your friend
DarrenNewsgroup said:
Do I simply hook up the phone to my PC via USB and run a command to dump some sort of error log file?
Darren
Click to expand...
Click to collapse
Yes. You shall use ADB for viewing log from PC.
I use the ADB included with SuperOneClick 2.1.1
Download it from here: ftp://shortfuse.org/SuperOneClick/Packages/SuperOneClickv2.1.1-ShortFuse.zip
Inside the zip there is an ADB folder. First, if on windows, try just invoking adb.exe from a command prompt (cmd), it will spit out the parameters.
For log viewing, connect USB to phone and start "adb.exe logcat".
If you want to redirect the output to a file, you can use "adb logcat > output.log", for example.
Cheers,
timara
Sorry for the noob question, but I am having some troubles doing a backup with adb. I have my phone rooted and can connect with adb, however I cant do a "adb pull / d:\whereveriwantit" without it just saying skipping special file for everything. I'm assuming because it is not pulling as root. So I try "adb shell" then "su" and I get root privileges, but then I cant figure out how to copy everything to say /sdcard/temp/ for me to then copy to my laptop (my unix command knowledge is lacking). Any help would be appreciated.
[EDIT] After some more playing around. I guess I can pull some things using the adb pull / <dir> , but alot of files are skipped "skipping special file" or "permission denied". Would using the proper commands in the shell after switching to root user be a better way to get the files copied?
I'm looking for help on how to change head sectors on my android device, via ADB.
Does anyone know how to do that?
Any help please?
Does anyone know how to pair the six axis controller on a Mac? I'm a newb to the command line thing in terminal and I don't know what to type to get it working. I don't understand how to run it...
The official website says
Mac OSX
Command line utility version of 'sixpair' for OSX can be downloaded from here. Modified source code can be found here. This utility requires libusb, which can be downloaded from http://www.ellert.se/twain-sane/. Choose the binary for your version of OSX.
But how do i run the command line utility? I got he libusb thing and installed it successfully but I still don't know how to make it work correctly. Can anyone tell me what to time step by step? or guide me to a newb friendly guide? Every time I try some of the steps I find online, my terminal says "-bash: $: command not found"
any luck?
i've been curious about this myself
Hello,
I own a phone(Model Number ZTE BLADE L5 PLUS) with Android 5.1 lollipop. I am trying to push install a normal apk file which doesn't need any special access. Also, my phone has way more storage space than the size of the apk. When I am trying to install the apk, it looks like it works at first with the message
"1 file pushed" with the speed of pushing the apk.
The real problem happens after a split second. It suddenly says "Error: Unknown command 'install'" and a huge list of commands which all starts with "pm" comes out. I have tried multiple times, from rebooting adb and typing in the path of the apk instead of inserting the name, but it all failed, with exactly the same issue every time. I also searched about the "adb install" command missing, but ended up wasting time only(only solutions for "adb" command not found came out)
I installed adb via Android Studio(Android SDK Platform-Tools), along with the platform suitable for Android 5.1. I didn't download the android emulator though. I hope I could get some help.
Thank You