Skip to content

Commit

Permalink
Remove uid hack used with n950-n9/n900.
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
  • Loading branch information
Marko Saukko authored and Bernd Wachter committed Mar 19, 2013
1 parent ff7b0b9 commit e066760
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libssu/ssu.cpp
Expand Up @@ -248,15 +248,9 @@ QString Ssu::deviceUid(){
QSystemDeviceInfo devInfo;

IMEI = devInfo.imei();

// this might not be completely unique (or might change on reflash), but works for now
if (IMEI == ""){
if (deviceFamily() == "n950-n9" || deviceFamily() == "n900"){
bool ok;
QString IMEIenv = getenv("imei");
IMEIenv.toLongLong(&ok, 10);
if (ok && (IMEIenv.length() == 16 || IMEIenv.length() == 15))
IMEI = IMEIenv;
} else
IMEI = devInfo.uniqueDeviceID();
}

Expand Down

0 comments on commit e066760

Please sign in to comment.