Author xdegaye
Recipients vstinner, xdegaye, yan12125
Date 2016-11-19.13:13:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
__system_property_get() is not a public API, see Android bug report [1].

In this stackoverflow question, an Android developer confirms this point and suggests to use the file /system/build.prop instead, noting however that "build.prop isn't guaranteed to be stable (or even present)".

This interesting document [3] describes the Android properties management design.

I think we must use the reliable build time Android API level and implement sys.getandroidapilevel() (Victor patch) for knowing, in the standard library, whether we are running on an Android platform, and provide a best effort platform.android_ver() for the Android run time version. Things are changing very fast with the Android project and the OEM may add their own changes too.

Date User Action Args
2016-11-19 13:13:36xdegayesetrecipients: + xdegaye, vstinner, yan12125
2016-11-19 13:13:36xdegayesetmessageid: <>
2016-11-19 13:13:36xdegayelinkissue28740 messages
2016-11-19 13:13:36xdegayecreate