原创 repo Manifest Format

repo Manifest Format A repo manifest describes the structure of a repo client; that is the directories that are vis

原创 android 堆棧調試方法

// Throws AssertionError if the input is false. public static void assertTrue(boolean cond) { getCaller(); Log

原创 Android Studio 加載第三方jar包並提高framework.jar包優先級

android studio 版本 3.2.1 framework源碼編譯出來的jar路徑如下: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.j

原创 android mma

android mm編譯報錯: ninja: error: 'out/host/linux-x86/framework/host-libprotobuf-java-full.jar', needed by 'out/host/common

原创 Use gitk to understand git

Use gitk to understand git   點贊 收藏 分享 文章舉報 micro9981 發佈了654 篇原創文章 · 獲贊 14 · 訪問量 6萬+

原创 2015年4月19日

查看ubuntu某個終端歷史命令記錄: history history -c   :  clear all historyscript   記錄終端顯示輸出 點贊 收藏 分享 文章舉報

原创 init.rc service 無法啓動

# start preinstall                                      init: Could not ctl.start for service preinstall: File /vendor/

原创 git cherry-pick 多個commit

$ git cherry-pick b794641007e9a80f8f1e0704f89e614e95751609^..da6d0352518ddf1eb917fc614428f6deb5e4eee7   前面的commit時間早於後面

原创 去掉Android is starting...

frameworks\base\core\res\res\values\strings.xml <!-- [CHAR LIMIT=40] Title of dialog that is shown when system is star

原创 error: expected reference but got (raw string)

環境: Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 9, 2018 JRE: 1.8.0_152-release-1136-b06 amd6

原创 java sleep 暫停當前執行的線程

 示例代碼1: public class mySleep { public static void main(String[] args) { MyThread t1 = new MyThread("tSlee

原创 git log和tag一起顯示

git log和tag一起顯示 --no-decorate, --decorate[=short|full|no]            Print out the ref names of any commits that are sh

原创 adb push apk

adb shell su chmod 777 /data exit exit adb push   Y:\AA\my.apk  /data cp  /data/my.apk  /system/app/my.apk chmod 644 /s

原创 git stash

git stash show stash@{0}   查看stash中修改了哪幾個文件 git show stash@{0}   查看stash中的具體修改內容 如果要從多個文件中僅stash某一個文件,按如下操作: 1. 不需要stas

原创 android studio lint檢查

android studio 3.2.1 android:debuggable="true" 即編譯生成debug版時,不會lint檢查。 編譯生成release版時纔會lint檢查,一般提示如下: Lint found fatal e