How can We set and get System propertiesi in Android Q

You can’t, and you shouldn’t viewing the source code in here https://android.googlesource.com/platform/frameworks/base/+/eclair-release/core/java/android/os/SystemProperties.java

SystemProperties is annotated with @hide that means it’s not in the official API

only one way to that is by reflection or by getting the source, removing @hide and making your own customized SDK.

However, you can use double reflection https://www.xda-developers.com/android-development-bypass-hidden-api-restrictions/

Leave a Comment