Refinements
This commit is contained in:
@@ -56,3 +56,7 @@ Without root, you can only:
|
|||||||
tethering/bypassing tethering limits: (note: these apps are neither free nor open source)
|
tethering/bypassing tethering limits: (note: these apps are neither free nor open source)
|
||||||
* [PdaNet+](https://play.google.com/store/apps/details?id=com.pdanet)
|
* [PdaNet+](https://play.google.com/store/apps/details?id=com.pdanet)
|
||||||
* [NetShare-no-root-tethering](https://play.google.com/store/apps/details?id=kha.prog.mikrotik)
|
* [NetShare-no-root-tethering](https://play.google.com/store/apps/details?id=kha.prog.mikrotik)
|
||||||
|
|
||||||
|
### Misc
|
||||||
|
|
||||||
|
This app doesn't require Busybox, but if you have installed it, please make sure it's v1.28.1 or higher.
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ class RepeaterService : Service(), WifiP2pManager.ChannelListener, SharedPrefere
|
|||||||
p2pManager = getSystemService()!!
|
p2pManager = getSystemService()!!
|
||||||
onChannelDisconnected()
|
onChannelDisconnected()
|
||||||
app.pref.registerOnSharedPreferenceChangeListener(this)
|
app.pref.registerOnSharedPreferenceChangeListener(this)
|
||||||
} catch (exc: KotlinNullPointerException) {
|
} catch (exc: RuntimeException) {
|
||||||
exc.printStackTrace()
|
exc.printStackTrace()
|
||||||
Crashlytics.logException(exc)
|
Crashlytics.logException(exc)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import java.io.InputStream
|
|||||||
private const val NOISYSU_TAG = "NoisySU"
|
private const val NOISYSU_TAG = "NoisySU"
|
||||||
private const val NOISYSU_SUFFIX = "SUCCESS\n"
|
private const val NOISYSU_SUFFIX = "SUCCESS\n"
|
||||||
|
|
||||||
private class SuFailure : RuntimeException()
|
private class SuFailure(msg: String?) : RuntimeException(msg)
|
||||||
|
|
||||||
fun loggerSuStream(command: String): InputStream? {
|
fun loggerSuStream(command: String): InputStream? {
|
||||||
val process = try {
|
val process = try {
|
||||||
@@ -44,7 +44,7 @@ echo $NOISYSU_SUFFIX""")
|
|||||||
out = out?.removeSuffix(NOISYSU_SUFFIX)
|
out = out?.removeSuffix(NOISYSU_SUFFIX)
|
||||||
if (!out.isNullOrBlank()) {
|
if (!out.isNullOrBlank()) {
|
||||||
Crashlytics.log(Log.INFO, NOISYSU_TAG, out)
|
Crashlytics.log(Log.INFO, NOISYSU_TAG, out)
|
||||||
if (report) Crashlytics.logException(SuFailure())
|
if (report) Crashlytics.logException(SuFailure(out))
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user