• xiaochao's avatar
    MediaProvider: When insert files to "internal.db", · 07ac056d
    xiaochao authored
    
    Don't notify MTP.
    
    Steps to Reproduce:
    1. Connect DUT to Win7 PC via USB cable.
    2. Do Factory reset, don't unplug the USB cable during the reset.
           ->DUT will reboot automatically after factory reset.
    3. After DUT enters the system, transfer some files to the DUT by MTP or
    take some photos by Camera.
    
    Expected Results:
    Read DUT files normally on Win7 PC.
    
    Actual Results:
    The files transferred by MTP are named as "Local Disk" on the PC.
    And the photos token by Camera can not be showed.
    
    After file is inserted into "internal.db", don't notify MTP. If notify,
    PC will get no data from DUT because MtpServer will only query
    file's info from "external.db" and after PC gets no data so many
    times, it won't send "GetObjectPropList" request to DUT, that will
    cause "Local Disk" showed on the PC side.
    
    Change-Id: I6cb364158dbda8b267bdfbf6663d0682f7d4d6cb
    Signed-off-by: default avatarxiaochao <xiaochao.huang@intel.com>
    Signed-off-by: default avatarBo Huang <bo.b.huang@intel.com>
    07ac056d
MediaProvider.java 256 KB