GithubHelp home page GithubHelp logo

cooladb's Introduction

CoolADB

Client info

A C# Android Debug Bridge client for .net.

Method and function examples

-Create the client
ADBClient MyClient = new ADBClient();

-Set the path of adb.exe here or leave null if PATH is defined or adb.exe is in the same directory as the host application
MyClient.AdbPath = @"C:\path\to\adb.exe";

-Connect via ip
MyClient.Connect("192.192.192.192");

-Disconnect
MyClient.Disconnect();

-Kill server
MyClient.KillServer();

-Start server
MyClient.StartServer();

-Get output of adb(string)
string adbOutput = MyClient.Output;

-List device(array)
MyClient.Devices()[0];

-Exececute command on device(2nd boot is if root is needed)
MyClient.Command("rm -rf /system/app/myApp.apk", true);

-Remount system as r/w(bypasses cannot be run in production builds)
MyClient.Remount();

-Reboot to any state(arg is a bootstate enum)
MyClient.Reboot(ADBClient.BootState.Recovery);

-Push file(forward or backslashes dont matter)
MyClient.Push(@"C:\path\to\my\file", "/sdcard");

-Pull file(forward or backslashes dont matter)
MyClient.Push("/sdcard/myFile", @"C:\myFile");

-Install application(forward or backslashes dont matter)
MyClient.Install(@"C:\path\to\apk");

-Uninstall application
MyClient.Uninstall(com.my.package.name);

-Backup(2nd arg is backup args)
MyClient.Backup(@"C:\backup.ab", "-noapk")

-Restore
MyClient.Restore(@"C:\backup.ab");

-Logcat(2nd arg is overwrite file if exists)
MyClient.Logcat(@"C:\logcat.txt", true);

Contributors

Myself - Ricky Divjakovski

License

GNU GPL v3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.