开发者

How to read Settings.Secure from the NDK

开发者 https://www.devze.com 2023-04-01 08:54 出处:网络
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

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

精彩评论

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