分类: Android

Android OS提升编译速度

2019年7月3日

make不需要加参数-j,CPU已经到达100%。 编译时,我remmina远程连接到另一台电脑工作,remmina CPU占用约1%,我认为其影响可以忽略。 测试流程 删除out目录,删除ccache目录。 运行make,计算编译时间 计算启动操作系统到桌面的时间。对于模拟机,运行emulator […]

Android应用权限源码分析

2019年6月20日

问题症状 void FieldInstrumentationListener::OpenPerfLog() { std::string pid_str = std::to_string(getpid()); time_t n = time(nullptr); struct tm* local = l […]

Android用命令行启动应用

2019年5月20日

Android是基于Linux内核的操作系统,用Java写的应用程序被Android运行时虚拟机运行。 因为Android是基于Linux的,而Linux执行ELF格式的可执行文件,所以用C++编写的ELF格式的可执行文件也可以在Android运行,但有些限制。首先,Android /sdcard目 […]

修改Android操作系统源代码

2019年3月30日

获取源代码 最好的办法是《repo工具笔记》里介绍的 repo init –depth 1 -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r52 repo sync -c –no-tags -j4 注 […]