Added notes

This commit is contained in:
M66B 2016-01-31 19:50:52 +01:00
parent 8dade510a6
commit 931dd8006d
3 changed files with 9 additions and 0 deletions

View File

@ -299,6 +299,8 @@ public class ActivityLog extends AppCompatActivity implements SharedPreferences.
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
// https://gist.github.com/granoeste/5574148
File pcap_file = new File(getCacheDir(), "netguard.pcap");
boolean resolve = prefs.getBoolean("resolve", false);

View File

@ -192,6 +192,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
});
// Handle hosts import
// https://github.com/Free-Software-for-Android/AdAway/wiki/HostsSources
Preference pref_hosts = screen.findPreference("hosts");
Preference pref_block_domains = screen.findPreference("use_hosts");
pref_block_domains.setEnabled(new File(getFilesDir(), "hosts.txt").exists());

View File

@ -2786,6 +2786,12 @@ jobject create_packet(const struct arguments *args,
gettimeofday(&start, NULL);
#endif
/*
jbyte b[] = {1,2,3};
jbyteArray ret = env->NewByteArray(3);
env->SetByteArrayRegion (ret, 0, 3, b);
*/
const char *packet = "eu/faircode/netguard/Packet";
if (midInitPacket == NULL)
midInitPacket = jniGetMethodID(env, clsPacket, "<init>", "()V");