A search-based approach for dynamically re-packaging downloadable applications