Do not trust format of 3rd party json

This commit is contained in:
LoveSy 2022-01-20 01:31:05 +08:00 committed by John Wu
parent 2752083d29
commit 97da7f9691

View File

@ -1,5 +1,6 @@
package com.topjohnwu.magisk.core.model.module
import com.squareup.moshi.JsonDataException
import com.topjohnwu.magisk.core.Const
import com.topjohnwu.magisk.di.ServiceLocator
import com.topjohnwu.superuser.Shell
@ -121,6 +122,8 @@ data class LocalModule(
}
} catch (e: IOException) {
Timber.w(e)
} catch (e: JsonDataException) {
Timber.w(e)
}
return false
}