Skip to content

Commit

Permalink
[aboutsettings] Add source for serial number. Fixes JB#38513
Browse files Browse the repository at this point in the history
Add /sys/class/android_usb/android0/iSerial as a source for serial
number information. usb-moded sets up this information so it should be
always available.
  • Loading branch information
Tomin1 committed Mar 16, 2021
1 parent ce095f8 commit 96b6ae0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aboutsettings.cpp
Expand Up @@ -232,6 +232,8 @@ QString AboutSettings::serial() const
// node or something for it. The means how the serialnumber ends to
// this file are device specific.
<< "/run/config/serial"
// usb-moded sets up the serial number here.
<< "/sys/class/android_usb/android0/iSerial"
// Some devices have serialno in this path.
<< "/sys/firmware/devicetree/base/firmware/android/serialno";

Expand Down

0 comments on commit 96b6ae0

Please sign in to comment.