mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix decryption addon status reporting with root
This commit is contained in:
parent
e687380850
commit
cff4639bd6
@ -352,7 +352,10 @@ public class StatusFragment extends Fragment implements AppStateListener, MenuPr
|
||||
mQuickSettings.setVisibility(View.GONE);
|
||||
CaptureService service = CaptureService.requireInstance();
|
||||
|
||||
if(CaptureService.isCapturingAsRoot()) {
|
||||
if(CaptureService.isDecryptingTLS()) {
|
||||
refreshDecryptionStatus();
|
||||
mInterfaceInfo.setVisibility(View.VISIBLE);
|
||||
} else if(CaptureService.isCapturingAsRoot()) {
|
||||
String capiface = service.getCaptureInterface();
|
||||
|
||||
if(capiface.equals("@inet"))
|
||||
@ -362,9 +365,6 @@ public class StatusFragment extends Fragment implements AppStateListener, MenuPr
|
||||
|
||||
mInterfaceInfo.setText(String.format(getResources().getString(R.string.capturing_from), capiface));
|
||||
mInterfaceInfo.setVisibility(View.VISIBLE);
|
||||
} else if(CaptureService.isDecryptingTLS()) {
|
||||
refreshDecryptionStatus();
|
||||
mInterfaceInfo.setVisibility(View.VISIBLE);
|
||||
} else if(service.getSocks5Enabled() == 1) {
|
||||
mInterfaceInfo.setText(String.format(getResources().getString(R.string.socks5_info),
|
||||
service.getSocks5ProxyAddress(), service.getSocks5ProxyPort()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user