• This repository has been archived on 25/Jan/2018
  • Stars
    star
    228
  • Rank 175,267 (Top 4 %)
  • Language
    Java
  • License
    GNU General Publi...
  • Created over 13 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UNMAINTAINED please adopt! we can no longer maintain this

UNMAINTAINED we no longer have the time to maintain this app, but would love to see someone take it over and continue developing it!

Lil' Debi

This is an app to setup and manage a Debian install in parallel on an Android phone. It can build a Debian install from scratch or use an existing image. It manages the starting and stopping of the Debian install.

It uses cdebootstrap to build up the disk image as a chroot, and then provides start and stop methods for handling mounting, fsck, starting/stopping sshd, etc.

It is 100% free software. Ultimately, our aim is to have the whole process for every bit of this app documented so that it can be freely inspected, modified, ported, etc. We want this app to build a trusted Debian install on the phone, so free software is the only way to get there. This is currently functional alpha software, so do not rely on it to produce a trusted Debian install. Please do try it out, use it, and report criticisms, bugs, improvements, etc.

Installing Debian

The process of installing Debian with Lil' Debi is self-explanatory, just run the app and click the Install... button. But it doesn't yet work on all phones. If the install process fails on your phone, you can still use Lil' Debi by downloading a pre-built Debian image. It should work with any Debian/Ubuntu/Mint armel image file. Here is a Debian image file that was built by Lil' Debi:

https://github.com/guardianproject/lildebi/downloads

Download the file, uncompress it and rename it 'debian.img' and copy it to your SD Card. Launch Lil' Debi, and you should now see the button says "Start Debian". Click the button to start your new Debian install.

Build Setup

On Debian/Ubuntu/Mint/etc.:

sudo apt-get install autoconf automake libtool transfig wget patch \
     texinfo ant make openjdk-7-jdk faketime

On Mac OS X, you will need Fink, MacPorts, or Brew to install some of these dependencies. For example, GNU tar is required, OS X's tar will not work. Also, faketime is needed to make repeatable builds of busybox.

Both the Android SDK and the Android NDK are needed:

SDK: http://developer.android.com/sdk/ NDK: http://developer.android.com/sdk/ndk/

Building

Building Lil' Debi is a multi-step process including clone the sources, getting busybox code as a submodule, building the native utilities, and then finally building the Android app. Here are all those steps in a form to run in the terminal:

  git clone https://github.com/guardianproject/lildebi
  cd lildebi
  git submodule init
  git submodule update
  make NDK_BASE=/path/to/your/android-ndk -C external assets
  ./setup-ant
  ant debug

Once that has completed, you can install it however you would normally install an .apk file. You will find the .apk in the bin/ folder. An easy way to install it via the terminal is to run:

  adb install bin/LilDebi-debug.apk

Deterministic Release

Having a deterministic, repeatable build process that produces the exact same APK wherever it is run has a lot of benefits:

  • makes it easy for anyone to verify that the official APKs are indeed generated only from the sources in git

  • makes it possible for FDroid to distribute APKs with the upstream developer's signature instead of the FDroid's signature

To increase the likelyhood of producing a deterministic build of LilDebi, run the java build with faketime. The rest is already included in the Makefiles. This is also included in the ./make-release-build.sh script. Running a program with faketime causes that program to recent a fixed time based on the timestamp provided to faketime. This ensures that the timestamps in the files are always the same.

  faketime "`git log -n1 --format=format:%ai`" \
  ant clean debug

The actual process that is used for making the release builds is the included ./make-release-build script. To reproduce the official releases, run this script. But be aware, it will delete all changes in the git repo that it is run in, so it is probably best to run it in a clean clone. Then you can compare your release build to the official release using the included ./compare-to-official-release script. It requires a few utilities to work. All of them are Debian/Ubuntu packages except for apktool. Here's what to install:

  apt-get install unzip meld bsdmainutils

Or on OSX with brew:

  brew install apktool unzip

If you want to reproduce a build and the cdebootstrap-static package is no longer available, you can download it from snapshot.debian.org. For example:

NDK build options

The following options can be set from the make command line to tailor the NDK build to your setup:

  • NDK_BASE (/path/to/your/android-ndk)
  • NDK_PLATFORM_LEVEL (7-17 as in android-17)
  • NDK_ABI (arm, mips, x86)
  • NDK_COMPILER_VERSION (4.4.3, 4.6, 4.7, clang3.1, clang3.2)
  • HOST (arm-linux-androideabi, mipsel-linux-android, x86)

Original Sources

cdebootstrap

http://packages.debian.org/unstable/cdebootstrap

cdebootstrap is downloaded directly from Debian, extracted, and then tar'ed into the included tarball assets/cdebootstrap.tar. See external/cdebootstrap/Makefile for details.

busybox

git://busybox.net/busybox.git

busybox is included as a git submodule and built from source by externals/Makefile using a custom config file.

gpgv

git://git.gnupg.org/gnupg.git

Only gpgv is needed, so it is built from GnuPG v1.4.x. It is built statically to get around PIE vs non-PIE. If an executable is built fully statically, with no dynamic linking at all, then the same binary will work on both PIE systems (android-21 and above), and systems where PIE does not work (older than android-16).

More Repositories

1

haven

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
Java
6,626
star
2

orbot

The Github home of Orbot: Tor on Android (Also available on gitlab!)
Java
2,121
star
3

ChatSecureAndroid

This project has ended, but ChatSecure iOS continues. For Android, please use Conversations or Zom instead
Java
1,074
star
4

android-ffmpeg

a system for building custom ffmpeg binaries for Android
Shell
966
star
5

NetCipher

mirror of https://gitlab.com/guardianproject/NetCipher/
Java
661
star
6

libsqlfs

a library that implements a POSIX style filesystem on top of an SQLite database
C
560
star
7

android-ffmpeg-java

Android Java wrapper around ffmpeg command line binary
Java
553
star
8

ObscuraCam

Photo and Video Filtering App for Privacy
Java
300
star
9

gnupg-for-android

A port of gnupg to Android (UNMAINTAINED!)
Java
297
star
10

tor-android

Tor binary and library for Android
Java
211
star
11

ripple

A "panic button" app for triggering a "ripple effect" across apps that are set up to respond to panic events
Java
209
star
12

proofmode-android

THIS REPOSITORY IS MIRROR OF: https://gitlab.com/guardianproject/proofmode/proofmode-android
Java
198
star
13

orbot-apple

Orbot VPN app for iOS
Swift
197
star
14

PixelKnot

Image stego app using the F5 algorithm
Java
188
star
15

IOCipher

make non-root mountable encrypted disk shares
Java
139
star
16

OSTel

Open Secure Telephony platform (no longer maintained)
JavaScript
117
star
17

notecipher

a simple notepad with all stored encrypted using SQLCipher and Cacheword
Java
104
star
18

Orweb

We are EOL this project. Please use Lightning Browser or wait for Orfox instead
Java
91
star
19

LUKS

no longer maintained, check the forks for maintained versions
Shell
91
star
20

OrbotVPN

THIS IS A DEPRECATED PROJECT AND CLOSED! SEE WEBSITE LINK FOR LATEST ORBOT WITH VPN SUPPORT!
Java
85
star
21

CameraV

CameraV: InformaCam Default Android App
Java
85
star
22

keysync

convert OTR keystores into other keystore formats for moving keys into a new IM app
Python
85
star
23

fdroid-repo

a mirror of https://guardianproject.info/fdroid, usable in F-Droid.
CSS
82
star
24

cacheword

a password caching and management service for Android
Java
81
star
25

TrustedIntents

library for flexible trusted interactions between Android apps
Java
77
star
26

cacert

A slightly more vetted version of the Android CACert keystore
Java
69
star
27

LocationPrivacy

a transparent filter for all of the various ways of sharing location
Java
67
star
28

InformaCore

InformaCam Android Core Service Library
Java
46
star
29

PanicKit

a framework for providing trusted connections between panic button apps and other apps that should be triggered by them
Java
46
star
30

checkey

moved to https://gitlab.com/guardianproject/checkey
Java
43
star
31

ProxyMob

THIS PROJECT IS DEPRECATED. PLEASE SEE ORFOX (TOR BROWSER FOR ANDROID)
JavaScript
39
star
32

open-mobile-developers-guide

Our effort to create a general, broad developers guide for open-source mobile security and our SDKs
Shell
38
star
33

GuardianProjectPublic

Guardian Project's Public SparkleShare
Java
34
star
34

pluto

Pluggable Library (for) Using Traffic Obfuscation: DEPRECATED - SEE LINK FOR NEW PROJECT
Java
29
star
35

AndroidPluggableTransports

Android Pluggable Transports (aka PLUTO2)
Java
28
star
36

OtRChat

UPDATE 2011/2/15: WE ARE NOT USING THIS REPO ANYMORE. FIND THE NEW REPO AT THE LINK BELOW.
Java
28
star
37

SSCVideoProto

This project has been merged into ObscuraCam v2 which you can find at the link below
Java
28
star
38

jtorctl

deprecated fork of Java Tor Control Library
Java
28
star
39

OpenCircle

Open-source Circle of 6 with improved security and privacy features. PLEASE NOTE: For the new Circulo app please visit: https://gitlab.com/circuloapp/circulo-android
Java
28
star
40

linphone-ios-secure

A build of Linphone with all security features enabled (ZRTP, TLS)
C
26
star
41

OrfoxGeckoView

THIS PROJECT IS NOW DEPRECATED IN FAVOR OF OUR NEW TOR-BROWSER BASED REPO
Java
26
star
42

wind

Wind general project repo
24
star
43

Orlib

THIS LIBRARY IS DEPRECATED. PLEASE USE NETCIPHER.
Java
23
star
44

fdroid-repo-tools

scripts for maintaining our F-Droid repos
Shell
19
star
45

viento

Viento or "Wind": Off-Grid and Constrained Computing Optimization Effort
15
star
46

OrbotTalk

Experimental Tor-based P2P Messaging and File Exchange
Java
15
star
47

securereader

Java
13
star
48

network-utils

setup to build a collection of command line network utils for Android
Shell
13
star
49

securereaderlibrary

Core Engine for the Guardian Project Secure Reader platform
Java
13
star
50

securereader_ios

Secure Tor-enabled RSS reader for iOS devices.
Objective-C
13
star
51

CamCipher

Camera Cipher Library for encrypted photo and video capture based on IOCipher
Java
12
star
52

info

our website (mirror of https://gitlab.com/guardianproject/info)
CSS
12
star
53

smartcard-apk-signing

scratchpad for working out a full paranoid Android APK/Jar signing procedure
Shell
12
star
54

binary_transparency_log

A binary transparency log of all Android apps that we release.
10
star
55

courier

Courier, a secure, private news reader
Java
10
star
56

wind-repo

mirror of https://gitlab.com/guardianproject/wind-repo
Python
9
star
57

torservices

mirror of https://gitlab.com/guardianproject/torservices
Java
9
star
58

poe

POE Tor Onboarding Library
Swift
8
star
59

haven-nightly

Nightly builds for Haven app.
8
star
60

luksunlock

Minimal UI for LUKS encryption on the Wildfire
C
8
star
61

IOCipherExample

example file browser app built with IOCipher
Java
8
star
62

guardianproject.github.com

8
star
63

gpmaven

Maven Repository for Gradle-based projects using Guardian Project CipherKit Libraries
8
star
64

orbotkit

Orbot client library for iOS
Swift
7
star
65

OReport

secure citizen journalism
Java
7
star
66

pgpbenchmark

Android app for comparing performance of different OpenPGP implementations.
Java
7
star
67

Activate

Guardian Project Android Installer
Java
7
star
68

tormobiledev

Tor Mobile Developer Guide
7
star
69

cleanroom

Utilities for using TAILS as a distro for managing offline keys
6
star
70

powerup

tool for activating, installing, configuring new apps and capabilities on Android phones
6
star
71

ostn

Open Secure Telephony Network
6
star
72

GuardianProjectPressKit

Guardian Project Press Kit
5
star
73

android-support-library

A github clone of https://android.googlesource.com/platform/frameworks/support/
Java
5
star
74

pinentry

password entry system for GnuPG
C
5
star
75

InformaRepo

InformaCam Storage, Analytics, Dashboard system
5
star
76

FakePanicResponder

an example app to demonstrate receiving triggers from the panic framework
Java
4
star
77

tutorial-gibberbot

An interactive tutorial on how to chat securely on Android mobile with Gchat, Facebook, XMPP & more via OTR encryption using the Guardian Project app, Gibberbot.
4
star
78

StoryMakerLessons

StoryMaker Lesson Curriculum
JavaScript
4
star
79

android-database-sqlcipher

android-database-sqlcipher has moved to the SQLCipher org repo. You can update your local clone to point to the new remote/------------------------------------------------------> git remote set-url origin [email protected]:sqlcipher/android-database-sqlcipher.git
4
star
80

gnupg-for-android-tests

tests for the GnuPrivacyGuard suite for Android
Java
3
star
81

fastlane-hugo-theme

A Hugo theme for generating localized sites based on Fastlane metadata for Android apps.
HTML
3
star
82

fdroid-metadata

collection of our apps that are built with fdroidserver
CSS
3
star
83

ChatSecurePluginOpenEmoji

"Phantom" Open Emoji Plugin for ChatSecure
Java
3
star
84

Adios

The fastest way to remove all sensitive, personal, private data on your Android device
3
star
85

jitsi-monitor

mirror of https://gitlab.com/guardianproject/jitsi-monitor
Python
3
star
86

FakePanicButton

example app for the Panic Framework
Java
2
star
87

JustPayPhone

Java
2
star
88

tutorial-portal

What do you want to do on your Android today?
JavaScript
2
star
89

openwrtfilternet

OpenWRT-based simple "FilterNet" configuration
2
star
90

securereaderlibrary_ios

2
star
91

IOCipherServer

https / webdav server for accessing IOCipher shares
Java
2
star
92

informacam-guide

Trainer and end-user guide to using InformaCam and CameraV app
HTML
2
star
93

ecvrs-guides

Our work on best practices for security electronic civil registration and vital statistics services
2
star
94

f-droid.org_binary_transparency_log

a binary transparency log of https://f-droid.org
2
star
95

.github

default community health files
2
star
96

IOCipherTests

tests for the IOCipher library
Java
2
star
97

nptornews

NPToR News: an OnionKit-enabled version of the NPR News app. Sample project to demonstrate media stream proxying.
Java
2
star
98

ODKFormParser

quick-and-dirty android library for OpenDataKit/JavaRosa forms. Only supports input text and selections so far, but it's a work in progress
Java
1
star
99

milton-iocipher

Repository for core milton modules
Java
1
star
100

InformaCam-Server-DEPRECATED

THIS REPO IS NOW DEPRECATED DO NOT USE
JavaScript
1
star