Download snet package without legacy impl

This commit is contained in:
topjohnwu
2019-06-08 01:39:22 -07:00
parent 4b30b224b5
commit 1ee75b6aa6
3 changed files with 16 additions and 9 deletions
@@ -37,9 +37,7 @@ class MagiskRepository(
.flatMap { apiRaw.fetchFile(it.uninstaller.link) }
.map { it.writeToFile(context, FILE_UNINSTALLER_ZIP) }
fun fetchSafetynet() = apiRaw
.fetchSafetynet()
.map { it.writeToFile(context, FILE_SAFETY_NET_APK) }
fun fetchSafetynet() = apiRaw.fetchSafetynet()
fun fetchBootctl() = apiRaw
.fetchBootctl()