mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
doc: update links to adb's new git repository
This commit is contained in:
parent
5ea30dd056
commit
6fa005dd76
2 changed files with 4 additions and 4 deletions
|
@ -237,5 +237,5 @@ Supported on devices with `sendrecv_v2` feature.
|
||||||
|
|
||||||
## Useful links
|
## Useful links
|
||||||
|
|
||||||
* [ADB protocol overview](https://github.com/aosp-mirror/platform_system_core/blob/master/adb/OVERVIEW.TXT)
|
* [ADB protocol overview](https://android.googlesource.com/platform/packages/modules/adb/+/2fd69306184634c6d90db3ed3be5349e71dcc471/OVERVIEW.TXT)
|
||||||
* [ADB commands](https://github.com/aosp-mirror/platform_system_core/blob/d7c1bc73dc5b4e43b8288d43052a8b8890c4bf5a/adb/SERVICES.TXT#L145)
|
* [ADB commands](https://android.googlesource.com/platform/packages/modules/adb/+/2fd69306184634c6d90db3ed3be5349e71dcc471/SERVICES.TXT#145)
|
||||||
|
|
|
@ -131,7 +131,7 @@ export function calculatePublicKey(
|
||||||
outputOffset: number = 0
|
outputOffset: number = 0
|
||||||
): ArrayBuffer | number {
|
): ArrayBuffer | number {
|
||||||
// Android has its own public key generation algorithm
|
// Android has its own public key generation algorithm
|
||||||
// See https://github.com/aosp-mirror/platform_system_core/blob/e5c9bbd45381d7bd72fef232d1c6668946253ac8/libcrypto_utils/android_pubkey.cpp#L111
|
// See https://android.googlesource.com/platform/system/core.git/+/91784040db2b9273687f88d8b95f729d4a61ecc2/libcrypto_utils/android_pubkey.cpp#111
|
||||||
|
|
||||||
// The public key is an array of
|
// The public key is an array of
|
||||||
//
|
//
|
||||||
|
@ -145,7 +145,7 @@ export function calculatePublicKey(
|
||||||
// ]
|
// ]
|
||||||
//
|
//
|
||||||
// (All in little endian)
|
// (All in little endian)
|
||||||
// See https://github.com/aosp-mirror/platform_system_core/blob/e5c9bbd45381d7bd72fef232d1c6668946253ac8/libcrypto_utils/android_pubkey.cpp#L38
|
// See https://android.googlesource.com/platform/system/core.git/+/91784040db2b9273687f88d8b95f729d4a61ecc2/libcrypto_utils/android_pubkey.cpp#38
|
||||||
|
|
||||||
// extract `n` from private key
|
// extract `n` from private key
|
||||||
const [n] = parsePrivateKey(privateKey);
|
const [n] = parsePrivateKey(privateKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue