开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜