mirror of
https://github.com/QM4RS/FridaBox.git
synced 2026-10-21 07:12:22 +02:00
feat: Add log sending functionality with device information and logcat capture, including a new utility and UI integration, and update the application version.
This commit is contained in:
@@ -36,6 +36,8 @@ class SettingFragment : PreferenceFragmentCompat() {
|
||||
vpnPreference.setDefaultValue(mUseVpnNetwork)
|
||||
vpnPreference
|
||||
}
|
||||
|
||||
initSendLogs()
|
||||
}
|
||||
|
||||
private fun initGms() {
|
||||
@@ -74,4 +76,12 @@ class SettingFragment : PreferenceFragmentCompat() {
|
||||
return@setOnPreferenceChangeListener true
|
||||
}
|
||||
}
|
||||
private fun initSendLogs() {
|
||||
val sendLogsPreference: Preference? = findPreference("send_logs")
|
||||
sendLogsPreference?.setOnPreferenceClickListener {
|
||||
BlackBoxCore.get().sendLogs("Manual Log Upload from Settings", true)
|
||||
toast("Sending logs... (Check notifications for status)")
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user