how to change device id (android id) programmatically -


i'm looking way change device id (android id) programmatically in eclipce. tried way did'nt work.

secure.putstring(getcontentresolver(),secure.android_id,"new id"); 

what can do?

you can build own custom rom , have app signed same signing key signed custom rom's firmware. or, can root device , install app system app. then, can have <uses-permission> element write_secure_settings, , can see whether code work.

otherwise, cannot modify values. quoting the documentation settings.secure:

secure system settings, containing system preferences applications can read not allowed write. these preferences user must explicitly modify through system ui or specialized apis values, not modified directly applications.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -