Post Reply

[UTILITY][APP][WINDOWS] AndroidFileUtils | Grab the Logs you need! [v1312]

Announcement from .torrented: AFU - v1311_v2 has been posted, contains more fixes!
1st November 2013, 05:25 AM   |  #1  
.torrented's Avatar
OP Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,474
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
This is my first Windows App written in Visual C#. I've had no previous experience with this language (just C++ and Java) This was a blast learning how to code!

Pre-req's: You will need .NET 4.0 installed to work

You may need to install a different BusyBox version if it does not connect to device!!!

ADB not needed, comes packaged with AndroidLib.dll <- Embedded in application (thanks to regaw_leinad)

Does not work with Windows XP or lower

This app is for Windows that will quickly grab a:

-Logcat log : { Verbose, Debug, Info, Warning, Error, Fatal, App Force Close, Custom Filter }
-dmesg log
-last_kmsg log

To use this App effectively, you will need to grab the log AFTER the problem has occured!

Also will copy to your clipboard so you can just paste it to your favorite site or file!

Nothing fancy or elegant about this but it gets the job done! Help out our devs by getting them the Logs they need!

For screenshots check the screenshots tab at the top (DevDB Black Bar ^)

Credit also goes to @regaw_leinad for the AndroidLib.dll

Feedback is needed as this is my first Windows application!

Also, if anybody can come up with a better name for this app, I will gladly change it!

Credit goes to [insert xda-member handle here] for renaming this app to "[insert new name of application]"

Downloads can be found here: http://forum.xda-developers.com/devd...1462#downloads

================================================
Code:
v1312 (Windows 8 beta)
+Added debugging to find these Windows 8 bugs

v1311_v2
+More fixes in code, improved device handling when rebooting device.

v1311
+Fixed a bun in AndroidLib Library.
+Re-factored Reboot Sequence; Now devices will auto connect after a 
  reboot has been initiated.
+Massive code overhaul and speed improvements.

v1310
+Added Reboot Sequence {Recovery, Fastboot}
+Fixed NullReferenceException, if object is not initialized.

v1308-Beta
+New Filtering Option "Custom Filter" This will allow you to filter for what
  specific log types you want.
+Removed "Silent" filtering for obvious reasons.

v1308
+New Filtering Option "App Force Close" This will allow you to only grab 
  the error message when an app force closes.

v1307
+UI change (not released)

v1306
+Kills all threads if any are running upon exit, small other optimizations.

v1305:
+Fixed two small bugs that caused crashes.

v1300: 
+Another overhaul in code, thanks again to regaw_leinad for the help 
+AndroidLib.dll is no longer needed ^ 
+ADB is now properly killed when closing the application ^

v1200:
+Cleaned up code, ui, added a logcat filtering option
  { Verbose, Debug, Info, Warning, Error, Fatal, Silent }

v1100: 
+Added save log feature, changed up the UI a tiny bit

v1004: 
+Major overhaul to code, now speedier! (thanks to regaw_leinad for the help)

v1003: 
+Updated App again: Now should support ANY device :)

v1002:
+Cleaned up code, more aesthetics !

v1001: 
+New Release, Cleaned up some things and added some device info !

v1000: 
+Initial Release
XDA:DevDB Information
[Windows] AndroidFileUtils | Grab the Logs you need!, a Tool/Utility for the HTC Droid DNA

Contributors
.torrented, , regaw_leinad

Version Information
Status: Stable
Current Stable Version: AFU - v1311_v2

Created 2013-11-06
Last Updated 2014-02-14
Attached Thumbnails
Click image for larger version

Name:	Capture_dmesg.JPG
Views:	491
Size:	206.1 KB
ID:	2363358   Click image for larger version

Name:	Capture_kmsg.JPG
Views:	403
Size:	197.1 KB
ID:	2363359   Click image for larger version

Name:	Capture_logcat.JPG
Views:	399
Size:	205.8 KB
ID:	2363360   Click image for larger version

Name:	AFU-v1200_Error_Filter.JPG
Views:	447
Size:	151.3 KB
ID:	2374151   Click image for larger version

Name:	AFU - v1306.PNG
Views:	369
Size:	72.6 KB
ID:	2386974  

Click image for larger version

Name:	AFU - v1308.PNG
Views:	363
Size:	65.9 KB
ID:	2394143   Click image for larger version

Name:	v1310.PNG
Views:	201
Size:	61.9 KB
ID:	2529462  
Last edited by .torrented; 15th November 2013 at 07:44 PM.
The Following User Says Thank You to .torrented For This Useful Post: [ View ]
2nd November 2013, 04:12 AM   |  #2  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,636
 
3,664 posts
Join Date:Joined: Jan 2010
More
Awesome, man! Just to let you know, you say that the user needs ADB to be installed for it to work, but AndroidLib actually has that built it. If you're really trying to access the adb binary itself, look for the ResourceFolderManager class in the library, and adb.exe exists at runtime in the "AndroidLib" folder.
The Following User Says Thank You to regaw_leinad For This Useful Post: [ View ]
2nd November 2013, 04:45 AM   |  #3  
.torrented's Avatar
OP Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,474
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by regaw_leinad

Awesome, man! Just to let you know, you say that the user needs ADB to be installed for it to work, but AndroidLib actually has that built it. If you're really trying to access the adb binary itself, look for the ResourceFolderManager class in the library, and adb.exe exists at runtime in the "AndroidLib" folder.

Cool I didn't know that!
The Following User Says Thank You to .torrented For This Useful Post: [ View ]
2nd November 2013, 04:55 AM   |  #4  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,636
 
3,664 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by .torrented

Cool I didn't know that!

Just tried out the application. Works great!

One thing that might help the user experience:
Look into using a BackgroundWorker or the async/await combination to process all of the logcat data. This will make it so the app doesn't freeze temporarily while it's collecting the data. Also, you could do that same thing on the application startup while AndroidLib loads it's resources and starts the adb server.
The Following User Says Thank You to regaw_leinad For This Useful Post: [ View ]
2nd November 2013, 05:55 AM   |  #5  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,636
 
3,664 posts
Join Date:Joined: Jan 2010
More
Oh and one more thing, I'm not sure you called the "Dispose" method on the AndroidController object when the app closes. If you haven't already, go ahead and put that in. It stops the adb server and frees up all resources used by AndroidLib

The only reason that I say this is because adb was still running after I had closed the program.
2nd November 2013, 06:06 AM   |  #6  
.torrented's Avatar
OP Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,474
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by regaw_leinad

Oh and one more thing, I'm not sure you called the "Dispose" method on the AndroidController object when the app closes. If you haven't already, go ahead and put that in. It stops the adb server and frees up all resources used by AndroidLib

The only reason that I say this is because adb was still running after I had closed the program.

You mean this? Does it matter where in my code it goes?
Code:
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            android.Dispose();
        }
2nd November 2013, 06:08 AM   |  #7  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,636
 
3,664 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by .torrented

You mean this? Does it matter where in my code it goes?

Code:
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            android.Dispose();
        }

Hmm, is that already in there? Maybe put it in the FormClosing event handler. Your code should work however.
5th November 2013, 08:06 PM   |  #8  
.torrented's Avatar
OP Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,474
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Updated to v1200!

New options for easier to read logs!!!
5th November 2013, 08:31 PM   |  #9  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,636
 
3,664 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by .torrented

Updated to v1200!

New options for easier to read logs!!!

Great update man, it's way more smooth!
The Following User Says Thank You to regaw_leinad For This Useful Post: [ View ]
1st January 2014, 06:10 AM   |  #10  
.torrented's Avatar
OP Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,474
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
If anyone could please test my Beta release and let me know if you have any issues with it Detecting the Device.

Thanks .torrented!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Droid DNA Themes and Apps by ThreadRank