diff --git a/packages/adb/README.md b/packages/adb/README.md index ec5b2602..c02f4f7e 100644 --- a/packages/adb/README.md +++ b/packages/adb/README.md @@ -237,5 +237,5 @@ Supported on devices with `sendrecv_v2` feature. ## Useful links -* [ADB protocol overview](https://github.com/aosp-mirror/platform_system_core/blob/master/adb/OVERVIEW.TXT) -* [ADB commands](https://github.com/aosp-mirror/platform_system_core/blob/d7c1bc73dc5b4e43b8288d43052a8b8890c4bf5a/adb/SERVICES.TXT#L145) +* [ADB protocol overview](https://android.googlesource.com/platform/packages/modules/adb/+/2fd69306184634c6d90db3ed3be5349e71dcc471/OVERVIEW.TXT) +* [ADB commands](https://android.googlesource.com/platform/packages/modules/adb/+/2fd69306184634c6d90db3ed3be5349e71dcc471/SERVICES.TXT#145) diff --git a/packages/adb/src/crypto.ts b/packages/adb/src/crypto.ts index ae18255e..b86e6cec 100644 --- a/packages/adb/src/crypto.ts +++ b/packages/adb/src/crypto.ts @@ -131,7 +131,7 @@ export function calculatePublicKey( outputOffset: number = 0 ): ArrayBuffer | number { // 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 // @@ -145,7 +145,7 @@ export function calculatePublicKey( // ] // // (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 const [n] = parsePrivateKey(privateKey);