Because eclipse blows at everything except editing Java.
Create a script deploy.sh
in your source directory like so:
adb uninstall info.guardianproject.gpg
adb install bin/GnuPrivacyGuard-debug.apk
import gpgme | |
# Loop through all keys in the default keyring | |
# Print the key id, the first uid, and all subkeys | |
# open context, defaults to ~/.gnupg afaik | |
ctx = gpgme.Context() | |
for key in ctx.keylist(): | |
# looks like subkeys[0] is the master key |
#!/usr/bin/python -O | |
# Kill a running Android JDWP (debuggable) process without Eclipse. | |
import sys | |
import socket | |
import struct | |
import uuid | |
import random | |
import subprocess |
This is a local copy of the commands from:
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
... | |
FileOutputStream os = null; | |
java.io.FileInputStream is = null; | |
try { | |
os = new FileOutputStream("/test_file"); | |
is = new java.io.FileInputStream(this.getContentResolver().openInputStream(uri)); | |
FileChannel sourceFileChannel = is.getChannel(); |
# tlsdate installed with --prefix=$HOME/bin/ins | |
$ tlsdate -V -v -n -C ~/bin/ins/etc/tlsdate/ca-roots/ | |
V: tlsdate version 0.0.4 | |
V: We were called with the following arguments: | |
V: validate SSL certificates host = www.ptb.de:443 | |
V: time is currently 1353011888.627536628 | |
V: time is greater than RECENT_COMPILE_DATE | |
V: using TLSv1_client_method() | |
V: opening socket to www.ptb.de:443 |
#/bin/sh | |
######## | |
# Attach pci device to vm | |
# | |
# usage: pci-attach <domain> <pci-device> | |
# | |
# Will attempt to partially match device names, e.g., "1a" -> "0000:00:1a.0" | |
# | |
domain=$1 |
/** | |
* As per https://code.google.com/p/android/issues/detail?id=39801 | |
* on Android 4.2 (+ ?) we need to pass the serial number to "am start" | |
* in order for the uid not to get lost. | |
* in your 'am start' line pass --user SERIAL_NUM | |
*/ | |
private static String getSerialNumber() { | |
/* We really want to use this code, but it requires bumping up the SDK to 17 so for now | |
we will use reflection. See https://bugzilla.mozilla.org/show_bug.cgi?id=811763#c11 |
make[2]: Entering directory `/home/user/src/tlsdate-android/external/tlsdate' | |
CC src/compat/src_compat_libtlsdate_compat_la-clock-linux.lo | |
CCLD src/compat/libtlsdate_compat.la | |
CC src/src_tlsdate_routeup-routeup.o | |
CC src/src_tlsdate_routeup-util.o | |
CCLD src/tlsdate-routeup | |
CC src/src_tlsdate-tlsdate.o | |
CCLD src/tlsdate | |
CC src/src_tlsdate_helper-tlsdate-helper.o | |
CC src/src_tlsdate_helper-util.o |