Build "Sources for Android 28" so you can comfortably browse the Android API source in Android Studio.
- Collect source files
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base| { | |
| "key_open_app_link_config": { | |
| "hosts": { | |
| "eu_ea": [ | |
| "applink.feishu.cn", | |
| "applink.larksuite.com" | |
| ], | |
| "eu_nc": [ | |
| "applink.feishu.cn", | |
| "applink.larksuite.com" |
| onCreateView(...) { | |
| viewLifecycleOwner.lifecycleScope.launch { | |
| viewLifecycleOwner.lifecycle.repeatOnLifecycle(STARTED) { | |
| myViewModel.myUiState.collect { ... } | |
| } | |
| } | |
| } |
Build "Sources for Android 28" so you can comfortably browse the Android API source in Android Studio.
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base| package com.nickrout.canvasmultilinetext | |
| import android.graphics.Canvas | |
| import android.os.Build | |
| import android.support.annotation.RequiresApi | |
| import android.text.* | |
| import androidx.core.graphics.withTranslation | |
| import androidx.core.util.lruCache | |
| @RequiresApi(Build.VERSION_CODES.O) |
Build "Sources for Android 27" so you can comfortably browse the Android API source in Android Studio.
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/baseIf you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base| #!/bin/bash | |
| sp="/-\|" | |
| sc=0 | |
| spin() { | |
| printf "\b${sp:sc++:1}" | |
| ((sc==${#sp})) && sc=0 | |
| } | |
| endspin() { | |
| printf "\r" | |
| } |
| #!/system/bin/sh | |
| # 使用方法: | |
| # adb shell "curl -Ssl https://gist.githubusercontent.com/kookxiang/1104e898f270c9a7a0784f70979ec532/raw/hackQQ.sh | su" | |
| # 使用方法 (手动): | |
| # 0.确保你手机 Root 了 | |
| # 1.下载这个脚本到某个地方 | |
| # 2.下载 Android SDK(需要其中的 adb) | |
| # 3.在命令行运行 adb devices,确保能看到你的手机 |
| #!/bin/python3 | |
| import os | |
| print("AVD Launcher with replaced libs\nBy Nick Webster http://nick.geek.nz\n====================\n") | |
| print("Note: You should be in your Android SDK tools folder when running this script.") | |
| AVDs = [file.split('.')[0] for file in os.listdir(os.path.expanduser('~/.android/avd/')) if file.split('.')[len(file.split('.'))-1] == 'ini'] | |
| i = 0 | |
| for avd in AVDs: |