Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidUniqueID doesn't use Android ID #107

Closed
kived opened this issue Jan 21, 2015 · 0 comments
Closed

AndroidUniqueID doesn't use Android ID #107

kived opened this issue Jan 21, 2015 · 0 comments

Comments

@kived
Copy link
Contributor

kived commented Jan 21, 2015

The implementation returns the IMEI and therefore only works on phones, not tablets. Android provides an Android ID via Secure Settings which works for all devices and does not require any extra permissions (the current implementation requires READ_PHONE_STATE).

Example:

PythonActivity = autoclass('org.renpy.android.PythonActivity')
Secure = autoclass('android.provider.Settings$Secure')
android_id = Secure.getString(PythonActivity.mActivity.getContentResolver(),
                              Secure.ANDROID_ID)
@dessant dessant closed this as completed in f5fd2cd May 9, 2015
dessant added a commit that referenced this issue May 9, 2015
fix #107 - Use Android_ID instead of IMEI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant