
Android
hushui
Coding Since 1998
展开
-
aosp build verbose log
Build aosp10[lake@localhost git-aosp-Android78910]$ gzip -cd out/verbose.log.gz |less -R原创 2021-02-22 20:07:26 · 534 阅读 · 0 评论 -
patchelf for aosp9/10 build on Centos7/Glibc<2.18
#!/usr/bin/bash# Ugly workaround for building on systems with older GLIBC versions (<2.18) on Centos7/RHEL7.x etc## ld-loader updates to prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.19-4.8# Before you patch, put GLIBC2.19 into prebuilts/gcc/li.原创 2021-01-21 16:51:55 · 442 阅读 · 0 评论 -
Android repo branch/Partial-clone/--depth=1/--groups
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1repo init -u https://android.googlesource.com/platform/manifest -b PQ3B.190705.003Code Name refer tohttps://source.android.com/setup/start/build-numbershttps://...原创 2021-01-17 07:44:50 · 676 阅读 · 0 评论 -
adb shell /system/bin/screencap & screenrecord
adb shell /system/bin/screencap -p /sdcard/screenshot.pngadb pull /sdcard/screenshot.png d:/screenshot.pngadb shell /system/bin/screenrecord --bit-rate 20000000 --time-limit 30 /sdcard/X2O-...原创 2020-04-14 09:22:32 · 715 阅读 · 0 评论 -
aosp/ota/incremental update package/安卓 7aosp代码增量升级包
make otapackageout/target/product/aosp/aosp-ota-eng.lake.zip ===> full update , NOT used for incremental packageBase for incremental update (! path) ===> out/target/product/aosp/obj/PA...原创 2020-01-15 09:42:08 · 719 阅读 · 0 评论 -
git command tips: big files and remove in all branches (搜索大文件并在所有branch删除 git filter-branch -f !!)
git rev-list --all | xargs -rL1 git ls-tree -r --long | sort -uk3 | sort -rnk4 | head -10lake@localhost: aosp_git_android$ git rev-list --all | xargs -rL1 git ls-tree -r --long | sort -uk3 | sort -...原创 2019-12-03 09:47:53 · 404 阅读 · 0 评论 -
RunAOSP-Emulator-Qemu-system-x86_64 for normal Linux_x86_64bit
jhula@ShSwDev2:~/software/qemu/x86-64bit$ /home/lake/git-aosp-AndroidN7.1.x/prebuilts/android-emulator/linux-x86_64/qemu/linux-x86_64/qemu-system-x86_64 -L /home/jhula/usr/share/qemu -kernel ./x86-...原创 2019-11-18 13:57:59 · 1075 阅读 · 0 评论 -
KVM aosp emulator64-x86 -verbose -show-kernel
lake@lake-Latitude-5491:~/git-aosp-AndroidN7.1.x$ su - rootPassword:root@lake-Latitude-5491:~# cd ~lake/git-aosp-AndroidN7.1.x/root@lake-Latitude-5491:/home/lake/git-aosp-AndroidN7.1.x# sourc...原创 2019-11-16 20:19:44 · 1082 阅读 · 0 评论 -
adb exec-out/binary transfer directly to host instead of tty/pty mangle
Unlike adb shell the adb exec-out command doesn't use pty which mangles the binary output. So you can doadb exec-out screencap -p > test.pnghttps://android.googlesource.com/platform/system/core/...原创 2019-11-14 14:37:04 · 334 阅读 · 0 评论 -
Aosp build mini_emulator_x86_64-userdebug/aosp_x86_64-eng-userdebug/emulator FAQ!
AOSP$ lunch mini_emulator_x86_64-userdebugAOSP$$ source build/envsetup.shmake>>>>>error: ro.build.fingerprint cannot exceed 91 bytes: Android/mini_emulator_x86_64/mini-emulat...原创 2019-11-04 09:32:41 · 3438 阅读 · 0 评论 -
adb/fastboot for Qualcomm msm8909 --- (edl/ 9008 port) etc
1. Emergency download mode /9008 comm portadb reboot edlfastboot oem edlor$ fastboot reboot emergencylsusb =>ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)2. oemadb...原创 2019-07-26 15:20:02 · 3307 阅读 · 0 评论 -
adb shell date
## ROOTC:\Temp>adb root && adb remountremount succeededC:\Temp>adb shell date --helpusage: date [-u] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]Set/get the curre...原创 2019-11-01 10:40:26 · 2748 阅读 · 2 评论 -
adb: pull error: remote object '/data/media/' does not exist (adb root)
C:\Temp>adb pull /data/media/0/monkeyadb: error: remote object '/data/media/0/monkey' does not existC:\Temp>adb pull /data/media/0/adb: error: remote object '/data/media/0/' does not exist...原创 2019-11-01 09:45:46 · 8429 阅读 · 0 评论 -
ADB/Android debug bridge command line-remote forward update app
1. make sure adb is listening on tcp port on device$host$ adb shellsetprop service.adb.tcp.port 5555restart adbd on device$host$ adb shell netstat -an -t Active Internet connections (se...原创 2019-10-31 13:50:34 · 159 阅读 · 0 评论 -
Android/Kernel TP Debug Sleep-suspend/Wakeup
Android/TP/debug130|peony:/ # getevent -ladd device 1: /dev/input/event1 name: "qpnp_pon"could not get driver version for /dev/input/mice, Not a typewriteradd device 2: /dev/input/event0...原创 2019-10-18 10:15:50 · 2285 阅读 · 0 评论 -
Android-adb-setting
Refer to https://developer.android.com/reference/android/provider/Settings.Global1. ### default timeout of PowerManager.FULL_WAKE_LOCK is 300s=5 minutes /RM2peony:/ # settings get system screen_...原创 2019-10-12 13:59:20 · 1085 阅读 · 0 评论 -
Android sign apk with system permission, with AndroidStudio
############# certification files in AOSP source code lake@localhost:/Google/git-aosp-AndroidN7.1.x$ ls -l build/target/product/security/total 68-rw-r--r-- 1 lake sys 260 Jul 9 02:10 Android.mk...原创 2018-08-23 11:51:51 · 409 阅读 · 0 评论 -
SSH Tennel for Adb/GDB debug NDK
## Step 1OutSideHost/Linux build server/Remote 192.168.1.1root@OutSideHost:/localrepo/root/rm/jci/rm/engine$ netstat -an --tcp |grep 16000Make sure 16000/TCP is not used## Step 2 SSH ...原创 2019-06-14 16:25:46 · 561 阅读 · 0 评论 -
Android AOSP make target
Refer tohttps://elinux.org/Android_Build_SystemRefer tohttps://android.googlesource.com/platform/build/+/master/core/MakefileMake targetsHere is a list of different make targets you can use to...转载 2019-06-11 14:11:54 · 484 阅读 · 0 评论 -
NDK r19 to build standalone app/HelloWorld on Android
1. Standalone toolchain from NDK r19/2019Google/https://developer.android.com/ndk/guides/other_build_systemsUsing the NDK with other build systemsNote: The content described in this document requi...原创 2019-06-27 14:05:30 · 668 阅读 · 0 评论 -
repo sync -c your_folder_project
repo sync -c your_folder_project###--trace for detaillake@localhost:~/local/fmsng$ repo --trace sync -c xxx/xxx/launcher... A new repo command ( 1.23) is available.... You should upg...原创 2019-07-09 16:28:54 · 3970 阅读 · 0 评论 -
Android debug bridge command line-input keyevent to screen control
adb shell input keyevent 26 # wakeup adb shell input keyevent 82 # unlock echo "Screen is already on. Turning off." adb shell input keyevent 26 # sleep######adb shell input keye...原创 2019-07-17 12:41:27 · 136 阅读 · 0 评论 -
Android debug bridge command/Static IP set/ip setting/Android adb command line
255|kvim:/ # ip addr1: lo: <LOOPBACK,UP,LOWER_UP> mtu 4096 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo...原创 2019-08-09 10:37:01 · 352 阅读 · 0 评论 -
Qualcomm Ramdump debugging
Qualcomm 89091. Soft request trigger for ramdump试调试,可以这样主动触发ramdumpadb rootadb shellecho c > /proc/sysrq-trigger其本质就是让内核访问空指针内存,被MMU拦截而触发data abort异常.2.软件层关机,跳过长按power键选择界面,...原创 2019-09-29 14:44:19 · 603 阅读 · 0 评论 -
adb shell settings
adb shell settings put system screen_off_timeout 60000C:\>adb shell settings get system screen_off_timeout60000原创 2019-09-30 13:03:18 · 676 阅读 · 0 评论 -
Android debug bridge command line-adb shell tips continue
Android debug bridge command line-adb shell tips continue1. Kill specified process / Linux hostadb shell pidof -s "my-target-process" | xargs -I{} kill "{}"2. Windows run.bat with prepare-...原创 2019-06-14 12:39:04 · 184 阅读 · 0 评论 -
Chrome Web Browser internal link
Web view historychrome://history/Chrome web browser settingchrome://settings/Chrome Appchrome://apps/Version chrome://version/GPU infochrome://gpu/Adb with Android device through P...原创 2019-02-10 20:26:35 · 412 阅读 · 0 评论 -
Android/Decompiler tool apktool_2.2.2/dex2jar-2.0/jd-gui-windows-1.4.0/
Android/Decompiler tool apktool_2.2.2/dex2jar-2.0/jd-gui-windows-1.4.0/ Update framework-res.apk--RK3288-Android5.1, replace 'com.android.webview' with 'com.google.android.webview' D:\Android\De...原创 2019-01-26 19:46:52 · 497 阅读 · 0 评论 -
python-2.7-Win32-Windows-IDLE-PIP-AndroidTestLib-uiautomator
# Python Android test module Github URLhttps://github.com/xiaocong/uiautomator############# Python27/w32 on Windows 10/64bitMicrosoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsof...原创 2018-09-26 15:25:59 · 270 阅读 · 0 评论 -
RHEL/Centos7.x/python-2.7 install IDLE-PIP-AndroidTestLib-uiautomator
# Python Android test module Github URLhttps://github.com/xiaocong/uiautomator####### uiautomatorviewer tool in Android SDKlake@localhost:~/Android/android-sdk-linux$./tools/bin/uiautomat...原创 2018-09-26 15:11:11 · 275 阅读 · 0 评论 -
Android多媒体整体架构图
Android多媒体整体架构图 转 https://blog.youkuaiyun.com/dxpqxb/article/details/53606977 MediaPlayer框架图 Camera框架图 SoundRecorder框架图 VideoCamera框架图 OpenCore与Skia ALSA Audio框架图...转载 2018-09-10 10:22:37 · 5426 阅读 · 0 评论 -
Android 6 layer Arch
转载 2018-08-29 10:03:28 · 127 阅读 · 0 评论 -
Android IPC/RPC Binder arch
转载 2018-08-30 17:02:17 · 274 阅读 · 0 评论 -
Andriod Activity lifecycle
Android application activity life cycle原创 2018-08-22 13:56:29 · 223 阅读 · 0 评论 -
Android view class diagram 安卓的视图类图
原创 2018-08-03 13:38:42 · 807 阅读 · 0 评论 -
AndroidStudio SDK Baiduyun Download (for android 6.0 development/Android Studio 1.5 - 2016)
AndroidStudio SDK (for android6.0 development with Android Studio 1.5)创课学院 https://pan.baidu.com/s/1nvtiHO9 D:\Android\Training\androidstudiosdk\sdk>dir Volume in drive D is Data V...原创 2018-07-26 13:11:54 · 544 阅读 · 0 评论 -
AOSP8.1 Build aosp_x86_64-eng
Host Linux/64bit x86-64 Ubutu or RHEL7.x1. Build refer to aosp8.1/aosp_arm-enghttps://blog.youkuaiyun.com/hushui/article/details/80744702lake@localhost:~/Google/android-8.1.0_r1_OPM6.171019.030...原创 2018-07-02 11:58:12 · 52771 阅读 · 1 评论 -
Aosp8.1 build/JDK8 aosp_arm-eng
Host Linux/64bit x86-64 Ubutu or RHEL7.x 1. set git proxy lake@localhost:~/Google/android-8.1.0_r1_OPM1.171019.011$ git config --global -l user.email=lake.hu@outlook.comuser.name=Lakecore.editor=v...原创 2018-06-20 13:28:22 · 1609 阅读 · 0 评论 -
RHEL7/Host Firefly/RK3399 EVM Build Android7.1.2 for 7.85/EDP/LP079QX1/2048x1563 with TP or HDM
lake@cp10204:/Google/git-aosp-AndroidN7.1.1._r13$ cat /proc/versionLinux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ...原创 2018-06-22 10:47:56 · 547 阅读 · 0 评论 -
uiautomator/Android Test Python example
Note:1.Linux/Python/uiautomator will automatically install apk/stub named uiautomator/1.0 and com.github.uiautomator.test (Test on Android7.1.2) Proto Recv-Q Send-Q Local Address Fo...原创 2018-09-26 16:53:33 · 293 阅读 · 0 评论