What is AndroidLib.dll.?
AndroidLib.dll is a library For Visual Basic
Changelog
Version 1.5.1.0 - 01/21/13
+Fixed Device.InstallApk() Bug
Version 1.5.0.0 - 01/20/13
+Added Device.FastbootReboot()
+Added Device.PushFile()
+Fixed All Reboot Bugs
+Added Locking for better thread safety
+Removed unneeded dependencies
Version 1.3.0.0 - 05/23/12
+Added wrapper for AAPT
+Fixed missing quote bugs in Device.Pull/Push/Install() methods
+Fixed some documentation errors
Version 1.2.3.0 - 04/30/12
+Added method to check is FileSystem request is a File or Directory
+Added Device.InstallApk()
+Optimized Device.Pull*() methods
Version 1.2.2.0 - 04/22/12
+Added Device.PullFolder()
+Updated internal procces caller
+Minor bug fixes
Version 1.2.1.0 - 04/13/12
+Organized internal embedded resources
+Added ResourceFolderManager class (see documentation under RegawMOD namespace)
+Optimized AndroidController & Signer using ResourceFolderManager
+Added Souce Code on github
Version 1.2.0.0 - 04/11/12
+Implemented the Singleton method in AndroidController
+Added static AndroidController.Instance property- used to reference the AndroidController instance.
+Still uses AndroidController.Dispose() when finished.
+Updated AndroidController.WaitForDevice() (removed WaitForDeviceAlternate())
+Added a call to AndroidController.UpdateDeviceList() to reduce need to call it beforehand in:
+AndroidController.HasConnectedDevices
+AndroidController.IsDeviceConnected(string)
+AndroidController.IsDeviceConnected(Device)
+AndroidController.ConnectedDevices
+AndroidController.GetConnectedDevice(string)
+AndroidController.GetConnectedDevice()
+Device.Reboot*() execute on separate threads
+Added RegawMOD.Java class (see documentation)
+Added RegawMOD.Android.Signer class (see documentation)
+Minor bug fixes
Version 1.1.0.0 - xx/xx/xx
+Fixed Battery class parsing
+Changed internal device management code
+New way to get a new Device() - see Documentation/Examples
+Added left out "" in Adb class method FormAdbShellCommand()
+Added experimental method Adb.ExecuteAdbShellCommandInputString() - see Documentation
Version 1.0.0.2 - xx/xx/xx
+Fixed FileSystem bug w/
+Xperia X10
+Now updates internal device list on separate thread to reduce "freezing" in Windows Forms
+Added Device.PullFile()
Version 1.0.0.1 - 03/27/12
+Removed Processes & +Android Process classes due to 'ps' output differences in devices. (Will fix)
Version 1.0.0.0 - 03/26/12
+Initial Release
USAGE:
The 'AndroidController' class is the main class in AndroidLib.
The default/recommended name for the 'AndroidController' variable is 'android'. In version 1.2.0.0, AndroidController was implemented with the Singleton method.
Here is an example how to set up the new 'AndroidController':
AndroidController android = AndroidController.Instance;
Now, 'android' references the static property AndroidController.Instance, which is the active instance of AndroidController.
This was implemented to only allow one instance of AndroidController at a time.
ALWAYS call the android.Dispose() method after you are done using AndroidLib's features. This kills the Adb Server and cleans up resources left in "%temp%\RMResource".
The 'Device' class is basically a virtual representation of a connected Android device. It contains many classes that provide the developer information about the device.
You can get an instance of 'Device' by calling any of the 'Get' methods or properties of the 'AndroidController' instance. For example:
This example shows how to display a connected Android device's serial number on the Console:
using System;
using RegawMOD.Android;
class Program
{
static void Main(string[] args)
{
//Blocking Call
AndroidController android = AndroidController.Instance;
Device device;
string serialNumber;
Console.WriteLine("Waiting For Device...");
//This will wait until a device is connected to the computer
//Should ONLY be used in Console applications though, as it freezes WinForm apps
android.WaitForDevice();
//Gets first serial number of Device in collection
serialNumber = android.ConnectedDevices[0];
//New way to set 'device' to the first Device in the collection
device = android.GetConnectedDevice(serialNumber);
Console.WriteLine("Connected Device - {0}", device.SerialNumber);
//ALWAYS remember to dispose after use of AndroidController
android.Dispose();
}
}
From there, check the documentation for everything you can do within the 'Device' class.
This library is extremely well documented, so make use of it!
NOTES:-------------------------------------------------------------
As of right now, the 'Adb' class is compiled as a public class. 'Adb' contains methods to create and run Adb commands on the server. I debated whether or not to compile it as internal because it does give the developer great power to generate an error. I STRONGLY urge you NOT to allow your end-users to be able to create their own 'AdbCommand'. This leaves huge room for error, because not everone knows how to use Adb.
WARNING:
I have tested everything AndroidLib does to the best of my abilities. There are bound to be some bugs, as this is the first public release. PLEASE report all bugs to me either by pm on xda or email: SelmerSaxMan@gmail.com
I can not be held responsible if anything happens to a device or computer while using AndroidLib.dll. This has been tested without any errors, is still under development, and is completely malware free.
Download AndroidLib
link1 link2 link3