Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liwugang/android_properties
Android get/set system properties
https://github.com/liwugang/android_properties
Last synced: 14 days ago
JSON representation
Android get/set system properties
- Host: GitHub
- URL: https://github.com/liwugang/android_properties
- Owner: liwugang
- Created: 2017-10-15T13:02:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-26T15:31:45.000Z (over 3 years ago)
- Last Synced: 2024-08-01T17:23:18.428Z (3 months ago)
- Language: C++
- Size: 393 KB
- Stars: 77
- Watchers: 8
- Forks: 35
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# android_properties
## summary
This tool is get/set system properties.Support all android versions in theory.
I just tested on android M, N, O, P, Q and R.Set operation need root first, and can set all the properties(include prefixed with 'ro').
## usage
usage: system_properties [-h] [-a] [-l log_level] [-s] [-f] prop_name prop_value
-h: display this help message
-a: dump all system properties
-l log_level: console = 1 logcat = 2 consle + logcat = 3(default)
-s print security context(selabel)
-f read property_contexts files to get security context
example: system_properties ro.debuggable 1
## compile
In the root directory, use ndk-build.bat(Windows) or ndk-build.sh(Linux)## timeline
2017.10.15 first commit
2017.12.14 support for android O
2018.08.03 1. support for android P
2. add security context(selabel) to print
2019.09.25 support for android Q
2020.07.13 1. support for android R
2. support long property name and property value
2021.06.26 use file(/dev/__properties__/property_info) to get security contexts