Giter Site home page Giter Site logo

vieux / openudid Goto Github PK

View Code? Open in Web Editor NEW
246.0 15.0 80.0 121 KB

[OpenUDID IS NOW DEPRECATED] Open source initiative for a universal and persistent UDID solution for Android.

Home Page: http://OpenUDID.com

License: BSD 2-Clause "Simplified" License

Java 100.00%

openudid's Issues

Security Exception on new Galaxy Devices

OpenUDID throws a security exception when it attempts to bind to services on the Galaxy S4. You can read about it at Countly/countly-sdk-android#9. This is obviously due to a Samsung app responding to the intent, but having a custom permission set on it. I have posted a simple fix on the above referenced page, and I am copying it here. I believe it should be incorporated into OpenUDID ASAP.

Edit OpenUUID_manager.java file
Replace the following lines in the startService function

mContext.bindService(i, this, Context.BIND_AUTO_CREATE);
mMatchingIntents.remove(0);

with

mMatchingIntents.remove(0);
try { // try added by Lionscribe
mContext.bindService(i, this, Context.BIND_AUTO_CREATE);
}
catch (SecurityException e) {
startService(); // ignore this one, and start next one
}

other app make the whole service process fail

Some apps that are trying to use OpenUDID_manager implented it in a wrong way.

For instance, the application packaged as net.p4p.chestthrows a java.lang.ClassNotFoundException: Didn't find class "org.OpenUDID.OpenUDID_service"

This cause the following code in startService() to fail, unable to continue with other available services, and to get a valid UDID:

try { // try added by Lionscribe
    mContext.bindService(i, this, Context.BIND_AUTO_CREATE);
} catch (SecurityException e) {
     startService(); // ignore this one, and start next one
}

I tried to add Exception and Error catch, with no success.
Any clue on how to avoid such cases ?

generateOpenUDID() Issue generating Same UDID on WiFi

Method

private void generateOpenUDID()

seems to generate UDIDs like

WIFIMAC:10:A5:D0:FD:F3:37 
WIFIMAC:40:0E:85:2C:DD:F4 
WIFIMAC:D4:20:6D:40:22:33

for all the users of these 3 WiFi networks for certain phone models like

 manufacturer/HTC brand/tmous model/HTC Sensation 4G
 manufacturer/samsung brand/samsung model/SGH-M919

So, this brings UDIDs to overlap in the same WiFi area.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.