Add Android 10 and 11 and following style(9)
[android-sysinfo/.git] / README.md
CommitLineData
410f5cae
SB
1# android-sysinfo
2
3## Overview
4
5`android-sysinfo` is a Android Native program which reports the system
6properties of any android device using the [system properties][1] [C API][2]
7existing in Android libc [bionic][3].
8
062023ba 9It is simlar to the `Settings or System > About phone` system information
410f5cae
SB
10displayed on your mobile device.
11
12It reports the model, build version and kernel info, etc.
13
14## Requirements
15
16You need to install the Android SDK and Android NDK to use `adb` and `ndk-build`
17used in the build process.
18
19## Build
20
21The build Makefile is using [adb][4] to determine the Android version and ABI of
22the NDK to use in order to produce the binary.
23
24Connect your Android device via USB and enable USB Debugging, then run:
25
26```
27make push
28```
29
30## Run
31
32```
33make run
34```
35
ce118d3b
SB
36## Output on devices
37
38On few of my personal Android devices, this is what output information look likes.
39
b2f6ba9e
SB
40### HTC Magic
41
42[HTC Magic](https://en.wikipedia.org/wiki/HTC_Magic)
43
44```
45Model name : HTC Magic
46Android codename : sapphire
47Android version : 2.2.1
48Android SDK version : 8
49Kernel version : Linux 2.6.32.9-27237-gbe746fb android-build@apa26.mtv.corp.google.com #1 PREEMPT Thu Jul 22 15:50:12 PDT 2010 armv6l
50Baseband version : 62.50SJ.20.17U_2.22.28.25
51Build number : FRG83D
52
53```
ce118d3b
SB
54### Nexus S
55
56[Nexus S](https://en.wikipedia.org/wiki/Nexus_S)
57
58```
062023ba 59Model name : Nexus S
ce118d3b
SB
60Android codename : crespo
61Android version : 4.1.2
62Android SDK version : 16
63Kernel version : Linux 3.0.31-g5894150 android-build@vpba17.mtv.corp.google.com #1 PREEMPT Mon Sep 10 14:10:13 PDT 2012 armv7l
64Baseband version : I9023XXKI1
65Build number : JZO54K
66```
67
062023ba
SB
68### Nexus 6
69
70[Nexus 6](https://en.wikipedia.org/wiki/Nexus_6)
71
72```
73Model name : Nexus 6
74Android codename : shamu
75Android version : 7.1.1
76Android SDK version : 25
77Kernel version : Linux 3.10.40-gc7ebca13933 android-build@wprh2.hot.corp.google.com #1 SMP PREEMPT Wed Aug 16 15:25:44 UTC 2017 armv7l
78Baseband version : MDM9625_104670.31.05.45R
79Build number : N6F27M
80```
81
058a2b1f
SB
82### Huawei Y5 II
83
84[Huawei Y series](https://en.wikipedia.org/wiki/List_of_Huawei_phones#Ascend_Y_series)
85
86```
87Model name : HUAWEI CUN-L21
88Android codename : CUN-L21
89Android version : 5.1 (Lollipop)
90Android SDK version : 22
91Kernel version : Linux 3.10.65+ jslave@WUH1000021377 #1 SMP PREEMPT Thu Jul 5 11:30:57 CST 2018 armv7l
92Baseband version : MOLY.LR9.W1444.MD.LWTG.MP.V42.P40,MOLY.LR9.W1444.MD.LWTG.MP.V42.P40, 2017/07/07 17:29
93Build number : CUN-L21C429B109
94```
95
ce118d3b
SB
96### Huawei P20
97
98[Huawei P20 Pro](https://en.wikipedia.org/wiki/Huawei_P20)
99
100```
062023ba 101Model name : CLT-L09
ce118d3b
SB
102Android codename : CLT
103Android version : 9
104Android SDK version : 28
105Kernel version : Linux 4.9.148 test@cn-central-1b-e859467521576132696835-1535427282-tvxt6 #1 SMP PREEMPT Thu Dec 12 15:34:28 CST 2019 aarch64
106Baseband version : 21C20B369S009C000
107Build number : CLT-L09 9.1.0.372(C782E12R1P11)
108```
410f5cae 109
5a0ac110
SB
110## License
111
112The project is released under [MIT license](https://en.wikipedia.org/wiki/MIT_License).
113
410f5cae
SB
114[1]: https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/system_properties.h
115[2]: https://developer.android.com/ndk/guides/stable_apis#c_library
116[3]: https://android.googlesource.com/platform/bionic/
117[4]: https://developer.android.com/studio/command-line/adb