-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25525dc
commit efc6537
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# MemuHelper Library | ||
Thư viện này dùng để hỗ trợ các thao tác với máy ảo Memu Play thuận tiện và dễ dàng hơn; | ||
# Example | ||
### Set Path Memu Play & ADB | ||
```js | ||
MemuControl.memuFolderPath = @"C:\Program Files\Microvirt\MEmu"; | ||
MemuControl.adbFolderPath = @"C:\Program Files\Microvirt\MEmu"; | ||
``` | ||
### 1 Initialization | ||
```js | ||
int index = 1; | ||
MemuControl memuControl = new MemuControl(index); | ||
``` | ||
### 2 Using | ||
- Open VM | ||
```js | ||
await memuControl.OpenVM(); | ||
``` | ||
- Stop VM | ||
```js | ||
await memuControl.StopVM(false); | ||
``` | ||
- Reboot VM | ||
```js | ||
await memuControl.RebootVM(); | ||
``` | ||
### OR | ||
- ADB Execute | ||
```js | ||
string version = MemuControl.ADBExecute("version"); | ||
``` | ||
```js | ||
string[] devices = MemuControl.ADBExecute("devices").Split('\n'); | ||
``` | ||
```js | ||
string version = MemuControl.ADBExecute("version"); | ||
``` | ||
```js | ||
int secondTimeOut = -1; | ||
int index = 1; | ||
string screenXml = MemuControl.ADBExecute("shell uiautomator dump", secondTimeOut, index); | ||
``` | ||
- CMD Execute | ||
```js | ||
string ip = MemuControl.CMDExecute("ipconfig", Application.StartupPath); | ||
``` | ||
- Stop All VMs | ||
```js | ||
await MemuControl.StopAllVMs(); | ||
``` | ||
- Sort All VMs | ||
```js | ||
await MemuControl.SortVMs(); | ||
``` | ||
# See more | ||
https://www.memuplay.com/blog/memucommand-reference-manual.html | ||
|
||
# Contact with me | ||
- Facebook : www.facebook.com/quachvinhky | ||
- Gmail: quachvinhky2000@gmail.com | ||
# Note | ||
Em mong tìm được đồng đội theo lập trình backend khu vực Sóc Trăng, Bạc Liêu, Cần Thơ |