Commit 97da7f96 authored by LoveSy's avatar LoveSy Committed by John Wu

Do not trust format of 3rd party json

parent 2752083d
package com.topjohnwu.magisk.core.model.module package com.topjohnwu.magisk.core.model.module
import com.squareup.moshi.JsonDataException
import com.topjohnwu.magisk.core.Const import com.topjohnwu.magisk.core.Const
import com.topjohnwu.magisk.di.ServiceLocator import com.topjohnwu.magisk.di.ServiceLocator
import com.topjohnwu.superuser.Shell import com.topjohnwu.superuser.Shell
...@@ -121,6 +122,8 @@ data class LocalModule( ...@@ -121,6 +122,8 @@ data class LocalModule(
} }
} catch (e: IOException) { } catch (e: IOException) {
Timber.w(e) Timber.w(e)
} catch (e: JsonDataException) {
Timber.w(e)
} }
return false return false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment