mirror of https://github.com/M66B/NetGuard.git
Added notes
This commit is contained in:
parent
8dade510a6
commit
931dd8006d
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue