added c++11 fixes

removed old components
disabled activity (for compiling reasons)
added wifi 2.4ghz hack
This commit is contained in:
k-a-z-u
2018-07-11 13:23:18 +02:00
parent b0712ec005
commit bb974d3871
18 changed files with 107 additions and 80 deletions

View File

@@ -11,6 +11,7 @@ import android.os.Debug;
import android.util.Log;
import java.util.List;
import java.io.ByteArrayOutputStream;
import java.lang.reflect.Method;
public class WiFi {
@@ -51,7 +52,19 @@ public class WiFi {
// start the first scan
triggerOneScan();
//this is a very nice hack. do not try this at home.
Method m = null;
try {
m = manager.getClass().getDeclaredMethod("setFrequencyBand", int.class, boolean.class);
m.setAccessible(true);
m.invoke(manager, 2, true);
m.invoke(manager, 2, true);
m.invoke(manager, 2, true);
Log.d("wifi", "HACK IS RUNNING, BIAAAATCH");
} catch (Exception e) {
Log.d("wifi", "HACK HAS FAILED >.<");
e.printStackTrace();
}
// if the scan result takes longer than X milliseconds,
// trigger another-scan to ensure nothing is stuck