Jemy's Documents


  • Home

  • Categories

  • Archives

  • Search

No icon display on status bar

Posted on 2016-09-10

No icon display on status bar

1
2
3
dropbox stop && DBUS_SESSION_BUS_ADDRESS="" dropbox start
# - or -
dropbox stop && dbus-launch dropbox start
Read more »

Compile issues

Posted on 2016-09-10

Compile issue

¶Where is PATH_MAX defined in Linux?

1
#include <linux/limits.h>
Read more »

Image convert

Posted on 2016-08-10

¶unpack android boot image

1
2
3
4
5
6
git clone https://github.com/osm0sis/mkbootimg.git
mkdir kernel && mkbootimg/unpackbootimg -i boot.img -o kernel
cd kernel
dd bs=64 skip=1 if=boot.img-ramdisk.gz of=a.gz
mkdir ramdisk && cd ramdisk
gunzip -c ../a.gz | cpio -i
Read more »

Android init.rc主要事件以及服务

Posted on 2016-08-10

Action/Service 描述
on early-init 设置init进程以及它创建的子进程的优先级,设置init进程的安全环境
on init 设置全局环境,为cpu accounting创建cgroup(资源控制)挂载点
on fs 挂载mtd分区
on post-fs 改变系统目录的访问权限
on post-fs-data 改变/data目录以及它的子目录的访问权限
on boot 基本网络的初始化,内存管理等等
service servicemanager 启动系统管理器管理所有的本地服务,比如位置、音频、Shared preference等等…
service zygote 启动zygote作为应用进程

Read more »

Get argument list from cmdline

Posted on 2016-07-11
1
2
pid=$(pidof $PROCNAME)
cat /proc/$pid/cmdline | xargs -0 echo
Read more »

Dump crash info

Posted on 2015-11-26
  • install apport-retrace
1
sudo apt-get install apport-retrace
Read more »

打印预编译宏

Posted on 2015-11-26
1
2
3
4
5
#define PRINT_MACRO_HELPER(x) #x 
#define PRINT_MACRO(x) #x"="PRINT_MACRO_HELPER(x)

#pragma message(PRINT_MACRO(MULTI_CACHE))
#pragma message(PRINT_MACRO(_CACHE))
Read more »

查看MMC分区信息

Posted on 2015-11-26
  • 查看块设备列表
1
ls -l /dev/block
Read more »

Android系统手机隐藏代码大全以及进入工程模式

Posted on 2015-10-16
1
*#*#4636#*#*

显示手机信息、电池信息、电池记录、使用统计数据、WiFi 信息

Read more »

vim-powerline在tmux中颜色显示异常的解决方法

Posted on 2015-08-11

安装好Powerline后,好不容易折腾完了字体显示,结果使用vim时,发现在tmux中颜色不正常。

Read more »
1234
jemyzhang

jemyzhang

40 posts
2 categories
54 tags
© 2018 jemyzhang
Powered by Hexo
|
Theme — NexT.Mist v6.0.6