]> sbz's 6dev Repos - android-sysinfo/.git/blame - README.md
Add output section on devices
[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
9It is simlar to the `Settings or System > About the Phone` system information
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```
45Model number : Nexus S
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
54### Huawei P20
55
56[Huawei P20 Pro](https://en.wikipedia.org/wiki/Huawei_P20)
57
58```
59Model number : CLT-L09
60Android codename : CLT
61Android version : 9
62Android SDK version : 28
63Kernel version : Linux 4.9.148 test@cn-central-1b-e859467521576132696835-1535427282-tvxt6 #1 SMP PREEMPT Thu Dec 12 15:34:28 CST 2019 aarch64
64Baseband version : 21C20B369S009C000
65Build number : CLT-L09 9.1.0.372(C782E12R1P11)
66```
410f5cae
SB
67
68[1]: https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/system_properties.h
69[2]: https://developer.android.com/ndk/guides/stable_apis#c_library
70[3]: https://android.googlesource.com/platform/bionic/
71[4]: https://developer.android.com/studio/command-line/adb