title: Access ro.serialno from native in Android 8?
body: <p>I need some help. I have an app that is mostly written in native C code. I use the <code>__system_property_get(const char * name, char * value)</code> method to read the serial nr. of the device at various points in my native code. With Android 8 I always get a "Access denied" message now.<br>
  <strong>libc: Access denied finding property "ro.serialno"</strong><br>
  Is there a way for me to still be able to read the serial nr. in Android 8? I tried switching to targetSDKversion &lt; 26 but it still gives me a "Access denied" message. I do get the correct values if I use Java with <code>Build.SERIAL</code> (regardless of SDK version) and <code>Build.getSerial()</code> in SDK version 26 if I grant the <code>READ_PHONE_STATE</code> permission. But I cannot read these values in Java and pass them to the native code without a huge rewrite of the native code.</p>
  
  <p>Any help?</p>