5,604,122 Members 48,488 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] AndroidLib - .NET Android Device Communication and Management Library 01.20.13

Tip us?
 
regaw_leinad
Old
(Last edited by regaw_leinad; 26th October 2013 at 08:43 PM.)
#1  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
Arrow [DEV] AndroidLib - .NET Android Device Communication and Management Library 01.20.13

Description:
AndroidLib is a .NET assembly written in C# (C-Sharp) that easily handles communication between a connected Android device and your program. Currently, there is a large amount of automated controls, eliminating thousands of lines of code the programmer has to write themselves. The class AndroidController is a semi-wrapper of the ADB (Android Debug Bridge) binary. The other class you will be working with the most is the Device class. This class contains useful information about the device (for example: software/hardware info, memory info, battery stats, mount points for partitions, root status, busybox information, and much more), as well as exposes many instance methods to control your phone such as Rebooting, Mounting Filesystems, Push/Pull/Install Files, and much more to come. AndroidLib contains all of the Android binaries necessary to work properly. AndroidLib also assumes that the phone's USB drivers are already installed correctly on the target machine, or that your program will take care of it on it's own.

This is perfect for any developer who would like to create, for example, an auto-rooter or any other application that needs to connect with Android devices through a .NET application. AndroidLib provides all the methods needed to communicate with the Android device. This will cut back on the code you have to come up with and write yourself by a HUGE amount!

What it does:
  • Provides easy-to-use code for communicating with Android devices in .NET
  • Provides easy access to information about the connected Android devices
  • Has a large list (and growing...!) of methods that control connected Android devices
Please credit the work here by me in your own projects; not only to give thanks to me and the many hours I am putting in to this project, but so others know where to find it if they need to!


Usage:
Add a reference to AndroidLib.dll in your .NET project and begin using this great API. Please refer to the "Getting Started.txt" guide and full documentation included in the zip.

Requirements:
.NET 3.5 or Higher

Changelog (Only most recent version displayed, full Changelog in download)
Version 1.5.1.0 | 01.21.13
  • Fixed Device.InstallApk() bug

Download Latest Release
GitHub
Online Documentation

Sample Solutions Using AndroidLib:
C# (C Sharp)
Visual Basic (VB)
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 67 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
regaw_leinad
Old
(Last edited by regaw_leinad; 20th July 2012 at 08:59 PM.)
#2  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
AndroidLib Featured Projects by XDA Users:
  • RegawMOD Evo 4G LTE Rooter - XDA
  • RegawMOD CDMA Hero Rooter - XDA
  • RegawMOD Rebooter - XDA
  • Droid Manager by DeepUnknown - XDA - Google
  • Android SMS - XDA - Home Page
  • Quick ADB Pusher by Goatshocker - XDA
The Following 11 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
regaw_leinad
Old
(Last edited by regaw_leinad; 24th February 2012 at 06:28 AM.)
#3  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
reserved just in case
The Following 6 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
TearsDontFalls
Old
#4  
Senior Member
Thanks Meter 133
Posts: 277
Join Date: Sep 2011
It's very useful, thank you very much, im planning to code a Filemanager like qtadb, because qtadb is sucking too often
My Config: Rom:re-Odexed Kyrillos rom v9.3, Kernel g3mod v2.3 w/ HD2SD(sdext:1024MB), Launcher:Launcher Pro, Keyboard: Swiftkey X, Min:83MHZ, Max:667MHZ, Governor: Performance
My greatest Respect to marcellusbe(for fugumod and cm7), tom3q(for new graphic driver), g3mod team(for all) and any other developer here
(The order says nothing)
 
regaw_leinad
Old
#5  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
In the process of completely redesigning the library (due to coding stupidity), basically from the base class up. I should have a beta1 out by this weekend for testing. All that are interested in beta testing this library for their Android .NET projects, post here and I'll add you to the list of testers!
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 2 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
Mrc527
Old
#6  
Mrc527's Avatar
Senior Member
Thanks Meter 93
Posts: 169
Join Date: Mar 2011
Location: Milan

 
DONATE TO ME
It would be great!
Can you add something like adb forward? So we can connect to an android service without using ADB, that as we all know sucks!
Read & Write SMS messages on your pc?

Look at here:
Website
Market link
 
regaw_leinad
Old
(Last edited by regaw_leinad; 24th March 2012 at 11:07 AM.)
#7  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
Quote:
Originally Posted by Mrc527 View Post
It would be great!
Can you add something like adb forward? So we can connect to an android service without using ADB, that as we all know sucks!
Yeah, I'll throw in a method to create a port forward. What I have now uses the bridge, which is included in the assembly, but handles all of it silently and very well. I should have a build out soon (most likely this weekend). As long as you don't dispose the AndroidController object, that port forward will be good, so you can use your own Socket code
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 3 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
Mrc527
Old
#8  
Mrc527's Avatar
Senior Member
Thanks Meter 93
Posts: 169
Join Date: Mar 2011
Location: Milan

 
DONATE TO ME
Quote:
Originally Posted by regaw_leinad View Post
Yeah, I'll throw in a method to create a port forward. What I have now uses the bridge, which is included in the assembly, but handles all of it silently and very well. I should have a build out soon (most likely this weekend). As long as you don't dispose the AndroidController object, that port forward will be good, so you can use your own Socket code
Great work! really, great idea!
Read & Write SMS messages on your pc?

Look at here:
Website
Market link
 
SimranSingh
Old
#9  
SimranSingh's Avatar
Member
Thanks Meter 66
Posts: 96
Join Date: Nov 2010
Location: TX

 
DONATE TO ME
You can change the .NET to 3.5? I too code in .NET, and I try to keep the .NEt version as low as possible!
 
regaw_leinad
Old
#10  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3575
Posts: 3,652
Join Date: Jan 2010
Location: Seattle, WA
Quote:
Originally Posted by SimranSingh View Post
You can change the .NET to 3.5? I too code in .NET, and I try to keep the .NEt version as low as possible!
Yeah, I actually did that a few days ago, forgot to update the OP.
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 ]
Tags
.net, adb, android, device, dll
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes