How to read Settings.Secure from the NDK
I need to get access to the ANDROID_ID in Settings.Secure and it has to be from the NDK. I know there is a 开发者_如何学编程database which apps might have access to, but that's really messy. Is there anything comparable to the Secure.getString(resolver, name) method?
Thanks.
Is there anything comparable to the Secure.getString(resolver, name) method?
Not that I am aware of. Simply have the Java code pass in the value when it calls into your JNI code. Also, bear in mind that ANDROID_ID
may not be useful.
精彩评论