Skip to content

Instantly share code, notes, and snippets.

View n8fr8's full-sized avatar

Nathan Freitas n8fr8

View GitHub Profile
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): Writing exception to parcel
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): java.lang.UnsupportedOperationException: Only CrossProcessCursor cursors are supported across process for now
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at android.database.CursorToBulkCursorAdaptor.<init>(CursorToBulkCursorAdaptor.java:97)
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at android.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:155)
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:111)
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at android.os.Binder.execTransact(Binder.java:288)
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at dalvik.system.NativeStart.run(Native Method)
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): Caused by: java.lang.ClassCastException: android.database.CursorWindow
10-11 19:33:25.770: ERROR/DatabaseUtils(11866): at info
@n8fr8
n8fr8 / gist:2578592
Created May 2, 2012 17:41
build script for Orbot
# begin by defining NDK_ROOT
if test -z $NDK_ROOT; then echo "NDK_ROOT is not exported, do so by something close to this: export NDK_ROOT=/path/to/android-ndk-r5"; exit; fi
#Build openssl using default ndk-build
echo "BUILD OPENSSL"
cd native
git clone [email protected]:guardianproject/openssl-android.git
cd openssl-android
ndk-build
cp libs/armeabi/* ../lib
@n8fr8
n8fr8 / gist:2582505
Created May 3, 2012 01:57
current Orbot from scratch via NDK and SDK (no ANdroid OS build needed!)
# begin by defining NDK_ROOT
if test -z $NDK_ROOT; then echo "NDK_ROOT is not exported, do so by something close to this: export NDK_ROOT=/path/to/android-ndk-r5"; exit; fi
mkdir native
#Build openssl using default ndk-build
echo "BUILD OPENSSL"
cd native
git clone git://github.com/guardianproject/android-external-openssl-ndk-static.git
cd android-external-openssl-ndk-static
09-20 20:17:41.005: D/StoryMaker(11515): ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
09-20 20:17:41.005: D/StoryMaker(11515): built on Jul 11 2012 21:33:05 with gcc 4.4.3
09-20 20:17:41.005: D/StoryMaker(11515): configuration: --enable-cross-compile --arch=arm --enable-hwaccels --target-os=linux --prefix=/data/data/org.witness.sscvideoproto --enable-pic --disable-shared --enable-static --cross-prefix=/home/n8fr8/dev/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- --sysroot=/home/n8fr8/dev/android/ndk/platforms/android-3/arch-arm --enable-version3 --enable-gpl --enable-memalign-hack --disable-yasm --disable-doc --enable-decoder=mjpeg --enable-decoder=rawvideo --enable-encoder=libx264 --enable-encoder=libfaac --enable-decoder=h263 --enable-decoder=mpeg4 --enable-decoder=h264 --enable-parser=h264 --enable-muxer=mp4 --enable-demuxer=image2 --enable-demuxer=mjpeg --enable-demuxer=mp4 --enable-demuxer=mov --enable-demuxer=h264 --enable-parse
@n8fr8
n8fr8 / gist:6481483
Created September 8, 2013 02:59
Trying to come up with the best set of TLS ciphers, in the right order.
public final static String[] SSL_IDEAL_CIPHER_SUITES = {
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
"TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA",
"TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA",
"TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
@n8fr8
n8fr8 / keybase.md
Created September 25, 2014 17:08
keybase.md

Keybase proof

I hereby claim:

  • I am n8fr8 on github.
  • I am n8fr8 (https://keybase.io/n8fr8) on keybase.
  • I have a public key whose fingerprint is BBE2 0FD6 DA48 A3DD 4CC7 DF41 A801 183E 69B3 7AA9

To claim this, I am signing this object:

I/GeckoApp( 7527): Creating HealthRecorder.
D/GeckoApp( 7527): OS locale is en_US, app locale is null
D/GeckoHealthRec( 7527): Initializing. Dispatcher is org.mozilla.gecko.EventDispatcher@426dde48
D/GeckoHardwareUtils( 7527): System memory: 851MB.
D/GeckoHealthRec( 7527): Initializing profile cache.
D/GeckoHealthRec( 7527): Looking for /data/data/org.mozilla.fennec_amoghbl1/files/mozilla/mo6h38tf.default/times.json
D/GeckoHealthRec( 7527): Using times.json for profile creation time.
D/GeckoHealthRec( 7527): Incorporating environment: times.json profile creation = 1431971472678
D/GeckoSessInfo( 7527): Recording start of session: 1431971560292
I/GeckoDistribution( 7527): Getting file from distribution.
@n8fr8
n8fr8 / gist:fcdb35904600c40ce870
Created May 18, 2015 17:58
orfox native code crash
D/dalvikvm(10162): Trying to load lib libnativehelper.so 0x0^M
D/dalvikvm(10162): Added shared lib libnativehelper.so 0x0^M
D/dalvikvm(10162): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init^M
D/dalvikvm(10164): Trying to load lib libjavacore.so 0x0^M
D/dalvikvm(10164): Added shared lib libjavacore.so 0x0^M
D/dalvikvm(10164): Trying to load lib libnativehelper.so 0x0^M
D/dalvikvm(10164): Added shared lib libnativehelper.so 0x0^M
D/dalvikvm(10164): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init^M
D/dalvikvm(10162): Note: class Landroid/app/ActivityManagerNative; has 181 unimplemented (abstract) methods^M
I/DEBUG ( 271): r0 00000000 r1 00000000 r2 00000200 r3 00000000^M
W/GeckoLinker(13240): /data/app/org.mozilla.fennec_amoghbl1-2.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x01ca8fcc for symbol "__cxa_type_match"
D/GeckoSessInfo(13240): Recording start of session: 1432955779650
D/StrictMode(13240): StrictMode policy violation; ~duration=43 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
D/StrictMode(13240): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1135)
D/StrictMode(13240): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:106)
D/StrictMode(13240): at libcore.io.IoBridge.open(IoBridge.java:393)
D/StrictMode(13240): at java.io.FileInputStream.<init>(FileInputStream.java:78)
D/StrictMode(13240): at java.io.FileInputStream.<init>(FileInputStream.java:105)
D/StrictMode(13240): at org.mozilla.gecko.SysInfo.getMemSize(SysInfo.java:148)
D/StrictMode(13240): at org.mozilla.gecko.util.HardwareUtils.getMemSize(HardwareUtils.java:97)
--------- beginning of /dev/log/system
I/PackageManager( 1009): Adding preferred activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.SmsSendtoActivity} for user 0 :
I/ActivityManager( 1009): Start proc com.google.android.talk for broadcast com.google.android.talk/com.google.android.apps.hangouts.phone.PackageReplacedReceiver: pid=4696 uid=10068 gids={50068, 3003, 1028, 1015, 3002}
I/PackageManager( 1009): Adding preferred activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.SmsSendtoActivity} for user 0 :
I/ActivityManager( 1009): Process com.google.android.gm (pid 4452) has died.
I/PackageManager( 1009): Adding preferred activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.SmsSendtoActivity} for user 0 :
I/PackageManager( 1009): Adding preferred activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.SmsSendtoActivity} for user 0 :
I/PackageManager( 1009): Adding preferred activity ComponentInfo{org.thoughtcrime.sec