• 陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

车机7870的一些研究

好玩有趣 陆子方 2天前 14次浏览 0个评论 扫描二维码
文章目录[隐藏]

开发者模式

点击设置→系统设置→开发者选项,打开 adb 调试,(如不成功,可尝试多 开关几次),点击 打开设备模式。注意:要确保硬件接在 USB 的 OTG 脚位上; 公板的话,一般是 4PIN 的 USB 线。

调试代码

4PDA教会我很多,谢谢。

* 设置(出厂设置)= 3368 或 109
* 背光调节(矩阵背光控制)= 5768 ,即显示屏亮度调整
* 开发人员菜单(开发人员模式)= 3368 或 7870
* 工程师模式 = 打开计算器应用程序并输入)83781(=
# 好像还有一个0000.=
调试代码不要乱用,出事不能找我。满足好奇心,责任自负。本人未全部验证。

一些验证

验证提示的CPU为UIS7885,看核心信息是差不多的,这里暂时忽略。
方易通有一个脚本,可以很方便修改运行内存和存储。例如1+16改成2+32,看样子很简单,没试过。为防假货,验证一下。

内存检测:adb shell cat /proc/meminfo
存储检测:adb shell df -h
CPU验证:adb shell cat /proc/cpuinfo
版本验证:adb shell uname -a
内核版本:adb shell cat /proc/version

存储

有EMMC 5.1和UFS3.1两种。需要adb调试进一步判断

#判断emmc或ufs。有sda字样可能是ufs,mmc字样可能就是emmc了。这里不需要root。安卓手机同理
D:\Program Files\scrcpy-win64-v2.4>adb shell
thyme:/ $ df
Filesystem        1K-blocks     Used Available Use% Mounted on
/dev/block/sda13       5092      320      4772   7% /dev/logfs

#此外ufs可能还存在以下目录,能进入是正常ufs
thyme:/ $ cd /sys/devices/platform/soc/1d84000.ufshc

在路径 /sys/devices/platform/soc/1d84000.ufshc/health_descriptor 中,life_time_estimation_a 和 life_time_estimation_b 值显示为 0x03,这通常表示设备的 UFS 存储使用寿命估计。life_time_estimation_a:反映用户数据区域的寿命估计。life_time_estimation_b:反映系统数据区域的寿命估计。值的范围为 0x01 到 0x0B,其中:0x01 表示新设备。0x0B 表示接近寿命终点。当前的值 0x03 表示 UFS 存储仍在健康状态,但已经有一定程度的磨损。

返回的为十六进制(hexadecimal)数值

#ufs寿命的判断,需要有root权限
thyme:/ $ su
thyme:/ # cat /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_a
0x03
thyme:/ # cat /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_b                                      <
0x03
#查询料号
thyme:/ # cat sys/devices/platform/soc/1d84000.ufshc/string_descriptors/product_name
KLUDG4UHDC-B0E1

本机输出
上面的是推演过程,下面是输出记录。打开步骤,首先是狂点击版本号数次,随后在系统设置找到开发展模式,修改设备为device设备模式,打开usb调试按钮

C:\Users\LZP\Documents\platform-tools>adb devices
List of devices attached
ccf8ad9de58986288ce93ea94249969�        device


C:\Users\LZP\Documents\platform-tools>adb shell
uis7870sc_2h10:/ $ cat /proc/meminfo
MemTotal:        4194304 kB
MemFree:           62916 kB
MemAvailable:    1046388 kB
Buffers:            3796 kB
Cached:          1079012 kB
SwapCached:        42488 kB
Active:          1279852 kB
Inactive:         834872 kB
Active(anon):     818152 kB
Inactive(anon):   343112 kB
Active(file):     461700 kB
Inactive(file):   491760 kB
Unevictable:      118688 kB
Mlocked:          118688 kB
SwapTotal:       2147724 kB
SwapFree:        1455440 kB
Dirty:               200 kB
Writeback:             0 kB
AnonPages:       1147884 kB
Mapped:           670400 kB
Shmem:             11792 kB
KReclaimable:     114312 kB
Slab:             258704 kB
SReclaimable:      65584 kB
SUnreclaim:       193120 kB
KernelStack:       46384 kB
ShadowCallStack:   11596 kB
PageTables:        83380 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3879764 kB
Committed_AS:   77088788 kB
VmallocTotal:   262930368 kB
VmallocUsed:      158776 kB
VmallocChunk:          0 kB
Percpu:             8992 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:         352256 kB
CmaFree:            4084 kB
IonTotalHeap:      86880 kB
IonTotalPool:      45792 kB
HighAtomicFree:     2372 kB
uis7870sc_2h10:/ $ df -h
Filesystem        Size Used Avail Use% Mounted on
/dev/block/dm-0   597M 597M     0 100% /
tmpfs             1.6G 1.5M  1.6G   1% /dev
tmpfs             1.6G    0  1.6G   0% /mnt
/dev/block/sda51   62M  46M   16M  75% /metadata
/dev/block/dm-1   126M 126M     0 100% /system_ext
/dev/block/dm-2   520M 520M     0 100% /vendor
overlay-overlay   1.5G 1.4G   81M  95% /odm
/dev/block/dm-3   144M 144M     0 100% /product
/dev/block/dm-4   9.3M 9.3M     0 100% /vendor_dlkm
/dev/block/dm-13  1.5G 1.4G   81M  95% /elable
/dev/block/sda73   94M  20K   92M   1% /oem
/dev/block/sda75   10M  44K  9.4M   1% /lshw
/dev/block/sda76   96M 616K   92M   1% /lsecfs
tmpfs             1.6G  16K  1.6G   1% /apex
tmpfs             1.6G 572K  1.6G   1% /linkerconfig
/dev/block/sda1   5.3M 1.3M  3.6M  28% /mnt/vendor
/dev/block/sda47   62M  53M  9.3M  85% /cache
/dev/block/sda48  498M 118M  380M  24% /blackbox
/dev/block/sda78   49G 2.8G   46G   6% /data
/dev/block/loop4   19M  19M     0 100% /apex/com.android.btservices@339990000
/dev/block/loop5  232K  96K  132K  43% /apex/com.android.apex.cts.shim@1
/dev/block/loop6  3.3M 3.3M     0 100% /apex/com.android.appsearch@339990000
/dev/block/loop8  820K 792K   12K  99% /apex/com.android.tzdata@339990000
/dev/block/loop7  2.8M 2.7M     0 100% /apex/com.android.uwb@339990000
/dev/block/loop9  232K 116K  112K  51% /apex/com.android.scheduling@339990000
/dev/block/loop10  46M  46M     0 100% /apex/com.android.vndk.v33@1
/dev/block/loop11 1.8M 1.8M     0 100% /apex/com.android.os.statsd@339990000
/dev/block/loop12 7.7M 7.7M     0 100% /apex/com.android.runtime@1
/dev/block/loop13  36M  36M     0 100% /apex/com.android.i18n@1
/dev/block/loop14 232K  80K  148K  36% /apex/com.android.ondevicepersonalization
@339990000
tmpfs             1.6G    0  1.6G   0% /data_mirror
/dev/block/loop15 724K 696K   16K  98% /apex/com.android.sdkext@339990000
/dev/block/dm-40  9.1M 9.0M     0 100% /apex/com.android.tethering@339990000
/dev/block/dm-36  8.2M 8.2M     0 100% /apex/com.android.adbd@339990000
/dev/block/dm-38  8.0M 7.9M     0 100% /apex/com.android.wifi@339990000
/dev/block/dm-35  748K 720K   16K  98% /apex/com.android.ipsec@339990000
/dev/block/dm-28   13M  13M     0 100% /apex/com.android.permission@339990000
/dev/block/dm-37   20M  20M     0 100% /apex/com.android.media.swcodec@339990000

/dev/block/dm-30  6.3M 6.2M     0 100% /apex/com.android.extservices@339990000
/dev/block/dm-31   48M  48M     0 100% /apex/com.android.art@339990000
/dev/block/dm-19  5.8M 5.8M     0 100% /apex/com.android.media@339990000
/dev/block/dm-27  5.0M 5.0M     0 100% /apex/com.android.conscrypt@339990000
/dev/block/dm-23  8.1M 8.1M     0 100% /apex/com.android.mediaprovider@339990000

/dev/block/dm-21   12M  12M     0 100% /apex/com.android.cellbroadcast@339990000

/dev/block/dm-22  7.5M 7.5M     0 100% /apex/com.android.neuralnetworks@33999000
0
/dev/block/dm-33  232K 200K   28K  88% /apex/com.android.adservices@339990000
/dev/block/dm-16  3.9M 3.8M     0 100% /apex/com.android.resolv@339990000
/dev/fuse          49G 2.8G   46G   6% /storage/emulated
uis7870sc_2h10:/ $ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x2
CPU part        : 0xd05
CPU revision    : 0

processor       : 1
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x2
CPU part        : 0xd05
CPU revision    : 0

processor       : 2
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x2
CPU part        : 0xd05
CPU revision    : 0

processor       : 3
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x2
CPU part        : 0xd05
CPU revision    : 0

processor       : 4
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x4
CPU part        : 0xd0b
CPU revision    : 0

processor       : 5
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x4
CPU part        : 0xd0b
CPU revision    : 0

processor       : 6
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x4
CPU part        : 0xd0b
CPU revision    : 0

processor       : 7
BogoMIPS        : 52.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdh
p cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x4
CPU part        : 0xd0b
CPU revision    : 0

Serial          : 0091781304348311
Hardware        : Unisoc UIS7885(prototype)
uis7870sc_2h10:/ $ uname -a
Linux localhost 5.4.210 #17 SMP PREEMPT Fri Sep 27 18:03:28 CST 2024 aarch64 Toy
box
uis7870sc_2h10:/ $ cat /proc/version
Linux version 5.4.210 (ls_yyl@ps) (Android (7284624, based on r416183b) clang ve
rsion 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7c
f2016289302412d708641d52d2f7ee), LLD 12.0.5 (/buildbot/src/android/llvm-toolchai
n/out/llvm-project/lld c935d99d7cf2016289302412d708641d52d2f7ee)) #17 SMP PREEMP
T Fri Sep 27 18:03:28 CST 2024
uis7870sc_2h10:/ $ df
Filesystem        1K-blocks    Used Available Use% Mounted on
/dev/block/dm-0      611036  611036         0 100% /
tmpfs               1722584    1548   1721036   1% /dev
tmpfs               1722584       0   1722584   0% /mnt
/dev/block/sda51      63488   47212     16276  75% /metadata
/dev/block/dm-1      129260  129260         0 100% /system_ext
/dev/block/dm-2      532348  532348         0 100% /vendor
overlay-overlay     1627272 1510544     83208  95% /odm
/dev/block/dm-3      147860  147860         0 100% /product
/dev/block/dm-4        9568    9568         0 100% /vendor_dlkm
/dev/block/dm-13    1627272 1510544     83208  95% /elable
/dev/block/sda73      95984      20     93916   1% /oem
/dev/block/sda75      10224      44      9696   1% /lshw
/dev/block/sda76      98288     616     93744   1% /lsecfs
tmpfs               1722584      16   1722568   1% /apex
tmpfs               1722584     572   1722012   1% /linkerconfig
/dev/block/sda1        5488    1408      3776  28% /mnt/vendor
/dev/block/sda47      63488   53948      9540  85% /cache
/dev/block/sda48     509952  121140    388812  24% /blackbox
/dev/block/sda78   51591168 3008372  48451724   6% /data
/dev/block/loop4      19760   19728         0 100% /apex/com.android.btservices@
339990000
/dev/block/loop5        232      96       132  43% /apex/com.android.apex.cts.sh
im@1
/dev/block/loop6       3412    3380         0 100% /apex/com.android.appsearch@3
39990000
/dev/block/loop8        820     792        12  99% /apex/com.android.tzdata@3399
90000
/dev/block/loop7       2880    2852         0 100% /apex/com.android.uwb@3399900
00
/dev/block/loop9        232     116       112  51% /apex/com.android.scheduling@
339990000
/dev/block/loop10     47124   47092         0 100% /apex/com.android.vndk.v33@1
/dev/block/loop11      1900    1872         0 100% /apex/com.android.os.statsd@3
39990000
/dev/block/loop12      7976    7940         0 100% /apex/com.android.runtime@1
/dev/block/loop13     36968   36936         0 100% /apex/com.android.i18n@1
/dev/block/loop14       232      80       148  36% /apex/com.android.ondeviceper
sonalization@339990000
tmpfs               1722584       0   1722584   0% /data_mirror
/dev/block/loop15       724     696        16  98% /apex/com.android.sdkext@3399
90000
/dev/block/dm-40       9344    9312         0 100% /apex/com.android.tethering@3
39990000
/dev/block/dm-36       8448    8416         0 100% /apex/com.android.adbd@339990
000
/dev/block/dm-38       8196    8168         0 100% /apex/com.android.wifi@339990
000
/dev/block/dm-35        748     720        16  98% /apex/com.android.ipsec@33999
0000
/dev/block/dm-28      13192   13164         0 100% /apex/com.android.permission@
339990000
/dev/block/dm-37      20176   20148         0 100% /apex/com.android.media.swcod
ec@339990000
/dev/block/dm-30       6480    6448         0 100% /apex/com.android.extservices
@339990000
/dev/block/dm-31      48948   48908         0 100% /apex/com.android.art@3399900
00
/dev/block/dm-19       6024    5996         0 100% /apex/com.android.media@33999
0000
/dev/block/dm-27       5160    5132         0 100% /apex/com.android.conscrypt@3
39990000
/dev/block/dm-23       8396    8364         0 100% /apex/com.android.mediaprovid
er@339990000
/dev/block/dm-21      11972   11944         0 100% /apex/com.android.cellbroadca
st@339990000
/dev/block/dm-22       7720    7692         0 100% /apex/com.android.neuralnetwo
rks@339990000
/dev/block/dm-33        232     200        28  88% /apex/com.android.adservices@
339990000
/dev/block/dm-16       4020    3992         0 100% /apex/com.android.resolv@3399
90000
/dev/fuse          51591168 3008372  48451724   6% /storage/emulated
uis7870sc_2h10:/ $ cd /sys/devices/platform/soc/1d84000.ufshc
No such file or directory
2|uis7870sc_2h10:/ $ su
/system/bin/sh: su: inaccessible or not found
uis7870sc_2h10:/cat oc/1d84000.ufshc/health_descriptor/life_time_estimation_a                     <
uis7870sc_2h10:/ cat: /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_a
No such file or directory                       
uis7870sc_2h10:/ cat: /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimat ion_b
No such file or directory 
#无法验证是否为ufs,需要通过硬盘读写软件进一步验证

子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到