Post Reply

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

OP regaw_leinad

23rd February 2012, 11:15 AM   |  #1  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
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)
Last edited by regaw_leinad; 26th October 2013 at 08:43 PM.
The Following 79 Users Say Thank You to regaw_leinad For This Useful Post: [ View ]
23rd February 2012, 11:16 AM   |  #2  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
Arrow
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
Last edited by regaw_leinad; 20th July 2012 at 08:59 PM.
The Following 13 Users Say Thank You to regaw_leinad For This Useful Post: [ View ]
24th February 2012, 12:45 AM   |  #3  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
reserved just in case
Last edited by regaw_leinad; 24th February 2012 at 06:28 AM.
The Following 6 Users Say Thank You to regaw_leinad For This Useful Post: [ View ]
24th February 2012, 09:26 AM   |  #4  
Senior Member
Thanks Meter: 134
 
277 posts
Join Date:Joined: Sep 2011
More
It's very useful, thank you very much, im planning to code a Filemanager like qtadb, because qtadb is sucking too often
21st March 2012, 11:57 AM   |  #5  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
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!
The Following 2 Users Say Thank You to regaw_leinad For This Useful Post: [ View ]
24th March 2012, 09:51 AM   |  #6  
Mrc527's Avatar
Senior Member
Flag Milan
Thanks Meter: 93
 
169 posts
Join Date:Joined: Mar 2011
Donate to Me
More
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!
24th March 2012, 11:03 AM   |  #7  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by Mrc527

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
Last edited by regaw_leinad; 24th March 2012 at 11:07 AM.
The Following 3 Users Say Thank You to regaw_leinad For This Useful Post: [ View ]
24th March 2012, 12:00 PM   |  #8  
Mrc527's Avatar
Senior Member
Flag Milan
Thanks Meter: 93
 
169 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by regaw_leinad

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!
24th March 2012, 10:53 PM   |  #9  
SimranSingh's Avatar
Member
Flag TX
Thanks Meter: 67
 
96 posts
Join Date:Joined: Nov 2010
Donate to Me
More
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!
24th March 2012, 11:20 PM   |  #10  
regaw_leinad's Avatar
OP Recognized Contributor / Recognized Developer
Flag Seattle, WA
Thanks Meter: 3,645
 
3,665 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by SimranSingh

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.

The Following User Says Thank You to regaw_leinad For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
.net, adb, android, device, dll
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software Development by ThreadRank