Skip to content

Instantly share code, notes, and snippets.

@b10102016
b10102016 / envsetup_arm.sh
Created May 12, 2020 16:04
ARM cross compile envsetup
export ANDROID_SDK_HOME=/home/sting/local/android-sdk-linux
export ANDROID_NDK_HOME=/home/sting/local/android-ndk-r15b
export ANDROID_STANDALONE_TOOLCHAIN_HOME=/opt/toolchain/android-toolchain-arm_64-4.9-android-24
export SYSROOT=$ANDROID_STANDALONE_TOOLCHAIN_HOME/sysroot
# User specific environment and startup programs
PATH=${ANDROID_NDK_HOME}
PATH=$PATH:${ANDROID_SDK_HOME}/tools:${ANDROID_SDK_HOME}/platform-tools
PATH=$PATH:${ANDROID_STANDALONE_TOOLCHAIN_HOME}/bin:/usr/local/sbin:/usr/local/bin
PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
@b10102016
b10102016 / .bashrc
Last active April 7, 2020 11:36
my ubuntu .bashrc
export PATH=$PATH:~/bin:~/platform-tools:~/android-ndk-r18b
alias adb='adb40 root; adb40 remount; adb40'
export PATH="$HOME/.local/bin:$PATH"
#export PROMPT_COMMAND="echo -ne '\e[1;96m$(date '+%Y-%m-%d %H:%M:%S')\e[0m '"
alias cthser='ssh 10.116.116.251'
export PS1="\[\e[1;38;5;81m\]\$(date '+%Y-%m-%d %H:%M:%S') ${debian_chroot:+($debian_chroot)}\[\033[01;38;5;30m\]\u\[\033[00m\]@\[\033[01;38;5;31m\]\W\[\033[00m\]\$ \[\e[38;5;189m\]"
case "$-" in
*i*)
bind '"\x1b\x5b\x41":history-search-backward'
@b10102016
b10102016 / dmesg.log
Created May 26, 2018 02:54
build 4.15.22 ubuntu kernel with sound blaster Z patch
[ 0.000000] Linux version 4.15.0-22-generic (ian@ian-System-Product-Name) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24 SMP Sat May 26 00:39:02 BST 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-22-generic root=UUID=77a6e6a9-2c7c-434e-a186-1474057198fd ro quiet splash vt.handoff=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
11-28 07:29:50.084 31 50 I Anboxd : IAN_DEBUG set focused!
11-28 07:29:57.489 31 50 I Anboxd : IAN_DEBUG set focused!
11-28 07:30:01.453 118 129 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.android.email cmp=com.android.email/.activity.Welcome} from uid 10000 on display 0
11-28 07:30:01.660 118 129 I IAN_DEBUG: update window state from platform proxy
11-28 07:30:01.660 118 129 I IAN_DEBUG: add Window State to parcel from patform proxy
11-28 07:30:01.660 118 129 I IAN_DEBUG: add Window State to parcel from patform proxy
11-28 07:30:01.660 118 129 I IAN_DEBUG: add Window State to parcel from patform proxy
11-28 07:30:01.660 118 129 I IAN_DEBUG: add Window State to parcel from patform proxy
11-28 07:30:01.660 118 129 I IAN_DEBUG: add Window State to parcel from patform proxy
11-28 07:30:01.660 31 57 I Anboxd : IAN_DEBUG Update windows state
11-28 07:27:07.727 31 50 I Anboxd : IAN_DEBUG launch application
11-28 07:27:07.738 31 50 I Anboxd : Launch am with the following arguments:
11-28 07:27:07.738 31 50 I Anboxd : /system/bin/am start --stack 2 org.anbox.appmgr/org.anbox.appmgr.AppViewActivity
11-28 07:27:09.040 970 970 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
11-28 07:27:09.084 970 970 D AndroidRuntime: CheckJNI is OFF
11-28 07:27:09.084 970 970 E cutils-trace: Error opening trace file: No such file or directory (2)
11-28 07:27:09.178 970 970 E art : Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Unable to relocate image '/system/framework/boot.art' from '/system/framework/x86_64/boot.art' to '/data/dalvik-cache/x86_64/system@[email protected]': Only the zygote can create the global boot image.
11-28 07:27:09.178 970 970 E art : Attempted image: /system/framework/boot.art
--------- beginning of main
07-27 08:06:38.883 15 15 I : debuggerd: starting
--------- beginning of system
07-27 08:06:38.886 16 16 I vold : Vold 3.0 (the awakening) firing up
07-27 08:06:38.886 16 16 V vold : Detected support for: ext4 vfat
07-27 08:06:38.886 16 16 E vold : Failed to open default fstab /fstab.goldfish: Operation not permitted
07-27 08:06:38.886 16 16 E vold : Error reading configuration... continuing anyways: Operation not permitted
07-27 08:06:38.888 16 26 D vold : e4crypt_init_user0
07-27 08:06:38.888 16 26 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
07-27 08:06:38.888 16 26 D vold : Preparing: /data/system/users/0
--------- beginning of main
07-27 08:04:14.192 15 15 I : debuggerd: starting
--------- beginning of system
07-27 08:04:14.195 16 16 I vold : Vold 3.0 (the awakening) firing up
07-27 08:04:14.195 16 16 V vold : Detected support for: ext4 vfat
07-27 08:04:14.196 16 16 E vold : Failed to open default fstab /fstab.goldfish: Operation not permitted
07-27 08:04:14.196 16 16 E vold : Error reading configuration... continuing anyways: Operation not permitted
07-27 08:04:14.202 16 26 D vold : e4crypt_init_user0
07-27 08:04:14.202 16 26 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
07-27 08:04:14.202 16 26 D vold : Preparing: /data/system/users/0
--------- beginning of main
07-27 08:01:52.110 15 15 I : debuggerd: starting
--------- beginning of system
07-27 08:01:52.113 16 16 I vold : Vold 3.0 (the awakening) firing up
07-27 08:01:52.113 16 16 V vold : Detected support for: ext4 vfat
07-27 08:01:52.114 16 16 E vold : Failed to open default fstab /fstab.goldfish: Operation not permitted
07-27 08:01:52.114 16 16 E vold : Error reading configuration... continuing anyways: Operation not permitted
07-27 08:01:52.116 16 26 D vold : e4crypt_init_user0
07-27 08:01:52.116 16 26 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
07-27 08:01:52.116 16 26 D vold : Preparing: /data/system/users/0
@b10102016
b10102016 / anbox container.log
Created July 19, 2017 06:41
anbox logs/container.log
lxc 20170718055812.254 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 0 hostid 100000 range 999
lxc 20170718055812.254 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 0 hostid 100000 range 999
lxc 20170718055812.254 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 1000 hostid 1000 range 1
lxc 20170718055812.254 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 1000 hostid 1000 range 1
lxc 20170718055812.254 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 1001 hostid 101001 range 64535
lxc 20170718055812.255 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 1001 hostid 101001 range 64535
lxc 20170718055812.259 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:309 - Going to wait for pid 2570.
lxc 20170718055812.266 DEBUG lxc_monitor
@b10102016
b10102016 / anbox system.log
Created July 19, 2017 06:39
anbox ...snap/anbox/common/data/system.log
This file has been truncated, but you can view the full file.
07-19 06:26:11.300 15601 15601 E Netd : Unable to create netlink socket: Protocol not supported
07-19 06:26:11.300 15601 15601 W Netd : Unable to open qlog quota socket, check if xt_quota2 can send via UeventHandler
07-19 06:26:11.300 15601 15601 D MDnsDS : MDnsSdListener::Hander starting up
07-19 06:26:11.301 15601 15608 D MDnsDS : MDnsSdListener starting to monitor
07-19 06:26:11.301 15601 15608 D MDnsDS : Going to poll with pollCount 1
07-19 06:26:11.406 15597 15597 D AndroidRuntime: >>>>>> START com.android.internal.os.ZygoteInit uid 0 <<<<<<
07-19 06:26:11.407 15597 15597 D AndroidRuntime: CheckJNI is OFF
07-19 06:26:11.407 15597 15597 E cutils-trace: Error opening trace file: No such file or directory (2)
07-19 06:26:11.407 15597 15597 I art : option[0]=-Xzygote
07-19 06:26:11.407 15597 15597 I art : option[1]=-Xstacktracefile:/data/anr/traces.txt