Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
regaw_leinad
Old
(Last edited by regaw_leinad; 22nd January 2013 at 12:14 AM.)
#1  
regaw_leinad's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3196
Posts: 3,489
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
Version 1.5.1.0 - Includes Documentation and "Getting Started" Guide
Online Documentation

Sample Solutions Using AndroidLib:
C# (C Sharp)
Visual Basic (VB)

Download Info
AndroidLib.zip MD5: 043d9c34df80a2ce081278ea357a8bcb
Source on github
Device: HTC EVO 4G LTE | Hardware Version: 0003
Recovery:TWRP 2.3.3.0 | Bootloader: S-OFF
ROM: CM10.1



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
Hosting a YouTube Giveaway? Use my new application GiveMeAway

For support, join me at #RegawMOD on freenode HERE.
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 40 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 3196
Posts: 3,489
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 7 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 3196
Posts: 3,489
Join Date: Jan 2010
Location: Seattle, WA
reserved just in case
The Following 3 Users Say Thank You to regaw_leinad For This Useful Post: [ Click to Expand ]
 
TearsDontFalls
Old
#4  
Senior Member
Thanks Meter 121
Posts: 270
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 3196
Posts: 3,489
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 EVO 4G LTE | Hardware Version: 0003
Recovery:TWRP 2.3.3.0 | Bootloader: S-OFF
ROM: CM10.1



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
Hosting a YouTube Giveaway? Use my new application GiveMeAway

For support, join me at #RegawMOD on freenode HERE.
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!
 
Mrc527
Old
#6  
Senior Member
Thanks Meter 84
Posts: 151
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 3196
Posts: 3,489
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 EVO 4G LTE | Hardware Version: 0003
Recovery:TWRP 2.3.3.0 | Bootloader: S-OFF
ROM: CM10.1



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
Hosting a YouTube Giveaway? Use my new application GiveMeAway

For support, join me at #RegawMOD on freenode HERE.
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
#8  
Senior Member
Thanks Meter 84
Posts: 151
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 54
Posts: 92
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 3196
Posts: 3,489
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 EVO 4G LTE | Hardware Version: 0003
Recovery:TWRP 2.3.3.0 | Bootloader: S-OFF
ROM: CM10.1



My Development Threads

Watch my programming tutorials on YouTube - BetterCoder
Hosting a YouTube Giveaway? Use my new application GiveMeAway

For support, join me at #RegawMOD on freenode HERE.
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!

 
Post Reply+
Tags
.net, adb, android, device, dll
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...