zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

【Android 逆向】Android 系统文件分析 ( cpuinfo 处理器信息文件 | self 当前进程信息文件 | meminfo 当前内存信息文件 )

Android内存文件进程 分析 信息 当前 逆向
2023-06-13 09:17:59 时间

文章目录

一、cpuinfo 处理器信息


cpuinfo 文件中 , 会标明 CPU 型号 , AArch64 Processor rev 1 (aarch64) ;

该 CPU 有

8

个处理器 ;

Pixel 2 使用的是 骁龙 835 处理器 , 10nm 8 核心处理器 ;

下面的信息表示一个单独的核心相关参数 , 这样的参数由

8

个 , 序号分别是

0

~

7

;

processor       : 0
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x801
CPU revision    : 4

完整的控制台输出内容 :

walleye:/proc # cat cpuinfo
Processor       : AArch64 Processor rev 1 (aarch64)
processor       : 0
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x801
CPU revision    : 4

processor       : 1
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x801
CPU revision    : 4

processor       : 2
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x801
CPU revision    : 4

processor       : 3
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x801
CPU revision    : 4

processor       : 4
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x800
CPU revision    : 1

processor       : 5
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x800
CPU revision    : 1

processor       : 6
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x800
CPU revision    : 1

processor       : 7
BogoMIPS        : 38.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0xa
CPU part        : 0x800
CPU revision    : 1

Hardware        : Qualcomm Technologies, Inc MSM8998
walleye:/proc #

二、self 当前进程信息文件


self -> 24374 是当前进程信息 , 任何程序读取 /proc/self 文件时 , 获取的都是自己当前进程的信息 , 不同的程序读取该文件获取的信息都是不同的 ;

这里的 24374 是执行 ls 命令对应的程序对应的进程号 ;

walleye:/proc # ls -l|grep self
lrwxrwxrwx   1 root           root              11 2021-10-19 20:59 mounts -> self/mounts
lrwxrwxrwx   1 root           root               8 2021-10-19 20:59 net -> self/net
lrwxrwxrwx   1 root           root               0 1970-01-01 08:00 self -> 24374
lrwxrwxrwx   1 root           root               0 1970-01-01 08:00 thread-self -> 24374/task/24374
walleye:/proc #

三、meminfo 当前内存信息文件


meminfo 是当前内存信息文件 , 存储当前 Android 系统的内存使用情况 ;

这是总体的进程使用情况 ;

130|walleye:/proc # cat meminfo
MemTotal:        3744240 kB
MemFree:           50764 kB
MemAvailable:    1218880 kB
Buffers:           32412 kB
Cached:          1276480 kB
SwapCached:         5780 kB
Active:          1588596 kB
Inactive:         917280 kB
Active(anon):     992760 kB
Inactive(anon):   361916 kB
Active(file):     595836 kB
Inactive(file):   555364 kB
Unevictable:      156852 kB
Mlocked:          156852 kB
SwapTotal:        524284 kB
SwapFree:          79188 kB
Dirty:                64 kB
Writeback:             0 kB
AnonPages:       1350740 kB
Mapped:           737660 kB
Shmem:              1428 kB
Slab:             350188 kB
SReclaimable:     125280 kB
SUnreclaim:       224908 kB
KernelStack:       61408 kB
PageTables:        63360 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2396404 kB
Committed_AS:   75922896 kB
VmallocTotal:   258867136 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
CmaTotal:         196608 kB
CmaFree:               0 kB
walleye:/proc #