]> sbz's 6dev Repos - android-sysinfo/.git/blame - README.md
Add nexus 6 device
[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
40### Nexus S
41
42[Nexus S](https://en.wikipedia.org/wiki/Nexus_S)
43
44```
062023ba 45Model name : Nexus S
ce118d3b
SB
46Android codename : crespo
47Android version : 4.1.2
48Android SDK version : 16
49Kernel version : Linux 3.0.31-g5894150 android-build@vpba17.mtv.corp.google.com #1 PREEMPT Mon Sep 10 14:10:13 PDT 2012 armv7l
50Baseband version : I9023XXKI1
51Build number : JZO54K
52```
53
062023ba
SB
54### Nexus 6
55
56[Nexus 6](https://en.wikipedia.org/wiki/Nexus_6)
57
58```
59Model name : Nexus 6
60Android codename : shamu
61Android version : 7.1.1
62Android SDK version : 25
63Kernel 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
64Baseband version : MDM9625_104670.31.05.45R
65Build number : N6F27M
66```
67
ce118d3b
SB
68### Huawei P20
69
70[Huawei P20 Pro](https://en.wikipedia.org/wiki/Huawei_P20)
71
72```
062023ba 73Model name : CLT-L09
ce118d3b
SB
74Android codename : CLT
75Android version : 9
76Android SDK version : 28
77Kernel version : Linux 4.9.148 test@cn-central-1b-e859467521576132696835-1535427282-tvxt6 #1 SMP PREEMPT Thu Dec 12 15:34:28 CST 2019 aarch64
78Baseband version : 21C20B369S009C000
79Build number : CLT-L09 9.1.0.372(C782E12R1P11)
80```
410f5cae
SB
81
82[1]: https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/system_properties.h
83[2]: https://developer.android.com/ndk/guides/stable_apis#c_library
84[3]: https://android.googlesource.com/platform/bionic/
85[4]: https://developer.android.com/studio/command-line/adb