[lib res] Align download logic with app.