Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,371 Members 38,839 Now Online
XDA Developers Android and Mobile Development Forum
Announcement from .torrented: AFU - v1311_v2 has been posted, contains more fixes!

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

Tip us?
 
.torrented
Old
(Last edited by .torrented; 15th November 2013 at 07:44 PM.)
#1  
.torrented's Avatar
Recognized Contributor - OP
Thanks Meter 1,473
Posts: 2,785
Join Date: Mar 2011
Location: Suffolk, VA

 
DONATE TO ME
Default [UTILITY][APP][WINDOWS] AndroidFileUtils | Grab the Logs you need! [v1312]

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:	479
Size:	206.1 KB
ID:	2363358   Click image for larger version

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

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

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

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

Click image for larger version

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

Name:	v1310.PNG
Views:	192
Size:	61.9 KB
ID:	2529462  
The Following User Says Thank You to .torrented For This Useful Post: [ Click to Expand ]
 
regaw_leinad
Old
#2  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3,629
Posts: 3,662
Join Date: Jan 2010
Location: Seattle, WA
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.
Device: HTC One (AT&T)
Recovery:TWRP 2.6.3.0 | Bootloader: S-OFF
ROM: Stock



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
I'm also a professional musician - YouTube - SoundCloud


Please don't post just to say "Thanks" - There's a button for that . Be sure to use it!
The Following User Says Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
.torrented
Old
#3  
.torrented's Avatar
Recognized Contributor - OP
Thanks Meter 1,473
Posts: 2,785
Join Date: Mar 2011
Location: Suffolk, VA

 
DONATE TO ME
Quote:
Originally Posted by regaw_leinad View Post
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: [ Click to Expand ]
 
regaw_leinad
Old
#4  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3,629
Posts: 3,662
Join Date: Jan 2010
Location: Seattle, WA
Quote:
Originally Posted by .torrented View Post
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.
Device: HTC One (AT&T)
Recovery:TWRP 2.6.3.0 | Bootloader: S-OFF
ROM: Stock



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
I'm also a professional musician - YouTube - SoundCloud


Please don't post just to say "Thanks" - There's a button for that . Be sure to use it!
The Following User Says Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
regaw_leinad
Old
#5  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3,629
Posts: 3,662
Join Date: Jan 2010
Location: Seattle, WA
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.
Device: HTC One (AT&T)
Recovery:TWRP 2.6.3.0 | Bootloader: S-OFF
ROM: Stock



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
I'm also a professional musician - YouTube - SoundCloud


Please don't post just to say "Thanks" - There's a button for that . Be sure to use it!
 
.torrented
Old
#6  
.torrented's Avatar
Recognized Contributor - OP
Thanks Meter 1,473
Posts: 2,785
Join Date: Mar 2011
Location: Suffolk, VA

 
DONATE TO ME
Quote:
Originally Posted by regaw_leinad View Post
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();
        }
 
regaw_leinad
Old
#7  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3,629
Posts: 3,662
Join Date: Jan 2010
Location: Seattle, WA
Quote:
Originally Posted by .torrented View Post
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.
Device: HTC One (AT&T)
Recovery:TWRP 2.6.3.0 | Bootloader: S-OFF
ROM: Stock



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
I'm also a professional musician - YouTube - SoundCloud


Please don't post just to say "Thanks" - There's a button for that . Be sure to use it!
 
regaw_leinad
Old
#9  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3,629
Posts: 3,662
Join Date: Jan 2010
Location: Seattle, WA
Quote:
Originally Posted by .torrented View Post
Updated to v1200!

New options for easier to read logs!!!
Great update man, it's way more smooth!
Device: HTC One (AT&T)
Recovery:TWRP 2.6.3.0 | Bootloader: S-OFF
ROM: Stock



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
I'm also a professional musician - YouTube - SoundCloud


Please don't post just to say "Thanks" - There's a button for that . Be sure to use it!
The Following User Says Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
.torrented
Old
#10  
.torrented's Avatar
Recognized Contributor - OP
Thanks Meter 1,473
Posts: 2,785
Join Date: Mar 2011
Location: Suffolk, VA

 
DONATE TO ME
If anyone could please test my Beta release and let me know if you have any issues with it Detecting the Device.

Thanks .torrented!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes