Android 5.1.1 release 17
    Can not continue to download after powering on the phone

    1. Launch chrome and open www.baidu.com -> Choose "software"
    in the site navigation -> Tap "games" option, choose one apk
    to download -> During downloading, power off the phone -> Power
    on the phone and check, it can't continue to download apk.

    The fix is to add one condition for retrying to download when
    IO exception happens (i.e. Failed to open for writing:
    java.io.FileNotFoundException).

    Bug 18834618

    Review: https://partner-android-review.git.corp.google.com/#/c/193436

    Signed-off-by: Benson Huang <benson.huang@mediatek.com>

Change-Id: I2f975ff7ffedfc4136fb250dcb5ef8fdca4a367d
1 file changed