Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d08c5ae authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MTP: Use ro.product.manufacturer system property value for MTP manufacturer name



Previously it was hard coded to "Google, Inc."

BUG: 3405965

Change-Id: I5f962d474814c22e990c39b501c0f01da9e8dc6d
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 1331f07d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -343,8 +343,9 @@ MtpResponseCode MtpServer::doGetDeviceInfo() {
    mData.putAUInt16(deviceProperties); // Device Properties Supported
    mData.putAUInt16(captureFormats); // Capture Formats
    mData.putAUInt16(playbackFormats);  // Playback Formats
    // FIXME
    string.set("Google, Inc.");

    property_get("ro.product.manufacturer", prop_value, "unknown manufacturer");
    string.set(prop_value);
    mData.putString(string);   // Manufacturer

    property_get("ro.product.model", prop_value, "MTP Device");