https://github.com/sbz/android-sysinfo
https://github.com/sbz/android-sysinfo
android android-device ndk sysinfo
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sbz/android-sysinfo
- Owner: sbz
- License: mit
- Created: 2020-06-20T13:13:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T10:32:05.000Z (over 1 year ago)
- Last Synced: 2025-03-30T12:22:30.774Z (about 1 year ago)
- Topics: android, android-device, ndk, sysinfo
- Language: C
- Size: 11.7 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-sysinfo
## Overview
`android-sysinfo` is a Android Native program which reports the system
properties of any android device using the [system properties][1] [C API][2]
existing in Android libc [bionic][3].
It is simlar to the `Settings or System > About phone` system information
displayed on your mobile device.
It reports the model, build version and kernel info, etc.
## Requirements
You need to install the Android SDK and Android NDK to use `adb` and `ndk-build`
used in the build process.
## Build
The build Makefile is using [adb][4] to determine the Android version and ABI of
the NDK to use in order to produce the binary.
Connect your Android device via USB and enable USB Debugging, then run:
```
make push
```
## Run
```
make run
```
## Output on devices
On few of my personal Android devices, this is what output information look likes.
### HTC Magic
[HTC Magic](https://en.wikipedia.org/wiki/HTC_Magic)
```
Model name : HTC Magic
Android codename : sapphire
Android version : 2.2.1
Android SDK version : 8
Kernel 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
Baseband version : 62.50SJ.20.17U_2.22.28.25
Build number : FRG83D
```
### Nexus S
[Nexus S](https://en.wikipedia.org/wiki/Nexus_S)
```
Model name : Nexus S
Android codename : crespo
Android version : 4.1.2
Android SDK version : 16
Kernel version : Linux 3.0.31-g5894150 android-build@vpba17.mtv.corp.google.com #1 PREEMPT Mon Sep 10 14:10:13 PDT 2012 armv7l
Baseband version : I9023XXKI1
Build number : JZO54K
```
### Nexus 6
[Nexus 6](https://en.wikipedia.org/wiki/Nexus_6)
```
Model name : Nexus 6
Android codename : shamu
Android version : 7.1.1
Android SDK version : 25
Kernel 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
Baseband version : MDM9625_104670.31.05.45R
Build number : N6F27M
```
### Huawei Y5 II
[Huawei Y series](https://en.wikipedia.org/wiki/List_of_Huawei_phones#Ascend_Y_series)
```
Model name : HUAWEI CUN-L21
Android codename : CUN-L21
Android version : 5.1 (Lollipop)
Android SDK version : 22
Kernel version : Linux 3.10.65+ jslave@WUH1000021377 #1 SMP PREEMPT Thu Jul 5 11:30:57 CST 2018 armv7l
Baseband version : MOLY.LR9.W1444.MD.LWTG.MP.V42.P40,MOLY.LR9.W1444.MD.LWTG.MP.V42.P40, 2017/07/07 17:29
Build number : CUN-L21C429B109
```
### Huawei P20
[Huawei P20 Pro](https://en.wikipedia.org/wiki/Huawei_P20)
```
Model name : CLT-L09
Android codename : CLT
Android version : 9
Android SDK version : 28
Kernel version : Linux 4.9.148 test@cn-central-1b-e859467521576132696835-1535427282-tvxt6 #1 SMP PREEMPT Thu Dec 12 15:34:28 CST 2019 aarch64
Baseband version : 21C20B369S009C000
Build number : CLT-L09 9.1.0.372(C782E12R1P11)
```
### Samsung Galaxy A21S
[Samsung Galaxy A21S](https://en.wikipedia.org/wiki/Samsung_Galaxy_A21s)
```
Model name : SM-A217F
Android codename : a21s
Android version : 11 (Android 11)
Android SDK version : 30
Kernel version : Linux 4.19.132-21842546 dpi@VPDJR108 #1 SMP PREEMPT Wed Jun 23 18:40:47 +07 2021 aarch64
Baseband version : A217FXXU6CUF4,A217FXXU6CUF4
Build number : RP1A.200720.012.A217FXXU6CUF5
```
## License
The project is released under [MIT license](https://en.wikipedia.org/wiki/MIT_License).
[1]: https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/system_properties.h
[2]: https://developer.android.com/ndk/guides/stable_apis#c_library
[3]: https://android.googlesource.com/platform/bionic/
[4]: https://developer.android.com/studio/command-line/adb