Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Jul 21, 2019
1 parent ad9491b commit b409dea
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Shizuku can help normal apps uses system APIs directly with adb/root privileges

The name Shizuku coms from [a character](https://www.pixiv.net/member_illust.php?mode=medium&illust_id=75586127).

## Why is Shizuku born?
## Why was Shizuku born?

The birth of Shizuku has two main purposes.

Expand Down
14 changes: 8 additions & 6 deletions docs/en/dev.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# How to use Shizuku (Developer)

::: tip
Please read the following content in conjunction with sample.
Please read the following content in conjunction with [sample](https://github.com/RikkaApps/Shizuku/tree/master/sample).
:::

1. Add dependency
Expand All @@ -10,13 +10,13 @@ Please read the following content in conjunction with sample.
Implementation 'moe.shizuku.privilege:api:3.0.0-alpha10'
```

The version numbers can be found at https://bintray.com/rikkaw/Shizuku/.
The version numbers can be found at <https://bintray.com/rikkaw/Shizuku/>.

The permission declarations that need to be used later are included in the dependency, so you do not need to be add them manually.

2. Get the binder

Add to your AndroidManifest.xml
Add to your `AndroidManifest.xml`

```
<provider
Expand Down Expand Up @@ -45,14 +45,16 @@ Please read the following content in conjunction with sample.
The `ShizukuBinderWrapper` has been added since API `3.0.0-alpha8`. The approximate usage is as follows. For full usage and other references, please refer to sample.

```
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinder(SystemServiceHelper.getSystemService("package")));
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")));
pm.getInstalledPackages(0, 0);
```

5. Use: binder transact (use `transactRemote`, **not recommended**)

> This method is more cumbersome to use and more prone to problems (see "Attention"), it is recommended to use the method above.
::: warning
This method is more cumbersome to use and more prone to problems (see "Attention"), it is recommended to use the method above.
:::

**See sample for complete usage and other references.**

6. Use: execute command directly
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-hans/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
API `3.0.0-alpha8` 起增加了 `ShizukuBinderWrapper`,大致使用方法如下,完整用法及其他参考请参看 sample。

```
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinder(SystemServiceHelper.getSystemService("package")));
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")));
pm.getInstalledPackages(0, 0);
```

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-hant/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
API `3.0.0-alpha8` 起增加了 `ShizukuBinderWrapper`,大致使用方法如下,完整用法及其他參考請參看 sample。

```
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinder(SystemServiceHelper.getSystemService("package")));
IPackageManager pm = IPackageManager.Stub.asInterface(new ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")));
pm.getInstalledPackages(0, 0);
```

Expand Down

0 comments on commit b409dea

Please sign in to comment.