Skip to content

Commit

Permalink
Don't bother logging security exception getting the device serial number
Browse files Browse the repository at this point in the history
This can happen anytime we haven't opened the device yet
  • Loading branch information
slouken committed May 29, 2020
1 parent eea450b commit 68e1731
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -57,8 +57,7 @@ public String getSerialNumber() {
result = mDevice.getSerialNumber();
}
catch (SecurityException exception) {
Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
result = "";
//Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
}
}
if (result == null) {
Expand Down

0 comments on commit 68e1731

Please sign in to comment.