发现手机软件有appstats需不需要删除batterystats.bin?

1, You can UPLOAD any files, but there is 20Mb limit per file. 2,
VirSCAN supports Rar/Zip decompression, but it must be less than 20 files. 3, VirSCAN can scan compressed files with password 'infected' or 'virus'.
Portuguese Brazil
Русский
укра?нська
Nederlands
Espa?ol (Latin America)
Server load
File information
File Name :
(File not down)
File Size :135518 byte
File Type :application/jar
文件行为分析
Scanner results
Scanner results:<font color="#%Scanner(s) (1/32)found malware!
Time: <font color="#15-02-04 22:12:27 (CST)
Engine Ver
Scan result
AVL SDK 3.0
Found nothing
9.0.0.4324
9.0.0.4324
Found nothing
Found nothing
Found nothing
4.1.3.52192
Found nothing
Found nothing
bitdefender
Found nothing
Found nothing
5.0.2.3300
Found nothing
23.345, 23.345
Found nothing
6.5.1.5418
Found nothing
Found nothing
Found nothing
V1.32.31.0
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
9.500-1005
Found nothing
Found nothing
Found nothing
Found nothing
25.46.06.04
25.46.06.04
Found nothing
Found nothing
Found nothing
Found nothing
Found nothing
17.47.17308
1.0.2.2108
Found nothing
Found nothing
virusbuster
15.0.985.0
Found nothing
■Heuristic/Suspicious ■Exact
NOTICE: Results are not 100% accurate and can be reported as a false positive by some scannerswhen and if malware is found. Please judge these results for yourself.
Copy to clipboard
许可名称信息
android.permission.RECEIVE_BOOT_COMPLETED接收开机启动广播
android.permission.ACCESS_NETWORK_STATE读取网络状态(2G或3G)
android.permission.INTERNET连接网络(2G或3G)
android.permission.READ_PHONE_STATE读取电话状态
android.permission.PACKAGE_USAGE_STATS
android.permission.ACCESS_WIFI_STATE读取wifi网络状态
android.permission.BLUETOOTH连接蓝牙设备
android.permission.BLUETOOTH_ADMIN搜寻蓝牙设备
安全评分 :83
包名:org.zxl.appstats
最低运行环境:Android 2.3, 2.3.1, 2.3.2
版权:Android
行为描述:检测自身是否被调试
详情信息:N/A
行为描述:隐藏指定窗口
详情信息:[Window,Class] = [,#32770]
[Window,Class] = [HtmlWebFrame,AfxWnd100s]
[Window,Class] = [,Shell Embedding]
[Window,Class] = [,Edit]
[Window,Class] = [游戏设置,Static]
[Window,Class] = [英雄联盟自动登入,Static]
[Window,Class] = [,Static]
[Window,Class] = [,ComboLBox]
[Window,Class] = [英雄选择,Static]
[Window,Class] = [高级设置,Static]
[Window,Class] = [联盟助手,Static]
[Window,Class] = [配置文件设置,Static]
[Window,Class] = [匹配模式,Static]
[Window,Class] = [英雄各种设置,Static]
[Window,Class] = [场次信息,Static]
行为描述:设置消息钩子
详情信息:C:\WINDOWS\system32\DINPUT8.dll
c:\monitor\cfgdll.dll
行为描述:探测 Virtual PC 是否存在
详情信息:N/A
行为描述:设置特殊文件夹属性
详情信息:C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files
C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5
C:\Documents and Settings\Administrator\Local Settings\History
C:\Documents and Settings\Administrator\Local Settings\History\History.IE5
C:\Documents and Settings\Administrator\Cookies
行为描述:按名称获取主机地址
行为描述:写权限映射文件
详情信息:CiceroSharedMemDefaultS-1-5-21----500
\WINDOWS\system32\zh-cn\ieframe.dll.mui
052015MMRunning
Local\!PrivacIE!SharedMem!Counter
Local\UrlZonesSM_Administrator
KERNEL32.DLL
\WINDOWS\system32\zh-cn\vbscript.dll.mui
\Documents and Settings\Administrator\Local Settings\Application Data\GDIPFONTCACHEV1.DAT
MSCTF.MarshalInterface.FileMap.AMJ..PFOHF
\WINDOWS\system32\zh-cn\mshtml.dll.mui
MSCTF.MarshalInterface.FileMap.AMJ.B.EBAIF
行为描述:重命名文件
详情信息:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\adcon\mm\liveupdate8.dat.tmp ---& C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\adcon\mm\liveupdate8.dat
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ad-mymacro9.xml.tmp ---& C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ad-mymacro9.xml
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\BackGround.bmp ---& C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\9bcbackground.bmp
行为描述:设置特殊文件夹属性
详情信息:C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files
C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5
C:\Documents and Settings\Administrator\Local Settings\History
C:\Documents and Settings\Administrator\Local Settings\History\History.IE5
C:\Documents and Settings\Administrator\Cookies
行为描述:修改文件内容
详情信息:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ad-mymacro9.xml---& Offset = 0
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\adcon\mm\tmpad.xml---& Offset = 0
C:\monitor\ShieldModule.dat---& Offset = 12288
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mac2.tmp---& Offset = 0
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mac3.tmp---& Offset = 12288
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\plugin.zip---& Offset = 12288
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mymacro.zip---& Offset = 12288
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\BackGround.bmp---& Offset = 49152
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 0
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 75
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 122
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 175
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 240
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 297
C:\monitor\plugin\BGKMS6_10.ini---& Offset = 340
行为描述:创建可执行文件
详情信息:C:\monitor\cfgdll.dll
C:\Documents and Settings\Administrator\Application Data\mymacro\qdisp.dll
C:\monitor\plugin\SYS.DLL
C:\monitor\plugin\REGDLL.DLL
C:\monitor\plugin\WINDOW.DLL
C:\monitor\plugin\BGKMS6_10.DLL
C:\monitor\plugin\MLY_SYS.DLL
C:\monitor\plugin\WEB.DLL
C:\monitor\plugin\PIC.DLL
C:\monitor\plugin\FILE.DLL
C:\monitor\kmop17.dll
C:\Documents and Settings\Administrator\Application Data\qmacro\shield\SD001.dat
C:\Documents and Settings\Administrator\Application Data\qmacro\shield\SD002.dat
行为描述:联网打开网址
详情信息:InternetOpenUrlA: /xjl/mmcount.aspx?mm=D548E56E8DAEC68A8B968CC19AF27DC22C11CB552D5AE6F6E81D9DB0&randcode=A95C614D43A36AFDEE53B1E6BCEAEB74E91D8EFB0320 hInternet = 0x
InternetOpenUrlA: /xjl/mmcount.aspx?mm=D548E56E8DAEC68A8B968CC19AF27DC22C11CB552D5AE6F6E81D9DB0&randcode=A95C614D43A36AFDEE53B1E6BCEAEB74E91D8EFB0320 hInternet = 0x
InternetOpenUrlA: /xjl/mmcount.aspx?mm=D548E56E8DAEC68A8B968CC19AF27DC22C11CB552D5AE6F6E81D9DB0&randcode=A95C614D43A36AFDEE53B1E6BCEAEB74E91D8EFB0320 hInternet = 0x
InternetOpenUrlA: /xjl/mmcount.aspx?mm=D548E56E8DAEC68A8B968CC19AF27DC22C11CB552D5AE6F6E81D9DB0&randcode=A95C614D43A36AFDEE53B1E6BCEAEB74E91D8EFB0320 hInternet = 0x
InternetOpenUrlA: /xjl/mmcount.aspx?mm=D548E56E8DAEC68A8B968CC19AF27DC22C11CB552D5AE6F6E81D9DB0&randcode=A95C614D43A36AFDEE53B1E6BCEAEB74E91D8EFB0320 hInternet = 0x
行为描述:下载文件
详情信息:URLDownloadToFileW: /V2014V2/Config/ad-mymacro.xml ---& C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ad-mymacro9.xml.tmp
URLDownloadToFileW: /qmacro/up_mymacro/liveupdate8.dat ---& C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\adcon\mm\liveupdate8.dat.tmp
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\adcon\mm\liveupdate8.dat.tmp
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ad-mymacro9.xml.tmp
行为描述:连接指定站点
详情信息:InternetConnectA: ServerName = , PORT = 80
行为描述:建立到一个指定的套接字连接
详情信息:127.0.0.1:1032
行为描述:读取网络文件
详情信息:hFile = 0x, BytesToRead =4096, BytesRead = 4096.
hFile = 0x, BytesToRead =4096, BytesRead = 4096.
hFile = 0x, BytesToRead =4096, BytesRead = 4096.
hFile = 0x, BytesToRead =4096, BytesRead = 4096.
hFile = 0x, BytesToRead =4096, BytesRead = 4096.
行为描述:打开HTTP请求
详情信息:HttpOpenRequestA: :80/v2014v2/userexperience/softwareexperience.shtml?mymacro.14314&mmid=0010bdfbf5ed71e46c2f29fda6b3dc660ece95a59a0b4dcc7d4f8e270f4cb6030bac4d637
行为描述:按名称获取主机地址
注册表行为
行为描述:修改注册表
详情信息:\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMVBSRoutine\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{241D7F03-73-C0}\
\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMVBSRoutine\CLSID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{241D7F03-73-C0}\ProgID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{241D7F03-73-C0}\InProcServer32\
\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMRoutine\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{C07DB6A3-34FC-4084-BE2E-76BB}\
\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMRoutine\CLSID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{C07DB6A3-34FC-4084-BE2E-76BB}\ProgID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{C07DB6A3-34FC-4084-BE2E-76BB}\InProcServer32\
\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMLibrary\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{EBEB87A6-E151-4054-AB45-A6E094C5334B}\
\REGISTRY\MACHINE\SOFTWARE\Classes\QMDispatch.QMLibrary\CLSID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{EBEB87A6-E151-4054-AB45-A6E094C5334B}\ProgID\
\REGISTRY\MACHINE\SOFTWARE\Classes\CLSID\{EBEB87A6-E151-4054-AB45-A6E094C5334B}\InProcServer32\
行为描述:删除注册表键值_IE连接设置
详情信息:\REGISTRY\USER\S-1-5-21----500\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer
\REGISTRY\USER\S-1-5-21----500\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL
行为描述:检测自身是否被调试
详情信息:N/A
行为描述:创建互斥体
详情信息:oleacc-msaa-loaded
CTF.LBES.MutexDefaultS-1-5-21----500
<part.MutexDefaultS-1-5-21----500
CTF.Asm.MutexDefaultS-1-5-21----500
CTF.Layouts.MutexDefaultS-1-5-21----500
CTF.TMD.MutexDefaultS-1-5-21----500
CTF.TimListCache.FMPDefaultS-1-5-21----500MUTEX.DefaultS-1-5-21----500
Local\!PrivacIE!SharedMemory!Mutex
Local\ZonesCounterMutex
Local\ZoneAttributeCacheCounterMutex
Local\ZonesCacheCounterMutex
Local\ZonesLockedCacheCounterMutex
MSCTF.Shared.MUTEX.AEH
MSCTF.Shared.MUTEX.AMJ
行为描述:隐藏指定窗口
详情信息:[Window,Class] = [,#32770]
[Window,Class] = [HtmlWebFrame,AfxWnd100s]
[Window,Class] = [,Shell Embedding]
[Window,Class] = [,Edit]
[Window,Class] = [游戏设置,Static]
[Window,Class] = [英雄联盟自动登入,Static]
[Window,Class] = [,Static]
[Window,Class] = [,ComboLBox]
[Window,Class] = [英雄选择,Static]
[Window,Class] = [高级设置,Static]
[Window,Class] = [联盟助手,Static]
[Window,Class] = [配置文件设置,Static]
[Window,Class] = [匹配模式,Static]
[Window,Class] = [英雄各种设置,Static]
[Window,Class] = [场次信息,Static]
行为描述:设置消息钩子
详情信息:C:\WINDOWS\system32\DINPUT8.dll
c:\monitor\cfgdll.dll
行为描述:查找指定窗口
详情信息:NtUserFindWindowEx: [Class,Window] = [MS_AutodialMonitor,]
NtUserFindWindowEx: [Class,Window] = [MS_WebCheckMonitor,]
NtUserFindWindowEx: [Class,Window] = [Shell_TrayWnd,]
NtUserFindWindowEx: [Class,Window] = [,如此毒特]
NtUserFindWindowEx: [Class,Window] = [,QDsNEvKVEvjWxUhwenZeEtniBoMiIOLXbgDFPZVzPyTniYEOPE]
NtUserFindWindowEx: [Class,Window] = [CicLoaderWndClass,]
行为描述:探测 Virtual PC 是否存在
详情信息:N/A
行为描述:窗口信息
详情信息:Pid = 2492, Hwnd=0x10366, Text = 实力再次更新,请不要那我的原创软件和那些免费辅助开源源码修改了的辅助比,好吗?
, ClassName = Edit.
Pid = 2492, Hwnd=0x10368, Text = 开始使用&&, ClassName = Button.
Pid = 2492, Hwnd=0x8035e, Text = 设置, ClassName = Button.
Pid = 2492, Hwnd=0x10370, Text = 声明, ClassName = Button.
Pid = 2492, Hwnd=0x10380, Text = HtmlWebFrame, ClassName = AfxWnd100s.
Pid = 2492, Hwnd=0x1038a, Text = VitualTab, ClassName = AfxWnd100s.
Pid = 2492, Hwnd=0x10390, Text = 启动, ClassName = Button.
Pid = 2492, Hwnd=0x10394, Text = 暂停/继续, ClassName = Button.
Pid = 2492, Hwnd=0x10398, Text = 中止, ClassName = Button.
Pid = 2492, Hwnd=0x1039c, Text = 修改热键, ClassName = Button.
Pid = 2492, Hwnd=0x103a0, Text = 保存设置, ClassName = Button.
Pid = 2492, Hwnd=0x103a4, Text = 还原设置, ClassName = Button.
Pid = 2492, Hwnd=0x10446, Text = 检查目录, ClassName = Button.
Pid = 2492, Hwnd=0x10444, Text = 0, ClassName = Static.
Pid = 2492, Hwnd=0x10442, Text = 每场:, ClassName = Static.
行为描述:获取系统权限
详情信息:SE_INC_BASE_PRIORITY_PRIVILEGE
行为描述:枚举窗口
详情信息:N/A
行为描述:打开图片文件
详情信息:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\BackGround.bmp
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\background.bmp
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\9bcbackground.bmp
Activities
活动名类型
org.zxl.appstats.MainActivityandroid.intent.category.LAUNCHER
函数名称信息
java/net/URL;->openConnection连接URL
java/net/HttpURLC->connect连接URL
TelephonyM->getDeviceId搜集用户手机IMEI码、电话号码、系统版本号等信息
org.zxl.appstats.BootCompletedReceiver开机启动服务
许可名称信息
android.permission.RECEIVE_BOOT_COMPLETED接收开机启动广播
android.permission.ACCESS_NETWORK_STATE读取网络状态(2G或3G)
android.permission.INTERNET连接网络(2G或3G)
android.permission.READ_PHONE_STATE读取电话状态
android.permission.PACKAGE_USAGE_STATS
android.permission.ACCESS_WIFI_STATE读取wifi网络状态
android.permission.BLUETOOTH连接蓝牙设备
android.permission.BLUETOOTH_ADMIN搜寻蓝牙设备
org.zxl.appstats.SysStatsService
org.zxl.appstats.ZxlStatsService
org.zxl.appstats.SyncParamsService
org.zxl.appstats.PhoneInfoService
org.zxl.autoactivate.AutoActivateService
META-INF/MANIFEST.MF
0xa4220dd3
META-INF/CERT.SF
0x6a4cd0da
META-INF/CERT.RSA
0xff70f2a9
res/menu/main.xml
0x55fa8bee
res/drawable-xhdpi/ic_launcher.png
0xa227fc8a
AndroidManifest.xml
0xc952b444
res/drawable-mdpi/ic_launcher.png
0x6a84dfd9
res/raw/org_zxl_data
0x6a072b8c
res/drawable-hdpi/ic_launcher.png
0xf248df62
lib/armeabi/libLeMeng.so
0xb9ffcf30
res/layout/activity_main.xml
0x22a1a000
resources.arsc
0x80acc047
classes.dex
0x33ee7e45
res/drawable-xxhdpi/ic_launcher.png
0x2a4a99d1
File upload
Please not close this windows,
If you do not have to upload response time, make sure you upload files less than 20M
You can view the results of the last scan or rescan今天看啥 热点:
Process Stats:了解你的APP如何使用内存,statsapp
原文地址:http://android-/2014/01/process-stats-understanding-how-your.html?m=1
原作者:Dianne Hackborn,&Android framework team
翻译:大苞米,http://blog.csdn.net/a
Android 4.4 KitKat 提出了一个新系统服务,叫做procstats。它将帮助你更好的理解你的app是如何使用内存资源的。Procstats可以去监视你app在一段时间的行为,包括在后台(background)运行了多久,并在此段时间使用了多少内存。从而帮助你快速的找到应用中不效率和不规范的地方去避免影响其性能(performs),尤其是在低内存的设备上运行时。
你可以通过adb shell命令去使用procstats,或者更方便的方式是运行Process Stats开发者工具,它提供了一个前端的图形应用去展示和命令行相同的数据(在4.4版本的手机中点击Settings & Developer options & Process Stats)
查看全系统下的内存使用和后台进程(Looking
at systemwide memory use and background processes)
如下图所示,当你打开Process Stats后,你可以看到一个在固定时间段内全系统内存使用情况和细节的简要分析。
在屏幕的最上面我们可以看到:
●最近3.5小时内的数据统计
●当前的设备内存处于良好状态(&Device memory is currently normal&)
●在这一整段时间内内存状态处于优(绿色的状态条),如果内存越来越少的话你将看到黄色和红色的状态条代表在这段时间内处于低内存状态。
在绿色状态条下面,我们可以看到后台进程和内存加载的概况
●右侧的百分数表示:每个进程所花费的时间占总时间的百分比
●蓝色条表示:每一个进程加载的相对内存计算(内存加载=runtime * vag_pss,后面会详细介绍)
●在显示过程中,有些应用会列出来多次(比如,Google Play services执行了两条进程)。这些APP的内存加载&#20540;是对于每个单独的进程的加载总数。
●有一些进程在最上面的进程他们都相对总时间执行了100%。但是他们有不同的比重,是因为相对内存使用的原因。
分析指定进程的内存(Analyzing memory for specific processes)
下面的例子展示了一些有趣的数据:
时钟APP相对于Google键盘消耗了更多的内存比重,即使它运行了更少的时间。我们可以通过点击他们去查看更多的细节信息。
& & & & & & &
通过两个进程的细节展示揭示了:
●为什么时钟在一直运行,因为当设备进入空闲状态时,它被用来当做屏保。
●即使时钟进程只运行了键盘进程的一半时间,但是它仍然十分明显的消耗了大量内存(接近3倍)。这也是为什么时钟内存的比重更大的原因。
从根本来说,procstats提供了一个“内存使用”的规&#26684;,去展示程序在后台的内存使用情况。类&#20284;与存储和数据使用规&#26684;但又不同于他们,因为内存更难去量化和测量(procstats使用了一些小花招做到了)。为了去阐述测量内存使用的复杂性,下面考虑下与其相关的话题:任务管理器(task managers)
了解任务管理和他们的内存信息(Understanding task managers and their memory info)
Android一直deeply支持多任务处理(multitasking),这意味着我们希望有一个类&#20284;与传统桌面UI一样的用户图形界面,去控制这些多重任务。
然而对比桌面操作系统的多任务处理,Android中从根本上来说更加的复杂(在Multitasking the Android Way这篇文章中有介绍)。
多任务和持续进程管理
为了去体会在Android中进程管理有什么不同,你可以通过使用命令行:adb shell dumpsys activity,去看一下重要的系统服务和Activity Manager的输出信息。
下面的例子展示了当前应用进程(Android 4.4),并按重要程度排列:
ACTIVITY MANAGER RUNNING PROCESSES (dumpsys activity processes)
Process LRU list (sorted by oom_adj, 22 total, non-act at 2, non-svc at 2):
PERS #21: sys
trm: 0 23064:system/1000 (fixed)
PERS #20: pers
trm: 0 23163:com.android.systemui/u0a12 (fixed)
PERS #19: pers
trm: 0 23344:com.nuance.xt9.input/u0a77 (fixed)
PERS #18: pers
trm: 0 23357:com.android.phone/1001 (fixed)
PERS #17: pers
trm: 0 23371:com.android.nfc/1027 (fixed)
Proc # 3: fore
F/ /IB trm: 0 13892:com.google.android.apps.magazines/u0a59 (service)
com.google.android.apps.magazines/com.google.apps.dots.android.app.service.SyncService&=Proc{23064:system/1000}
Proc # 2: fore
F/ /IB trm: 0 23513:com.google.process.gapps/u0a8 (provider)
com.google.android.gsf/.gservices.GservicesProvider&=Proc{13892:com.google.android.apps.magazines/u0a59}
Proc # 0: fore
trm: 0 24811:com.android.settings/1000 (top-activity)
Proc # 4: vis
F/ /IF trm: 0 23472:com.google.process.location/u0a8 (service)
com.google.android.backup/.BackupTransportService&=Proc{23064:system/1000}
Proc #14: prcp
F/ /IF trm: 0 23298:com.google.android.inputmethod.latin/u0a57 (service)
com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME&=Proc{23064:system/1000}
Proc # 1: home
B/ /HO trm: 0 23395:com.android.launcher/u0a13 (home)
Proc #16: cch
B/ /CA trm: 0 23966:com.google.android.deskclock/u0a36 (cch-act)
Proc # 6: cch
B/ /CE trm: 0 7716:com.google.android.music:main/u0a62 (cch-empty)
Proc # 5: cch
B/ /CE trm: 0 8644:com.google.android.apps.docs/u0a39 (cch-empty)
Proc # 8: cch+2 B/ /CE trm: 0 5131:com.google.android.youtube/u0a78 (cch-empty)
Proc # 7: cch+2 B/ /CE trm: 0 23338:com.google.android.gms/u0a8 (cch-empty)
Proc #10: cch+4 B/ /CE trm: 0 8937:com.google.android.apps.walletnfcrel/u0a24 (cch-empty)
Proc # 9: cch+4 B/ /CE trm: 0 24689:com.google.android.apps.plus/u0a70 (cch-empty)
Proc #15: cch+6 B/ /S
trm: 0 23767:com.google.android.apps.currents/u0a35 (cch-started-services)
Proc #13: cch+6 B/ /CE trm: 0 9115:com.google.android.gm/u0a44 (cch-empty)
Proc #12: cch+6 B/ /S
trm: 0 7738:android.process.media/u0a6 (cch-started-services)
Proc #11: cch+6 B/ /CE trm: 0 8922:com.google.android.setupwizard/u0a19 (cch-empty)
dumpsys activity命令的输出信息,显示了所有现在正在运行的进程。
这里还有一些重要的进程组——持久系统进程(persistent system processes),前台系统进程(foreground processes),后台系统进程(background processes),最终缓存进程(finally cached processes)。
这些进程种类对于理解它是如何影响系统是非常重要的。
与此同时,进程列表是随时变化的。例如:在上面例子中我们可以看到“com.google.android.gm”(Gmail) 是当前很重要的进程,但是他是在后台同步运行,所以有些东西用户通常不会被告知或不想管理他。
每个进程的内存使用
传统的任务管理器和内存使用息息相关,Android提供了一个工具叫做meminfo,使用它可以去查看当前每一个进程的内存使用情况。你可以通过命令行去执行它:adb shell dumpsys meminfo
下面是一个使用它输出的例子:
Total PSS by OOM adjustment:
31841 kB: Native
13173 kB: zygote (pid 23001)
4372 kB: surfaceflinger (pid 23000)
3721 kB: mediaserver (pid 126)
3317 kB: glgps (pid 22993)
1656 kB: drmserver (pid 125)
995 kB: wpa_supplicant (pid 23148)
786 kB: netd (pid 121)
518 kB: sdcard (pid 132)
475 kB: vold (pid 119)
458 kB: keystore (pid 128)
448 kB: /init (pid 1)
412 kB: adbd (pid 134)
254 kB: ueventd (pid 108)
238 kB: dhcpcd (pid 10617)
229 kB: tf_daemon (pid 130)
200 kB: installd (pid 127)
185 kB: dumpsys (pid 14207)
144 kB: healthd (pid 117)
139 kB: debuggerd (pid 122)
121 kB: servicemanager (pid 118)
48217 kB: System
48217 kB: system (pid 23064)
49095 kB: Persistent
34012 kB: com.android.systemui (pid 23163 / activities)
7719 kB: com.android.phone (pid 23357)
4676 kB: com.android.nfc (pid 23371)
2688 kB: com.nuance.xt9.input (pid 23344)
24945 kB: Foreground
24945 kB: com.android.settings (pid 24811 / activities)
17136 kB: Visible
14026 kB: com.google.process.location (pid 23472)
3110 kB: com.android.defcontainer (pid 13976)
6911 kB: Perceptible
6911 kB: com.google.android.inputmethod.latin (pid 23298)
14277 kB: A Services
14277 kB: com.google.process.gapps (pid 23513)
26422 kB: Home
26422 kB: com.android.launcher (pid 23395 / activities)
21798 kB: B Services
16242 kB: com.google.android.apps.currents (pid 23767)
5556 kB: android.process.media (pid 7738)
145869 kB: Cached
41588 kB: com.google.android.apps.plus (pid 24689)
21417 kB: com.google.android.deskclock (pid 23966 / activities)
14463 kB: com.google.android.apps.docs (pid 8644)
14303 kB: com.google.android.gm (pid 9115)
11014 kB: com.google.android.music:main (pid 7716)
10688 kB: com.google.android.apps.magazines (pid 13892)
10240 kB: com.google.android.gms (pid 23338)
9882 kB: com.google.android.youtube (pid 5131)
8807 kB: com.google.android.apps.walletnfcrel (pid 8937)
3467 kB: com.google.android.setupwizard (pid 8922)
Total RAM: 998096 kB
Free RAM: 574945 kB (145869 cached pss + 393200 cached + 35876 free)
Used RAM: 392334 kB (240642 used pss + 107196 buffers + 3856 shmem + 40640 slab)
Lost RAM: 30817 kB
Tuning: 64 (large 384), oom 122880 kB, restore limit 40960 kB (high-end-gfx)dumpsys meminfo命令的输出例子,显示了当前正在运行的进程所使用的内存
我们正在看的和上面例子是同一个进程,并且也是按重要程度排序,不同的是这次有他们对内存影响。
通常当我们测量Android的使用内存时,我们使用Linux的PSS标准 (Proportional Set Size——实际物理内存)。
这是实际内存映射到进程中的数量,但是这个加权的的数量是在多个进程间共享的。因此如果以4K内存每一页(page)映射到两个进程中的话,那么PPS的数量就是每条进程2K。
使用PSS的好处是你可以添加这个&#20540;到所有的进程中去决定实际的总共内存使用。这个特性被用在meminfo报告的最后,去计算使用(Used)了多少内存(这部分来自于非缓存进程),相反的是空闲(free)大小(包含了缓存进程)。
任务管理器(Task-manager)样式的内存信息,展示在应用运行时的内存使用。
基于PSS的任务管理界面
当在设备上点击Settings & Apps & Running后可以显示任务管理器UI。
它显示了所有进程中运行的服务和系统状态,还计算了所有其他依赖进程的PPS内存。
此UI显示的都是即时的应用状态,而不是一段时间内的应用状态。因为在Android中,用户不能直接控制创建和清除应用进程。这些进程可能为了以后使用而保持当前状态,或当系统决定后清除,或者当用户没有明确开启他们时在后台运行。
所以这只是即时的内存使用状态,因此你可能会丢失在这一段时间内的一些重要信息。
例如,当我第一次查看进程状态时,可以看到com.google.android.apps.magazines进程在同步运行。但是就在我们搜集内存使用之后,它就不会在后台运行了,但是它仍然保持在旧的缓存进程中。
为了解决这个问题,就需要使用之前提过的procstats(它可以持续监视在一段时间内所有应用进程,从中收集PSS样品)。你可以通过命令行:adb shell dumpsys procstats去浏览procstats收集的原始数据
通过procstats查看一段时间内的内存使用
现在回到procstats,我们可以使用命令行:adb shell dumpsys procstats --hours 3 &去输出最后3小时收集的内存信息。这些数据和之前图形界面的数据是相同的。
下面是所有进程在最近3小时内的输出数据,通过使用时间先后排序(在缓存状态下的进程不会计算在总时间排序中)。我们现在清晰的看到在这段时间内运行着一个庞大的进程组,中间又会一些新的进程突然的运行——这里包括Magazines进程,我们可以看到他相对于总时间3小时运行了3.6%。
* com.google.android.inputmethod.latin / u0a57:
TOTAL: 100% (6.4MB-6.7MB-6.8MB/5.4MB-5.4MB-5.4MB over 21)
Imp Fg: 100% (6.4MB-6.7MB-6.8MB/5.4MB-5.4MB-5.4MB over 21)
* com.google.process.gapps / u0a8:
TOTAL: 100% (12MB-13MB-14MB/10MB-11MB-12MB over 211)
Imp Fg: 0.11%
Imp Bg: 0.83% (13MB-13MB-13MB/11MB-11MB-11MB over 1)
Service: 99% (12MB-13MB-14MB/10MB-11MB-12MB over 210)
* com.android.systemui / u0a12:
TOTAL: 100% (29MB-32MB-34MB/26MB-29MB-30MB over 21)
Persistent: 100% (29MB-32MB-34MB/26MB-29MB-30MB over 21)
* com.android.phone / 1001:
TOTAL: 100% (6.5MB-7.1MB-7.6MB/5.4MB-5.9MB-6.4MB over 21)
Persistent: 100% (6.5MB-7.1MB-7.6MB/5.4MB-5.9MB-6.4MB over 21)
* com.nuance.xt9.input / u0a77:
TOTAL: 100% (2.3MB-2.5MB-2.7MB/1.5MB-1.5MB-1.5MB over 21)
Persistent: 100% (2.3MB-2.5MB-2.7MB/1.5MB-1.5MB-1.5MB over 21)
* com.android.nfc / 1027:
TOTAL: 100% (4.2MB-4.5MB-4.6MB/3.2MB-3.2MB-3.3MB over 21)
Persistent: 100% (4.2MB-4.5MB-4.6MB/3.2MB-3.2MB-3.3MB over 21)
* com.google.process.location / u0a8:
TOTAL: 100% (13MB-13MB-14MB/10MB-11MB-11MB over 21)
Imp Fg: 100% (13MB-13MB-14MB/10MB-11MB-11MB over 21)
* system / 1000:
TOTAL: 100% (42MB-46MB-56MB/39MB-42MB-48MB over 21)
Persistent: 100% (42MB-46MB-56MB/39MB-42MB-48MB over 21)
* com.google.android.apps.currents / u0a35:
TOTAL: 100% (16MB-16MB-16MB/14MB-14MB-14MB over 17)
Service: 100% (16MB-16MB-16MB/14MB-14MB-14MB over 17)
* com.android.launcher / u0a13:
TOTAL: 77% (25MB-26MB-27MB/22MB-23MB-24MB over 73)
Top: 77% (25MB-26MB-27MB/22MB-23MB-24MB over 73)
(Home): 23% (25MB-26MB-26MB/23MB-23MB-24MB over 12)
* android.process.media / u0a6:
TOTAL: 48% (5.0MB-5.3MB-5.5MB/4.0MB-4.2MB-4.2MB over 11)
Imp Fg: 0.00%
Imp Bg: 0.00%
Service: 48% (5.0MB-5.3MB-5.5MB/4.0MB-4.2MB-4.2MB over 11)
Receiver: 0.00%
(Cached): 22% (4.1MB-4.5MB-4.8MB/3.0MB-3.5MB-3.8MB over 8)
* com.google.android.deskclock / u0a36:
TOTAL: 42% (20MB-21MB-21MB/18MB-19MB-19MB over 8)
Imp Fg: 42% (20MB-21MB-21MB/18MB-19MB-19MB over 8)
Service: 0.00%
Receiver: 0.01%
(Cached): 58% (17MB-20MB-21MB/16MB-18MB-19MB over 14)
* com.android.settings / 1000:
TOTAL: 23% (19MB-22MB-28MB/15MB-19MB-24MB over 31)
Top: 23% (19MB-22MB-28MB/15MB-19MB-24MB over 31)
(Last Act): 77% (9.7MB-14MB-20MB/7.5MB-11MB-18MB over 8)
(Cached): 0.02%
* com.google.android.apps.magazines / u0a59:
TOTAL: 3.6% (10MB-10MB-10MB/8.7MB-9.0MB-9.0MB over 6)
Imp Bg: 0.03%
Service: 3.6% (10MB-10MB-10MB/8.7MB-9.0MB-9.0MB over 6)
(Cached): 17% (9.9MB-10MB-10MB/8.7MB-8.9MB-9.0MB over 5)
* com.android.defcontainer / u0a5:
TOTAL: 1.4% (2.7MB-3.0MB-3.0MB/1.9MB-1.9MB-1.9MB over 7)
Top: 1.2% (3.0MB-3.0MB-3.0MB/1.9MB-1.9MB-1.9MB over 6)
Imp Fg: 0.19% (2.7MB-2.7MB-2.7MB/1.9MB-1.9MB-1.9MB over 1)
Service: 0.00%
(Cached): 15% (2.6MB-2.6MB-2.6MB/1.8MB-1.8MB-1.8MB over 1)
* com.google.android.youtube / u0a78:
TOTAL: 1.3% (9.0MB-9.0MB-9.0MB/7.8MB-7.8MB-7.8MB over 1)
Imp Bg: 1.0% (9.0MB-9.0MB-9.0MB/7.8MB-7.8MB-7.8MB over 1)
Service: 0.27%
Service Rs: 0.01%
Receiver: 0.00%
(Cached): 99% (9.1MB-9.4MB-9.7MB/7.7MB-7.9MB-8.1MB over 24)
* com.google.android.gms / u0a8:
TOTAL: 0.91% (9.2MB-9.2MB-9.2MB/7.6MB-7.6MB-7.6MB over 1)
Imp Bg: 0.79% (9.2MB-9.2MB-9.2MB/7.6MB-7.6MB-7.6MB over 1)
Service: 0.11%
Receiver: 0.00%
(Cached): 99% (8.2MB-9.4MB-10MB/6.5MB-7.6MB-8.1MB over 25)
* com.google.android.gm / u0a44:
TOTAL: 0.56%
Imp Bg: 0.55%
Service: 0.01%
Receiver: 0.00%
(Cached): 99% (11MB-13MB-14MB/10MB-12MB-13MB over 24)
* com.google.android.apps.plus / u0a70:
TOTAL: 0.22%
Imp Bg: 0.22%
Service: 0.00%
Receiver: 0.00%
(Cached): 100% (38MB-40MB-41MB/36MB-38MB-39MB over 17)
* com.google.android.apps.docs / u0a39:
TOTAL: 0.15%
Imp Bg: 0.09%
Service: 0.06%
(Cached): 54% (13MB-14MB-14MB/12MB-12MB-13MB over 17)
* com.google.android.music:main / u0a62:
TOTAL: 0.11%
Imp Bg: 0.04%
Service: 0.06%
Receiver: 0.01%
(Cached): 70% (7.7MB-10MB-11MB/6.4MB-9.0MB-9.3MB over 20)
* com.google.android.apps.walletnfcrel / u0a24:
TOTAL: 0.01%
Receiver: 0.01%
(Cached): 69% (8.1MB-8.4MB-8.6MB/7.0MB-7.1MB-7.1MB over 13)
* com.google.android.setupwizard / u0a19:
TOTAL: 0.00%
Receiver: 0.00%
(Cached): 69% (2.7MB-3.2MB-3.4MB/1.8MB-2.0MB-2.2MB over 13)
Run time Stats:
SOff/Norm: +1h43m29s710ms
SOn /Norm: +1h37m14s290ms
TOTAL: +3h20m44s0ms
Start time:
Total elapsed time: +3h42m23s56ms (partial) libdvm.so chromeview&命令行:dumpsys procstats --hours 3的输出例子,显示最近3小时后台运行的进程内存细节。
这个百分比告诉你在总时间内各种状态下进程的消耗。&内存&#20540;告知你在当前状态下的内存样本为minPss-avgPss-maxPss
/ minUss-avgUss-maxUss。procstats 工具有一组命令行选项去控制输出结果——使用:adb shell dumpsys procstats -h查看可执行选项列表。
对比这些从procstats得到的原数据我们可以看到,进程会在下面的几种状态中运行:&Imp
Fg, Imp Bg, Service, Service Rs, and Receiver。
在这些情况下,进程会活跃的运行在后台中,只要它完成它需要做的工作。在设备使用内存时,这些进程状态最容易引起下面这个问题问题:应用在后台运行时,内存从事其他工作。
开始使用procstats(Getting
started with procstats)
我们已经找到新的procstats工具去了解整体内存在Android系统中的行为。这也是Android4.4的工程减肥计划(Project Svelte)的重要部分之一。
在开发你自己的应用时,一定要使用procstats和刚才提到的其他工具去帮助你了解APP的表现,特别是他在后台运行的时间和使用的内存。
更多关于Android如何去分析和调试内存的内容,可以看developer网站中的这篇文章:&Investigating
Your RAM Usage&.
写在最后:
我想写一篇关于Android内存优化的一篇文章,刚好需要procstats和meninfo这方面的内容,于是搜到了这篇文章。
由于引用了其中的很多内容而且发现国内没有相关的资料,所以索性直接翻译了它。
这是第一次翻译技术类英文文章,才知道这并不是一件容易的事。最开始采用了英文直译,译完以后发现根本读不通,之后在直译基础上又意译了一遍,但仍旧有一些地方比较难读,主要原因应该是我对内存方面的知识理解能力有限吧。
如果大家反映都还行的话,以后有时间我会把本文中引用的几个链接文章也翻译一下。
这是用来收集信息的后台程序,可以删除!本来无用之物,何必留之~!
这是统计romer制作的rom 有多少人使用的计数器。感觉不好的话,我用钛备份软件删除了。
相关搜索:
相关阅读:
相关频道:
Android教程最近更新

我要回帖

更多关于 appstats病毒 的文章

 

随机推荐