Showing preview only (398K chars total). Download the full file or copy to clipboard to get everything.
Repository: guardianproject/lildebi
Branch: master
Commit: f1bb8d768164
Files: 110
Total size: 364.1 KB
Directory structure:
gitextract_cv4fo5_p/
├── .classpath
├── .gitignore
├── .gitmodules
├── .project
├── .tx/
│ └── config
├── AndroidManifest.xml
├── ChangeLog
├── LICENSE.txt
├── LilDebi.iml
├── README.md
├── assets/
│ ├── android-permissions_0.2_all.deb
│ ├── complete-debian-setup.sh
│ ├── configure-downloaded-image.sh
│ ├── create-debian-setup.sh
│ ├── debian-archive-keyring.gpg
│ ├── delete-all-debian-setup.sh
│ ├── lildebi-common
│ ├── policy-rc.d
│ ├── remove-hard-restart.sh
│ ├── shell
│ ├── start-debian.sh
│ ├── stop-debian.sh
│ ├── test.sh
│ └── unmounted-install-tweaks.sh
├── compare-to-official-release
├── custom_rules.xml
├── etc/
│ └── resolv.conf
├── external/
│ ├── 003-mount-umount-fsck-df.patch
│ ├── Makefile
│ ├── busybox_config
│ ├── cdebootstrap/
│ │ ├── Makefile
│ │ ├── add-missing-ubuntu-releases.patch
│ │ ├── cdebootstrap-static_0.6.4_armel.deb
│ │ ├── cdebootstrap-static_0.6.4_armel.deb.md5
│ │ ├── cdebootstrap-static_0.6.4_armel.deb.sha1
│ │ └── cdebootstrap-static_0.6.4_armel.deb.sha256
│ ├── debian-archive-keyring/
│ │ ├── Makefile
│ │ ├── debian-archive-keyring_2014.3_all.deb.md5
│ │ ├── debian-archive-keyring_2014.3_all.deb.sha1
│ │ └── debian-archive-keyring_2014.3_all.deb.sha256
│ └── modules/
│ ├── 2.6.25-01828-g18ac882/
│ │ ├── ext2.ko
│ │ └── unionfs.ko
│ ├── 2.6.25-01843-gfea26b0/
│ │ ├── ext2.ko
│ │ └── unionfs.ko
│ └── 2.6.29-omap1/
│ └── ext2.ko
├── javadoc/
│ └── commons-io-2.2-javadoc.jar
├── jenkins-build
├── libs/
│ ├── android-support-v4.jar
│ ├── android-support-v4.jar.LICENSE
│ ├── android-support-v4.jar.properties
│ ├── commons-io-2.2.jar
│ └── commons-io-2.2.jar.properties
├── make-release-build
├── project.properties
├── res/
│ ├── layout/
│ │ ├── install_activity.xml
│ │ ├── install_log_view.xml
│ │ ├── lildebi.xml
│ │ ├── select_arch.xml
│ │ ├── select_mirror.xml
│ │ ├── select_release.xml
│ │ └── unsupported_device.xml
│ ├── layout-land/
│ │ └── install_activity.xml
│ ├── menu/
│ │ └── options_menu.xml
│ ├── values/
│ │ ├── defaults.xml
│ │ ├── keys.xml
│ │ └── strings.xml
│ ├── values-da/
│ │ └── strings.xml
│ ├── values-de/
│ │ └── strings.xml
│ ├── values-es/
│ │ └── strings.xml
│ ├── values-fr/
│ │ └── strings.xml
│ ├── values-hu/
│ │ └── strings.xml
│ ├── values-it/
│ │ └── strings.xml
│ ├── values-nb-rNO/
│ │ └── strings.xml
│ ├── values-nl/
│ │ └── strings.xml
│ ├── values-pl/
│ │ └── strings.xml
│ ├── values-pt/
│ │ └── strings.xml
│ ├── values-pt-rPT/
│ │ └── strings.xml
│ ├── values-ro/
│ │ └── strings.xml
│ ├── values-ru/
│ │ └── strings.xml
│ ├── values-sk/
│ │ └── strings.xml
│ ├── values-sl/
│ │ └── strings.xml
│ ├── values-tr/
│ │ └── strings.xml
│ ├── values-vi/
│ │ └── strings.xml
│ ├── values-zh-rCN/
│ │ └── strings.xml
│ └── xml/
│ └── preferences.xml
├── setup-ant
├── src/
│ ├── info/
│ │ └── guardianproject/
│ │ └── lildebi/
│ │ ├── BootCompletedReceiver.java
│ │ ├── InstallActivity.java
│ │ ├── InstallLogViewActivity.java
│ │ ├── InstallService.java
│ │ ├── LilDebi.java
│ │ ├── LilDebiAction.java
│ │ ├── LilDebiApplication.java
│ │ ├── MediaEjectReceiver.java
│ │ ├── MediaMountedReceiver.java
│ │ ├── MediaUnmountedReceiver.java
│ │ ├── NativeHelper.java
│ │ ├── PreferencesActivity.java
│ │ ├── SelectArch.java
│ │ ├── SelectMirror.java
│ │ ├── SelectRelease.java
│ │ ├── StreamDisplay.java
│ │ ├── StreamThread.java
│ │ └── UnsupportedDeviceActivity.java
│ └── org/
│ └── torproject/
│ └── android/
│ └── service/
│ ├── TorServiceConstants.java
│ └── TorServiceUtils.java
├── supporting_files/
│ ├── fix-ellipsis.sh
│ ├── generate-mirror-list.py
│ └── icon.tiff
└── tests/
└── run-tests
================================================
FILE CONTENTS
================================================
================================================
FILE: .classpath
================================================
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="libs/commons-io-2.2.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
================================================
FILE: .gitignore
================================================
# auto-generated files from Android builds
bin/
gen/
build.xml
ant.properties
default.properties
local.properties
proguard.cfg
proguard-project.txt
#
assets/busybox
assets/cdebootstrap.tar
assets/gpgv
external/cdebootstrap/cdebootstrap-static-0.*/
external/cdebootstrap/cdebootstrap.tar
external/debian-archive-keyring/debian-archive-keyring-201*/
================================================
FILE: .gitmodules
================================================
[submodule "external/busybox"]
path = external/busybox
url = git://busybox.net/busybox.git
ignore = dirty
[submodule "external/libsuperuser"]
path = external/libsuperuser
url = https://github.com/Chainfire/libsuperuser.git
ignore = dirty
[submodule "external/gnupg"]
path = external/gnupg
url = git://git.gnupg.org/gnupg.git
branch = STABLE-BRANCH-1-4
ignore = dirty
================================================
FILE: .project
================================================
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>lildebi</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
================================================
FILE: .tx/config
================================================
[main]
host = https://www.transifex.com
lang_map = af_ZA: af-rZA, am_ET: am-rET, ar_AE: ar-rAE, ar_BH: ar-rBH, ar_DZ: ar-rDZ, ar_EG: ar-rEG, ar_IQ: ar-rIQ, ar_JO: ar-rJO, ar_KW: ar-rKW, ar_LB: ar-rLB, ar_LY: ar-rLY, ar_MA: ar-rMA, ar_OM: ar-rOM, ar_QA: ar-rQA, ar_SA: ar-rSA, ar_SY: ar-rSY, ar_TN: ar-rTN, ar_YE: ar-rYE, arn_CL: arn-rCL, as_IN: as-rIN, az_AZ: az-rAZ, ba_RU: ba-rRU, be_BY: be-rBY, bg_BG: bg-rBG, bn_BD: bn-rBD, bn_IN: bn-rIN, bo_CN: bo-rCN, br_FR: br-rFR, bs_BA: bs-rBA, ca_ES: ca-rES, co_FR: co-rFR, cs_CZ: cs-rCZ, cy_GB: cy-rGB, da_DK: da-rDK, de_AT: de-rAT, de_CH: de-rCH, de_DE: de-rDE, de_LI: de-rLI, de_LU: de-rLU, dsb_DE: dsb-rDE, dv_MV: dv-rMV, el_GR: el-rGR, en_AU: en-rAU, en_BZ: en-rBZ, en_CA: en-rCA, en_GB: en-rGB, en_IE: en-rIE, en_IN: en-rIN, en_JM: en-rJM, en_MY: en-rMY, en_NZ: en-rNZ, en_PH: en-rPH, en_SG: en-rSG, en_TT: en-rTT, en_US: en-rUS, en_ZA: en-rZA, en_ZW: en-rZW, es_AR: es-rAR, es_BO: es-rBO, es_CL: es-rCL, es_CO: es-rCO, es_CR: es-rCR, es_DO: es-rDO, es_EC: es-rEC, es_ES: es-rES, es_GT: es-rGT, es_HN: es-rHN, es_MX: es-rMX, es_NI: es-rNI, es_PA: es-rPA, es_PE: es-rPE, es_PR: es-rPR, es_PY: es-rPY, es_SV: es-rSV, es_US: es-rUS, es_UY: es-rUY, es_VE: es-rVE, et_EE: et-rEE, eu_ES: eu-rES, fa_IR: fa-rIR, fi_FI: fi-rFI, fil_PH: fil-rPH, fo_FO: fo-rFO, fr_BE: fr-rBE, fr_CA: fr-rCA, fr_CH: fr-rCH, fr_FR: fr-rFR, fr_LU: fr-rLU, fr_MC: fr-rMC, fy_NL: fy-rNL, ga_IE: ga-rIE, gd_GB: gd-rGB, gl_ES: gl-rES, gsw_FR: gsw-rFR, gu_IN: gu-rIN, ha_NG: ha-rNG, he_IL: he-rIL, hi_IN: hi-rIN, hr_BA: hr-rBA, hr_HR: hr-rHR, hsb_DE: hsb-rDE, hu_HU: hu-rHU, hy_AM: hy-rAM, id_ID: id-rID, ig_NG: ig-rNG, ii_CN: ii-rCN, is_IS: is-rIS, it_CH: it-rCH, it_IT: it-rIT, iu_CA: iu-rCA, ja_JP: ja-rJP, ka_GE: ka-rGE, kk_KZ: kk-rKZ, kl_GL: kl-rGL, km_KH: km-rKH, kn_IN: kn-rIN, ko_KR: ko-rKR, kok_IN: kok-rIN, ky_KG: ky-rKG, lb_LU: lb-rLU, lo_LA: lo-rLA, lt_LT: lt-rLT, lv_LV: lv-rLV, mi_NZ: mi-rNZ, mk_MK: mk-rMK, ml_IN: ml-rIN, mn_CN: mn-rCN, mn_MN: mn-rMN, moh_CA: moh-rCA, mr_IN: mr-rIN, ms_BN: ms-rBN, ms_MY: ms-rMY, mt_MT: mt-rMT, nb_NO: nb-rNO, ne_NP: ne-rNP, nl_BE: nl-rBE, nl_NL: nl-rNL, nn_NO: nn-rNO, nso_ZA: nso-rZA, oc_FR: oc-rFR, or_IN: or-rIN, pa_IN: pa-rIN, pl_PL: pl-rPL, prs_AF: prs-rAF, ps_AF: ps-rAF, pt_BR: pt, pt_PT: pt-rPT, qut_GT: qut-rGT, quz_BO: quz-rBO, quz_EC: quz-rEC, quz_PE: quz-rPE, rm_CH: rm-rCH, ro_RO: ro-rRO, ru_RU: ru-rRU, rw_RW: rw-rRW, sa_IN: sa-rIN, sah_RU: sah-rRU, se_FI: se-rFI, se_NO: se-rNO, se_SE: se-rSE, si_LK: si-rLK, sk_SK: sk-rSK, sl_SI: sl, sma_NO: sma-rNO, sma_SE: sma-rSE, smj_NO: smj-rNO, smj_SE: smj-rSE, smn_FI: smn-rFI, sms_FI: sms-rFI, sq_AL: sq-rAL, sr_BA: sr-rBA, sr_CS: sr-rCS, sr_ME: sr-rME, sr_RS: sr-rRS, sv_FI: sv-rFI, sv_SE: sv-rSE, sw_KE: sw-rKE, syr_SY: syr-rSY, ta_IN: ta-rIN, te_IN: te-rIN, tg_TJ: tg-rTJ, th_TH: th-rTH, tk_TM: tk-rTM, tn_ZA: tn-rZA, tr_TR: tr-rTR, tt_RU: tt-rRU, tzm_DZ: tzm-rDZ, ug_CN: ug-rCN, uk_UA: uk-rUA, ur_PK: ur-rPK, uz_UZ: uz-rUZ, vi_VN: vi-rVN, wo_SN: wo-rSN, xh_ZA: xh-rZA, yo_NG: yo-rNG, zh_CN: zh-rCN, zh_HK: zh-rHK, zh_MO: zh-rMO, zh_SG: zh-rSG, zh_TW: zh-rTW, zu_ZA: zu-rZA
[lildebi.stringsxml]
file_filter = res/values-<lang>/strings.xml
host = https://www.transifex.com
source_file = res/values/strings.xml
source_lang = en
================================================
FILE: AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="info.guardianproject.lildebi"
android:versionCode="5500"
android:versionName="0.5.5" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="jackpal.androidterm.permission.RUN_SCRIPT"/>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<application
android:allowBackup="false"
android:icon="@drawable/icon"
android:name="LilDebiApplication"
android:description="@string/app_description"
android:label="@string/app_name" >
<activity
android:name="LilDebi"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="InstallActivity"
android:launchMode="singleTask" />
<activity android:name="SelectRelease" />
<activity android:name="SelectMirror" />
<activity android:name="SelectArch" />
<activity android:name="UnsupportedDeviceActivity" />
<activity android:name="PreferencesActivity" />
<activity android:name="InstallLogViewActivity" />
<service android:name="InstallService" />
<receiver android:name="MediaMountedReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
</intent-filter>
</receiver>
<receiver android:name="MediaUnmountedReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_UNMOUNTED" />
<data android:scheme="file" />
</intent-filter>
</receiver>
<receiver android:name="MediaEjectReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_EJECT" />
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
<action android:name="android.intent.action.MEDIA_SHARED" />
<data android:scheme="file" />
</intent-filter>
</receiver>
<receiver android:name="BootCompletedReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<data android:scheme="file" />
</intent-filter>
</receiver>
</application>
</manifest>
================================================
FILE: ChangeLog
================================================
v0.5.4
+ /debian/shell can now be run as any user, not only root
+ fixes #131 for some devices where /debian/shell requires root
+ new icon to pay tribute to Ada Lovelace
v0.5.3
+ support SuperSU
+ update to latest cdebootstrap
+ use Android locale in Debian setup
+ updated translations: fr nb nl ru sk tr
v0.5.2
+ notification when install process is running
+ drastically improved install logging performance
+ lots of bug fixes
v0.5.1
+ new dev: SDkie aka Kumar Sukhani
+ complete boot integration: Debian process runs on start/stop
+ Android permissions integrated by default in new installs
+ beta support for installing Debian on internal storage
+ new translations: Hungarian, Russian
v0.4.7
+ new repeatable, deterministic build process!
https://github.com/guardianproject/lildebi/wiki/Deterministic-Builds
+ reduced APK size by half
v0.4.6
+ fix issues finding SD Card path on 4.3 and newer, #66
+ added menu item to launch Debian shell in Terminal Emulator
+ updated translations: Danish, German, Spanish, French, Dutch, Chinese
v0.4.5
+ fix bad path to SD Card on 4.3, #64
+ support lzma and xz since sid/unstable uses it, #70
+ new translations: Brazilian Portuguese, Norwegian Bokmål, Polish, Simplified Chinese, Slovenian, Vietnamese
+ fix Android 2.2 support
v0.4.4
+ fixed install issues on some devices, bugs #56, #60
+ added /storage/extSDCard path
+ new translations: Dutch, Vietnamese
v0.4.3
+ made DNS resolving work for users (bug #54
+ fixed free space detection (bug #53)
+ new translations: Spanish, Polish, Romanian, Danish, French, German
v0.4.2
+ added preference to set image file location
+ new translation: Turkish
+ complete Debian package verification
+ choose the CPU arch: armhf or armel
+ improved loop device allocation
+ various GUI bugfixes and improvements
v0.4.1
+ default to ext4 or ext3 for new installs
+ auto-detect best supported filesystem
+ include e2fsck, many phones do not have it (!!!)
+ new preference: enable SHA1 check of debian.img
+ included scripts are now editable
+ "app_bin" renamed on upgrade
================================================
FILE: LICENSE.txt
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: LilDebi.iml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<module type="ANDROID_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration>
<option name="PLATFORM_NAME" value="Android 2.1-update1 Google APIs" />
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/assets" />
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/libs" />
<option name="REGENERATE_R_JAVA" value="true" />
<option name="REGENERATE_JAVA_BY_AIDL" value="true" />
<option name="USE_CUSTOM_APK_RESOURCE_FOLDER" value="false" />
<option name="CUSTOM_APK_RESOURCE_FOLDER" value="" />
<option name="USE_CUSTOM_COMPILER_MANIFEST" value="false" />
<option name="CUSTOM_COMPILER_MANIFEST" value="" />
<option name="APK_PATH" value="" />
<option name="ADD_ANDROID_LIBRARY" value="true" />
<option name="LIBRARY_PROJECT" value="false" />
<option name="RUN_PROCESS_RESOURCES_MAVEN_TASK" value="true" />
<option name="GENERATE_UNSIGNED_APK" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Android 2.1-update1 Google APIs" level="application" />
<orderEntry type="library" scope="PROVIDED" name="Android 2.1-update1 Google APIs" level="application" />
</component>
</module>
================================================
FILE: README.md
================================================
__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:
* http://snapshot.debian.org/archive/debian/20141024T052403Z/pool/main/c/cdebootstrap/cdebootstrap_0.6.3_armel.deb
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).
================================================
FILE: assets/complete-debian-setup.sh
================================================
#!/bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
app_bin=$1
echo "----------------------------------------"
echo `$app_bin/basename $0`
. $app_bin/install.conf
# get full debug output
set -x
# this script runs in Debian, so force the path we use the Debian utilities
# rather than the busybox ones.
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export DEBIAN_FRONTEND=noninteractive
# * install and start sshd so you can easily log in, and before
# stop/start so the start script starts sshd. Also,
# * 'policyrcd-script-zg2' sets up the machine for starting and stopping
# everything via /etc/init.d/rc without messing with the core Android
# stuff.
# * 'molly-guard' adds a confirmation prompt to poweroff, halt,
# reboot, and shutdown.
apt-get -y install --no-install-recommends \
ssh policyrcd-script-zg2 molly-guard
cp $app_bin/policy-rc.d /etc/policy-rc.d
chmod 0755 /etc/policy-rc.d
# sometimes the ssh host keys don't get created, so try again
test -e /etc/ssh/ssh_host_rsa_key || \
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ''
test -e /etc/ssh/ssh_host_dsa_key || \
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N ''
# purge install packages in cache
apt-get clean
# run 'apt-get upgrade' to get the security updates
apt-get --yes update
apt-get --yes --fix-broken upgrade
# purge upgrade packages in cache
apt-get clean
# set Debian to current language
for locale in en_US.UTF-8 $LANG; do
sed -i -e "s/^[# ]*$locale/$locale/" /etc/locale.gen
done
locale-gen
echo "Debian is installed and ssh started!"
================================================
FILE: assets/configure-downloaded-image.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
test -e $1/lildebi-common || exit
. $1/lildebi-common
# create the mount dir on the read-only rootfs
if [ ! -e $mnt ]; then
mount -o remount,rw rootfs /
echo mkdir $mnt
mkdir $mnt
mount -o remount,ro rootfs /
fi
================================================
FILE: assets/create-debian-setup.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
# get full debug output
set -x
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
test -e $1/lildebi-common || exit 1
. $1/lildebi-common
# include installation-specific settings like mirror and arch
. $app_bin/install.conf
#------------------------------------------------------------------------------#
# cdebootstrap needs /bin to find it utils
mount -o remount,rw rootfs /
# set /bin to busybox utils
if [ ! -e /bin ]; then
echo "No '/bin' found, linking it to busybox utils"
cd /
ln -s $app_bin /bin
fi
mount -o remount,ro rootfs /
#------------------------------------------------------------------------------#
# create chroot mountpoint/directory
if [ -d $mnt ]; then
echo "WARNING: Mountpoint directory '$mnt' exists! Using this folder!"
elif [ -e $mnt ]; then
echo "ERROR: Mountpoint directory '$mnt' exists as a file! Exiting install..."
exit 1
else
echo "Creating chroot mountpoint at $mnt"
mkdir $mnt
fi
chmod 755 $mnt
# create shortcut symlink to mountpoint
make_debian_symlink
#------------------------------------------------------------------------------#
# some platforms need to have the ext2 module installed to get ext2 support
if [ -z `grep ext2 /proc/filesystems` ]; then
echo "Loading ext2 kernel module:"
modprobe ext2
fi
#------------------------------------------------------------------------------#
# create the image file
if [ x"$install_on_internal_storage" = xno ]; then
echo "Create the image file:"
test -e $install_path || \
dd if=/dev/zero of=$install_path seek=$imagesize bs=1M count=1
# set them up
if test -d $mnt && test -e $install_path; then
mke2fs_options="-L debian_chroot -T `find_best_filesystem` -F $install_path"
# the built-in mke2fs seems to be more reliable when the busybox mke2fs fails
if test -x /system/bin/mke2fs; then
/system/bin/mke2fs $mke2fs_options
else
mke2fs $mke2fs_options
fi
# run native and busybox losetup to test outputs
losetup
/system/xbin/losetup
$losetup $loopdev $install_path
losetup
/system/xbin/losetup
mount -o loop,noatime,errors=remount-ro $loopdev $mnt
if [ $? -ne 0 ]; then
echo "Unable to mount loopback image!"
exit 1
fi
else
echo "No mount dir found ($mnt) or no install_path ($install_path)"
exit 1
fi
fi
cd $mnt
tar xf $app_bin/cdebootstrap.tar
#------------------------------------------------------------------------------#
# create mountpoints
echo "creating mountpoints"
create_mountpoint() {
test -d $1 && test -e ${mnt}${1}
if [ $? -ne 0 ] && [ ! -e ${mnt}${1} ]; then
mkdir ${mnt}${1}
fi
}
# standard GNU/Linux mounts
create_mountpoint /dev
create_mountpoint /dev/pts
create_mountpoint /media
create_mountpoint /mnt
create_mountpoint /proc
create_mountpoint /sys
create_mountpoint /sys/kernel
create_mountpoint /sys/kernel/debug
create_mountpoint /tmp
# Android mounts
create_mountpoint /acct
create_mountpoint /app-cache
create_mountpoint /cache
create_mountpoint /data
create_mountpoint /dbdata
create_mountpoint /dev/cpuctl
create_mountpoint /efs
create_mountpoint /mnt/.lfs
create_mountpoint /mnt/asec
create_mountpoint /mnt/emmc
create_mountpoint /mnt/obb
create_mountpoint /mnt/sdcard
create_mountpoint /mnt/sdcard/external_sd
create_mountpoint /mnt/sdcard/external_sd/.android_secure
create_mountpoint /mnt/secure
create_mountpoint /mnt/secure/asec
create_mountpoint /mnt/secure/.android_secure
create_mountpoint /mnt/shell
create_mountpoint /mnt/shell/emulated
create_mountpoint /pds
create_mountpoint /sqlite_stmt_journals
create_mountpoint /storage
create_mountpoint /storage/emulated
create_mountpoint /storage/emulated/0
create_mountpoint /storage/emulated/legacy
create_mountpoint /storage/extSdCard
create_mountpoint /storage/sdcard0
create_mountpoint /storage/sdcard1
create_mountpoint /storage/usbdisk
create_mountpoint /system
#------------------------------------------------------------------------------#
# looking for GPG keyring used to validate signatures on downloaded packages
keyring_name=debian-archive-keyring.gpg
keyring=$app_bin/$keyring_name
if test -f $keyring; then
echo "Using keyring for validating packages: $keyring"
KEYRING="--keyring=$keyring"
else
echo "No keyring found, not validating packages! ($keyring)"
KEYRING=
fi
#------------------------------------------------------------------------------#
echo "run cdebootstrap in one stage"
$mnt/usr/bin/cdebootstrap-static --verbose --foreign\
--flavour=minimal --include=locales $KEYRING \
--configdir=$mnt/usr/share/cdebootstrap-static \
--helperdir=$mnt/usr/share/cdebootstrap-static \
--arch $arch $release $mnt $mirror || exit
if [ x"$install_on_internal_storage" = xyes ]; then
mount -o bind /dev $mnt/dev
fi
SHELL=/bin/sh chroot $mnt /sbin/cdebootstrap-foreign --second-stage
# This package sets up all the Android app users and permissions groups. It
# needs to be installed as early as possible to claim the uids for group names
# like 'bluetooth' that also exist in Debian. (installing it like this is a
# temporary workaround until this package is included in Debian).
if [ -r $app_bin/android-permissions_0.1_all.deb ]; then
cp $app_bin/android-permissions_0.1_all.deb $mnt/root/
SHELL=/bin/sh chroot $mnt /usr/bin/dpkg -i /root/android-permissions_0.1_all.deb
fi
# figure out extra packages to include
if [ ! -x /system/bin/e2fsck ]; then
install_e2fsck_static
fi
#------------------------------------------------------------------------------#
# create root symlinks that exist on the Android system
echo "creating root symlinks"
create_root_symlink() {
if [ -L $1 ] && [ ! -e ${mnt}${1} ]; then
link=`ls -l $1 | awk '{print $4}'`
target=`ls -l $1 | awk '{print $6}'`
ln -s $target ${mnt}${link}
fi
}
for file in /*; do
create_root_symlink $file
done
#------------------------------------------------------------------------------#
# create configs
echo "creating configs"
# create /etc/resolv.conf
test -e $mnt/etc || mkdir $mnt/etc
touch $mnt/etc/resolv.conf
echo 'nameserver 4.2.2.2' >> $mnt/etc/resolv.conf
echo 'nameserver 8.8.8.8' >> $mnt/etc/resolv.conf
echo 'nameserver 198.6.1.1' >> $mnt/etc/resolv.conf
chmod 644 $mnt/etc/resolv.conf
# create /etc/hosts
cp /etc/hosts $mnt/etc/hosts
# create live mtab
test -e $mnt/etc/mtab && rm $mnt/etc/mtab
ln -s /proc/mounts $mnt/etc/mtab
# apt sources
if [ ! -e $mnt/etc/apt/sources.list ]; then
test -e $mnt/etc/apt || mkdir $mnt/etc/apt
touch $mnt/etc/apt/sources.list
echo "deb $mirror $release main" >> $mnt/etc/apt/sources.list
fi
# sid does not have security updates, everything else should
if [ $release != "sid" ] && [ $release != "unstable" ]; then
echo "deb http://security.debian.org/ $release/updates main" >> $mnt/etc/apt/sources.list
fi
# Debian's e2fsck.static needs to check /etc/mtab to make sure the
# filesystem being check is not currently mounted. on Android, /etc is
# actually /system/etc, so in order to avoid modifying /system, we run
# e2fsck.static in a special minimal chroot.
echo "set up chroot for e2fsck"
create_e2fsck_chroot
#------------------------------------------------------------------------------#
# finish tweaking Debian install
echo "finish tweaking Debian install"
chroot $mnt apt-get -y update
# purge install packages in cache
chroot $mnt apt-get clean
# remove stop scripts
chroot $mnt /usr/sbin/update-rc.d -f halt remove
chroot $mnt /usr/sbin/update-rc.d -f hwclock.sh remove
chroot $mnt /usr/sbin/update-rc.d -f reboot remove
chroot $mnt /usr/sbin/update-rc.d -f sendsigs remove
chroot $mnt /usr/sbin/update-rc.d -f umountfs remove
chroot $mnt /usr/sbin/update-rc.d -f umountroot remove
# convert to ext3, if that's available. for some reason unknown to me, Android
# shows the loop devices as /dev/block/loop[0-7] while those same devices show
# up as /dev/loop[0-7] un Debian. tune2fs needs /proc mounted so it can read
# /proc/mounts via the /etc/mtab symlink.
if `grep -q -s ext3 /proc/filesystems`; then
mount -t proc proc $mnt/proc
chroot $mnt tune2fs -j `echo $loopdev | sed s,block/,,`
umount $mnt/proc
fi
#------------------------------------------------------------------------------#
# clean up after debootstrap
chroot $mnt dpkg --purge cdebootstrap-helper-rc.d
if [ x"$install_on_internal_storage" = xyes ]; then
umount $mnt/dev
fi
================================================
FILE: assets/delete-all-debian-setup.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
echo "========================================"
echo "./delete-all-debian-setup.sh"
test -e $1/lildebi-common || exit 1
. $1/lildebi-common
$1/stop-debian.sh
set -x
# force umount if stop-debian.sh failed
test -d $mnt/usr && umount -f $mnt
$losetup -d $loopdev
if [ x"$install_on_internal_storage" = xno ]; then
rm $install_path
else
rm -r $install_path
fi
rm $install_path.sha1
# delete the log from previous install
if [ -f $app_bin/../app_log/install.log ]; then
rm $app_bin/../app_log/install.log
fi
mount -o remount,rw rootfs /
if [ -d $mnt ]; then
rmdir $mnt
fi
# if the /bin symlink exists, delete it
if [ -h /bin ]; then
rm /bin
fi
# if the /debian symlink exists, delete it
if [ -h /debian ]; then
rm /debian
fi
# if the old /debian mount dir exists, delete it
if [ -d /debian ]; then
rmdir /debian
fi
mount -o remount,ro rootfs /
#------------------------------------------------------------------------------#
# shortcuts for setting up the chroot in the terminal
if [ -e /data/local/bin/debian ]; then
rm /data/local/bin/debian
fi
if [ -d /data/local/bin ]; then
rmdir /data/local/bin
fi
================================================
FILE: assets/lildebi-common
================================================
#!/bin/sh
# this is the common settings for the various scripts here
echo "----------------------------------------"
export TERM=linux
export HOME=/root
export HOSTNAME=debian
export DEBIAN_FRONTEND=noninteractive
if [ $# -lt 1 ]; then
echo "incorrect number of arguments, should be between 1 and 8:"
echo " $0 app_bin [sdcard] [install_path] [mnt] [release] [mirror] [imagesize] [arch]"
fi
# use the included utilities first
app_bin=$1
export PATH=$app_bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/sbin:/system/bin:/system/xbin
echo `basename $0`
if [ -z $sdcard ]; then
sdcard=$2
fi
if [ -z $install_path ]; then
install_path=$3
fi
if [ -z $mnt ]; then
mnt=$4
fi
if [ x"$mnt" = x"$install_path" ]; then
install_on_internal_storage=yes
else
install_on_internal_storage=no
fi
test -d $app_bin || echo "app_bin: '$app_bin' not a directory"
test -d $sdcard || echo "sdcard: '$sdcard' not a directory"
test -z $install_path && echo "install_path: '$install_path' is empty"
test -z $mnt && echo "mnt: '$mnt' is empty"
busybox_path="$app_bin"
busybox=$busybox_path/busybox
fsck_chroot=`dirname $app_bin`/fsck-chroot
install_fsck=no
sha1file=`dirname $app_bin`/`basename $install_path.sha1`
# keep all files private to this app
umask 077
make_debian_symlink () {
if [ -d /debian ] && ! [ -h /debian ]; then
mount -o remount,rw rootfs /
umount /debian
rmdir /debian
mount -o remount,ro rootfs /
fi
if [ ! -e /debian ]; then
mount -o remount,rw rootfs /
echo "'/debian' not found, making a symlink to the chroot."
cd /
ln -s $mnt /debian
mount -o remount,ro rootfs /
fi
}
make_root_symlinks () {
wd=`pwd`
cd /
mount -o remount,rw rootfs /
for x in \
bin boot home media opt selinux srv usr var tmp
do
ln -s $mnt/$x /$x
done
mount -o remount,ro rootfs /
cd "$wd"
}
remove_root_symlinks () {
cd /
mount -o remount,rw rootfs /
for x in \
bin boot home media opt selinux srv usr var tmp
do
rm /$x
done
mount -o remount,ro rootfs /
}
find_losetup () {
if [ -x /system/xbin/losetup ]; then
echo /system/xbin/losetup
else
echo $app_bin/losetup
fi
}
losetup=`find_losetup`
find_mounted_loopdev () {
$app_bin/sed -n "s|^\(/dev/.*loop[0-9][0-9]*\) $mnt .*|\1|p" /proc/mounts
}
find_free_loopdev () {
# on Android 'losetup -f' doesn't reliably return a device that will
# actually work. So instead we iterate through the possible loop devices
# and query to see if anything is attached, and return the first one found
# that has nothing attached. Missing device files are created on the fly.
if [ -e /dev/block/loop0 ]; then
# only do this, if the loopback device files are in the location,
# we expect
i=0 # first device number is 0
while [ "$i" -le 255 ]; do # iterate through device numbers,
# until a free one is found (return below),
# or we run out of device numbers (255)
loopdev="/dev/block/loop$i"
# create the device file, if it does not yet exist
if [ ! -e "$loopdev" ]; then
mknod -m 600 "$loopdev" b 7 $i > /dev/null 2>&1
fi
# check if it is unused; return it, if it's unused.
if ! `$losetup "$loopdev" > /dev/null 2>&1`; then
echo "$loopdev"
return
fi
i=$((i+1)); # next device number
done
fi
# if the above doesn't succeed, ask the system as a fallback
echo `$losetup -f`
}
find_attached_loopdev () {
for loopdev in `$app_bin/ls -1 /dev/block/loop*`; do
if `$losetup $loopdev 2>&1 | grep -q $install_path`; then
echo $loopdev
return
fi
done
}
find_loopdev () {
loopdev=`find_attached_loopdev`
if [ -z $loopdev ]; then
echo `find_free_loopdev`
else
echo $loopdev
fi
}
loopdev=`find_loopdev`
find_best_filesystem () {
$app_bin/grep 'ext[234]' /proc/filesystems | $app_bin/sort | $app_bin/tail -1
}
#------------------------------------------------------------------------------#
# tricks to get a working fsck
# We include Debian's e2fsck.static, which needs to check /etc/mtab to make
# sure the filesystem being check is not currently mounted. on Android, /etc
# is actually /system/etc, so in order to avoid modifying /system, we setup a
# special minimal chroot just for running e2fsck.static
test_or_create_dir () {
test -e $1 || mkdir -p $1
}
create_e2fsck_chroot () {
echo "Setting up chroot for e2fsck.static"
test_or_create_dir $fsck_chroot
test_or_create_dir $fsck_chroot/`dirname $install_path`
test_or_create_dir $fsck_chroot/app_bin
test_or_create_dir $fsck_chroot/dev
test_or_create_dir $fsck_chroot/etc
test_or_create_dir $fsck_chroot/proc
test -e $fsck_chroot/etc/mtab || \
ln -s /proc/mounts $fsck_chroot/etc/mtab
}
find_and_run_fsck () {
if [ -z $1 ]; then
fsck_flags="-pv"
else
fsck_flags=$1
fi
# check for embedded fsck first, to allow overriding of Android's fsck
if [ -x $app_bin/e2fsck.static ]; then
fsck=$app_bin/e2fsck.static
# Debian's e2fsck.static needs to check /etc/mtab to make sure the
# filesystem being check is not currently mounted. on Android, /etc is
# actually /system/etc, so in order to avoid modifying /system, we run
# e2fsck.static in a special minimal chroot.
create_e2fsck_chroot
imagedir=`dirname $install_path`
mount -o bind $app_bin $fsck_chroot/app_bin
mount -o bind /dev $fsck_chroot/dev
mount -o bind /proc $fsck_chroot/proc
mount -o bind $imagedir $fsck_chroot/$imagedir
echo "> $fsck $fsck_flags $install_path"
chroot $fsck_chroot /app_bin/`basename $fsck` $fsck_flags $install_path
fsck_return=$?
umount $fsck_chroot/app_bin
umount $fsck_chroot/dev
umount $fsck_chroot/proc
umount $fsck_chroot/$imagedir
elif [ -x /system/bin/e2fsck ]; then
fsck=/system/bin/e2fsck
echo "> $fsck $fsck_flags $install_path"
$fsck $fsck_flags $install_path
fsck_return=$?
else
echo "NO fsck FOUND, SKIPPING DISK CHECK!"
fsck_return=0
install_fsck=yes
fi
test $fsck_return -lt 4 || exit $fsck_return
}
install_e2fsck_static () {
echo "Installing e2fsck.static from Debian..."
PATH=/sbin:/bin:/usr/bin \
chroot $mnt /usr/bin/apt-get --no-install-recommends install e2fsck-static
cp $mnt/sbin/e2fsck.static $app_bin/
}
================================================
FILE: assets/policy-rc.d
================================================
#!/bin/sh
# Policy-rc.d is mentioned in manpage invoke-rc.d(8) and documented at
# http://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
set -e
script=$1
command=$2
# "exit 101" means policy forbids the execution of that script
forbid() {
echo >&2 "Execution of \"$script $command\" forbidden by policy-rc.d"
exit 101
}
case "$script" in
halt) forbid ;;
hwclock.sh) forbid ;;
networking) forbid ;;
ifupdown) forbid ;;
reboot) forbid ;;
sendsigs) forbid ;;
umountfs) forbid ;;
umountroot) forbid ;;
urandom) forbid ;;
esac
exit 0
================================================
FILE: assets/remove-hard-restart.sh
================================================
#!/bin/sh
#
# This script is meant to be run within Debian to remove all of the init
# scripts that deal with the final shutdown steps. This allows Lil' Debi to
# call "/etc/init.d/rc 0" to stop the Debian chroot without shutting down the
# whole phone.
for script in halt reboot hwclock.sh sendsigs umountfs umountroot; do
echo "removing $script:"
/usr/sbin/update-rc.d -f $script remove
done
================================================
FILE: assets/shell
================================================
#!/system/bin/sh
export TERM=linux
export HOSTNAME=debian
export HOME=/root
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/xbin:/system/bin
app_bin=/data/data/info.guardianproject.lildebi/app_bin
export USER=root
username=`$app_bin/whoami`
id=`$app_bin/id -u`
# make sure we got a valid ID before checking its 0
if [ ! -z "$id" ] && [ `echo "$id" | grep -v '[^0-9]' > /dev/null` ] && [ "$id" -eq 0 ]; then
# try using the chroot included in LilDebi, otherwise fail over to a possible system one
PATH=$app_bin SHELL=/bin/bash $app_bin/chroot /debian /bin/bash --login -i \
|| chroot /debian /bin/bash --login -i
elif grep "^${username}:" /debian/etc/passwd > /dev/null; then
su -c "PATH=$app_bin SHELL=/bin/sh TERMINFO=/lib/terminfo USER=$username \
$app_bin/chroot /debian /bin/su $username --login"
else
su -c "HOME=/root PATH=$app_bin SHELL=/bin/bash TERMINFO=/lib/terminfo \
$app_bin/chroot /debian /bin/bash --login -i"
fi
================================================
FILE: assets/start-debian.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
test -e $1/lildebi-common || exit 1
. $1/lildebi-common
test_mount_bind() {
test -d $1 && \
grep " $1 " /proc/mounts && \
mount -o bind $1 $mnt/$1
}
export TERM=linux
export HOME=/root
# set the path to use the included utils first
export PATH=$app_bin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH
if [ ! -e $mnt ]; then
echo "Your Debian setup is missing mountpoint."
echo " mkdir $mnt"
mkdir $mnt || exit
chmod 755 $mnt
exit
fi
if [ ! -d $sdcard ]; then
echo "Your Debian setup is missing sdcard: $sdcard"
exit
fi
# test if $install_path is a file
if [ x"$install_on_internal_storage" = xyes ]; then
if [ ! -d $install_path ]; then
echo "install_path ($install_path) does not exist or is not a directory"
exit
fi
else
if [ ! -f $install_path ]; then
echo "install_path ($install_path) does not exist or is not a regular file"
exit
fi
fi
# test if $loopdev is a block device
if [ x"$install_on_internal_storage" = xno ] && [ ! -b $loopdev ]; then
echo "Your Debian setup is missing loopdev: $loopdev"
exit
fi
echo ""
echo "Configuration that will be started:"
echo "app_bin: $app_bin"
echo "mnt: $mnt"
echo "sdcard: $sdcard"
echo "install_path: $install_path"
if [ x"$install_on_internal_storage" = xno ]; then
echo "sha1file: $sha1file"
echo "loopdev: $loopdev"
if [ -e $sha1file ]; then
echo "Checking SHA1 checksum of $install_path..."
cp $sha1file `dirname $install_path`
if `$app_bin/sha1sum -c $sha1file`; then
echo "SHA1 checksum failed, exiting!"
exit
else
echo "Done!"
fi
fi
# use system or lildebi fsck to check Debian partition
echo ""
find_and_run_fsck
#------------------------------------------------------------------------------#
# mounts
echo ""
echo "> $losetup $loopdev $install_path"
$losetup $loopdev $install_path
# some platforms need to have the ext2 module installed to get ext2 support
if [ -z `grep ext2 /proc/filesystems` ]; then
echo ""
echo "Loading ext2 kernel module:"
modprobe ext2
fi
echo ""
echo "root mount for everything Debian"
# root mount for everything Debian
echo "> mount -t `find_best_filesystem` $loopdev $mnt"
mount -t `find_best_filesystem` $loopdev $mnt
# check error code for the above mount
mounterr=$?
if [ $mounterr -ne 0 ] ; then
echo "Mounting '$mnt' failed, returned $mounterr"
exit
fi
fi
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
mount -t tmpfs tmpfs $mnt/tmp
mount -o bind $sdcard $mnt/mnt/sdcard
# mount other android mounts, these may vary device to device, so test
# first. These are manually listed out here rather than automatically greped
# from /proc/mounts since some of the mounts should not be mounted as 'bind',
# e.g. things like /proc, /sys, /dev/pts, etc.
test_mount_bind /acct
test_mount_bind /app-cache
test_mount_bind /cache
test_mount_bind /data
test_mount_bind /dbdata
# only bind mount /dev when installing into /data since /data is mounted nodev. When
# installing into an image file, then it can maintain its own /dev, and that means that
# Debian won't be able to modify Android's /dev.
if [ x"$install_on_internal_storage" = xyes ]; then
test_mount_bind /dev
fi
test_mount_bind /dev/cpuctl
test_mount_bind /efs
test_mount_bind /mnt/.lfs
test_mount_bind /mnt/asec
test_mount_bind /mnt/obb
test_mount_bind /mnt/secure/asec
test_mount_bind /mnt/sdcard/external_sd
test_mount_bind /mnt/sdcard/external_sd/.android_secure
test_mount_bind /mnt/secure/.android_secure
test_mount_bind /mnt/shell/emulated
test_mount_bind /pds
test_mount_bind /sd-ext
test_mount_bind /sqlite_stmt_journals
test_mount_bind /storage/emulated/0
test_mount_bind /storage/emulated/legacy
test_mount_bind /storage/extSdCard
test_mount_bind /storage/sdcard0
test_mount_bind /storage/sdcard1
test_mount_bind /storage/usbdisk
test_mount_bind /sys/kernel/debug
test_mount_bind /system
#------------------------------------------------------------------------------#
# shortcuts for setting up the chroot in the terminal
make_debian_symlink
if [ ! -e /debian/shell ]; then
echo "installing '/debian/shell' for easy way to get to chroot from term"
ln -s $app_bin/shell /debian/shell
fi
if [ ! -e /data/local/bin ]; then
mkdir /data/local/bin
fi
if [ ! -e /data/local/bin/debian ]; then
ln -s $app_bin/shell /data/local/bin/debian
fi
#
if [ $install_fsck = yes ]; then
install_e2fsck_static
fi
#------------------------------------------------------------------------------#
# remove rc.d scripts from Debian for things that Android handles
for script in halt hwclock.sh sendsigs umountfs umountroot; do
test -e $mnt/etc/rc0.d/*$script && \
chroot $mnt /usr/sbin/update-rc.d -f $script remove && \
echo "Removed '$script' from /etc/rc?.d/"
done
test -e /etc/rc6.d/*reboot && \
chroot $mnt /usr/sbin/update-rc.d -f reboot remove && \
echo "Removed 'reboot' from /etc/rc?.d/"
#------------------------------------------------------------------------------#
# ssh
keygen=/usr/bin/ssh-keygen
if [ -x ${mnt}${keygen} ]; then
echo ""
echo "My ssh host key fingerprint and random art:"
chroot $mnt /bin/bash -c \
"for key in /etc/ssh/ssh_host_*_key; do $keygen -lv -f \$key; done"
fi
#------------------------------------------------------------------------------#
# set the UTF-8 version as the system default if it has been generated
if [ -x ${mnt}/usr/sbin/update-locale ]; then
LANG=`grep ^$LANG $mnt/etc/locale.gen | grep UTF-8 | cut -d ' ' -f 1 | head -1`
test -z $LANG || \
chroot $mnt update-locale "LANG=$LANG"
fi
echo ""
echo "Debian chroot mounted and started."
================================================
FILE: assets/stop-debian.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg $1 is the "app payload" directory, where the included scripts are
# kept.
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
test -e $1/lildebi-common || exit 1
. $1/lildebi-common
kill_processes () {
local signal="$1"
for root in /proc/*/root; do
if [ ! -r "$root" ] || [ ! "`readlink "$root"`" = "$mnt" ]; then
continue
fi
pid="${root#/proc/}"
pid="${pid%/root}"
kill -"$signal" "$pid" 2>/dev/null || true
done
# /debian/shell starts outside of the chroot, so it must be killed separately
for pid in `ps | grep '/[d]ebian/shell' | cut -b1-5`; do
kill -$signal $pid
done
}
echo -n "Asking all processes to terminate..."
# first send TERM
kill_processes TERM
sleep 1
echo "done"
# then send KILL to force the rest to die
echo -n "Killing remaining processes..."
kill_processes KILL
echo "done"
echo -n "Checking for open files in Debian chroot..."
openfiles=`lsof $mnt | grep -v $(basename $install_path) | sed -n "s|.*\($mnt.*\)|\1|p"`
echo "done"
if [ ! -z "$openfiles" ]; then
echo "Files that are still open:"
for line in $openfiles; do
echo $line
done
echo ""
echo "Not stopping debian because of open files, quit all processes and running shell sessions!"
exit 1
else
echo -n "Unmounting everything..."
# sort reverse so it gets the nested mounts first
for mount in `cut -d ' ' -f 2 /proc/mounts | grep $mnt/ | sort -r`; do
$busybox_path/umount -f $mount
done
if [ x"$install_on_internal_storage" = xno ]; then
umount -d $mnt || /system/bin/umount $mnt || echo "Failed to unmount $mnt!"
fi
echo "done"
attached=`find_attached_loopdev`
if [ ! -z $attached ]; then
echo -n "Deleting loopback device..."
$losetup -d $attached
echo "done"
fi
echo ""
echo "Debian chroot stopped and unmounted."
if [ -e $sha1file ]; then
echo -n "Calculating new SHA1 checksum of $install_path..."
$app_bin/sha1sum $install_path > $sha1file
chmod 0600 $sha1file
cp $sha1file `dirname $install_path`
echo "Done!"
fi
fi
================================================
FILE: assets/test.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
echo "--------------------------------------------------"
echo "./test.sh"
echo $1/lildebi-common
test -e $1/lildebi-common || exit
. $1/lildebi-common
. $app_bin/install.conf
echo "app_bin: $app_bin"
echo "sdcard: $sdcard"
echo "install_path: $install_path"
echo "mnt: $mnt"
echo "release: $release"
echo "mirror: $mirror"
echo "arch: $arch"
echo "imagesize: $imagesize"
================================================
FILE: assets/unmounted-install-tweaks.sh
================================================
#!/data/data/info.guardianproject.lildebi/app_bin/sh
#
# see lildebi-common for arguments, the args are converted to vars there. The
# first arg is the "app payload" directory where the included scripts are kept
# get full debug output
set -x
# many phones don't even include 'test', so set the path to our
# busybox tools first, where we provide all the UNIX tools needed by
# this script
export PATH=$1:$PATH
test -e $1/lildebi-common || exit 1
. $1/lildebi-common
# run fsck to set up ext3 journaling, if it was configed successfully. Try the
# safe fsck first, then force it. Otherwise this install will be dead in the
# water if fsck throws a "manual intervention" error.
if [ x"$install_on_internal_storage" = xno ]; then
find_and_run_fsck -pfv
find_and_run_fsck -y
fi
================================================
FILE: compare-to-official-release
================================================
#!/bin/sh
if [ $# -ne 2 ]; then
echo "Usage: $0 /path/to/LilDebi-v0.5.3-release.apk /another/LilDebi-v0.5.3-release.apk"
exit 1
fi
set -e
set -x
test -e "$1"
test -e "$2"
tmpdir=`mktemp -d /tmp/.compare-apks.XXXXXXXXXX`
apk1=$(basename $1)
apk2=$(basename $2)
sourcedir1=$(cd `dirname $1` && pwd)
sourcedir2=$(cd `dirname $2` && pwd)
apkname1=`echo $apk1 | sed 's,\.apk$,,'`
apkname2=`echo $apk2 | sed 's,\.apk$,,'`
dir1=$tmpdir/`echo $(dirname $1) | sed 's,[/ ],_,g'`-$apkname1
dir2=$tmpdir/`echo $(dirname $2) | sed 's,[/ ],_,g'`-$apkname2
mkdir -p $dir1/zip
cd $dir1/zip
unzip "$sourcedir1/$apk1"
cd ..
apktool d "$sourcedir1/$apk1"
mv "$apkname1" apktool
# strip the full path to the zip for the comparison
unzip -l "$sourcedir1/$apk1" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir1/unzip-l.txt
unzip -lv "$sourcedir1/$apk1" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir1/unzip-lv.txt
zipinfo -lv "$sourcedir1/$apk1" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir1/zipinfo-lv.txt
xxd "$sourcedir1/$apk1" > $dir1/xxd
mkdir -p $dir2/zip
cd $dir2/zip
unzip "$sourcedir2/$apk2"
cd ..
apktool d "$sourcedir2/$apk2"
mv "$apkname2" apktool
# strip the full path to the zip for the comparison
unzip -l "$sourcedir2/$apk2" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir2/unzip-l.txt
unzip -lv "$sourcedir2/$apk2" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir2/unzip-lv.txt
zipinfo -lv "$sourcedir2/$apk2" | sed 's,^\(Archive:\s\s*\)/.*/,\1,' > $dir2/zipinfo-lv.txt
xxd "$sourcedir2/$apk2" > $dir2/xxd
if which meld > /dev/null; then
meld $dir1 $dir2
elif which opendiff > /dev/null; then
opendiff $dir1 $dir2
else
echo "ERROR: meld or opendiff required for the comparison!"
fi
rm -rf $dir1 $dir2
================================================
FILE: custom_rules.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project>
<target name="rename-release-with-version-number">
<xmlproperty file="AndroidManifest.xml"
prefix="themanifest"
collapseAttributes="true"/>
<!-- see ${sdk.dir}/tools/ant/build.xml -set-release-mode -->
<property name="out.packaged.file"
location="${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}-unsigned.apk" />
<property name="out.final.file"
location="${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}.apk" />
</target>
<target name="-set-release-mode"
depends="rename-release-with-version-number,android_rules.-set-release-mode">
<echo message="target: ${build.target}"></echo>
</target>
<target name="-pre-build">
<tstamp>
<format property="current.timestamp" pattern="yyyyMMddHHmm.ss" />
</tstamp>
<echo message="timestamp: ${current.timestamp}"></echo>
<apply executable="touch" parallel="true" verbose="true">
<arg value="-t"/>
<arg value="${current.timestamp}"/>
<fileset dir="assets" casesensitive="yes">
<include name="*"/>
</fileset>
</apply>
</target>
</project>
================================================
FILE: etc/resolv.conf
================================================
nameserver 4.2.2.2
nameserver 8.8.8.8
nameserver 198.6.1.1
================================================
FILE: external/003-mount-umount-fsck-df.patch
================================================
From: Tias Guns <tias@ulyssis.org>
Date: Sun, 18 Mar 2012 14:12:41 +0000
Subject: [PATCH] android: fix 'mount', 'umount', 'fsck', 'df'
patch modified from 'Bionic Patch V1.0 (Vitaly Greck)'
https://code.google.com/p/busybox-android/downloads/detail?name=patch
---
libbb/Kbuild.src | 3 +
libbb/mntent_r.c | 290 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 293 insertions(+), 0 deletions(-)
create mode 100644 libbb/mntent_r.c
diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src
index 335b341..a054a44 100644
--- a/libbb/Kbuild.src
+++ b/libbb/Kbuild.src
@@ -115,6 +115,9 @@ lib-y += xgethostbyname.o
lib-y += xreadlink.o
lib-y += xrealloc_vector.o
+# for android-busybox-ndk
+lib-y += mntent_r.o
+
lib-$(CONFIG_PLATFORM_LINUX) += match_fstype.o
lib-$(CONFIG_FEATURE_UTMP) += utmp.o
diff --git a/libbb/mntent_r.c b/libbb/mntent_r.c
new file mode 100644
index 0000000..9944a2a
--- /dev/null
+++ b/libbb/mntent_r.c
@@ -0,0 +1,290 @@
+/* Utilities for reading/writing fstab, mtab, etc.
+ Copyright (C) 1995-2000, 2001, 2002, 2003, 2006, 2010, 2011
+ Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+// file extracted from patch 'Bionic Patch V1.0 (Vitaly Greck)':
+// https://busybox-android.googlecode.com/files/patch
+//
+// looks like its based on misc/mntent_r.c from glibc,
+// contains all fixes in current master (2012-03-19),
+// but is not source identical (mostly stuff removed)
+// using the upstream one fails to build
+
+
+#include <alloca.h>
+#include <mntent.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+
+
+/* Prepare to begin reading and/or writing mount table entries from the
+ beginning of FILE. MODE is as for `fopen'. */
+FILE *setmntent (const char *file, const char *mode)
+{
+ /* Extend the mode parameter with "c" to disable cancellation in the
+ I/O functions and "e" to set FD_CLOEXEC. */
+ size_t modelen = strlen (mode);
+ char newmode[modelen + 3];
+ memcpy (newmode, mode, modelen);
+ memcpy (newmode + modelen, "ce", 3);
+ FILE *result = fopen (file, newmode);
+
+ return result;
+}
+
+
+/* Close a stream opened with `setmntent'. */
+int endmntent (FILE *stream)
+{
+ if (stream) /* SunOS 4.x allows for NULL stream */
+ fclose (stream);
+ return 1; /* SunOS 4.x says to always return 1 */
+}
+
+
+/* Since the values in a line are separated by spaces, a name cannot
+ contain a space. Therefore some programs encode spaces in names
+ by the strings "\040". We undo the encoding when reading an entry.
+ The decoding happens in place. */
+static char *
+decode_name (char *buf)
+{
+ char *rp = buf;
+ char *wp = buf;
+
+ do
+ if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '4' && rp[3] == '0')
+ {
+ /* \040 is a SPACE. */
+ *wp++ = ' ';
+ rp += 3;
+ }
+ else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '1')
+ {
+ /* \011 is a TAB. */
+ *wp++ = '\t';
+ rp += 3;
+ }
+ else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '2')
+ {
+ /* \012 is a NEWLINE. */
+ *wp++ = '\n';
+ rp += 3;
+ }
+ else if (rp[0] == '\\' && rp[1] == '\\')
+ {
+ /* We have to escape \\ to be able to represent all characters. */
+ *wp++ = '\\';
+ rp += 1;
+ }
+ else if (rp[0] == '\\' && rp[1] == '1' && rp[2] == '3' && rp[3] == '4')
+ {
+ /* \134 is also \\. */
+ *wp++ = '\\';
+ rp += 3;
+ }
+ else
+ *wp++ = *rp;
+ while (*rp++ != '\0');
+
+ return buf;
+}
+
+
+/* Read one mount table entry from STREAM. Returns a pointer to storage
+ reused on the next call, or null for EOF or error (use feof/ferror to
+ check). */
+struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz)
+{
+ char *cp;
+ char *head;
+
+ do
+ {
+ char *end_ptr;
+
+ if (fgets (buffer, bufsiz, stream) == NULL)
+ {
+ return NULL;
+ }
+
+ end_ptr = strchr (buffer, '\n');
+ if (end_ptr != NULL) /* chop newline */
+ *end_ptr = '\0';
+ else
+ {
+ /* Not the whole line was read. Do it now but forget it. */
+ char tmp[1024];
+ while (fgets (tmp, sizeof tmp, stream) != NULL)
+ if (strchr (tmp, '\n') != NULL)
+ break;
+ }
+
+ head = buffer + strspn (buffer, " \t");
+ /* skip empty lines and comment lines: */
+ }
+ while (head[0] == '\0' || head[0] == '#');
+
+ cp = strsep (&head, " \t");
+ mp->mnt_fsname = cp != NULL ? decode_name (cp) : (char *) "";
+ if (head)
+ head += strspn (head, " \t");
+ cp = strsep (&head, " \t");
+ mp->mnt_dir = cp != NULL ? decode_name (cp) : (char *) "";
+ if (head)
+ head += strspn (head, " \t");
+ cp = strsep (&head, " \t");
+ mp->mnt_type = cp != NULL ? decode_name (cp) : (char *) "";
+ if (head)
+ head += strspn (head, " \t");
+ cp = strsep (&head, " \t");
+ mp->mnt_opts = cp != NULL ? decode_name (cp) : (char *) "";
+ switch (head ? sscanf (head, " %d %d ", &mp->mnt_freq, &mp->mnt_passno) : 0)
+ {
+ case 0:
+ mp->mnt_freq = 0;
+ case 1:
+ mp->mnt_passno = 0;
+ case 2:
+ break;
+ }
+
+ return mp;
+}
+
+struct mntent *getmntent (FILE *stream)
+{
+ static struct mntent m;
+ static char *getmntent_buffer;
+
+ #define BUFFER_SIZE 4096
+ if (getmntent_buffer == NULL) {
+ getmntent_buffer = (char *) malloc (BUFFER_SIZE);
+ }
+
+ return getmntent_r (stream, &m, getmntent_buffer, BUFFER_SIZE);
+ #undef BUFFER_SIZE
+}
+
+
+/* We have to use an encoding for names if they contain spaces or tabs.
+ To be able to represent all characters we also have to escape the
+ backslash itself. This "function" must be a macro since we use
+ `alloca'. */
+#define encode_name(name) \
+ do { \
+ const char *rp = name; \
+ \
+ while (*rp != '\0') \
+ if (*rp == ' ' || *rp == '\t' || *rp == '\n' || *rp == '\\') \
+ break; \
+ else \
+ ++rp; \
+ \
+ if (*rp != '\0') \
+ { \
+ /* In the worst case the length of the string can increase to \
+ four times the current length. */ \
+ char *wp; \
+ \
+ rp = name; \
+ name = wp = (char *) alloca (strlen (name) * 4 + 1); \
+ \
+ do \
+ if (*rp == ' ') \
+ { \
+ *wp++ = '\\'; \
+ *wp++ = '0'; \
+ *wp++ = '4'; \
+ *wp++ = '0'; \
+ } \
+ else if (*rp == '\t') \
+ { \
+ *wp++ = '\\'; \
+ *wp++ = '0'; \
+ *wp++ = '1'; \
+ *wp++ = '1'; \
+ } \
+ else if (*rp == '\n') \
+ { \
+ *wp++ = '\\'; \
+ *wp++ = '0'; \
+ *wp++ = '1'; \
+ *wp++ = '2'; \
+ } \
+ else if (*rp == '\\') \
+ { \
+ *wp++ = '\\'; \
+ *wp++ = '\\'; \
+ } \
+ else \
+ *wp++ = *rp; \
+ while (*rp++ != '\0'); \
+ } \
+ } while (0)
+
+
+/* Write the mount table entry described by MNT to STREAM.
+ Return zero on success, nonzero on failure. */
+int addmntent (FILE *stream, const struct mntent *mnt)
+{
+ struct mntent mntcopy = *mnt;
+ if (fseek (stream, 0, SEEK_END))
+ return 1;
+
+ /* Encode spaces and tabs in the names. */
+ encode_name (mntcopy.mnt_fsname);
+ encode_name (mntcopy.mnt_dir);
+ encode_name (mntcopy.mnt_type);
+ encode_name (mntcopy.mnt_opts);
+
+ return (fprintf (stream, "%s %s %s %s %d %d\n",
+ mntcopy.mnt_fsname,
+ mntcopy.mnt_dir,
+ mntcopy.mnt_type,
+ mntcopy.mnt_opts,
+ mntcopy.mnt_freq,
+ mntcopy.mnt_passno) < 0
+ || fflush (stream) != 0);
+}
+
+
+/* Search MNT->mnt_opts for an option matching OPT.
+ Returns the address of the substring, or null if none found. */
+char *hasmntopt (const struct mntent *mnt, const char *opt)
+{
+ const size_t optlen = strlen (opt);
+ char *rest = mnt->mnt_opts, *p;
+
+ while ((p = strstr (rest, opt)) != NULL)
+ {
+ if ((p == rest || p[-1] == ',')
+ && (p[optlen] == '\0' || p[optlen] == '=' || p[optlen] == ','))
+ return p;
+
+ rest = strchr (p, ',');
+ if (rest == NULL)
+ break;
+ ++rest;
+ }
+
+ return NULL;
+}
+
+
--
1.7.0.4
================================================
FILE: external/Makefile
================================================
# Please install the following prerequisites (instructions for each follows):
# Android OS SDK: http://source.android.com/download
#
# Install and prepare the Android OS SDK ( http://source.android.com/download )
# on Debian or Ubuntu
### these modify the calling shell
# point pkg-config to the .pc files generated from these builds
export PKG_CONFIG_PATH=$(LOCAL)/lib/pkgconfig
# workaround for cross-compiling bug in autoconf
export ac_cv_func_malloc_0_nonnull=yes
CWD = $(shell pwd)
PROJECT_ROOT = $(CWD)/..
EXTERNAL_ROOT = $(PROJECT_ROOT)/external
ASSETS = $(PROJECT_ROOT)/assets
# Android now has 64-bit and 32-bit versions of the NDK for GNU/Linux. We
# assume that the build platform uses the appropriate version, otherwise the
# user building this will have to manually set NDK_PROCESSOR or NDK_TOOLCHAIN.
CPU := $(shell uname -m)
ifeq ($(CPU),x86_64)
NDK_PROCESSOR=x86_64
else
NDK_PROCESSOR=x86
endif
# Android NDK setup
NDK_BASE ?= /opt/android-ndk
NDK_ABI=arm
NDK_TOOLCHAIN_VERSION=4.8
# NDK platform level, aka APP_PLATFORM, is equivalent to minSdkVersion
NDK_PLATFORM_LEVEL ?= \
$(shell sed -n 's,.*android:minSdkVersion="\([0-9][0-9]*\)".*,\1,p' $(PROJECT_ROOT)/AndroidManifest.xml)
NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
NDK_TOOLCHAIN = $(NDK_ABI)-linux-androideabi-$(NDK_TOOLCHAIN_VERSION)
NDK_TOOLCHAIN_BASE=$(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)
# to use the real HOST tag, you need the latest libtool files:
# http://stackoverflow.com/questions/4594736/configure-does-not-recognize-androideabi
#HOST := arm-none-linux-gnueabi
HOST := arm-linux-androideabi
PATH := ${PATH}:$(NDK_TOOLCHAIN_BASE)/bin
CC := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-gcc --sysroot=$(NDK_SYSROOT)
CXX := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-g++
CPP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-cpp
LD := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ld
AR := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ar
RANLIB := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ranlib
STRIP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip \
--strip-unneeded -R .note -R .comment
# build as small as possible, mostly useful for static binaries
ALL_CFLAGS = -fdata-sections -ffunction-sections -Os
ALL_LDFLAGS = -Wl,--gc-sections
# faketime needs to have a very specific timestamp format in order to freeze
# time. The time needs to be frozen so that the timestamps don't depend on
# the speed of the machine that the build process is running on. See `man
# faketime` for more info on the "advanced timestamp format". Also, force
# time to UTC so its always the same on all machines.
TIMESTAMP="$(shell faketime "`git log -n1 --format=format:%ai`" \
date --utc '+%Y-%m-%d %H:%M:%S')"
export TZ=UTC
.PHONY: all assets clean distclean
all: $(EXTERNAL_ROOT)/busybox/busybox $(EXTERNAL_ROOT)/gnupg/g10/gpgv
make -C $(EXTERNAL_ROOT)/cdebootstrap
assets: all
install $(EXTERNAL_ROOT)/busybox/busybox \
$(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar \
$(EXTERNAL_ROOT)/gnupg/g10/gpgv \
$(ASSETS)/
$(EXTERNAL_ROOT)/busybox/.config: $(EXTERNAL_ROOT)/busybox_config
cp $(EXTERNAL_ROOT)/busybox_config $(EXTERNAL_ROOT)/busybox/.config
sed -i "s|^CONFIG_SYSROOT=.*|CONFIG_SYSROOT=\"$(NDK_SYSROOT)\"|" \
$(EXTERNAL_ROOT)/busybox/.config
$(EXTERNAL_ROOT)/busybox/busybox: $(EXTERNAL_ROOT)/busybox/.config
# I haven't found a reliable way to install/uninstall a patch from a Makefile,
# so just always try to apply it, and ignore it if it fails. Works fine unless
# the files being patched have changed, in which cause a partial application
# could happen unnoticed.
-cd $(EXTERNAL_ROOT)/busybox/ && \
patch -N -p1 --reject-file=- < ../003-mount-umount-fsck-df.patch
echo "TIMESTAMP: $(TIMESTAMP)"
faketime -f $(TIMESTAMP) make -C $(EXTERNAL_ROOT)/busybox/
$(EXTERNAL_ROOT)/gnupg/configure: $(EXTERNAL_ROOT)/gnupg/configure.ac
cd $(EXTERNAL_ROOT)/gnupg && \
./autogen.sh --force
$(EXTERNAL_ROOT)/gnupg/Makefile: $(EXTERNAL_ROOT)/gnupg/configure
cd $(EXTERNAL_ROOT)/gnupg && \
SYSROOT=$(NDK_SYSROOT) \
AR="$(AR)" \
CC="$(CC)" \
LD="$(LD)" \
CFLAGS="$(ALL_CFLAGS)" \
LDFLAGS="$(ALL_LDFLAGS) -static" \
./configure \
--host=$(HOST) \
--disable-agent-support \
--disable-bzip2 \
--disable-card-support \
--disable-exec \
--disable-keyserver-helpers \
--disable-hkp \
--disable-ldap \
--disable-nls \
--disable-photo-viewers
$(EXTERNAL_ROOT)/gnupg/g10/gpgv: $(EXTERNAL_ROOT)/gnupg/Makefile
make -C $(EXTERNAL_ROOT)/gnupg/cipher
make -C $(EXTERNAL_ROOT)/gnupg/mpi
make -C $(EXTERNAL_ROOT)/gnupg/util
make -C $(EXTERNAL_ROOT)/gnupg/zlib
make -C $(EXTERNAL_ROOT)/gnupg/g10
$(STRIP) $(EXTERNAL_ROOT)/gnupg/g10/gpgv
# to re-download and verify that the .debs included in git match the official
# Debian ones
verify-debian-packages: clean
make -C $(EXTERNAL_ROOT)/debian-archive-keyring
-rm $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap-static*.deb
make -C $(EXTERNAL_ROOT)/cdebootstrap
clean:
rm -f -- $(EXTERNAL_ROOT)/busybox/.config
rm -f -- $(EXTERNAL_ROOT)/busybox/busybox
-cd $(EXTERNAL_ROOT)/busybox/ && \
patch -N -R -p1 --reject-file=- < ../003-mount-umount-fsck-df.patch
-make -C $(EXTERNAL_ROOT)/gnupg/ clean
make -C $(EXTERNAL_ROOT)/busybox/ clean
make -C $(EXTERNAL_ROOT)/cdebootstrap/ clean
make -C $(EXTERNAL_ROOT)/debian-archive-keyring/ clean
distclean: clean
rm -f -- $(ASSETS)/busybox
rm -f -- $(ASSETS)/cdebootstrap.tar
================================================
FILE: external/busybox_config
================================================
#
# Automatically generated make config: don't edit
# Busybox version: 1.22.1
# Tue Feb 10 10:57:31 2015
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Busybox Settings
#
#
# General Configuration
#
# CONFIG_DESKTOP is not set
# CONFIG_EXTRA_COMPAT is not set
# CONFIG_INCLUDE_SUSv2 is not set
# CONFIG_USE_PORTABLE_CODE is not set
CONFIG_PLATFORM_LINUX=y
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
CONFIG_SHOW_USAGE=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_FEATURE_COMPRESS_USAGE=y
CONFIG_FEATURE_INSTALLER=y
CONFIG_INSTALL_NO_USR=y
# CONFIG_LOCALE_SUPPORT is not set
CONFIG_UNICODE_SUPPORT=y
# CONFIG_UNICODE_USING_LOCALE is not set
# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
CONFIG_SUBST_WCHAR=63
CONFIG_LAST_SUPPORTED_WCHAR=0
# CONFIG_UNICODE_COMBINING_WCHARS is not set
CONFIG_UNICODE_WIDE_WCHARS=y
# CONFIG_UNICODE_BIDI_SUPPORT is not set
# CONFIG_UNICODE_NEUTRAL_TABLE is not set
CONFIG_UNICODE_PRESERVE_BROKEN=y
CONFIG_LONG_OPTS=y
# CONFIG_FEATURE_DEVPTS is not set
# CONFIG_FEATURE_CLEAN_UP is not set
# CONFIG_FEATURE_UTMP is not set
# CONFIG_FEATURE_WTMP is not set
# CONFIG_FEATURE_PIDFILE is not set
CONFIG_PID_FILE_PATH=""
CONFIG_FEATURE_SUID=y
# CONFIG_FEATURE_SUID_CONFIG is not set
# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set
# CONFIG_SELINUX is not set
# CONFIG_FEATURE_PREFER_APPLETS is not set
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
# CONFIG_FEATURE_SYSLOG is not set
# CONFIG_FEATURE_HAVE_RPC is not set
#
# Build Options
#
CONFIG_STATIC=y
# CONFIG_PIE is not set
# CONFIG_NOMMU is not set
# CONFIG_BUILD_LIBBUSYBOX is not set
# CONFIG_FEATURE_INDIVIDUAL is not set
# CONFIG_FEATURE_SHARED_BUSYBOX is not set
# CONFIG_LFS is not set
CONFIG_CROSS_COMPILER_PREFIX="arm-linux-androideabi-"
CONFIG_SYSROOT="/opt/android-ndk/platforms/android-8/arch-arm"
CONFIG_EXTRA_CFLAGS="-DANDROID -D__ANDROID__ -DSK_RELEASE -nostdlib -march=armv5te -mtune=xscale -msoft-float -mthumb -mthumb-interwork -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -fpic -fno-short-enums -fgcse-after-reload -frename-registers"
CONFIG_EXTRA_LDFLAGS="-Xlinker -z -Xlinker muldefs -nostdlib -Bdynamic -Xlinker -dynamic-linker -Xlinker /system/bin/linker -Xlinker -z -Xlinker nocopyreloc -Xlinker --no-undefined ${SYSROOT}/usr/lib/crtbegin_dynamic.o ${SYSROOT}/usr/lib/crtend_android.o"
CONFIG_EXTRA_LDLIBS="m c gcc"
#
# Debugging Options
#
# CONFIG_DEBUG is not set
# CONFIG_DEBUG_PESSIMIZE is not set
# CONFIG_WERROR is not set
CONFIG_NO_DEBUG_LIB=y
# CONFIG_DMALLOC is not set
# CONFIG_EFENCE is not set
#
# Installation Options ("make install" behavior)
#
CONFIG_INSTALL_APPLET_SYMLINKS=y
# CONFIG_INSTALL_APPLET_HARDLINKS is not set
# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set
# CONFIG_INSTALL_APPLET_DONT is not set
# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set
# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set
# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set
CONFIG_PREFIX="./_install"
#
# Busybox Library Tuning
#
# CONFIG_FEATURE_SYSTEMD is not set
# CONFIG_FEATURE_RTMINMAX is not set
CONFIG_PASSWORD_MINLEN=6
CONFIG_MD5_SMALL=1
CONFIG_SHA3_SMALL=1
# CONFIG_FEATURE_FAST_TOP is not set
# CONFIG_FEATURE_ETC_NETWORKS is not set
# CONFIG_FEATURE_USE_TERMIOS is not set
# CONFIG_FEATURE_EDITING is not set
CONFIG_FEATURE_EDITING_MAX_LEN=0
# CONFIG_FEATURE_EDITING_VI is not set
CONFIG_FEATURE_EDITING_HISTORY=0
# CONFIG_FEATURE_EDITING_SAVEHISTORY is not set
# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set
# CONFIG_FEATURE_REVERSE_SEARCH is not set
# CONFIG_FEATURE_TAB_COMPLETION is not set
# CONFIG_FEATURE_USERNAME_COMPLETION is not set
# CONFIG_FEATURE_EDITING_FANCY_PROMPT is not set
# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set
# CONFIG_FEATURE_NON_POSIX_CP is not set
CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y
CONFIG_FEATURE_COPYBUF_KB=4
# CONFIG_FEATURE_SKIP_ROOTFS is not set
# CONFIG_MONOTONIC_SYSCALL is not set
# CONFIG_IOCTL_HEX2STR_ERROR is not set
# CONFIG_FEATURE_HWIB is not set
#
# Applets
#
#
# Archival Utilities
#
CONFIG_FEATURE_SEAMLESS_XZ=y
CONFIG_FEATURE_SEAMLESS_LZMA=y
CONFIG_FEATURE_SEAMLESS_BZ2=y
CONFIG_FEATURE_SEAMLESS_GZ=y
CONFIG_FEATURE_SEAMLESS_Z=y
CONFIG_AR=y
CONFIG_FEATURE_AR_LONG_FILENAMES=y
CONFIG_FEATURE_AR_CREATE=y
# CONFIG_UNCOMPRESS is not set
CONFIG_GUNZIP=y
CONFIG_BUNZIP2=y
CONFIG_UNLZMA=y
CONFIG_FEATURE_LZMA_FAST=y
CONFIG_LZMA=y
CONFIG_UNXZ=y
CONFIG_XZ=y
# CONFIG_BZIP2 is not set
CONFIG_CPIO=y
CONFIG_FEATURE_CPIO_O=y
CONFIG_FEATURE_CPIO_P=y
# CONFIG_DPKG is not set
# CONFIG_DPKG_DEB is not set
# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
# CONFIG_GZIP is not set
# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
CONFIG_GZIP_FAST=0
# CONFIG_LZOP is not set
# CONFIG_LZOP_COMPR_HIGH is not set
# CONFIG_RPM is not set
# CONFIG_RPM2CPIO is not set
CONFIG_TAR=y
CONFIG_FEATURE_TAR_CREATE=y
CONFIG_FEATURE_TAR_AUTODETECT=y
CONFIG_FEATURE_TAR_FROM=y
# CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY is not set
# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set
# CONFIG_FEATURE_TAR_TO_COMMAND is not set
CONFIG_FEATURE_TAR_UNAME_GNAME=y
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y
# CONFIG_FEATURE_TAR_SELINUX is not set
# CONFIG_UNZIP is not set
#
# Coreutils
#
CONFIG_BASENAME=y
CONFIG_CAT=y
# CONFIG_DATE is not set
# CONFIG_FEATURE_DATE_ISOFMT is not set
# CONFIG_FEATURE_DATE_NANO is not set
# CONFIG_FEATURE_DATE_COMPAT is not set
# CONFIG_HOSTID is not set
CONFIG_ID=y
# CONFIG_GROUPS is not set
CONFIG_TEST=y
CONFIG_FEATURE_TEST_64=y
CONFIG_TOUCH=y
# CONFIG_FEATURE_TOUCH_NODEREF is not set
# CONFIG_FEATURE_TOUCH_SUSV3 is not set
CONFIG_TR=y
CONFIG_FEATURE_TR_CLASSES=y
CONFIG_FEATURE_TR_EQUIV=y
# CONFIG_BASE64 is not set
# CONFIG_WHO is not set
# CONFIG_USERS is not set
# CONFIG_CAL is not set
# CONFIG_CATV is not set
CONFIG_CHGRP=y
CONFIG_CHMOD=y
CONFIG_CHOWN=y
CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y
CONFIG_CHROOT=y
# CONFIG_CKSUM is not set
# CONFIG_COMM is not set
CONFIG_CP=y
CONFIG_FEATURE_CP_LONG_OPTIONS=y
CONFIG_CUT=y
CONFIG_DD=y
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y
CONFIG_FEATURE_DD_IBS_OBS=y
# CONFIG_DF is not set
# CONFIG_FEATURE_DF_FANCY is not set
CONFIG_DIRNAME=y
# CONFIG_DOS2UNIX is not set
# CONFIG_UNIX2DOS is not set
# CONFIG_DU is not set
# CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K is not set
CONFIG_ECHO=y
CONFIG_FEATURE_FANCY_ECHO=y
CONFIG_ENV=y
CONFIG_FEATURE_ENV_LONG_OPTIONS=y
# CONFIG_EXPAND is not set
# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set
CONFIG_EXPR=y
CONFIG_EXPR_MATH_SUPPORT_64=y
# CONFIG_FALSE is not set
# CONFIG_FOLD is not set
# CONFIG_FSYNC is not set
CONFIG_HEAD=y
CONFIG_FEATURE_FANCY_HEAD=y
# CONFIG_INSTALL is not set
# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set
CONFIG_LN=y
# CONFIG_LOGNAME is not set
CONFIG_LS=y
CONFIG_FEATURE_LS_FILETYPES=y
CONFIG_FEATURE_LS_FOLLOWLINKS=y
CONFIG_FEATURE_LS_RECURSIVE=y
CONFIG_FEATURE_LS_SORTFILES=y
# CONFIG_FEATURE_LS_TIMESTAMPS is not set
# CONFIG_FEATURE_LS_USERNAME is not set
# CONFIG_FEATURE_LS_COLOR is not set
# CONFIG_FEATURE_LS_COLOR_IS_DEFAULT is not set
CONFIG_MD5SUM=y
CONFIG_MKDIR=y
CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y
# CONFIG_MKFIFO is not set
CONFIG_MKNOD=y
CONFIG_MV=y
CONFIG_FEATURE_MV_LONG_OPTIONS=y
CONFIG_NICE=y
# CONFIG_NOHUP is not set
# CONFIG_OD is not set
# CONFIG_PRINTENV is not set
CONFIG_PRINTF=y
CONFIG_PWD=y
CONFIG_READLINK=y
CONFIG_FEATURE_READLINK_FOLLOW=y
CONFIG_REALPATH=y
CONFIG_RM=y
CONFIG_RMDIR=y
CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y
# CONFIG_SEQ is not set
CONFIG_SHA1SUM=y
CONFIG_SHA256SUM=y
CONFIG_SHA512SUM=y
CONFIG_SHA3SUM=y
CONFIG_SLEEP=y
CONFIG_FEATURE_FANCY_SLEEP=y
CONFIG_FEATURE_FLOAT_SLEEP=y
CONFIG_SORT=y
CONFIG_FEATURE_SORT_BIG=y
# CONFIG_SPLIT is not set
# CONFIG_FEATURE_SPLIT_FANCY is not set
# CONFIG_STAT is not set
# CONFIG_FEATURE_STAT_FORMAT is not set
# CONFIG_STTY is not set
# CONFIG_SUM is not set
CONFIG_SYNC=y
# CONFIG_TAC is not set
CONFIG_TAIL=y
CONFIG_FEATURE_FANCY_TAIL=y
# CONFIG_TEE is not set
# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set
# CONFIG_TRUE is not set
# CONFIG_TTY is not set
CONFIG_UNAME=y
# CONFIG_UNEXPAND is not set
# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
CONFIG_UNIQ=y
# CONFIG_USLEEP is not set
# CONFIG_UUDECODE is not set
# CONFIG_UUENCODE is not set
CONFIG_WC=y
CONFIG_FEATURE_WC_LARGE=y
CONFIG_WHOAMI=y
# CONFIG_YES is not set
#
# Common options for cp and mv
#
# CONFIG_FEATURE_PRESERVE_HARDLINKS is not set
#
# Common options for ls, more and telnet
#
# CONFIG_FEATURE_AUTOWIDTH is not set
#
# Common options for df, du, ls
#
# CONFIG_FEATURE_HUMAN_READABLE is not set
#
# Common options for md5sum, sha1sum, sha256sum, sha512sum, sha3sum
#
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
#
# Console Utilities
#
# CONFIG_CHVT is not set
# CONFIG_FGCONSOLE is not set
# CONFIG_CLEAR is not set
# CONFIG_DEALLOCVT is not set
# CONFIG_DUMPKMAP is not set
# CONFIG_KBD_MODE is not set
# CONFIG_LOADFONT is not set
# CONFIG_LOADKMAP is not set
# CONFIG_OPENVT is not set
# CONFIG_RESET is not set
# CONFIG_RESIZE is not set
# CONFIG_FEATURE_RESIZE_PRINT is not set
# CONFIG_SETCONSOLE is not set
# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set
# CONFIG_SETFONT is not set
# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set
CONFIG_DEFAULT_SETFONT_DIR=""
# CONFIG_SETKEYCODES is not set
# CONFIG_SETLOGCONS is not set
# CONFIG_SHOWKEY is not set
# CONFIG_FEATURE_LOADFONT_PSF2 is not set
# CONFIG_FEATURE_LOADFONT_RAW is not set
#
# Debian Utilities
#
# CONFIG_MKTEMP is not set
# CONFIG_PIPE_PROGRESS is not set
# CONFIG_RUN_PARTS is not set
# CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS is not set
# CONFIG_FEATURE_RUN_PARTS_FANCY is not set
# CONFIG_START_STOP_DAEMON is not set
# CONFIG_FEATURE_START_STOP_DAEMON_FANCY is not set
# CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS is not set
# CONFIG_WHICH is not set
#
# Editors
#
CONFIG_AWK=y
# CONFIG_FEATURE_AWK_LIBM is not set
CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y
# CONFIG_CMP is not set
# CONFIG_DIFF is not set
# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
# CONFIG_FEATURE_DIFF_DIR is not set
# CONFIG_ED is not set
CONFIG_PATCH=y
CONFIG_SED=y
# CONFIG_VI is not set
CONFIG_FEATURE_VI_MAX_LEN=0
# CONFIG_FEATURE_VI_8BIT is not set
# CONFIG_FEATURE_VI_COLON is not set
# CONFIG_FEATURE_VI_YANKMARK is not set
# CONFIG_FEATURE_VI_SEARCH is not set
# CONFIG_FEATURE_VI_REGEX_SEARCH is not set
# CONFIG_FEATURE_VI_USE_SIGNALS is not set
# CONFIG_FEATURE_VI_DOT_CMD is not set
# CONFIG_FEATURE_VI_READONLY is not set
# CONFIG_FEATURE_VI_SETOPTS is not set
# CONFIG_FEATURE_VI_SET is not set
# CONFIG_FEATURE_VI_WIN_RESIZE is not set
# CONFIG_FEATURE_VI_ASK_TERMINAL is not set
# CONFIG_FEATURE_ALLOW_EXEC is not set
#
# Finding Utilities
#
# CONFIG_FIND is not set
# CONFIG_FEATURE_FIND_PRINT0 is not set
# CONFIG_FEATURE_FIND_MTIME is not set
# CONFIG_FEATURE_FIND_MMIN is not set
# CONFIG_FEATURE_FIND_PERM is not set
# CONFIG_FEATURE_FIND_TYPE is not set
# CONFIG_FEATURE_FIND_XDEV is not set
# CONFIG_FEATURE_FIND_MAXDEPTH is not set
# CONFIG_FEATURE_FIND_NEWER is not set
# CONFIG_FEATURE_FIND_INUM is not set
# CONFIG_FEATURE_FIND_EXEC is not set
# CONFIG_FEATURE_FIND_USER is not set
# CONFIG_FEATURE_FIND_GROUP is not set
# CONFIG_FEATURE_FIND_NOT is not set
# CONFIG_FEATURE_FIND_DEPTH is not set
# CONFIG_FEATURE_FIND_PAREN is not set
# CONFIG_FEATURE_FIND_SIZE is not set
# CONFIG_FEATURE_FIND_PRUNE is not set
# CONFIG_FEATURE_FIND_DELETE is not set
# CONFIG_FEATURE_FIND_PATH is not set
# CONFIG_FEATURE_FIND_REGEX is not set
# CONFIG_FEATURE_FIND_CONTEXT is not set
# CONFIG_FEATURE_FIND_LINKS is not set
CONFIG_GREP=y
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
CONFIG_FEATURE_GREP_CONTEXT=y
# CONFIG_XARGS is not set
# CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION is not set
# CONFIG_FEATURE_XARGS_SUPPORT_QUOTES is not set
# CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT is not set
# CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM is not set
#
# Init Utilities
#
# CONFIG_BOOTCHARTD is not set
# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set
# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set
# CONFIG_HALT is not set
# CONFIG_FEATURE_CALL_TELINIT is not set
CONFIG_TELINIT_PATH=""
# CONFIG_INIT is not set
# CONFIG_FEATURE_USE_INITTAB is not set
# CONFIG_FEATURE_KILL_REMOVED is not set
CONFIG_FEATURE_KILL_DELAY=0
# CONFIG_FEATURE_INIT_SCTTY is not set
# CONFIG_FEATURE_INIT_SYSLOG is not set
# CONFIG_FEATURE_EXTRA_QUIET is not set
# CONFIG_FEATURE_INIT_COREDUMPS is not set
# CONFIG_FEATURE_INITRD is not set
CONFIG_INIT_TERMINAL_TYPE=""
# CONFIG_MESG is not set
# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set
#
# Login/Password Management Utilities
#
# CONFIG_ADD_SHELL is not set
# CONFIG_REMOVE_SHELL is not set
# CONFIG_FEATURE_SHADOWPASSWDS is not set
# CONFIG_USE_BB_PWD_GRP is not set
# CONFIG_USE_BB_SHADOW is not set
# CONFIG_USE_BB_CRYPT is not set
# CONFIG_USE_BB_CRYPT_SHA is not set
# CONFIG_ADDUSER is not set
# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
# CONFIG_FEATURE_CHECK_NAMES is not set
CONFIG_FIRST_SYSTEM_ID=0
CONFIG_LAST_SYSTEM_ID=0
# CONFIG_ADDGROUP is not set
# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set
# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set
# CONFIG_DELUSER is not set
# CONFIG_DELGROUP is not set
# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set
# CONFIG_GETTY is not set
# CONFIG_LOGIN is not set
# CONFIG_LOGIN_SESSION_AS_CHILD is not set
# CONFIG_PAM is not set
# CONFIG_LOGIN_SCRIPTS is not set
# CONFIG_FEATURE_NOLOGIN is not set
# CONFIG_FEATURE_SECURETTY is not set
# CONFIG_PASSWD is not set
# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set
# CONFIG_CRYPTPW is not set
# CONFIG_CHPASSWD is not set
CONFIG_FEATURE_DEFAULT_PASSWD_ALGO=""
# CONFIG_SU is not set
# CONFIG_FEATURE_SU_SYSLOG is not set
# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set
# CONFIG_SULOGIN is not set
# CONFIG_VLOCK is not set
#
# Linux Ext2 FS Progs
#
# CONFIG_CHATTR is not set
CONFIG_FSCK=y
# CONFIG_LSATTR is not set
CONFIG_TUNE2FS=y
#
# Linux Module Utilities
#
# CONFIG_MODINFO is not set
# CONFIG_MODPROBE_SMALL is not set
# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set
# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set
# CONFIG_INSMOD is not set
# CONFIG_RMMOD is not set
# CONFIG_LSMOD is not set
# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
# CONFIG_MODPROBE is not set
# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set
# CONFIG_DEPMOD is not set
#
# Options common to multiple modutils
#
# CONFIG_FEATURE_2_4_MODULES is not set
# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
CONFIG_DEFAULT_MODULES_DIR=""
CONFIG_DEFAULT_DEPMOD_FILE=""
#
# Linux System Utilities
#
# CONFIG_BLOCKDEV is not set
CONFIG_FSTRIM=y
# CONFIG_MDEV is not set
# CONFIG_FEATURE_MDEV_CONF is not set
# CONFIG_FEATURE_MDEV_RENAME is not set
# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
# CONFIG_FEATURE_MDEV_EXEC is not set
# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
# CONFIG_REV is not set
# CONFIG_ACPID is not set
# CONFIG_FEATURE_ACPID_COMPAT is not set
# CONFIG_BLKID is not set
# CONFIG_FEATURE_BLKID_TYPE is not set
# CONFIG_DMESG is not set
# CONFIG_FEATURE_DMESG_PRETTY is not set
# CONFIG_FBSET is not set
# CONFIG_FEATURE_FBSET_FANCY is not set
# CONFIG_FEATURE_FBSET_READMODE is not set
# CONFIG_FDFLUSH is not set
# CONFIG_FDFORMAT is not set
CONFIG_FDISK=y
CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
CONFIG_FEATURE_FDISK_WRITABLE=y
# CONFIG_FEATURE_AIX_LABEL is not set
# CONFIG_FEATURE_SGI_LABEL is not set
# CONFIG_FEATURE_SUN_LABEL is not set
# CONFIG_FEATURE_OSF_LABEL is not set
# CONFIG_FEATURE_GPT_LABEL is not set
CONFIG_FEATURE_FDISK_ADVANCED=y
# CONFIG_FINDFS is not set
# CONFIG_FLOCK is not set
# CONFIG_FREERAMDISK is not set
# CONFIG_FSCK_MINIX is not set
CONFIG_MKFS_EXT2=y
# CONFIG_MKFS_MINIX is not set
# CONFIG_FEATURE_MINIX2 is not set
# CONFIG_MKFS_REISER is not set
CONFIG_MKFS_VFAT=y
# CONFIG_GETOPT is not set
# CONFIG_FEATURE_GETOPT_LONG is not set
# CONFIG_HEXDUMP is not set
# CONFIG_FEATURE_HEXDUMP_REVERSE is not set
# CONFIG_HD is not set
# CONFIG_HWCLOCK is not set
# CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS is not set
# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set
# CONFIG_IPCRM is not set
# CONFIG_IPCS is not set
CONFIG_LOSETUP=y
# CONFIG_LSPCI is not set
# CONFIG_LSUSB is not set
# CONFIG_MKSWAP is not set
# CONFIG_FEATURE_MKSWAP_UUID is not set
# CONFIG_MORE is not set
CONFIG_MOUNT=y
CONFIG_FEATURE_MOUNT_FAKE=y
CONFIG_FEATURE_MOUNT_VERBOSE=y
CONFIG_FEATURE_MOUNT_HELPERS=y
CONFIG_FEATURE_MOUNT_LABEL=y
# CONFIG_FEATURE_MOUNT_NFS is not set
# CONFIG_FEATURE_MOUNT_CIFS is not set
CONFIG_FEATURE_MOUNT_FLAGS=y
CONFIG_FEATURE_MOUNT_FSTAB=y
# CONFIG_PIVOT_ROOT is not set
# CONFIG_RDATE is not set
# CONFIG_RDEV is not set
# CONFIG_READPROFILE is not set
# CONFIG_RTCWAKE is not set
# CONFIG_SCRIPT is not set
# CONFIG_SCRIPTREPLAY is not set
# CONFIG_SETARCH is not set
# CONFIG_SWAPONOFF is not set
# CONFIG_FEATURE_SWAPON_PRI is not set
# CONFIG_SWITCH_ROOT is not set
CONFIG_UMOUNT=y
# CONFIG_FEATURE_UMOUNT_ALL is not set
#
# Common options for mount/umount
#
CONFIG_FEATURE_MOUNT_LOOP=y
CONFIG_FEATURE_MOUNT_LOOP_CREATE=y
# CONFIG_FEATURE_MTAB_SUPPORT is not set
CONFIG_VOLUMEID=y
#
# Filesystem/Volume identification
#
CONFIG_FEATURE_VOLUMEID_BTRFS=y
CONFIG_FEATURE_VOLUMEID_CRAMFS=y
CONFIG_FEATURE_VOLUMEID_EXFAT=y
CONFIG_FEATURE_VOLUMEID_EXT=y
CONFIG_FEATURE_VOLUMEID_F2FS=y
CONFIG_FEATURE_VOLUMEID_FAT=y
CONFIG_FEATURE_VOLUMEID_HFS=y
CONFIG_FEATURE_VOLUMEID_ISO9660=y
CONFIG_FEATURE_VOLUMEID_JFS=y
CONFIG_FEATURE_VOLUMEID_LINUXRAID=y
CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
CONFIG_FEATURE_VOLUMEID_LUKS=y
CONFIG_FEATURE_VOLUMEID_NILFS=y
CONFIG_FEATURE_VOLUMEID_NTFS=y
CONFIG_FEATURE_VOLUMEID_OCFS2=y
CONFIG_FEATURE_VOLUMEID_REISERFS=y
CONFIG_FEATURE_VOLUMEID_ROMFS=y
# CONFIG_FEATURE_VOLUMEID_SQUASHFS is not set
CONFIG_FEATURE_VOLUMEID_SYSV=y
CONFIG_FEATURE_VOLUMEID_UDF=y
CONFIG_FEATURE_VOLUMEID_XFS=y
#
# Miscellaneous Utilities
#
# CONFIG_CONSPY is not set
# CONFIG_LESS is not set
CONFIG_FEATURE_LESS_MAXLINES=0
# CONFIG_FEATURE_LESS_BRACKETS is not set
# CONFIG_FEATURE_LESS_FLAGS is not set
# CONFIG_FEATURE_LESS_MARKS is not set
# CONFIG_FEATURE_LESS_REGEXP is not set
# CONFIG_FEATURE_LESS_WINCH is not set
# CONFIG_FEATURE_LESS_ASK_TERMINAL is not set
# CONFIG_FEATURE_LESS_DASHCMD is not set
# CONFIG_FEATURE_LESS_LINENUMS is not set
# CONFIG_NANDWRITE is not set
# CONFIG_NANDDUMP is not set
# CONFIG_RFKILL is not set
# CONFIG_SETSERIAL is not set
# CONFIG_UBIATTACH is not set
# CONFIG_UBIDETACH is not set
# CONFIG_UBIMKVOL is not set
# CONFIG_UBIRMVOL is not set
# CONFIG_UBIRSVOL is not set
# CONFIG_UBIUPDATEVOL is not set
# CONFIG_WALL is not set
# CONFIG_ADJTIMEX is not set
# CONFIG_BBCONFIG is not set
# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set
# CONFIG_BEEP is not set
CONFIG_FEATURE_BEEP_FREQ=0
CONFIG_FEATURE_BEEP_LENGTH_MS=0
# CONFIG_CHAT is not set
# CONFIG_FEATURE_CHAT_NOFAIL is not set
# CONFIG_FEATURE_CHAT_TTY_HIFI is not set
# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set
# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set
# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set
# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set
# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
# CONFIG_CHRT is not set
# CONFIG_CROND is not set
# CONFIG_FEATURE_CROND_D is not set
# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
CONFIG_FEATURE_CROND_DIR=""
# CONFIG_CRONTAB is not set
# CONFIG_DC is not set
# CONFIG_FEATURE_DC_LIBM is not set
# CONFIG_DEVFSD is not set
# CONFIG_DEVFSD_MODLOAD is not set
# CONFIG_DEVFSD_FG_NP is not set
# CONFIG_DEVFSD_VERBOSE is not set
# CONFIG_FEATURE_DEVFS is not set
# CONFIG_DEVMEM is not set
# CONFIG_EJECT is not set
# CONFIG_FEATURE_EJECT_SCSI is not set
# CONFIG_FBSPLASH is not set
# CONFIG_FLASHCP is not set
# CONFIG_FLASH_LOCK is not set
# CONFIG_FLASH_UNLOCK is not set
# CONFIG_FLASH_ERASEALL is not set
# CONFIG_IONICE is not set
# CONFIG_INOTIFYD is not set
# CONFIG_LAST is not set
# CONFIG_FEATURE_LAST_SMALL is not set
# CONFIG_FEATURE_LAST_FANCY is not set
# CONFIG_HDPARM is not set
# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set
# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set
# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set
# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set
# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set
# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set
# CONFIG_MAKEDEVS is not set
# CONFIG_FEATURE_MAKEDEVS_LEAF is not set
# CONFIG_FEATURE_MAKEDEVS_TABLE is not set
# CONFIG_MAN is not set
# CONFIG_MICROCOM is not set
# CONFIG_MOUNTPOINT is not set
# CONFIG_MT is not set
# CONFIG_RAIDAUTORUN is not set
CONFIG_READAHEAD=y
# CONFIG_RUNLEVEL is not set
# CONFIG_RX is not set
# CONFIG_SETSID is not set
# CONFIG_STRINGS is not set
# CONFIG_TASKSET is not set
# CONFIG_FEATURE_TASKSET_FANCY is not set
# CONFIG_TIME is not set
# CONFIG_TIMEOUT is not set
# CONFIG_TTYSIZE is not set
# CONFIG_VOLNAME is not set
# CONFIG_WATCHDOG is not set
#
# Networking Utilities
#
# CONFIG_NAMEIF is not set
# CONFIG_FEATURE_NAMEIF_EXTENDED is not set
# CONFIG_NBDCLIENT is not set
# CONFIG_NC is not set
# CONFIG_NC_SERVER is not set
# CONFIG_NC_EXTRA is not set
# CONFIG_NC_110_COMPAT is not set
# CONFIG_PING is not set
# CONFIG_PING6 is not set
# CONFIG_FEATURE_FANCY_PING is not set
# CONFIG_WHOIS is not set
# CONFIG_FEATURE_IPV6 is not set
# CONFIG_FEATURE_UNIX_LOCAL is not set
# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set
# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set
# CONFIG_ARP is not set
# CONFIG_ARPING is not set
# CONFIG_BRCTL is not set
# CONFIG_FEATURE_BRCTL_FANCY is not set
# CONFIG_FEATURE_BRCTL_SHOW is not set
# CONFIG_DNSD is not set
# CONFIG_ETHER_WAKE is not set
# CONFIG_FAKEIDENTD is not set
# CONFIG_FTPD is not set
# CONFIG_FEATURE_FTP_WRITE is not set
# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
# CONFIG_HOSTNAME is not set
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_RANGES is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_SETUID is not set
# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set
# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set
# CONFIG_FEATURE_HTTPD_CGI is not set
# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set
# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set
# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set
# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set
# CONFIG_FEATURE_HTTPD_PROXY is not set
# CONFIG_FEATURE_HTTPD_GZIP is not set
# CONFIG_IFCONFIG is not set
# CONFIG_FEATURE_IFCONFIG_STATUS is not set
# CONFIG_FEATURE_IFCONFIG_SLIP is not set
# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set
# CONFIG_FEATURE_IFCONFIG_HW is not set
# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set
# CONFIG_IFENSLAVE is not set
# CONFIG_IFPLUGD is not set
# CONFIG_IFUPDOWN is not set
CONFIG_IFUPDOWN_IFSTATE_PATH=""
# CONFIG_FEATURE_IFUPDOWN_IP is not set
# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set
# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set
# CONFIG_FEATURE_IFUPDOWN_IPV4 is not set
# CONFIG_FEATURE_IFUPDOWN_IPV6 is not set
# CONFIG_FEATURE_IFUPDOWN_MAPPING is not set
# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set
# CONFIG_INETD is not set
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME is not set
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME is not set
# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN is not set
# CONFIG_FEATURE_INETD_RPC is not set
# CONFIG_IP is not set
# CONFIG_FEATURE_IP_ADDRESS is not set
# CONFIG_FEATURE_IP_LINK is not set
# CONFIG_FEATURE_IP_ROUTE is not set
# CONFIG_FEATURE_IP_TUNNEL is not set
# CONFIG_FEATURE_IP_RULE is not set
# CONFIG_FEATURE_IP_SHORT_FORMS is not set
# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set
# CONFIG_IPADDR is not set
# CONFIG_IPLINK is not set
# CONFIG_IPROUTE is not set
# CONFIG_IPTUNNEL is not set
# CONFIG_IPRULE is not set
# CONFIG_IPCALC is not set
# CONFIG_FEATURE_IPCALC_FANCY is not set
# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set
# CONFIG_NETSTAT is not set
# CONFIG_FEATURE_NETSTAT_WIDE is not set
# CONFIG_FEATURE_NETSTAT_PRG is not set
# CONFIG_NSLOOKUP is not set
# CONFIG_NTPD is not set
# CONFIG_FEATURE_NTPD_SERVER is not set
# CONFIG_PSCAN is not set
# CONFIG_ROUTE is not set
# CONFIG_SLATTACH is not set
# CONFIG_TCPSVD is not set
# CONFIG_TELNET is not set
# CONFIG_FEATURE_TELNET_TTYPE is not set
# CONFIG_FEATURE_TELNET_AUTOLOGIN is not set
# CONFIG_TELNETD is not set
# CONFIG_FEATURE_TELNETD_STANDALONE is not set
# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
# CONFIG_TFTP is not set
# CONFIG_TFTPD is not set
# CONFIG_FEATURE_TFTP_GET is not set
# CONFIG_FEATURE_TFTP_PUT is not set
# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set
# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set
# CONFIG_TFTP_DEBUG is not set
# CONFIG_TRACEROUTE is not set
# CONFIG_TRACEROUTE6 is not set
# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set
# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
# CONFIG_TUNCTL is not set
# CONFIG_FEATURE_TUNCTL_UG is not set
# CONFIG_UDHCPC6 is not set
# CONFIG_UDHCPD is not set
# CONFIG_DHCPRELAY is not set
# CONFIG_DUMPLEASES is not set
# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set
# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set
CONFIG_DHCPD_LEASES_FILE=""
# CONFIG_UDHCPC is not set
# CONFIG_FEATURE_UDHCPC_ARPING is not set
# CONFIG_FEATURE_UDHCP_PORT is not set
CONFIG_UDHCP_DEBUG=0
# CONFIG_FEATURE_UDHCP_RFC3397 is not set
# CONFIG_FEATURE_UDHCP_8021Q is not set
CONFIG_UDHCPC_DEFAULT_SCRIPT=""
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=0
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""
# CONFIG_UDPSVD is not set
# CONFIG_VCONFIG is not set
CONFIG_WGET=y
CONFIG_FEATURE_WGET_STATUSBAR=y
# CONFIG_FEATURE_WGET_AUTHENTICATION is not set
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
CONFIG_FEATURE_WGET_TIMEOUT=y
# CONFIG_ZCIP is not set
#
# Print Utilities
#
# CONFIG_LPD is not set
# CONFIG_LPR is not set
# CONFIG_LPQ is not set
#
# Mail Utilities
#
# CONFIG_MAKEMIME is not set
CONFIG_FEATURE_MIME_CHARSET=""
# CONFIG_POPMAILDIR is not set
# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set
# CONFIG_REFORMIME is not set
# CONFIG_FEATURE_REFORMIME_COMPAT is not set
# CONFIG_SENDMAIL is not set
#
# Process Utilities
#
# CONFIG_IOSTAT is not set
CONFIG_LSOF=y
# CONFIG_MPSTAT is not set
# CONFIG_NMETER is not set
# CONFIG_PMAP is not set
# CONFIG_POWERTOP is not set
# CONFIG_PSTREE is not set
# CONFIG_PWDX is not set
# CONFIG_SMEMCAP is not set
# CONFIG_TOP is not set
# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set
# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set
# CONFIG_FEATURE_TOP_SMP_CPU is not set
# CONFIG_FEATURE_TOP_DECIMALS is not set
# CONFIG_FEATURE_TOP_SMP_PROCESS is not set
# CONFIG_FEATURE_TOPMEM is not set
# CONFIG_UPTIME is not set
# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set
# CONFIG_FREE is not set
# CONFIG_FUSER is not set
CONFIG_KILL=y
# CONFIG_KILLALL is not set
# CONFIG_KILLALL5 is not set
# CONFIG_PGREP is not set
CONFIG_PIDOF=y
CONFIG_FEATURE_PIDOF_SINGLE=y
CONFIG_FEATURE_PIDOF_OMIT=y
# CONFIG_PKILL is not set
CONFIG_PS=y
# CONFIG_FEATURE_PS_WIDE is not set
# CONFIG_FEATURE_PS_LONG is not set
# CONFIG_FEATURE_PS_TIME is not set
# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set
# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
# CONFIG_RENICE is not set
# CONFIG_BB_SYSCTL is not set
# CONFIG_FEATURE_SHOW_THREADS is not set
# CONFIG_WATCH is not set
#
# Runit Utilities
#
# CONFIG_RUNSV is not set
# CONFIG_RUNSVDIR is not set
# CONFIG_FEATURE_RUNSVDIR_LOG is not set
# CONFIG_SV is not set
CONFIG_SV_DEFAULT_SERVICE_DIR=""
# CONFIG_SVLOGD is not set
# CONFIG_CHPST is not set
# CONFIG_SETUIDGID is not set
# CONFIG_ENVUIDGID is not set
# CONFIG_ENVDIR is not set
# CONFIG_SOFTLIMIT is not set
# CONFIG_CHCON is not set
# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set
# CONFIG_GETENFORCE is not set
# CONFIG_GETSEBOOL is not set
# CONFIG_LOAD_POLICY is not set
# CONFIG_MATCHPATHCON is not set
# CONFIG_RESTORECON is not set
# CONFIG_RUNCON is not set
# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set
# CONFIG_SELINUXENABLED is not set
# CONFIG_SETENFORCE is not set
# CONFIG_SETFILES is not set
# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set
# CONFIG_SETSEBOOL is not set
# CONFIG_SESTATUS is not set
#
# Shells
#
CONFIG_ASH=y
CONFIG_ASH_BASH_COMPAT=y
# CONFIG_ASH_IDLE_TIMEOUT is not set
# CONFIG_ASH_JOB_CONTROL is not set
# CONFIG_ASH_ALIAS is not set
CONFIG_ASH_GETOPTS=y
CONFIG_ASH_BUILTIN_ECHO=y
CONFIG_ASH_BUILTIN_PRINTF=y
CONFIG_ASH_BUILTIN_TEST=y
# CONFIG_ASH_CMDCMD is not set
# CONFIG_ASH_MAIL is not set
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
CONFIG_ASH_RANDOM_SUPPORT=y
# CONFIG_ASH_EXPAND_PRMT is not set
CONFIG_CTTYHACK=y
# CONFIG_HUSH is not set
# CONFIG_HUSH_BASH_COMPAT is not set
# CONFIG_HUSH_BRACE_EXPANSION is not set
# CONFIG_HUSH_HELP is not set
# CONFIG_HUSH_INTERACTIVE is not set
# CONFIG_HUSH_SAVEHISTORY is not set
# CONFIG_HUSH_JOB is not set
# CONFIG_HUSH_TICK is not set
# CONFIG_HUSH_IF is not set
# CONFIG_HUSH_LOOPS is not set
# CONFIG_HUSH_CASE is not set
# CONFIG_HUSH_FUNCTIONS is not set
# CONFIG_HUSH_LOCAL is not set
# CONFIG_HUSH_RANDOM_SUPPORT is not set
# CONFIG_HUSH_EXPORT_N is not set
# CONFIG_HUSH_MODE_X is not set
# CONFIG_MSH is not set
CONFIG_FEATURE_SH_IS_ASH=y
# CONFIG_FEATURE_SH_IS_HUSH is not set
# CONFIG_FEATURE_SH_IS_NONE is not set
CONFIG_FEATURE_BASH_IS_ASH=y
# CONFIG_FEATURE_BASH_IS_HUSH is not set
# CONFIG_FEATURE_BASH_IS_NONE is not set
CONFIG_SH_MATH_SUPPORT=y
CONFIG_SH_MATH_SUPPORT_64=y
CONFIG_FEATURE_SH_EXTRA_QUIET=y
# CONFIG_FEATURE_SH_STANDALONE is not set
# CONFIG_FEATURE_SH_NOFORK is not set
# CONFIG_FEATURE_SH_HISTFILESIZE is not set
#
# System Logging Utilities
#
# CONFIG_SYSLOGD is not set
# CONFIG_FEATURE_ROTATE_LOGFILE is not set
# CONFIG_FEATURE_REMOTE_LOG is not set
# CONFIG_FEATURE_SYSLOGD_DUP is not set
# CONFIG_FEATURE_SYSLOGD_CFG is not set
CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=0
# CONFIG_FEATURE_IPC_SYSLOG is not set
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0
# CONFIG_LOGREAD is not set
# CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING is not set
# CONFIG_FEATURE_KMSG_SYSLOG is not set
# CONFIG_KLOGD is not set
# CONFIG_FEATURE_KLOGD_KLOGCTL is not set
# CONFIG_LOGGER is not set
================================================
FILE: external/cdebootstrap/Makefile
================================================
PKG_NAME:=cdebootstrap-static
PKG_VERSION:=0.6.4
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_armel.deb
# the archive, so the build stays working as long as possible:
PKG_SOURCE_URL:=http://snapshot.debian.org/archive/debian/20141130T041023Z/pool/main/c/cdebootstrap
# the canonical:
#PKG_SOURCE_URL:=https://mirrors.kernel.org/debian/pool/main/c/cdebootstrap
DL_DIR=$(PKG_NAME)-$(PKG_VERSION)
all: cdebootstrap.tar
TIMESTAMP="`stat $(DL_DIR) | sed -n 's,Modify: \(.*\),\1,p'`"
cdebootstrap.tar: $(DL_DIR)/usr/bin/cdebootstrap-static
echo "TIMESTAMP: $(TIMESTAMP)"
for f in `find $(DL_DIR)`; do touch --date=$(TIMESTAMP) "$$f"; done
cd $(DL_DIR) && \
find usr/ -type f -print0 -o -type l -print0 \
| sort --zero-terminated \
| tar --no-recursion --null --files-from - \
--owner=1000 --group=1000 --numeric-owner --format=gnu \
--create --file ../cdebootstrap.tar
touch --date=$(TIMESTAMP) cdebootstrap.tar
$(DL_DIR)/usr/bin/cdebootstrap-static: $(DL_DIR)/$(PKG_SOURCE)
cd $(DL_DIR) && \
(ar -p $(PKG_SOURCE) data.tar.xz | \
tar --exclude=usr/share/man --exclude=usr/share/doc \
--preserve-permissions --extract --xz --file -)
# I haven't found a reliable way to install/uninstall a patch from a Makefile,
# so just always try to apply it, and ignore it if it fails. Works fine unless
# the files being patched have changed, in which cause a partial application
# could happen unnoticed.
patch -N -p0 --reject-file=- < add-missing-ubuntu-releases.patch
$(DL_DIR)/$(PKG_SOURCE): $(DL_DIR)
test -e $(PKG_SOURCE) || \
wget --continue $(PKG_SOURCE_URL)/$(PKG_SOURCE)
md5sum -c $(PKG_SOURCE).md5
sha1sum -c $(PKG_SOURCE).sha1
sha256sum -c $(PKG_SOURCE).sha256
cp $(PKG_SOURCE) $(DL_DIR)/
$(DL_DIR):
mkdir $(DL_DIR)
clean:
-rm -rf -- $(DL_DIR)
-rm -f -- cdebootstrap.tar
.PHONY: clean
================================================
FILE: external/cdebootstrap/add-missing-ubuntu-releases.patch
================================================
--- cdebootstrap-static-0.6.4-old/usr/share/cdebootstrap-static/suites 2014-07-07 18:22:27.000000000 -0400
+++ cdebootstrap-static-0.6.4/usr/share/cdebootstrap-static/suites 2014-07-08 17:07:57.976326272 -0400
@@ -50,6 +50,34 @@
Config: generic-ubuntu
Keyring: ubuntu-archive-keyring.gpg
+Suite: oneiric
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: precise
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: quantal
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: raring
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: saucy
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: trusty
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
+Suite: utopic
+Config: generic-ubuntu
+Keyring: ubuntu-archive-keyring.gpg
+
Suite: oldstable
Keyring: debian-archive-keyring.gpg
================================================
FILE: external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.md5
================================================
99c796d92a63bf6fc568e9e741d37dba cdebootstrap-static_0.6.4_armel.deb
================================================
FILE: external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha1
================================================
7b6d5d5c4db8366ad7b7d04b81f6f40bd070fde7 cdebootstrap-static_0.6.4_armel.deb
================================================
FILE: external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha256
================================================
792e5f63a6fae30aaa673e0568ad4dbc20acbed27a8e4fbfaff52981b908db40 cdebootstrap-static_0.6.4_armel.deb
================================================
FILE: external/debian-archive-keyring/Makefile
================================================
PKG_NAME:=debian-archive-keyring
PKG_VERSION:=2014.3
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_all.deb
# the archive, so the build stays working as long as possible:
PKG_SOURCE_URL:=http://snapshot.debian.org/archive/debian/20141209T161252Z/pool/main/d/debian-archive-keyring
# the canonical:
#PKG_SOURCE_URL:=https://mirrors.kernel.org/debian/pool/main/d/debian-archive-keyring
DL_DIR=$(PKG_NAME)-$(PKG_VERSION)
compare: $(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg
diff ../../assets/debian-archive-keyring.gpg \
$(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg
$(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg: $(DL_DIR)/$(PKG_SOURCE)
cd $(DL_DIR) && \
(ar -p $(PKG_SOURCE) data.tar.xz | \
tar --preserve-permissions --extract --xz --file - )
$(DL_DIR)/$(PKG_SOURCE): $(DL_DIR)
cd $(DL_DIR) && \
wget --continue $(PKG_SOURCE_URL)/$(PKG_SOURCE)
md5sum -c $(PKG_SOURCE).md5
sha1sum -c $(PKG_SOURCE).sha1
sha256sum -c $(PKG_SOURCE).sha256
$(DL_DIR):
mkdir $(DL_DIR)
clean:
-rm -rf -- $(DL_DIR)
-rm -f -- debian-archive-keyring.gpg
.PHONY: clean compare
================================================
FILE: external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.md5
================================================
02b6818bd7cada9ef9d24534290b559c debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb
================================================
FILE: external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.sha1
================================================
7f16adc03d5e2f21afba8ae843d1ed5d7ef9c14a debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb
================================================
FILE: external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.sha256
================================================
017a2fba215cd64612891f5aa02546be5c0e30923a66672f889867cc6dd8d3a0 debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb
================================================
FILE: jenkins-build
================================================
#!/bin/sh
set -e
set -x
if [ -z $ANDROID_HOME ]; then
if [ -e ~/.android/bashrc ]; then
. ~/.android/bashrc
else
echo "ANDROID_HOME must be set!"
exit
fi
fi
git submodule sync --recursive
git submodule foreach --recursive "git submodule sync"
git submodule update --init --recursive
export TZ=UTC
TIMESTAMP=`git log -n1 --format=format:%ai`
# reset version code/name to current date
versionCodeDate=`faketime "$TIMESTAMP" date +%s`
versionNameDate=`faketime "$TIMESTAMP" date +%Y-%m-%d_%H.%M.%S`
sed -i \
-e "s,android:versionCode=\"[0-9][0-9]*\",android:versionCode=\"$versionCodeDate\"," \
-e "s,android:versionName=\"\([^\"][^\"]*\)\",android:versionName=\"\1.$versionNameDate\"," \
AndroidManifest.xml
make -C external/ clean
make -C external/ assets
./setup-ant
./tests/run-tests
================================================
FILE: libs/android-support-v4.jar.LICENSE
================================================
Copyright (c) 2005-2013, The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
================================================
FILE: libs/android-support-v4.jar.properties
================================================
src=android-support-v4.jar
doc=/usr/share/doc/google-android-sdk-docs/docs/reference
# On a recent Debian-ish system, you can install these docs by doing:
# apt-get install google-android-sdk-docs-installer
#
# The String value of 'doc' is handed straight to `new java.io.File()` so it
# is not possible to use variables. Therefore, change "/opt/android-sdk" to
# the path to your Android SDK, i.e. the value of $ANDROID_HOME or ${sdk.dir}
#
# Here's the relevant source:
# https://android-review.googlesource.com/#/c/35702/3/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/LibraryClasspathContainerInitializer.java
================================================
FILE: libs/commons-io-2.2.jar.properties
================================================
# setup javadoc
src=commons-io-2.2.jar
doc=../javadoc/commons-io-2.2-javadoc.jar
# document source code
source.repo.svn="https://svn.apache.org/repos/asf/commons/proper/io"
source.repo.tag="/tags/2.2"
download.url="https://archive.apache.org/dist/commons/io/binaries/commons-io-2.2-bin.zip"
pgp.signature="https://archive.apache.org/dist/commons/io/binaries/commons-io-2.2-bin.zip.asc"
pgp.signature.key.fingerprint=2DB4F1EF0FA761ECC4EA935C86FDC7E2A11262CB
================================================
FILE: make-release-build
================================================
#!/bin/bash
# bash is required because we need bash's printf to guarantee a cross-platform
# timestamp format.
set -e
set -x
# make sure we're on a signed tag that matches the version name
versionName=`sed -n 's,.*versionName="\([^"]*\)".*,\1,p' AndroidManifest.xml`
describe=`git describe`
if [ $versionName != $describe ]; then
echo "WARNING: building $describe, which is not the latest release ($versionName)"
else
# make a clearer warning above by putting this here
set +x
echo ""
echo ""
echo "Checking git tag signature for release build:"
git tag -v $versionName
echo ""
echo ""
set -x
fi
if [ -z $ANDROID_HOME ]; then
if [ -e ~/.android/bashrc ]; then
. ~/.android/bashrc
else
echo "ANDROID_HOME must be set!"
exit
fi
fi
projectroot=`pwd`
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml | sed 's,\W,,g'`
# standardize timezone to reduce build differences
export TZ=UTC
# run the clock at 5% speed, ant requires a moving clock
TIMESTAMP=`printf '@%(%Y-%m-%d %H:%M:%S)T x0.05' \
$(git log -n1 --format=format:%at)`
git reset --hard
git clean -fdx
git submodule foreach --recursive git reset --hard
git submodule foreach --recursive git clean -fdx
git submodule sync --recursive
git submodule foreach --recursive git submodule sync
git submodule update --init --recursive
make -C external/ assets
if [ -e ~/.android/ant.properties ]; then
cp ~/.android/ant.properties $projectroot/
else
echo "skipping release ant.properties"
fi
./setup-ant
faketime -f "$TIMESTAMP" ant release
apk=$projectroot/bin/$projectname-$versionName.apk
# mark APK with actual build info, instead of version in manifest
if [ $versionName != $describe ]; then
debugapk=$projectroot/bin/$projectname-$describe.apk
mv $apk $debugapk
apk=$debugapk
fi
if which gpg > /dev/null; then
if [ -z "`gpg --list-secret-keys`" ]; then
echo "No GPG secret keys found, not signing APK"
else
gpg --detach-sign $apk
fi
else
echo "gpg not found, not signing APK"
fi
================================================
FILE: project.properties
================================================
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-21
android.library.reference.1=external/libsuperuser/libsuperuser
================================================
FILE: res/layout/install_activity.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="100dp"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="5sp"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/release"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/mirror"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/arch"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="5sp"
android:orientation="vertical" >
<TextView
android:id="@+id/selectedRelease"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:singleLine="true"
android:text="@string/default_debian_release"
android:textSize="25sp"
android:typeface="monospace" />
<TextView
android:id="@+id/selectedMirror"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:singleLine="true"
android:text="@string/default_mirror"
android:textSize="20sp"
android:typeface="monospace" />
<TextView
android:id="@+id/selectedArch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:singleLine="true"
android:text="@string/default_arch"
android:textSize="25sp"
android:typeface="monospace" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5sp"
android:orientation="horizontal" >
<TextView
android:id="@+id/imagesizetext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right|center_vertical"
android:text="@string/image_size"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/imagesize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center|right"
android:inputType="number"
android:text="@string/default_image_size"
android:width="80dp" />
<TextView
android:id="@+id/megabytes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/megabytes"
android:textSize="20sp" />
</LinearLayout>
<Button
android:id="@+id/installButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:focusableInTouchMode="true"
android:padding="20sp"
android:text="@string/install"
android:textSize="20sp" />
<ScrollView
android:id="@+id/textScroll"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" >
<TextView
android:id="@+id/installLog"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</ScrollView>
</LinearLayout>
================================================
FILE: res/layout/install_log_view.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:addStatesFromChildren="false"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/title_install_log_view"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/shareButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/title_share_button" />
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:id="@+id/installLogView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="12sp"
android:typeface="monospace" >
<requestFocus />
</TextView>
</ScrollView>
</LinearLayout>
================================================
FILE: res/layout/lildebi.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:addStatesFromChildren="false"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10sp" >
<TextView
android:id="@+id/statusTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5sp"
android:text="@string/title_status"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/statusText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="@string/blank"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/startStopButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/title_start" />
</LinearLayout>
<ScrollView
android:id="@+id/consoleScroll"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" >
<TextView
android:id="@+id/consoleText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="13sp"
android:typeface="monospace" />
</ScrollView>
</LinearLayout>
================================================
FILE: res/layout/select_arch.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/select_arch" />
<ListView
android:id="@+id/archList"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" />
</LinearLayout>
================================================
FILE: res/layout/select_mirror.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/select_mirror" />
<ListView
android:id="@+id/mirrorList"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" />
</LinearLayout>
================================================
FILE: res/layout/select_release.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/select_release" />
<ListView
android:id="@+id/releaseList"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" />
</LinearLayout>
================================================
FILE: res/layout/unsupported_device.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/unsupportedDeviceMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/unsupported_device_body" >
</TextView>
<Button
android:id="@+id/uninstallButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/uninstall_button_title" >
</Button>
</LinearLayout>
================================================
FILE: res/layout-land/install_activity.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_margin="5sp"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="5sp"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/release"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/mirror"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="right|center_vertical"
android:text="@string/arch"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="5sp"
android:orientation="vertical" >
<TextView
android:id="@+id/selectedRelease"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="left|center_vertical"
android:singleLine="true"
android:text="@string/default_debian_release"
android:textSize="25sp"
android:typeface="monospace" />
<TextView
android:id="@+id/selectedMirror"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="left|center_vertical"
android:singleLine="true"
android:text="@string/default_mirror"
android:textSize="20sp"
android:typeface="monospace" />
<TextView
android:id="@+id/selectedArch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:gravity="left|center_vertical"
android:singleLine="true"
android:text="@string/default_arch"
android:textSize="25sp"
android:typeface="monospace" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="25sp"
android:orientation="horizontal" >
<TextView
android:id="@+id/imagesizetext"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="right|center_vertical"
android:text="@string/image_size"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/imagesize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center|right"
android:inputType="number"
android:text="@string/default_image_size"
android:width="100dp" />
<TextView
android:id="@+id/megabytes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/megabytes"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/installButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:padding="20sp"
android:text="@string/install"
android:textSize="20sp" />
<ScrollView
android:id="@+id/textScroll"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1" >
<TextView
android:id="@+id/installLog"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</ScrollView>
</LinearLayout>
================================================
FILE: res/menu/options_menu.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_jackpal_terminal"
android:title="@string/menu_jackpal_terminal_title"/>
<item
android:id="@+id/menu_preferences"
android:title="@string/menu_preferences_title"/>
<item
android:id="@+id/menu_install_log"
android:title="@string/menu_install_log_title"/>
<item
android:id="@+id/menu_delete"
android:title="@string/menu_delete_title"/>
</menu>
================================================
FILE: res/values/defaults.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<!-- this static default_image_path can be overridden by the dynamic NativeHelper.default_image_path -->
<string name="default_image_path">/sdcard/debian.img</string>
<string name="default_post_start_script">/etc/init.d/rc 2</string>
<string name="default_pre_stop_script">/etc/init.d/rc 0</string>
<string name="default_arch">armel</string>
<string name="default_image_size">600</string>
<string name="default_mirror">mirrors.ece.ubc.ca</string>
<string name="default_debian_release">stable</string>
</resources>
================================================
FILE: res/values/keys.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<string name="pref_start_automatically_key">pref_start_automatically_key</string>
<string name="pref_prevent_sleep_key">pref_prevent_sleep_key</string>
<string name="pref_use_checksum_key">pref_use_checksum_key</string>
<string name="pref_limit_to_4gb_key">pref_limit_to_4gb_key</string>
<string name="pref_image_path_key">pref_image_path_key</string>
<string name="pref_post_start_key">pref_post_start_key</string>
<string name="pref_pre_stop_key">pref_pre_stop_key</string>
<string name="pref_install_on_internal_storage_key">pref_install_on_internal_storage_key</string>
</resources>
================================================
FILE: res/values/strings.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<string name="app_name">Lil\' Debi</string>
<string name="unsupported_device_body">Your device is not supported by Lil\' Debi for installing Debian. It needs to support the "ext2" filesystem and loopback mounting of files as disks. Therefore, this app is useless to you, we recommend uninstalling it.</string>
<string name="uninstall_button_title">Uninstall Lil\' Debi</string>
<string name="pref_start_automatically_title">Start Automatically?</string>
<string name="pref_start_on_mount_summary">Automatically start Debian whenever your SD Card is mounted</string>
<string name="pref_start_on_boot_summary">Automatically start Debian whenever Android is booted</string>
<string name="pref_use_checksum_title">Checksum Image on Start?</string>
<string name="pref_use_checksum_summary">Before booting, check the SHA1 checksum of the image to verify its integrity.</string>
<string name="pref_limit_to_4gb_title">2GB Image Limit</string>
<string name="pref_limit_to_4gb_summary">Most SD Cards have FAT filesystems, which can have a file size limit of 2GB.</string>
<string name="pref_image_path_title">Image Path</string>
<string name="pref_image_path_summary">The path to the disk image file that Debian is installed on (default: /sdcard/debian.img)</string>
<string name="pref_post_start_title">Post-start Script</string>
<string name="pref_post_start_summary">Script to run after Debian is started (default: /etc/init.d/rc 2)</string>
<string name="pref_pre_stop_title">Pre-stop Script</string>
<string name="pref_pre_stop_summary">Script to run before Debian is stopped (default: /etc/init.d/rc 0)</string>
<string name="pref_prevent_sleep_title">Prevent Sleep</string>
<string name="pref_prevent_sleep_summary">prevent the device from sleeping while Debian is running</string>
<string name="menu_jackpal_terminal_title">Open Terminal…</string>
<string name="menu_preferences_title">Settings</string>
<string name="menu_install_log_title">View Install Log</string>
<string name="menu_delete_title">Delete All</string>
<string name="title_start">Start Debian</string>
<string name="title_stop">Stop Debian</string>
<string name="title_configure">Configure Image</string>
<string name="title_status">Status:</string>
<string name="doit">Delete Setup</string>
<string name="cancel">Cancel</string>
<string name="blank">(blank)</string>
<string name="confirm_delete_message">Are you sure you want to delete the whole Lil\' Debi setup?</string>
<string name="release">Release:</string>
<string name="mirror">Mirror:</string>
<string name="arch">Arch:</string>
<string name="image_size">Image Size:</string>
<string name="megabytes">MB</string>
<string name="install">Install</string>
<string name="uninstall">Uninstall…</string>
<string name="get_superuser">Get Superuser…</string>
<string name="needs_superuser_message">Lil\' Debi needs root access, install Superuser</string>
<string name="smaller_imagesize_message">Not enough space for specified image size, reducing size to fit on SD Card</string>
<string name="image_size_limit_message">SD Cards usually cannot support files larger than 2GB! You can turn off this limit in the Settings.</string>
<string name="mounted_message">Debian mounted</string>
<string name="not_mounted_message">Debian not mounted</string>
<string name="not_installed_message">Debian not installed</string>
<string name="not_configured_message">Image not configured</string>
<string name="no_network_message">Network required for install</string>
<string name="mount_point_not_found_format">The mount point \'%s\' does not exist!</string>
<string name="no_ext2_message">/proc/filesystems does not list \'ext2\' as a supported filesystem</string>
<string name="image_path_exists_message">Warning: there is already an existing file at the image path that you have selected!</string>
<string name="image_path_parent_does_not_exist_message">The folder you choose does not exist! Resetting to the default.</string>
<string name="no_sdcard_message">The External Storage SD Card is not mounted read/write, cannot install or start Debian without it.</string>
<string name="no_sdcard_status">(no SD card)</string>
<string name="terminal_emulator_not_installed">Android Terminal Emulator not installed! To use this feature, you must uninstall Lil\' Debi, install Terminal Emulator, then reinstall Lil\' Debi.</string>
<string name="terminal_emulator_installed_after_lildebi">ERROR: Android Terminal Emulator was installed after Lil\' Debi! To use this feature, you must uninstall then reinstall Lil\' Debi.</string>
<string name="title_install_log_view">Install Log</string>
<string name="title_share_button">Share</string>
<string name="starting_debian">Started Debian…</string>
<string name="stopping_debian">Stopped Debian…</string>
<string name="calculating_checksum">Calculating SHA1 checksum…</string>
<string name="checksum_complete">SHA1 checksum complete!</string>
<string name="select_mirror">Select Mirror</string>
<string name="select_release">Select Release</string>
<string name="select_arch">Select CPU Architecture</string>
<string name="app_description">Want an easy Debian chroot running that you can trust? Install Lil’ Debi, and you can have a Debian install running with a single click of a button. It builds up a whole Debian chroot on your phone entirely using debootstrap. You choose the release, mirror, and size of the disk image, and away it goes. It could take up to an hour on a slow device, then its done. The entire package is built from source using publicly available, repeatable builds. It even validates every package using the official Debian repository keys, which are included in the app.</string>
<string name="pref_install_on_internal_storage_summary">Internal Storage: /data/debian (Beta)</string>
<string name="pref_install_on_internal_storage_title">Install on Internal Storage</string>
<string name="install_in_internal_storage_summary">Install Debian into Internal Storage: /data/debian</string>
<string name="not_enough_space">Not enough space (< 250MB)</string>
</resources>
================================================
FILE: res/values-da/strings.xml
================================================
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="app_name">Lil\' Debi</string>
<string name="unsupported_device_body">Din enhed er ikke understøttet af Lil\' Debi for installation af Debian. Enhed skal have understøttelse af »ext2-filsystemet« og loopback-montering af filer som diske. Derfor er denne app ubrugelig for dig, vi anbefaler at du afinstallerer den.</string>
<string name="uninstall_button_title">Afinstaller Lil\' Debi</string>
<string name="pref_start_on_mount_summary">Start automatisk Debian når dit SD-kort er monteret</string>
<string name="pref_use_checksum_title">Kontroller aftryk ved start?</string>
<string name="pref_use_checksum_summary">Før opstart, så kontroller SHA1-kontrolsum for aftrykket for at verificere dets integritet.</string>
<string name="pref_image_path_title">Aftrykssti</string>
<string name="pref_image_path_summary">Stien til diskaftryksfilen som Debian er installeret på (standard: /sdcard/debian.img)</string>
<string name="pref_post_start_title">Post-start-skript</string>
<string name="pref_post_start_summary">Skript der skal køres efter at Debian er startet (standard: /etc/init.d/rc 2)</string>
<string name="pref_pre_stop_title">Pre-stop-skript</string>
<string name="pref_pre_stop_summary">Skript der skal køres før Debian stoppes (standard: /etc/init.d/rc 0)</string>
<string name="pref_prevent_sleep_title">Forhindr sovetilstand</string>
<string name="pref_prevent_sleep_summary">forhindr at enheden går i sovetilstand når Debian kører</string>
<string name="menu_jackpal_terminal_title">Åbn terminal …</string>
<string name="menu_install_log_title">Vis installationslog</string>
<string name="menu_delete_title">Slet alle</string>
<string name="title_start">Start Debian</string>
<string name="title_stop">Stop Debian</string>
<string name="title_configure">Konfigurer aftryk</string>
<string name="title_status">Status:</string>
<string name="doit">Slet opsætning</string>
<string name="cancel">Afbryd</string>
<string name="blank">(tom)</string>
<string name="confirm_delete_message">Er du sikker på, at du ønsker at slette hele Lil\' Debi-opsætningen?</string>
<string name="release">Udgivelse:</string>
<string name="mirror">Spejl:</string>
<string name="arch">Arkitektur:</string>
<string name="image_size">Aftryksstørrelse:</string>
<string name="megabytes">MB</string>
<string name="install">Installer</string>
<string name="uninstall">Afinstaller …</string>
<string name="get_superuser">Hent superbruger …</string>
<string name="needs_superuser_message">Lil\' Debi skal bruge superbrugeradgang, installer app\'en Superuser</string>
<string name="smaller_imagesize_message">Ikke nok plads for angivet aftryksstørrelse, reducerer størrelse for at passe på et SD-kort</string>
<string name="mounted_message">Debian monteret</string>
<string name="not_mounted_message">Debian er ikke monteret</string>
<string name="not_installed_message">Debian er ikke installeret</string>
<string name="not_configured_message">Aftryk er ikke konfigureret</string>
<string name="no_network_message">Netværk krævet for installation</string>
<string name="mount_point_not_found_format">Monteringspunktet »%s« findes ikke!</string>
<string name="no_ext2_message">/proc/filesystems angiver ikke »ext2« som et understøttet filsystem</string>
<string name="image_path_exists_message">Advarsel: Der er allerede en eksisterende fil på den valgte aftrykssti!</string>
<string name="image_path_parent_does_not_exist_message">Mappen du valgte findes ikke! Nulstiller til standarden.</string>
<string name="no_sdcard_message">Der kan ikke læses/skrives til det eksterne SD-kort, kan ikke installere eller starte Debian uden denne funktionalitet.</string>
<string name="no_sdcard_status">(intet SD-kort)</string>
<string name="title_install_log_view">Installer log</string>
<string name="title_share_button">Del</string>
<string name="starting_debian">Startede Debian …</string>
<string name="stopping_debian">Stoppede Debian …</string>
<string name="calculating_checksum">Beregner SHA1-kontrolsum …</string>
<string name="checksum_complete">SHA1-kontrolsum færdig!</string>
<string name="select_mirror">Vælg spejl</string>
<string name="select_release">Vælg udgivelse</string>
<string name="select_arch">Vælg CPU-arkitektur</string>
</resources>
================================================
FILE: res/values-de/strings.xml
================================================
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="app_name">Debilein</string>
<string name="unsupported_device_body">Ihr Gerät wird von Debilein nicht unterstützt. Um Debian installieren zu können, muss Ihr Gerät das \'ext2\'-Dateisystem und das Mounten von Dateien als Festplatten unterstützen. Diese Anwendung ist demnach unnütz, wir empfehlen, sie zu deinstallieren.</string>
<string name="uninstall_button_title">Debilein deinstallieren</string>
<string name="pref_start_automatically_title">Automatisch starten?</string>
<string name="pref_start_on_mount_summary">Debian immer automatisch starten wenn die SD Karte gemountet ist</string>
<string name="pref_use_checksum_title">Prüfsumme des Abbilds beim Starten verifizieren?</string>
<string name="pref_use_checksum_summary">Vor dem Hochfahren die SHA1 Prüfsumme des Abbilds auf Integrität überprüfen.</string>
<string name="pref_image_path_title">Pfad zum Abbild</string>
<string name="pref_image_path_summary">Der Pfad zum Festplattenabbild auf welchem Debian installiert ist (Standard: /sdcard/debian.img)</string>
<string name="pref_post_start_title">Skript nach Start</string>
<string name="pref_post_start_summary">Auszuführendes Skript nachdem Debian gestartet wurde (Standard: /etc/init.d/rc 2)</string>
<string name="pref_pre_stop_title">Skript vor Halt</string>
<string name="pref_pre_stop_summary">Auszuführendes Skript nachdem Debian angehalten wurde (Standard: /etc/init.d/rc 0)</string>
<string name="pref_prevent_sleep_title">Ruhezustand verhindern</string>
<string name="pref_prevent_sleep_summary">Das Gerät nicht in den Ruhezustand versetzen während Debian läuft</string>
<string name="menu_jackpal_terminal_title">Terminal öffnen…</string>
<string name="menu_install_log_title">Installationslog anzeigen</string>
<string name="menu_delete_title">Alles löschen</string>
<string name="title_start">Debian starten</string>
<string name="title_stop">Debian anhalten</string>
<string name="title_configure">Abbild konfigurieren</string>
<string name="title_status">Status:</string>
<string name="doit">Eingestellungen löschen</string>
<string name="cancel">Abbrechen</string>
<string name="blank">(leer)</string>
<string name="confirm_delete_message">Sind Sie sich sicher, dass Sie die gesamte Debilein-Installation löschen möchten?</string>
<string name="release">Release:</string>
<string name="mirror">Spiegelserver:</string>
<string name="arch">Architektur:</string>
<string name="image_size">Abbild-Größe:</string>
<string name="megabytes">MB</string>
<string name="install">Installieren</string>
<string name="uninstall">Deinstallieren…</string>
<string name="get_superuser">Werde Superuser</string>
<string name="needs_superuser_message">Lil\' Debi benötigt Superuser-Zugriff, installiere die Superuser app</string>
<string name="smaller_imagesize_message">Nicht genug Speicherplatz für das Abbild, Größe wird reduziert, um auf die SD-Karte zu passen</string>
<string name="mounted_message">Debian hochgefahren</string>
<string name="not_mounted_message">Debian nicht hochgefahren</string>
<string name="not_installed_message">Debian ist nicht installiert</string>
<string name="not_configured_message">Abbild nicht konfiguriert</string>
<string name="no_network_message">Internetverbindung wird für die Installation benötigt</string>
<string name="mount_point_not_found_format">Der Mount-Punkt \'%s\' existiert nicht!</string>
<string name="no_ext2_message">/proc/filesystems unterstützt \'ext2\' nicht </string>
<string name="image_path_exists_message">Warnung: eine Datei existiert bereits an ausgewählter Stelle!</string>
<string name="image_path_parent_does_not_exist_message">Der ausgewählte Ordner existiert nicht! Zurückgesetzt auf die Standard-Einstellung.</string>
<string name="no_sdcard_message">Die externe SD-Karte ist nicht les-/schreibbar, Debian kann nicht installiert oder gestartet werden.</string>
<string name="no_sdcard_status">(keine SD-Karte)</string>
<string name="title_install_log_view">Installationslog</string>
<string name="title_share_button">Teilen</string>
<string name="starting_debian">Debian gestartet…</string>
<string name="stopping_debian">Debian angehalten…</string>
<string name="calculating_checksum">Berechne SHA1-Prüfsumme…</string>
<string name="checksum_complete">SHA1-Prüfsumme komplett!</string>
<string name="select_mirror">Spiegelserver auswählen</string>
<string name="select_release">Release auswählen</string>
<string name="select_arch">CPU-Architektur auswählen</string>
<string name="pref_install_on_internal_storage_summary">Interner Speicher: /data/debian</string>
</resources>
================================================
FILE: res/values-es/strings.xml
================================================
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="app_name">Lil\' Debi</string>
<string name="unsupported_device_body">Su dispositivo no está soportado por Lil\' Debi para instalar Debian. Necesita soportar el sistema de archivos «ext2» y capacidad para montar ficheros como discos. Por tanto esta aplicación no sirve para usted, le recomendamos desinstalarla.</string>
<string name="uninstall_button_title">Desinstalar Lil\' Debi</string>
<string name="pref_start_automatically_title">¿Iniciar automáticamente?</string>
<string name="pref_start_on_mount_summary">Iniciar automáticamente Debian cuando se monte la tarjeta SD</string>
<string name="pref_start_on_boot_summary">Iniciar Debian automáticamente cuando se arranque Android</string>
<string name="pref_use_checksum_title">¿Comprobación de errores de la imagen al inicio?</string>
<string name="pref_use_checksum_summary">Antes de iniciar, hacer una comprobación de errores SHA1 de la imagen para verificar su integridad.</string>
<string name="pref_limit_to_4gb_title">Límite de imagen de 2 GB</string>
<string name="pref_limit_to_4gb_summary">La mayoría de las tarjetas SD tienen sistemas de ficheros FAT, que tienen un límite de tamaño de ficheros de 2 GB.</string>
<string name="pref_image_path_title">Ruta a la imagen</string>
<string name="pref_image_path_summary">La ruta hacia el fichero de imagen de disco donde Debian está instalado (predeterminado: /sdcard/debian.img)</string>
<string name="pref_post_start_title">Guion de órdenes tras el inicio</string>
<string name="pref_post_start_summary">Script a ejecutar después de que Debian se inicie (por defecto: /etc/init.d/rc.2)</string>
<string name="pref_pre_stop_title">Guion de órdenes antes de la parada</string>
<string name="pref_pre_stop_summary">Script a ejecutar después de que Debian se detenga (por defecto: /etc/init.d/rc 0)</string>
<string name="pref_prevent_sleep_title">Evitar inactividad</string>
<string name="pref_prevent_sleep_summary">evitar que el dispositivo entre en inactividad mientras está ejecutando Debian</string>
<string name="menu_jackpal_terminal_title">Abrir terminal…</string>
<string name="menu_preferences_title">Configuración</string>
<string name="menu_install_log_title">Ver el registro de instalación</string>
<string name="menu_delete_title">Eliminar todo</string>
<string name="title_start">Iniciar Debian</string>
<string name="title_stop">Parar Debian</string>
<string name="title_configure">Configurar imagen</string>
<string name="title_status">Estado:</string>
<string name="doit">Eliminar instalación</string>
<string name="cancel">Cancelar</string>
<string name="blank">(vacío)</string>
<string name="confirm_delete_message">¿Está seguro de que desea eliminar toda la instalación de Lil\' Debi?</string>
<string name="release">Versión:</string>
<string name="mirror">Réplica:</string>
<string name="arch">Arquitectura:</string>
<string name="image_size">Tamaño de la imagen:</string>
<string name="megabytes">MB</string>
<string name="install">Instalar</string>
<string name="uninstall">Desinstalar…</string>
<string name="get_superuser">Obtener Superuser…</string>
<string name="needs_superuser_message">Lil\' Debi necesita acceso de superusuario, instale la aplicación Superuser</string>
<string name="smaller_imagesize_message">No hay espacio suficiente para el tamaño de imagen especificado, reduciendo el tamaño para ajustarla a la tarjeta SD</string>
<string name="image_size_limit_message">¡Las tarjetas SD generalmente no soportan ficheros mayores de 2 GB! Puede desactivar este límite en la Configuración.</string>
<string name="mounted_message">Debian montado</string>
<string name="not_mounted_message">Debian no montado</string>
<string name="not_installed_message">Debian no instalado</string>
<string name="not_configured_message">Imagen no configurada</string>
<string name="no_network_message">Se necesita conexión a la red para instalar</string>
<string name="mount_point_not_found_format">¡El punto de montaje \'%s\' no existe!</string>
<string name="no_ext2_message">/proc/filesystems no lista \'ext2\' como sistema de ficheros soportado</string>
<string name="image_path_exists_message">Advertencia: ¡ya existe un archivo de imagen en la ruta que ha seleccionado!</string>
<string name="image_path_parent_does_not_exist_message">¡La carpeta que ha escogido no existe! Restableciendo al valor predeterminado.</string>
<string name="no_sdcard_message">La tarjeta SD externa no está montada con acceso lectura/escritura, no se puede instalar o iniciar Debian sin él.</string>
<string name="no_sdcard_status">(no hay tarjeta SD)</string>
<string name="terminal_emulator_not_installed">¡Android Terminal Emulator no instalado! Para usar esta característica, tiene que instalarlo.</string>
<string name="title_install_log_view">Registro de instalación</string>
<string name="title_share_button">Compartir</string>
<string name="starting_debian">Debian iniciado…</string>
<string name="stopping_debian">Debian parado
gitextract_cv4fo5_p/
├── .classpath
├── .gitignore
├── .gitmodules
├── .project
├── .tx/
│ └── config
├── AndroidManifest.xml
├── ChangeLog
├── LICENSE.txt
├── LilDebi.iml
├── README.md
├── assets/
│ ├── android-permissions_0.2_all.deb
│ ├── complete-debian-setup.sh
│ ├── configure-downloaded-image.sh
│ ├── create-debian-setup.sh
│ ├── debian-archive-keyring.gpg
│ ├── delete-all-debian-setup.sh
│ ├── lildebi-common
│ ├── policy-rc.d
│ ├── remove-hard-restart.sh
│ ├── shell
│ ├── start-debian.sh
│ ├── stop-debian.sh
│ ├── test.sh
│ └── unmounted-install-tweaks.sh
├── compare-to-official-release
├── custom_rules.xml
├── etc/
│ └── resolv.conf
├── external/
│ ├── 003-mount-umount-fsck-df.patch
│ ├── Makefile
│ ├── busybox_config
│ ├── cdebootstrap/
│ │ ├── Makefile
│ │ ├── add-missing-ubuntu-releases.patch
│ │ ├── cdebootstrap-static_0.6.4_armel.deb
│ │ ├── cdebootstrap-static_0.6.4_armel.deb.md5
│ │ ├── cdebootstrap-static_0.6.4_armel.deb.sha1
│ │ └── cdebootstrap-static_0.6.4_armel.deb.sha256
│ ├── debian-archive-keyring/
│ │ ├── Makefile
│ │ ├── debian-archive-keyring_2014.3_all.deb.md5
│ │ ├── debian-archive-keyring_2014.3_all.deb.sha1
│ │ └── debian-archive-keyring_2014.3_all.deb.sha256
│ └── modules/
│ ├── 2.6.25-01828-g18ac882/
│ │ ├── ext2.ko
│ │ └── unionfs.ko
│ ├── 2.6.25-01843-gfea26b0/
│ │ ├── ext2.ko
│ │ └── unionfs.ko
│ └── 2.6.29-omap1/
│ └── ext2.ko
├── javadoc/
│ └── commons-io-2.2-javadoc.jar
├── jenkins-build
├── libs/
│ ├── android-support-v4.jar
│ ├── android-support-v4.jar.LICENSE
│ ├── android-support-v4.jar.properties
│ ├── commons-io-2.2.jar
│ └── commons-io-2.2.jar.properties
├── make-release-build
├── project.properties
├── res/
│ ├── layout/
│ │ ├── install_activity.xml
│ │ ├── install_log_view.xml
│ │ ├── lildebi.xml
│ │ ├── select_arch.xml
│ │ ├── select_mirror.xml
│ │ ├── select_release.xml
│ │ └── unsupported_device.xml
│ ├── layout-land/
│ │ └── install_activity.xml
│ ├── menu/
│ │ └── options_menu.xml
│ ├── values/
│ │ ├── defaults.xml
│ │ ├── keys.xml
│ │ └── strings.xml
│ ├── values-da/
│ │ └── strings.xml
│ ├── values-de/
│ │ └── strings.xml
│ ├── values-es/
│ │ └── strings.xml
│ ├── values-fr/
│ │ └── strings.xml
│ ├── values-hu/
│ │ └── strings.xml
│ ├── values-it/
│ │ └── strings.xml
│ ├── values-nb-rNO/
│ │ └── strings.xml
│ ├── values-nl/
│ │ └── strings.xml
│ ├── values-pl/
│ │ └── strings.xml
│ ├── values-pt/
│ │ └── strings.xml
│ ├── values-pt-rPT/
│ │ └── strings.xml
│ ├── values-ro/
│ │ └── strings.xml
│ ├── values-ru/
│ │ └── strings.xml
│ ├── values-sk/
│ │ └── strings.xml
│ ├── values-sl/
│ │ └── strings.xml
│ ├── values-tr/
│ │ └── strings.xml
│ ├── values-vi/
│ │ └── strings.xml
│ ├── values-zh-rCN/
│ │ └── strings.xml
│ └── xml/
│ └── preferences.xml
├── setup-ant
├── src/
│ ├── info/
│ │ └── guardianproject/
│ │ └── lildebi/
│ │ ├── BootCompletedReceiver.java
│ │ ├── InstallActivity.java
│ │ ├── InstallLogViewActivity.java
│ │ ├── InstallService.java
│ │ ├── LilDebi.java
│ │ ├── LilDebiAction.java
│ │ ├── LilDebiApplication.java
│ │ ├── MediaEjectReceiver.java
│ │ ├── MediaMountedReceiver.java
│ │ ├── MediaUnmountedReceiver.java
│ │ ├── NativeHelper.java
│ │ ├── PreferencesActivity.java
│ │ ├── SelectArch.java
│ │ ├── SelectMirror.java
│ │ ├── SelectRelease.java
│ │ ├── StreamDisplay.java
│ │ ├── StreamThread.java
│ │ └── UnsupportedDeviceActivity.java
│ └── org/
│ └── torproject/
│ └── android/
│ └── service/
│ ├── TorServiceConstants.java
│ └── TorServiceUtils.java
├── supporting_files/
│ ├── fix-ellipsis.sh
│ ├── generate-mirror-list.py
│ └── icon.tiff
└── tests/
└── run-tests
SYMBOL INDEX (138 symbols across 20 files)
FILE: src/info/guardianproject/lildebi/BootCompletedReceiver.java
class BootCompletedReceiver (line 10) | public class BootCompletedReceiver {
method onReceive (line 14) | public void onReceive(Context context, Intent intent) {
FILE: src/info/guardianproject/lildebi/InstallActivity.java
class InstallActivity (line 41) | public class InstallActivity extends Activity implements View.OnCreateCo...
method onServiceConnected (line 61) | public void onServiceConnected(ComponentName className, IBinder servic...
method onServiceDisconnected (line 67) | public void onServiceDisconnected(ComponentName className) {
method doBindService (line 81) | void doBindService() {
method doUnbindService (line 88) | void doUnbindService() {
method onCreate (line 96) | @Override
method onResume (line 146) | @Override
method onBackPressed (line 213) | @Override
method onPause (line 219) | @Override
method setImageSizeInMB (line 226) | private void setImageSizeInMB(long requestedSize) {
method minimumFreeSizeTest (line 252) | private void minimumFreeSizeTest(long requestedSize) {
method writeInstallConf (line 262) | private void writeInstallConf() {
method wireButtons (line 280) | private void wireButtons() {
method registerReceivers (line 319) | private void registerReceivers() {
method unregisterReceivers (line 344) | private void unregisterReceivers() {
method unwireButtons (line 352) | private void unwireButtons() {
method renameInstallButton (line 363) | private void renameInstallButton(int resid) {
method refreshButtons (line 369) | private void refreshButtons() {
method onActivityResult (line 393) | @Override
method isExt2Supported (line 405) | private boolean isExt2Supported() {
method writeCommand (line 431) | public static void writeCommand(OutputStream os, String command) throw...
method onCreateOptionsMenu (line 435) | @Override
method onOptionsItemSelected (line 442) | public boolean onOptionsItemSelected(MenuItem item) {
FILE: src/info/guardianproject/lildebi/InstallLogViewActivity.java
class InstallLogViewActivity (line 24) | public class InstallLogViewActivity extends Activity {
method onCreate (line 26) | protected void onCreate(Bundle savedInstanceState) {
method shareInstallLog (line 42) | protected void shareInstallLog(File f) {
class LoadLogTask (line 78) | private class LoadLogTask extends AsyncTask<Void, Void, String> {
method doInBackground (line 80) | @Override
method onPostExecute (line 100) | protected void onPostExecute(String result) {
FILE: src/info/guardianproject/lildebi/InstallService.java
class InstallService (line 15) | public class InstallService extends Service {
class LocalBinder (line 21) | public class LocalBinder extends Binder {
method getService (line 22) | public InstallService getService() {
method onBind (line 29) | @Override
method onCreate (line 34) | @Override
method isRunning (line 40) | public boolean isRunning() {
method onStartCommand (line 46) | @Override
class InstallThread (line 68) | class InstallThread extends Thread {
method writeCommand (line 72) | public void writeCommand(OutputStream os, String command) throws Exc...
method run (line 78) | @Override
class LogUpdate (line 124) | class LogUpdate extends StreamThread.StreamUpdate {
method open (line 129) | public void open() {
method close (line 137) | public void close() {
method update (line 145) | @Override
FILE: src/info/guardianproject/lildebi/LilDebi.java
class LilDebi (line 36) | public class LilDebi extends Activity implements OnCreateContextMenuList...
method run (line 51) | public void run() {
method onCreate (line 56) | @Override
method onResume (line 92) | @Override
method onDestroy (line 109) | protected void onDestroy() {
method onCreateOptionsMenu (line 113) | @Override
method onPrepareOptionsMenu (line 120) | @Override
method onOptionsItemSelected (line 127) | @SuppressLint("InlinedApi")
method updateScreenStatus (line 188) | private void updateScreenStatus() {
method sdcardUnmounted (line 301) | public static void sdcardUnmounted() {
method sdcardMounted (line 310) | public static void sdcardMounted() {
method isOnline (line 336) | private boolean isOnline() {
method updateLog (line 346) | private void updateLog() {
method installBusyboxSymlinks (line 353) | private void installBusyboxSymlinks() {
method onSaveInstanceState (line 386) | @Override
FILE: src/info/guardianproject/lildebi/LilDebiAction.java
class LilDebiAction (line 14) | public class LilDebiAction {
method LilDebiAction (line 29) | LilDebiAction(Context context, Handler commandThreadHandler) {
method startDebian (line 47) | public void startDebian() {
method stopDebian (line 61) | public void stopDebian() {
method removeDebianSetup (line 75) | public void removeDebianSetup() {
method configureDownloadedImage (line 81) | public void configureDownloadedImage() {
class CommandThread (line 88) | class CommandThread extends Thread {
method run (line 91) | @Override
method writeCommand (line 131) | public static void writeCommand(OutputStream os, String command)
class LogUpdate (line 137) | class LogUpdate extends StreamThread.StreamUpdate {
method update (line 139) | @Override
FILE: src/info/guardianproject/lildebi/LilDebiApplication.java
class LilDebiApplication (line 5) | public class LilDebiApplication extends Application {
method onCreate (line 8) | public void onCreate() {
FILE: src/info/guardianproject/lildebi/MediaEjectReceiver.java
class MediaEjectReceiver (line 8) | public class MediaEjectReceiver extends BroadcastReceiver {
method onReceive (line 12) | public void onReceive(Context context, Intent intent) {
FILE: src/info/guardianproject/lildebi/MediaMountedReceiver.java
class MediaMountedReceiver (line 11) | public class MediaMountedReceiver extends BroadcastReceiver {
method onReceive (line 15) | public void onReceive(Context context, Intent intent) {
FILE: src/info/guardianproject/lildebi/MediaUnmountedReceiver.java
class MediaUnmountedReceiver (line 8) | public class MediaUnmountedReceiver extends BroadcastReceiver {
method onReceive (line 12) | public void onReceive(Context context, Intent intent) {
FILE: src/info/guardianproject/lildebi/NativeHelper.java
class NativeHelper (line 25) | public class NativeHelper {
method setup (line 47) | public static void setup(Context context) {
method isStarted (line 98) | public static boolean isStarted() {
method isInstalled (line 116) | public static boolean isInstalled() {
method getArgs (line 123) | public static String getArgs() {
method readVersionFile (line 128) | private static int readVersionFile() {
method writeVersionFile (line 142) | private static void writeVersionFile(Context context) {
method getCurrentVersionCode (line 155) | private static int getCurrentVersionCode(Context context) {
method getLANG (line 165) | public static String getLANG() {
method renameOldAppBin (line 173) | private static void renameOldAppBin() {
method unzipDebiFiles (line 188) | public static void unzipDebiFiles(Context context) {
method installOrUpgradeAppBin (line 252) | public static void installOrUpgradeAppBin(Context context) {
method chmod (line 274) | public static void chmod(int mode, File path) {
method isSdCardPresent (line 301) | public static boolean isSdCardPresent() {
method getInstallPathFreeMegaBytes (line 305) | public static long getInstallPathFreeMegaBytes() {
FILE: src/info/guardianproject/lildebi/PreferencesActivity.java
class PreferencesActivity (line 18) | public class PreferencesActivity extends android.preference.PreferenceAc...
method onSharedPreferenceChanged (line 28) | @Override
method onCreate (line 85) | @Override
method onResume (line 115) | @Override
method onPause (line 123) | @Override
method setSummaries (line 130) | private void setSummaries() {
method showCompleteToast (line 167) | private void showCompleteToast() {
class ShellAsyncTask (line 171) | private class ShellAsyncTask extends AsyncTask<Boolean, Void, Void> {
method doInBackground (line 173) | @Override
method onPostExecute (line 213) | @Override
FILE: src/info/guardianproject/lildebi/SelectArch.java
class SelectArch (line 11) | public class SelectArch extends Activity {
method onCreate (line 15) | public void onCreate(Bundle savedInstanceState) {
method callMe (line 33) | public static void callMe(Activity activity) {
FILE: src/info/guardianproject/lildebi/SelectMirror.java
class SelectMirror (line 11) | public class SelectMirror extends Activity {
method onCreate (line 60) | public void onCreate(Bundle savedInstanceState) {
method callMe (line 78) | public static void callMe(Activity activity) {
FILE: src/info/guardianproject/lildebi/SelectRelease.java
class SelectRelease (line 11) | public class SelectRelease extends Activity {
method onCreate (line 17) | public void onCreate(Bundle savedInstanceState) {
method callMe (line 35) | public static void callMe(Activity activity) {
FILE: src/info/guardianproject/lildebi/StreamDisplay.java
class StreamDisplay (line 11) | public class StreamDisplay extends Thread {
method StreamDisplay (line 17) | StreamDisplay(InputStream i, TextView display, ScrollView scrollView, ...
method run (line 24) | @Override
FILE: src/info/guardianproject/lildebi/StreamThread.java
class StreamThread (line 8) | public class StreamThread extends Thread {
method StreamThread (line 12) | StreamThread(InputStream i) {
method StreamThread (line 16) | StreamThread(InputStream i, StreamUpdate update) {
method run (line 21) | @Override
method dump (line 35) | public String dump() {
class StreamUpdate (line 43) | public static abstract class StreamUpdate {
method update (line 44) | public abstract void update(String val);
class StringBufferStreamUpdate (line 47) | public class StringBufferStreamUpdate extends StreamUpdate {
method update (line 50) | @Override
method dump (line 55) | public String dump() {
FILE: src/info/guardianproject/lildebi/UnsupportedDeviceActivity.java
class UnsupportedDeviceActivity (line 9) | public class UnsupportedDeviceActivity extends Activity {
method onCreate (line 13) | @Override
method onResume (line 20) | @Override
method onPause (line 29) | @Override
method callMe (line 34) | public static void callMe(Activity activity) {
FILE: src/org/torproject/android/service/TorServiceConstants.java
type TorServiceConstants (line 5) | public interface TorServiceConstants {
FILE: src/org/torproject/android/service/TorServiceUtils.java
class TorServiceUtils (line 16) | public class TorServiceUtils implements TorServiceConstants {
method checkRootAccess (line 22) | public static boolean checkRootAccess() {
method findProcessId (line 53) | public static int findProcessId(String command)
method findProcessIdWithPidOf (line 80) | public static int findProcessIdWithPidOf(String command) throws Exception
method findProcessIdWithPS (line 118) | public static int findProcessIdWithPS(String command) throws Exception
method doShellCommand (line 153) | public static int doShellCommand(String[] cmds, StringBuilder log, boo...
Condensed preview — 110 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (399K chars).
[
{
"path": ".classpath",
"chars": 527,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n\t<classpathentry kind=\"src\" path=\"src\"/>\n\t<classpathentry kind=\"src\" "
},
{
"path": ".gitignore",
"chars": 348,
"preview": "# auto-generated files from Android builds\nbin/\ngen/\nbuild.xml\nant.properties\ndefault.properties\nlocal.properties\nprogua"
},
{
"path": ".gitmodules",
"chars": 377,
"preview": "[submodule \"external/busybox\"]\n\tpath = external/busybox\n\turl = git://busybox.net/busybox.git\n\tignore = dirty\n[submodule "
},
{
"path": ".project",
"chars": 810,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>lildebi</name>\n\t<comment></comment>\n\t<projects>\n\t</pr"
},
{
"path": ".tx/config",
"chars": 3254,
"preview": "[main]\nhost = https://www.transifex.com\nlang_map = af_ZA: af-rZA, am_ET: am-rET, ar_AE: ar-rAE, ar_BH: ar-rBH, ar_DZ: ar"
},
{
"path": "AndroidManifest.xml",
"chars": 3459,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n package="
},
{
"path": "ChangeLog",
"chars": 2069,
"preview": "v0.5.4\n+ /debian/shell can now be run as any user, not only root\n+ fixes #131 for some devices where /debian/shell requi"
},
{
"path": "LICENSE.txt",
"chars": 35147,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "LilDebi.iml",
"chars": 2046,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module type=\"ANDROID_MODULE\" version=\"4\">\n <component name=\"FacetManager\">\n "
},
{
"path": "README.md",
"chars": 6005,
"preview": "\n\n__UNMAINTAINED__ we no longer have the time to maintain this app, but\nwould love to see someone take it over and conti"
},
{
"path": "assets/complete-debian-setup.sh",
"chars": 1681,
"preview": "#!/bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there. The\n# first arg is the \"app paylo"
},
{
"path": "assets/configure-downloaded-image.sh",
"chars": 612,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "assets/create-debian-setup.sh",
"chars": 8910,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "assets/delete-all-debian-setup.sh",
"chars": 1372,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n\n# many phones don't even include 'test', so set the path to our\n# "
},
{
"path": "assets/lildebi-common",
"chars": 6801,
"preview": "#!/bin/sh\n# this is the common settings for the various scripts here\n\necho \"----------------------------------------\"\n\ne"
},
{
"path": "assets/policy-rc.d",
"chars": 595,
"preview": "#!/bin/sh\n\n# Policy-rc.d is mentioned in manpage invoke-rc.d(8) and documented at\n# http://people.debian.org/~hmh/invoke"
},
{
"path": "assets/remove-hard-restart.sh",
"chars": 404,
"preview": "#!/bin/sh\n#\n# This script is meant to be run within Debian to remove all of the init\n# scripts that deal with the final "
},
{
"path": "assets/shell",
"chars": 1010,
"preview": "#!/system/bin/sh \n\nexport TERM=linux\nexport HOSTNAME=debian\nexport HOME=/root\nexport PATH=/usr/local/sbin:/usr/local/bin"
},
{
"path": "assets/start-debian.sh",
"chars": 6268,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "assets/stop-debian.sh",
"chars": 2412,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "assets/test.sh",
"chars": 589,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "assets/unmounted-install-tweaks.sh",
"chars": 788,
"preview": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to var"
},
{
"path": "compare-to-official-release",
"chars": 1707,
"preview": "#!/bin/sh\n\nif [ $# -ne 2 ]; then\n echo \"Usage: $0 /path/to/LilDebi-v0.5.3-release.apk /another/LilDebi-v0.5.3-release"
},
{
"path": "custom_rules.xml",
"chars": 1261,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project>\n\n <target name=\"rename-release-with-version-number\">\n <xmlproperty "
},
{
"path": "etc/resolv.conf",
"chars": 60,
"preview": "nameserver 4.2.2.2\nnameserver 8.8.8.8\nnameserver 198.6.1.1\n\n"
},
{
"path": "external/003-mount-umount-fsck-df.patch",
"chars": 9260,
"preview": "From: Tias Guns <tias@ulyssis.org>\nDate: Sun, 18 Mar 2012 14:12:41 +0000\nSubject: [PATCH] android: fix 'mount', 'umount'"
},
{
"path": "external/Makefile",
"chars": 5499,
"preview": "# Please install the following prerequisites (instructions for each follows):\n# \tAndroid OS SDK: http://source.android.c"
},
{
"path": "external/busybox_config",
"chars": 30804,
"preview": "#\n# Automatically generated make config: don't edit\n# Busybox version: 1.22.1\n# Tue Feb 10 10:57:31 2015\n#\nCONFIG_HAVE_D"
},
{
"path": "external/cdebootstrap/Makefile",
"chars": 1820,
"preview": "\nPKG_NAME:=cdebootstrap-static\nPKG_VERSION:=0.6.4\n\nPKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_armel.deb\n# the archive, so th"
},
{
"path": "external/cdebootstrap/add-missing-ubuntu-releases.patch",
"chars": 897,
"preview": "--- cdebootstrap-static-0.6.4-old/usr/share/cdebootstrap-static/suites\t2014-07-07 18:22:27.000000000 -0400\n+++ cdebootst"
},
{
"path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.md5",
"chars": 70,
"preview": "99c796d92a63bf6fc568e9e741d37dba cdebootstrap-static_0.6.4_armel.deb\n"
},
{
"path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha1",
"chars": 78,
"preview": "7b6d5d5c4db8366ad7b7d04b81f6f40bd070fde7 cdebootstrap-static_0.6.4_armel.deb\n"
},
{
"path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha256",
"chars": 102,
"preview": "792e5f63a6fae30aaa673e0568ad4dbc20acbed27a8e4fbfaff52981b908db40 cdebootstrap-static_0.6.4_armel.deb\n"
},
{
"path": "external/debian-archive-keyring/Makefile",
"chars": 1102,
"preview": "\nPKG_NAME:=debian-archive-keyring\nPKG_VERSION:=2014.3\n\nPKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_all.deb\n# the archive, so "
},
{
"path": "external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.md5",
"chars": 102,
"preview": "02b6818bd7cada9ef9d24534290b559c debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb\n"
},
{
"path": "external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.sha1",
"chars": 110,
"preview": "7f16adc03d5e2f21afba8ae843d1ed5d7ef9c14a debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb\n"
},
{
"path": "external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.sha256",
"chars": 134,
"preview": "017a2fba215cd64612891f5aa02546be5c0e30923a66672f889867cc6dd8d3a0 debian-archive-keyring-2014.3/debian-archive-keyring_2"
},
{
"path": "jenkins-build",
"chars": 841,
"preview": "#!/bin/sh\n\nset -e\nset -x\n\nif [ -z $ANDROID_HOME ]; then\n if [ -e ~/.android/bashrc ]; then\n . ~/.android/bashr"
},
{
"path": "libs/android-support-v4.jar.LICENSE",
"chars": 10695,
"preview": " Copyright (c) 2005-2013, The Android Open Source Project\n\n Licensed under the Apache License, Version 2.0 (the \"Lic"
},
{
"path": "libs/android-support-v4.jar.properties",
"chars": 664,
"preview": "src=android-support-v4.jar\ndoc=/usr/share/doc/google-android-sdk-docs/docs/reference\n# On a recent Debian-ish system, yo"
},
{
"path": "libs/commons-io-2.2.jar.properties",
"chars": 457,
"preview": "# setup javadoc\nsrc=commons-io-2.2.jar\ndoc=../javadoc/commons-io-2.2-javadoc.jar\n# document source code\nsource.repo.svn="
},
{
"path": "make-release-build",
"chars": 2102,
"preview": "#!/bin/bash\n# bash is required because we need bash's printf to guarantee a cross-platform\n# timestamp format.\n\nset -e\ns"
},
{
"path": "project.properties",
"chars": 307,
"preview": "# This file must be checked in Version Control Systems.\n#\n# To customize properties used by the Ant build system use,\n# "
},
{
"path": "res/layout/install_activity.xml",
"chars": 4944,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/install_log_view.xml",
"chars": 1466,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/lildebi.xml",
"chars": 1926,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/select_arch.xml",
"chars": 560,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/select_mirror.xml",
"chars": 564,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/select_release.xml",
"chars": 566,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout/unsupported_device.xml",
"chars": 686,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/layout-land/install_activity.xml",
"chars": 5215,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr"
},
{
"path": "res/menu/options_menu.xml",
"chars": 555,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n <item\n "
},
{
"path": "res/values/defaults.xml",
"chars": 695,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\" tools:i"
},
{
"path": "res/values/keys.xml",
"chars": 768,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\" tools:i"
},
{
"path": "res/values/strings.xml",
"chars": 6385,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources>\n\n <string name=\"app_name\">Lil\\' Debi</string>\n "
},
{
"path": "res/values-da/strings.xml",
"chars": 4406,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-de/strings.xml",
"chars": 4741,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Debilein</string>\n <string name=\"unsupport"
},
{
"path": "res/values-es/strings.xml",
"chars": 6552,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-fr/strings.xml",
"chars": 6900,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">P\\'tite Debi</string>\n <string name=\"unsup"
},
{
"path": "res/values-hu/strings.xml",
"chars": 5452,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-it/strings.xml",
"chars": 5755,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-nb-rNO/strings.xml",
"chars": 6392,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-nl/strings.xml",
"chars": 6612,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-pl/strings.xml",
"chars": 4654,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-pt/strings.xml",
"chars": 4497,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-pt-rPT/strings.xml",
"chars": 4603,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-ro/strings.xml",
"chars": 4249,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-ru/strings.xml",
"chars": 6949,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Малыш Деби</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-sk/strings.xml",
"chars": 4687,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-sl/strings.xml",
"chars": 4240,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-tr/strings.xml",
"chars": 5863,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-vi/strings.xml",
"chars": 4352,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/values-zh-rCN/strings.xml",
"chars": 3218,
"preview": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n <string name=\"app_name\">Lil\\' Debi</string>\n <string name=\"unsuppo"
},
{
"path": "res/xml/preferences.xml",
"chars": 2248,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n "
},
{
"path": "setup-ant",
"chars": 827,
"preview": "#!/bin/sh\n\nif ! which android > /dev/null; then\n if [ -z $ANDROID_HOME ]; then\n if [ -e ~/.android/bashrc ]; t"
},
{
"path": "src/info/guardianproject/lildebi/BootCompletedReceiver.java",
"chars": 943,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.File;\n\nimport android.content.Context;\nimport android.content.Inte"
},
{
"path": "src/info/guardianproject/lildebi/InstallActivity.java",
"chars": 17007,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.BroadcastReceiver;\nimport and"
},
{
"path": "src/info/guardianproject/lildebi/InstallLogViewActivity.java",
"chars": 4012,
"preview": "\npackage info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.net.U"
},
{
"path": "src/info/guardianproject/lildebi/InstallService.java",
"chars": 5354,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.PendingIntent;\nimport android.app.Service;\nimport android.cont"
},
{
"path": "src/info/guardianproject/lildebi/LilDebi.java",
"chars": 16675,
"preview": "package info.guardianproject.lildebi;\n\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport andro"
},
{
"path": "src/info/guardianproject/lildebi/LilDebiAction.java",
"chars": 5064,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.OutputStream;\n\nimport android.content.Context;\nimport android.cont"
},
{
"path": "src/info/guardianproject/lildebi/LilDebiApplication.java",
"chars": 359,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Application;\n\npublic class LilDebiApplication extends Applicat"
},
{
"path": "src/info/guardianproject/lildebi/MediaEjectReceiver.java",
"chars": 617,
"preview": "package info.guardianproject.lildebi;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport "
},
{
"path": "src/info/guardianproject/lildebi/MediaMountedReceiver.java",
"chars": 1105,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.File;\n\nimport android.content.BroadcastReceiver;\nimport android.co"
},
{
"path": "src/info/guardianproject/lildebi/MediaUnmountedReceiver.java",
"chars": 762,
"preview": "package info.guardianproject.lildebi;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport "
},
{
"path": "src/info/guardianproject/lildebi/NativeHelper.java",
"chars": 12894,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.BufferedOutputStream;\nimport java.io.File;\nimport java.io.FileNotF"
},
{
"path": "src/info/guardianproject/lildebi/PreferencesActivity.java",
"chars": 10162,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileWriter;\nim"
},
{
"path": "src/info/guardianproject/lildebi/SelectArch.java",
"chars": 1392,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bun"
},
{
"path": "src/info/guardianproject/lildebi/SelectMirror.java",
"chars": 4800,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bun"
},
{
"path": "src/info/guardianproject/lildebi/SelectRelease.java",
"chars": 1521,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bun"
},
{
"path": "src/info/guardianproject/lildebi/StreamDisplay.java",
"chars": 1495,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport android.os.Handle"
},
{
"path": "src/info/guardianproject/lildebi/StreamThread.java",
"chars": 1379,
"preview": "package info.guardianproject.lildebi;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport android.util.Log;"
},
{
"path": "src/info/guardianproject/lildebi/UnsupportedDeviceActivity.java",
"chars": 990,
"preview": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bun"
},
{
"path": "src/org/torproject/android/service/TorServiceConstants.java",
"chars": 3111,
"preview": "/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - http://openideals.com/guardian */\n/* See LICENSE f"
},
{
"path": "src/org/torproject/android/service/TorServiceUtils.java",
"chars": 5490,
"preview": "/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - http://openideals.com/guardian */\n/* See LICENSE f"
},
{
"path": "supporting_files/fix-ellipsis.sh",
"chars": 99,
"preview": "#!/bin/bash -x\n\n# Fix TypographyEllipsis programmatically\n\nsed -i 's/\\.\\.\\./…/g' res/values*/*.xml\n"
},
{
"path": "supporting_files/generate-mirror-list.py",
"chars": 2125,
"preview": "#!/usr/bin/python\n\nimport re\nimport sys\nimport urllib2\n\n# mirrors = (\"ftp.at.debian.org\", \"ftp.au.debian.org\",\n# "
},
{
"path": "tests/run-tests",
"chars": 376,
"preview": "#!/bin/bash\n\nprojectdir=`cd $(dirname $0) && pwd`/..\nassets=$projectdir/assets\n\nexitstatus=0\n# use bash to check that th"
}
]
// ... and 12 more files (download for full content)
About this extraction
This page contains the full source code of the guardianproject/lildebi GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 110 files (364.1 KB), approximately 96.3k tokens, and a symbol index with 138 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.