summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/firewall
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2020-03-07 01:04:19 +0100
committercyBerta <cyberta@riseup.net>2020-03-07 01:04:19 +0100
commit649635bc8f8178aba36f07b59ada813f55dc34a0 (patch)
tree45c5bff6f52b8aaff87d2cfc98f151d176bdefff /app/src/main/java/se/leap/bitmaskclient/firewall
parent2a8d82d85f4cfd34143d87174ee022966e364f69 (diff)
fix bluetooth tethering
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/firewall')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/firewall/SetupTetheringTask.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/firewall/SetupTetheringTask.java b/app/src/main/java/se/leap/bitmaskclient/firewall/SetupTetheringTask.java
index 6ce8ee61..edf79add 100644
--- a/app/src/main/java/se/leap/bitmaskclient/firewall/SetupTetheringTask.java
+++ b/app/src/main/java/se/leap/bitmaskclient/firewall/SetupTetheringTask.java
@@ -147,18 +147,19 @@ public class SetupTetheringTask extends AsyncTask<Void, Boolean, Boolean> {
return runBlockingCmd(addRules, log) == 0;
}
- private boolean removeBluetoothTetheringRules(TetheringState state, StringBuilder log) throws Exception {
+ private boolean addBluetoothTetheringRules(TetheringState state, StringBuilder log) throws Exception {
Log.d(TAG, "add bluetooth tethering rules");
String[] addRules = getAdditionRules(state.bluetoothAddress, state.bluetoothInterface);
return runBlockingCmd(addRules, log) == 0;
}
- private boolean addBluetoothTetheringRules(TetheringState state, StringBuilder log) throws Exception {
+ private boolean removeBluetoothTetheringRules(TetheringState state, StringBuilder log) throws Exception {
Log.d(TAG, "remove bluetooth tethering rules");
String[] addRules = getDeletionRules(state, state.lastSeenBluetoothAddress, state.lastSeenBluetoothInterface);
return runBlockingCmd(addRules, log) == 0;
}
+
private String[] getAdditionRules(String addressRange, String interfaceName) {
return new String[] {
"su",