<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[aa787282301的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/aa787282301</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; aa787282301]]></copyright><item><title><![CDATA[APP 支持asan检查]]></title><link>https://blog.csdn.net/aa787282301/article/details/120222669</link><guid>https://blog.csdn.net/aa787282301/article/details/120222669</guid><author>aa787282301</author><pubDate>Fri, 10 Sep 2021 15:35:23 +0800</pubDate><description><![CDATA[android-ndk开发工具下有一个asan_device_setup脚本：


~/Android/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/bin/asan_device_setup

执行了脚本之后app就能支持asan检查了

具体原理为：

1.app_process被替换为了一个脚本：


#!/system/bin/sh-from-zygote
ASAN_OPTIONS=start_deac]]></description><category></category></item><item><title><![CDATA[push framework.jar无法开机]]></title><link>https://blog.csdn.net/aa787282301/article/details/120067371</link><guid>https://blog.csdn.net/aa787282301/article/details/120067371</guid><author>aa787282301</author><pubDate>Thu, 02 Sep 2021 18:29:06 +0800</pubDate><description><![CDATA[之前遇到一个问题push framework.jar后无法开机，最近有同事问了一下，太久了自己都忘了，因此做下记录

有些安卓编译时默认会生成oat文件，把所有jar中的dex文件删掉，因为可以节省体积，加快首次开机速度俗称预编译，因为默认吧dex文件删掉了，我们删掉了framework.jar，/system/framework/arm/,/system/framework/oat/重新开机需要重新生成bootclass，因为缺少dex文件就会生成失败，导致无法开机，解决方法，在BoardConfig..]]></description><category></category></item><item><title><![CDATA[Graphics内存计算]]></title><link>https://blog.csdn.net/aa787282301/article/details/120027888</link><guid>https://blog.csdn.net/aa787282301/article/details/120027888</guid><author>aa787282301</author><pubDate>Wed, 01 Sep 2021 10:06:21 +0800</pubDate><description><![CDATA[dumpsys meminfo详情


dumpsys meminfo surfaceflinger

Applications Memory Usage (in Kilobytes):

Uptime: 14170420 Realtime: 14170420

Pss Private Private SwapPss Heap Heap Heap

Total Dirty Clean Dirty Size Alloc Free

------ ------ ------ ------ ------ ----]]></description><category></category></item><item><title><![CDATA[linux错误代码定义]]></title><link>https://blog.csdn.net/aa787282301/article/details/119805161</link><guid>https://blog.csdn.net/aa787282301/article/details/119805161</guid><author>aa787282301</author><pubDate>Thu, 19 Aug 2021 16:27:31 +0800</pubDate><description><![CDATA[#define EPERM     1  /* Operation not permitted */
#define    ENOENT    2  /* No such file or directory */
#define    ESRCH     3  /* No such process */
#define    EINTR     4  /* Interrupted system call */
#define    EIO       5  /* I/O error */
#define .]]></description><category></category></item><item><title><![CDATA[hook学习案例]]></title><link>https://blog.csdn.net/aa787282301/article/details/118915348</link><guid>https://blog.csdn.net/aa787282301/article/details/118915348</guid><author>aa787282301</author><pubDate>Mon, 19 Jul 2021 21:58:02 +0800</pubDate><description><![CDATA[main.c


#include &lt;inttypes.h&gt;
#include &lt;unistd.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;sys/mman.h&gt;
#include &lt;test.h&gt;

#define PAGE_START(addr) ((addr) &amp; PAGE_MASK)
#define PAGE_END(addr)   (PAGE_START(ad]]></description><category></category></item><item><title><![CDATA[hiddenapi无法反射问题]]></title><link>https://blog.csdn.net/aa787282301/article/details/108265288</link><guid>https://blog.csdn.net/aa787282301/article/details/108265288</guid><author>aa787282301</author><pubDate>Mon, 19 Jul 2021 21:54:32 +0800</pubDate><description><![CDATA[一.摘要

  最近在q上遇到一个问题，有同事反应为什么我反射的方法在q上找不到对应的方法了，只获得了一些class.java的方法，这是q上在art中新加的hiddenapi相关的策略做了限制导致的，那么我们来看看是怎么限制的吧



二.代码分析



1.测试代码：



void test() {
  List list = new ArrayList();
  Class mclass = null;
  try {
    mclass = Class.forName...]]></description><category></category></item><item><title><![CDATA[怎么读dumpstate数据]]></title><link>https://blog.csdn.net/aa787282301/article/details/117673901</link><guid>https://blog.csdn.net/aa787282301/article/details/117673901</guid><author>aa787282301</author><pubDate>Mon, 07 Jun 2021 20:36:30 +0800</pubDate><description><![CDATA[SystemProperties.set("ctl.stop", "dumpstate");
                SystemProperties.set("ctl.start", "dumpstate");
                new Thread(new Runnable() {
                    @Override
                    public void run() {
              ...]]></description><category></category></item><item><title><![CDATA[simpleperf]]></title><link>https://blog.csdn.net/aa787282301/article/details/117620669</link><guid>https://blog.csdn.net/aa787282301/article/details/117620669</guid><author>aa787282301</author><pubDate>Sun, 06 Jun 2021 10:32:08 +0800</pubDate><description><![CDATA[python app_profiler.py -p packagename

python report_html.py
]]></description><category></category></item><item><title><![CDATA[android存储读写测试工具-fio]]></title><link>https://blog.csdn.net/aa787282301/article/details/109230094</link><guid>https://blog.csdn.net/aa787282301/article/details/109230094</guid><author>aa787282301</author><pubDate>Thu, 22 Oct 2020 20:44:39 +0800</pubDate><description><![CDATA[一.工具下载并编译

1.wget http://brick.kernel.dk/snaps/fio-2.2.5.tar.gz

2.tar -zxvf fio-2.2.5.tar.gz

3.cd fio-2.2.5

4.因为我们要在android中运行，所以我们需要安装交叉编译工具

sudo apt-get install gcc-arm-linux-gnueabihf

5.编译代码，指定arm运行平台，编译工具为arm-linux-gnueabihf-gcc，并且需要静态编译

/configu]]></description><category></category></item><item><title><![CDATA[droid.io下载地址]]></title><link>https://blog.csdn.net/aa787282301/article/details/106637733</link><guid>https://blog.csdn.net/aa787282301/article/details/106637733</guid><author>aa787282301</author><pubDate>Tue, 09 Jun 2020 11:31:20 +0800</pubDate><description><![CDATA[https://github.com/jgraph/drawio-desktop/releases
]]></description><category></category></item><item><title><![CDATA[native内存泄漏分析]]></title><link>https://blog.csdn.net/aa787282301/article/details/106629388</link><guid>https://blog.csdn.net/aa787282301/article/details/106629388</guid><author>aa787282301</author><pubDate>Mon, 08 Jun 2020 22:06:02 +0800</pubDate><description><![CDATA[一.摘要

  我们在分析内存泄漏时java内存泄漏我们可以集成LeakCanary来进行监控，出现问题时会打印出泄漏时的引用关系，那么我们native内存泄漏时如何分析呢？native内存泄漏我们可以通过malloc_debug工具来进行监控，详细的介绍请参考：

https://android.googlesource.com/platform/bionic/+/master/libc/malloc_debug/README.md



二.如何使用

  默认情况下高通的手机已经包含了mal...]]></description><category></category></item><item><title><![CDATA[fd泄漏检测]]></title><link>https://blog.csdn.net/aa787282301/article/details/106501940</link><guid>https://blog.csdn.net/aa787282301/article/details/106501940</guid><author>aa787282301</author><pubDate>Tue, 02 Jun 2020 18:05:28 +0800</pubDate><description><![CDATA[一.摘要

我们在分析fd泄漏问题的时候一般的通用方法是在/proc/pid/fd下不断的ls -al | wc -l统计fd数量，并且查看哪个fd不断的增多，然后再去代码中排查对应的代码，有时候光看fd并不容易找到泄漏的地方。本文章将介绍高通的leakdetect方法。



二.leakdetect使用介绍

默认情况下手机已经包含了fd泄漏的检测代码，具体路径在：bionic/libc/malloc_debug/，它可以监控：file(1)，socket(2)，mmap(3)

具体原理就不多说了，.]]></description><category></category></item><item><title><![CDATA[adb tcp工具]]></title><link>https://blog.csdn.net/aa787282301/article/details/106107063</link><guid>https://blog.csdn.net/aa787282301/article/details/106107063</guid><author>aa787282301</author><pubDate>Wed, 13 May 2020 21:24:39 +0800</pubDate><description><![CDATA[平时我们调试有时需要使用到tcp来远程连接手机，每次输入一堆命令实在太麻烦，写了个脚本：


#!/usr/bin/env python
#coding=utf-8
# owner:penzhicai
import sys
import os
import time
import platform

getIpCount = 0

LINUX = 1
WINDOWS = 2


def usePlatform():
    sysstr = platform.system()
    if(sysstr =]]></description><category></category></item><item><title><![CDATA[native 解析死锁方法]]></title><link>https://blog.csdn.net/aa787282301/article/details/104693152</link><guid>https://blog.csdn.net/aa787282301/article/details/104693152</guid><author>aa787282301</author><pubDate>Fri, 06 Mar 2020 12:37:00 +0800</pubDate><description><![CDATA[一. 概述

  我们平时在分析system_server watchdog问题时有时候会遇到一些native层的死锁问题，正常情况下我们是把所有可疑的线程调用栈全部通过symbols找到可以的死锁线程，这个方法比较耗费体力和脑力。这篇文章将会教会你一个更为简便的方法我们通过gdb调试直接打印出对应吃锁的线程。



二.通过GDB查看线程锁

  我们通过aosp代码找到锁的定义：h...]]></description><category></category></item><item><title><![CDATA[ubtuntu chrome代理设置出错导致无法使用]]></title><link>https://blog.csdn.net/aa787282301/article/details/103711272</link><guid>https://blog.csdn.net/aa787282301/article/details/103711272</guid><author>aa787282301</author><pubDate>Thu, 26 Dec 2019 10:53:06 +0800</pubDate><description><![CDATA[今天遇到ubtuntu chrome浏览器无法使用，由于代理设置有问题导致

百度了一波，总结一下解决办法

1.安装sudo apt-get install gksu

2.终端运行 gksu nautilus 命令

3.在跳出的窗口，按 ctrl+l 然后在地址框中输入 /usr/share/applications/ 点击进入。

4.然后找出google chrom ，右键点击选择“Pr...]]></description><category></category></item><item><title><![CDATA[CL-200A串口通信]]></title><link>https://blog.csdn.net/aa787282301/article/details/103579373</link><guid>https://blog.csdn.net/aa787282301/article/details/103579373</guid><author>aa787282301</author><pubDate>Tue, 17 Dec 2019 14:11:49 +0800</pubDate><description><![CDATA[一.进入串口模式

1.cl-200a关机，开关拨向“O”端

2.hold on键弹出

3.同时按下SET/CALL/CF，并且开关拨向“I”端，这时候会进入USB模式





二.CL-200A通信命令


			模式
			
			
			命令
			
		PC connect
			02 30 30 35 34 31 20 20 20 03 31 33 0D 0A
		Set Hol...]]></description><category></category></item><item><title><![CDATA[Sensor记录日志导致的亮屏慢问题分析]]></title><link>https://blog.csdn.net/aa787282301/article/details/103464927</link><guid>https://blog.csdn.net/aa787282301/article/details/103464927</guid><author>aa787282301</author><pubDate>Mon, 09 Dec 2019 20:44:39 +0800</pubDate><description><![CDATA[一. 问题描述

1.1 现象

   手机解锁卡顿

1.2 结论

  diag记录数据慢导致系统卡顿

二. 问题分析


2.1日志分析

  在大量的日志中发现Slow Looper的日志，都是DisplayPowerController的DisplayControllerHandler处理消息超时，并且有大量的dvm_lock_sample提示registerListen...]]></description><category></category></item><item><title><![CDATA[git push失败问题]]></title><link>https://blog.csdn.net/aa787282301/article/details/103151720</link><guid>https://blog.csdn.net/aa787282301/article/details/103151720</guid><author>aa787282301</author><pubDate>Tue, 19 Nov 2019 21:32:54 +0800</pubDate><description><![CDATA[最近提交代码时老报错：

pzc@pzc-ThinkPad-E480:~/giteework/Android_ZL_YJ$ git push
fatal: unable to access 'https://gitee.com/water_p/Android_ZL_YJ.git/': Failed to connect to 127.0.0.1 port 38673: 拒绝连接


port 3...]]></description><category></category></item><item><title><![CDATA[Android.bp条件编译]]></title><link>https://blog.csdn.net/aa787282301/article/details/102818051</link><guid>https://blog.csdn.net/aa787282301/article/details/102818051</guid><author>aa787282301</author><pubDate>Wed, 30 Oct 2019 14:10:41 +0800</pubDate><description><![CDATA[一.概要

  我们修改代码的时候经常会有一些共线的机器，我们只想进指定的机器或者指定的分支，在Android.mk中可以直接使用if来做判断，但是到了Android.bp中就无法在bp文件中使用条件编译了，本文将教会你怎么让bp文件也支持条件编译



二.Android.bp介绍



http://androidxref.com/9.0.0_r3/xref/frameworks/na...]]></description><category></category></item><item><title><![CDATA[android稳定性学习路线]]></title><link>https://blog.csdn.net/aa787282301/article/details/102697480</link><guid>https://blog.csdn.net/aa787282301/article/details/102697480</guid><author>aa787282301</author><pubDate>Wed, 23 Oct 2019 11:00:48 +0800</pubDate><description><![CDATA[一.JAVA crash

1.JAVA crash原理

2.常见的JAVA crash介绍

3.空指针异常分析技巧

4.多线程处理异常分析技巧

5.主动抛异常分析技巧

二.NATIVE crash

1.NATIVE crash原理

2.常见的NATIVE crash介绍

3.空指针异常分析技巧

4.多线程处理异常分析技巧

5.主动抛异常分析技巧

三.WATCHDOG

1....]]></description><category></category></item></channel></rss>