[
  {
    "path": ".classpath",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n\t<classpathentry kind=\"src\" path=\"src\"/>\n\t<classpathentry kind=\"src\" path=\"gen\"/>\n\t<classpathentry kind=\"con\" path=\"com.android.ide.eclipse.adt.ANDROID_FRAMEWORK\"/>\n\t<classpathentry exported=\"true\" kind=\"con\" path=\"com.android.ide.eclipse.adt.LIBRARIES\"/>\n\t<classpathentry kind=\"lib\" path=\"libs/commons-io-2.2.jar\"/>\n\t<classpathentry exported=\"true\" kind=\"con\" path=\"com.android.ide.eclipse.adt.DEPENDENCIES\"/>\n\t<classpathentry kind=\"output\" path=\"bin/classes\"/>\n</classpath>\n"
  },
  {
    "path": ".gitignore",
    "content": "# auto-generated files from Android builds\nbin/\ngen/\nbuild.xml\nant.properties\ndefault.properties\nlocal.properties\nproguard.cfg\nproguard-project.txt\n#\nassets/busybox\nassets/cdebootstrap.tar\nassets/gpgv\nexternal/cdebootstrap/cdebootstrap-static-0.*/\nexternal/cdebootstrap/cdebootstrap.tar\nexternal/debian-archive-keyring/debian-archive-keyring-201*/\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"external/busybox\"]\n\tpath = external/busybox\n\turl = git://busybox.net/busybox.git\n\tignore = dirty\n[submodule \"external/libsuperuser\"]\n\tpath = external/libsuperuser\n\turl = https://github.com/Chainfire/libsuperuser.git\n\tignore = dirty\n[submodule \"external/gnupg\"]\n\tpath = external/gnupg\n\turl = git://git.gnupg.org/gnupg.git\n\tbranch = STABLE-BRANCH-1-4\n\tignore = dirty\n"
  },
  {
    "path": ".project",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>lildebi</name>\n\t<comment></comment>\n\t<projects>\n\t</projects>\n\t<buildSpec>\n\t\t<buildCommand>\n\t\t\t<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>\n\t\t\t<arguments>\n\t\t\t</arguments>\n\t\t</buildCommand>\n\t\t<buildCommand>\n\t\t\t<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>\n\t\t\t<arguments>\n\t\t\t</arguments>\n\t\t</buildCommand>\n\t\t<buildCommand>\n\t\t\t<name>org.eclipse.jdt.core.javabuilder</name>\n\t\t\t<arguments>\n\t\t\t</arguments>\n\t\t</buildCommand>\n\t\t<buildCommand>\n\t\t\t<name>com.android.ide.eclipse.adt.ApkBuilder</name>\n\t\t\t<arguments>\n\t\t\t</arguments>\n\t\t</buildCommand>\n\t</buildSpec>\n\t<natures>\n\t\t<nature>com.android.ide.eclipse.adt.AndroidNature</nature>\n\t\t<nature>org.eclipse.jdt.core.javanature</nature>\n\t</natures>\n</projectDescription>\n"
  },
  {
    "path": ".tx/config",
    "content": "[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-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\n\n[lildebi.stringsxml]\nfile_filter = res/values-<lang>/strings.xml\nhost = https://www.transifex.com\nsource_file = res/values/strings.xml\nsource_lang = en\n"
  },
  {
    "path": "AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"info.guardianproject.lildebi\"\n    android:versionCode=\"5500\"\n    android:versionName=\"0.5.5\" >\n\n    <uses-sdk\n        android:minSdkVersion=\"8\"\n        android:targetSdkVersion=\"21\" />\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\n    <uses-permission android:name=\"android.permission.ACCESS_SUPERUSER\" />\n    <uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />\n    <uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\" />\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n    <uses-permission android:name=\"android.permission.WAKE_LOCK\" />\n    <uses-permission android:name=\"jackpal.androidterm.permission.RUN_SCRIPT\"/>\n\n    <uses-feature\n        android:name=\"android.hardware.touchscreen\"\n        android:required=\"false\" />\n    <uses-feature\n        android:name=\"android.hardware.wifi\"\n        android:required=\"false\" />\n\n    <application\n        android:allowBackup=\"false\"\n        android:icon=\"@drawable/icon\"\n        android:name=\"LilDebiApplication\"\n        android:description=\"@string/app_description\"\n        android:label=\"@string/app_name\" >\n        <activity\n            android:name=\"LilDebi\"\n            android:label=\"@string/app_name\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n        <activity android:name=\"InstallActivity\"\n                  android:launchMode=\"singleTask\" />\n        <activity android:name=\"SelectRelease\" />\n        <activity android:name=\"SelectMirror\" />\n        <activity android:name=\"SelectArch\" />\n        <activity android:name=\"UnsupportedDeviceActivity\" />\n        <activity android:name=\"PreferencesActivity\" />\n        <activity android:name=\"InstallLogViewActivity\" />\n\n        <service android:name=\"InstallService\" />\n\n        <receiver android:name=\"MediaMountedReceiver\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.MEDIA_MOUNTED\" />\n                <data android:scheme=\"file\" />\n            </intent-filter>\n        </receiver>\n\n        <receiver android:name=\"MediaUnmountedReceiver\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.MEDIA_UNMOUNTED\" />\n                <data android:scheme=\"file\" />\n            </intent-filter>\n        </receiver>\n\n        <receiver android:name=\"MediaEjectReceiver\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.MEDIA_EJECT\" />\n                <action android:name=\"android.intent.action.MEDIA_BUTTON\" />\n                <action android:name=\"android.intent.action.ACTION_SHUTDOWN\" />\n                <action android:name=\"android.intent.action.MEDIA_SHARED\" />\n                <data android:scheme=\"file\" />\n            </intent-filter>\n        </receiver>\n\n        <receiver android:name=\"BootCompletedReceiver\" >\n            <intent-filter>\n                <action android:name=\"android.intent.action.BOOT_COMPLETED\" />\n                <data android:scheme=\"file\" />\n            </intent-filter>\n        </receiver>\n\n    </application>\n\n</manifest>"
  },
  {
    "path": "ChangeLog",
    "content": "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 requires root\n+ new icon to pay tribute to Ada Lovelace\n\nv0.5.3\n+ support SuperSU\n+ update to latest cdebootstrap\n+ use Android locale in Debian setup\n+ updated translations: fr nb nl ru sk tr\n\nv0.5.2\n+ notification when install process is running\n+ drastically improved install logging performance\n+ lots of bug fixes\n\nv0.5.1\n+ new dev: SDkie aka Kumar Sukhani\n+ complete boot integration: Debian process runs on start/stop\n+ Android permissions integrated by default in new installs\n+ beta support for installing Debian on internal storage\n+ new translations: Hungarian, Russian\n\nv0.4.7\n+ new repeatable, deterministic build process!\n   https://github.com/guardianproject/lildebi/wiki/Deterministic-Builds\n+ reduced APK size by half\n\nv0.4.6\n+ fix issues finding SD Card path on 4.3 and newer, #66\n+ added menu item to launch Debian shell in Terminal Emulator\n+ updated translations: Danish, German, Spanish, French, Dutch, Chinese\n\nv0.4.5\n+ fix bad path to SD Card on 4.3, #64\n+ support lzma and xz since sid/unstable uses it, #70\n+ new translations: Brazilian Portuguese, Norwegian Bokmål, Polish, Simplified Chinese, Slovenian, Vietnamese\n+ fix Android 2.2 support\n\nv0.4.4\n+ fixed install issues on some devices, bugs #56, #60\n+ added /storage/extSDCard path\n+ new translations: Dutch, Vietnamese\n\nv0.4.3\n+ made DNS resolving work for users (bug #54\n+ fixed free space detection (bug #53)\n+ new translations: Spanish, Polish, Romanian, Danish, French, German\n\nv0.4.2\n+ added preference to set image file location\n+ new translation: Turkish\n+ complete Debian package verification\n+ choose the CPU arch: armhf or armel\n+ improved loop device allocation\n+ various GUI bugfixes and improvements\n\nv0.4.1\n+ default to ext4 or ext3 for new installs\n+ auto-detect best supported filesystem\n+ include e2fsck, many phones do not have it (!!!)\n+ new preference: enable SHA1 check of debian.img\n+ included scripts are now editable\n+ \"app_bin\" renamed on upgrade\n"
  },
  {
    "path": "LICENSE.txt",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "LilDebi.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module type=\"ANDROID_MODULE\" version=\"4\">\n  <component name=\"FacetManager\">\n    <facet type=\"android\" name=\"Android\">\n      <configuration>\n        <option name=\"PLATFORM_NAME\" value=\"Android 2.1-update1 Google APIs\" />\n        <option name=\"GEN_FOLDER_RELATIVE_PATH_APT\" value=\"/gen\" />\n        <option name=\"GEN_FOLDER_RELATIVE_PATH_AIDL\" value=\"/gen\" />\n        <option name=\"MANIFEST_FILE_RELATIVE_PATH\" value=\"/AndroidManifest.xml\" />\n        <option name=\"RES_FOLDER_RELATIVE_PATH\" value=\"/res\" />\n        <option name=\"ASSETS_FOLDER_RELATIVE_PATH\" value=\"/assets\" />\n        <option name=\"LIBS_FOLDER_RELATIVE_PATH\" value=\"/libs\" />\n        <option name=\"REGENERATE_R_JAVA\" value=\"true\" />\n        <option name=\"REGENERATE_JAVA_BY_AIDL\" value=\"true\" />\n        <option name=\"USE_CUSTOM_APK_RESOURCE_FOLDER\" value=\"false\" />\n        <option name=\"CUSTOM_APK_RESOURCE_FOLDER\" value=\"\" />\n        <option name=\"USE_CUSTOM_COMPILER_MANIFEST\" value=\"false\" />\n        <option name=\"CUSTOM_COMPILER_MANIFEST\" value=\"\" />\n        <option name=\"APK_PATH\" value=\"\" />\n        <option name=\"ADD_ANDROID_LIBRARY\" value=\"true\" />\n        <option name=\"LIBRARY_PROJECT\" value=\"false\" />\n        <option name=\"RUN_PROCESS_RESOURCES_MAVEN_TASK\" value=\"true\" />\n        <option name=\"GENERATE_UNSIGNED_APK\" value=\"false\" />\n      </configuration>\n    </facet>\n  </component>\n  <component name=\"NewModuleRootManager\" inherit-compiler-output=\"true\">\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\">\n      <sourceFolder url=\"file://$MODULE_DIR$/src\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/gen\" isTestSource=\"false\" />\n    </content>\n    <orderEntry type=\"inheritedJdk\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n    <orderEntry type=\"library\" scope=\"PROVIDED\" name=\"Android 2.1-update1 Google APIs\" level=\"application\" />\n    <orderEntry type=\"library\" scope=\"PROVIDED\" name=\"Android 2.1-update1 Google APIs\" level=\"application\" />\n  </component>\n</module>\n\n"
  },
  {
    "path": "README.md",
    "content": "\n\n__UNMAINTAINED__ we no longer have the time to maintain this app, but\nwould love to see someone take it over and continue developing it!\n\n\nLil' Debi\n=========\n\nThis is an app to setup and manage a Debian install in parallel on an Android\nphone.  It can build a Debian install from scratch or use an existing image.\nIt manages the starting and stopping of the Debian install.\n\nIt uses cdebootstrap to build up the disk image as a chroot, and then provides\nstart and stop methods for handling mounting, fsck, starting/stopping sshd,\netc.\n\nIt is 100% free software. Ultimately, our aim is to have the whole\nprocess for every bit of this app documented so that it can be freely\ninspected, modified, ported, etc.  We want this app to build a trusted Debian\ninstall on the phone, so free software is the only way to get there.  This is\ncurrently functional alpha software, so do not rely on it to produce a trusted\nDebian install.  Please do try it out, use it, and report criticisms, bugs,\nimprovements, etc.\n\n\nInstalling Debian\n=================\n\nThe process of installing Debian with Lil' Debi is self-explanatory, just run\nthe app and click the Install... button.  But it doesn't yet work on all\nphones.  If the install process fails on your phone, you can still use Lil'\nDebi by downloading a pre-built Debian image.  It should work with any\nDebian/Ubuntu/Mint armel image file.  Here is a Debian image file that was\nbuilt by Lil' Debi:\n\nhttps://github.com/guardianproject/lildebi/downloads\n\nDownload the file, uncompress it and rename it 'debian.img' and copy it to\nyour SD Card.  Launch Lil' Debi, and you should now see the button says \"Start\nDebian\".  Click the button to start your new Debian install.\n\n\nBuild Setup\n===========\n\nOn Debian/Ubuntu/Mint/etc.:\n\n  ```\n  sudo apt-get install autoconf automake libtool transfig wget patch \\\n       texinfo ant make openjdk-7-jdk faketime\n```\n\nOn Mac OS X, you will need Fink, MacPorts, or Brew to install some of these\ndependencies.  For example, GNU tar is required, OS X's tar will not work.\nAlso, faketime is needed to make repeatable builds of busybox.\n\nBoth the Android SDK and the Android NDK are needed:\n\nSDK: http://developer.android.com/sdk/\nNDK: http://developer.android.com/sdk/ndk/\n\n\nBuilding\n========\n\nBuilding Lil' Debi is a multi-step process including clone the sources,\ngetting busybox code as a submodule, building the native utilities, and then\nfinally building the Android app.  Here are all those steps in a form to run\nin the terminal:\n\n```\n  git clone https://github.com/guardianproject/lildebi\n  cd lildebi\n  git submodule init\n  git submodule update\n  make NDK_BASE=/path/to/your/android-ndk -C external assets\n  ./setup-ant\n  ant debug\n```\n\nOnce that has completed, you can install it however you would normally install\nan .apk file.  You will find the .apk in the bin/ folder.  An easy way to\ninstall it via the terminal is to run:\n\n```\n  adb install bin/LilDebi-debug.apk\n```\n\n\nDeterministic Release\n---------------------\n\nHaving a deterministic, repeatable build process that produces the exact same\nAPK wherever it is run has a lot of benefits:\n\n* makes it easy for anyone to verify that the official APKs are indeed\n  generated only from the sources in git\n\n* makes it possible for FDroid to distribute APKs with the upstream\n  developer's signature instead of the FDroid's signature\n\nTo increase the likelyhood of producing a deterministic build of LilDebi, run\nthe java build with `faketime`.  The rest is already included in the\nMakefiles.  This is also included in the ./make-release-build.sh\nscript. Running a program with `faketime` causes that program to recent a\nfixed time based on the timestamp provided to `faketime`.  This ensures that\nthe timestamps in the files are always the same.\n\n```\n  faketime \"`git log -n1 --format=format:%ai`\" \\\n  ant clean debug\n```\n\nThe actual process that is used for making the release builds is the included\n`./make-release-build` script.  To reproduce the official releases, run this\nscript. But be aware, it will delete all changes in the git repo that it is\nrun in, so it is probably best to run it in a clean clone.  Then you can\ncompare your release build to the official release using the included\n`./compare-to-official-release` script.  It requires a few utilities to work.\nAll of them are Debian/Ubuntu packages except for `apktool`.  Here's what to\ninstall:\n\n```\n  apt-get install unzip meld bsdmainutils\n```\n\nOr on OSX with brew:\n\n```\n  brew install apktool unzip\n```\n\nIf you want to reproduce a build and the cdebootstrap-static package is no\nlonger available, you can download it from snapshot.debian.org.  For example:\n\n * http://snapshot.debian.org/archive/debian/20141024T052403Z/pool/main/c/cdebootstrap/cdebootstrap_0.6.3_armel.deb\n\nNDK build options\n-----------------\n\nThe following options can be set from the make command line to tailor the NDK\nbuild to your setup:\n\n * NDK_BASE             (/path/to/your/android-ndk)\n * NDK_PLATFORM_LEVEL   (7-17 as in android-17)\n * NDK_ABI              (arm, mips, x86)\n * NDK_COMPILER_VERSION (4.4.3, 4.6, 4.7, clang3.1, clang3.2)\n * HOST                 (arm-linux-androideabi, mipsel-linux-android, x86)\n\n\nOriginal Sources\n================\n\ncdebootstrap\n-----------\nhttp://packages.debian.org/unstable/cdebootstrap\n\ncdebootstrap is downloaded directly from Debian, extracted, and then\ntar'ed into the included tarball assets/cdebootstrap.tar. See\nexternal/cdebootstrap/Makefile for details.\n\n\nbusybox\n-------\ngit://busybox.net/busybox.git\n\nbusybox is included as a git submodule and built from source by\nexternals/Makefile using a custom config file.\n\n\ngpgv\n----\ngit://git.gnupg.org/gnupg.git\n\nOnly `gpgv` is needed, so it is built from GnuPG v1.4.x.  It is built\nstatically to get around PIE vs non-PIE.  If an executable is built fully\nstatically, with no dynamic linking at all, then the same binary will work on\nboth PIE systems (android-21 and above), and systems where PIE does not work\n(older than android-16).\n"
  },
  {
    "path": "assets/complete-debian-setup.sh",
    "content": "#!/bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\napp_bin=$1\n\necho \"----------------------------------------\"\necho `$app_bin/basename $0`\n\n. $app_bin/install.conf\n\n# get full debug output\nset -x\n\n# this script runs in Debian, so force the path we use the Debian utilities\n# rather than the busybox ones.\nexport PATH=/usr/sbin:/usr/bin:/sbin:/bin\nexport DEBIAN_FRONTEND=noninteractive\n\n# *  install and start sshd so you can easily log in, and before\n#    stop/start so the start script starts sshd.  Also,\n# * 'policyrcd-script-zg2' sets up the machine for starting and stopping\n#    everything via /etc/init.d/rc without messing with the core Android\n#    stuff.\n# * 'molly-guard' adds a confirmation prompt to poweroff, halt,\n#    reboot, and shutdown.\napt-get -y install --no-install-recommends \\\n    ssh policyrcd-script-zg2 molly-guard\ncp $app_bin/policy-rc.d /etc/policy-rc.d\nchmod 0755 /etc/policy-rc.d\n\n# sometimes the ssh host keys don't get created, so try again\ntest -e /etc/ssh/ssh_host_rsa_key || \\\n    ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ''\ntest -e /etc/ssh/ssh_host_dsa_key || \\\n    ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N ''\n\n# purge install packages in cache\napt-get clean\n\n# run 'apt-get upgrade' to get the security updates\napt-get --yes update\napt-get --yes --fix-broken upgrade\n\n# purge upgrade packages in cache\napt-get clean\n\n# set Debian to current language\nfor locale in en_US.UTF-8 $LANG; do\n    sed -i -e \"s/^[# ]*$locale/$locale/\" /etc/locale.gen\ndone\nlocale-gen\n\necho \"Debian is installed and ssh started!\"\n"
  },
  {
    "path": "assets/configure-downloaded-image.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\ntest -e $1/lildebi-common || exit\n. $1/lildebi-common\n\n# create the mount dir on the read-only rootfs\nif [ ! -e $mnt ]; then\n    mount -o remount,rw rootfs /\n    echo mkdir $mnt\n    mkdir $mnt\n    mount -o remount,ro rootfs /\nfi\n"
  },
  {
    "path": "assets/create-debian-setup.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\n# get full debug output\nset -x\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\ntest -e $1/lildebi-common || exit 1\n. $1/lildebi-common\n\n# include installation-specific settings like mirror and arch\n. $app_bin/install.conf\n\n\n#------------------------------------------------------------------------------#\n# cdebootstrap needs /bin to find it utils\n\nmount -o remount,rw rootfs /\n\n# set /bin to busybox utils\nif [ ! -e /bin ]; then\n    echo \"No '/bin' found, linking it to busybox utils\"\n    cd /\n    ln -s $app_bin /bin\nfi\n\nmount -o remount,ro rootfs /\n\n\n#------------------------------------------------------------------------------#\n# create chroot mountpoint/directory\n\nif [ -d $mnt ]; then\n    echo \"WARNING: Mountpoint directory '$mnt' exists! Using this folder!\"\nelif [ -e $mnt ]; then\n    echo \"ERROR: Mountpoint directory '$mnt' exists as a file! Exiting install...\"\n    exit 1\nelse\n    echo \"Creating chroot mountpoint at $mnt\"\n    mkdir $mnt\nfi\nchmod 755 $mnt\n\n# create shortcut symlink to mountpoint\nmake_debian_symlink\n\n\n#------------------------------------------------------------------------------#\n# some platforms need to have the ext2 module installed to get ext2 support\nif [ -z `grep ext2 /proc/filesystems` ]; then\n    echo \"Loading ext2 kernel module:\"\n    modprobe ext2\nfi\n\n\n#------------------------------------------------------------------------------#\n# create the image file\nif [ x\"$install_on_internal_storage\" = xno ]; then\n    echo \"Create the image file:\"\n\n    test -e $install_path || \\\n        dd if=/dev/zero of=$install_path seek=$imagesize bs=1M count=1\n    # set them up\n    if test -d $mnt && test -e $install_path; then\n        mke2fs_options=\"-L debian_chroot -T `find_best_filesystem` -F $install_path\"\n    # the built-in mke2fs seems to be more reliable when the busybox mke2fs fails\n        if test -x /system/bin/mke2fs; then\n            /system/bin/mke2fs $mke2fs_options\n        else\n            mke2fs $mke2fs_options\n        fi\n        # run native and busybox losetup to test outputs\n        losetup\n        /system/xbin/losetup\n        $losetup $loopdev $install_path\n        losetup\n        /system/xbin/losetup\n        mount -o loop,noatime,errors=remount-ro $loopdev $mnt\n        if [ $? -ne 0 ]; then\n            echo \"Unable to mount loopback image!\"\n            exit 1\n        fi\n    else\n        echo \"No mount dir found ($mnt) or no install_path ($install_path)\"\n        exit 1\n    fi\nfi\n\n    cd $mnt\n    tar xf $app_bin/cdebootstrap.tar\n\n#------------------------------------------------------------------------------#\n# create mountpoints\necho \"creating mountpoints\"\n\ncreate_mountpoint() {\n    test -d $1 && test -e ${mnt}${1}\n    if [ $? -ne 0 ] && [ ! -e ${mnt}${1} ]; then\n        mkdir ${mnt}${1}\n    fi\n}\n\n# standard GNU/Linux mounts\ncreate_mountpoint /dev\ncreate_mountpoint /dev/pts\ncreate_mountpoint /media\ncreate_mountpoint /mnt\ncreate_mountpoint /proc\ncreate_mountpoint /sys\ncreate_mountpoint /sys/kernel\ncreate_mountpoint /sys/kernel/debug\ncreate_mountpoint /tmp\n# Android mounts\ncreate_mountpoint /acct\ncreate_mountpoint /app-cache\ncreate_mountpoint /cache\ncreate_mountpoint /data\ncreate_mountpoint /dbdata\ncreate_mountpoint /dev/cpuctl\ncreate_mountpoint /efs\ncreate_mountpoint /mnt/.lfs\ncreate_mountpoint /mnt/asec\ncreate_mountpoint /mnt/emmc\ncreate_mountpoint /mnt/obb\ncreate_mountpoint /mnt/sdcard\ncreate_mountpoint /mnt/sdcard/external_sd\ncreate_mountpoint /mnt/sdcard/external_sd/.android_secure\ncreate_mountpoint /mnt/secure\ncreate_mountpoint /mnt/secure/asec\ncreate_mountpoint /mnt/secure/.android_secure\ncreate_mountpoint /mnt/shell\ncreate_mountpoint /mnt/shell/emulated\ncreate_mountpoint /pds\ncreate_mountpoint /sqlite_stmt_journals\ncreate_mountpoint /storage\ncreate_mountpoint /storage/emulated\ncreate_mountpoint /storage/emulated/0\ncreate_mountpoint /storage/emulated/legacy\ncreate_mountpoint /storage/extSdCard\ncreate_mountpoint /storage/sdcard0\ncreate_mountpoint /storage/sdcard1\ncreate_mountpoint /storage/usbdisk\ncreate_mountpoint /system\n\n\n#------------------------------------------------------------------------------#\n# looking for GPG keyring used to validate signatures on downloaded packages\n\nkeyring_name=debian-archive-keyring.gpg\nkeyring=$app_bin/$keyring_name\nif test -f $keyring; then\n    echo \"Using keyring for validating packages: $keyring\"\n    KEYRING=\"--keyring=$keyring\"\nelse\n    echo \"No keyring found, not validating packages! ($keyring)\"\n    KEYRING=\nfi\n\n\n#------------------------------------------------------------------------------#\necho \"run cdebootstrap in one stage\"\n\n$mnt/usr/bin/cdebootstrap-static --verbose --foreign\\\n    --flavour=minimal --include=locales $KEYRING \\\n    --configdir=$mnt/usr/share/cdebootstrap-static \\\n    --helperdir=$mnt/usr/share/cdebootstrap-static \\\n    --arch $arch $release $mnt $mirror || exit\n\nif [ x\"$install_on_internal_storage\" = xyes ]; then\n    mount -o bind /dev $mnt/dev\nfi\nSHELL=/bin/sh chroot $mnt /sbin/cdebootstrap-foreign --second-stage\n\n# This package sets up all the Android app users and permissions groups.  It\n# needs to be installed as early as possible to claim the uids for group names\n# like 'bluetooth' that also exist in Debian. (installing it like this is a\n# temporary workaround until this package is included in Debian).\nif [ -r $app_bin/android-permissions_0.1_all.deb ]; then\n    cp $app_bin/android-permissions_0.1_all.deb $mnt/root/\n    SHELL=/bin/sh chroot $mnt /usr/bin/dpkg -i /root/android-permissions_0.1_all.deb\nfi\n\n# figure out extra packages to include\nif [ ! -x /system/bin/e2fsck ]; then\n    install_e2fsck_static\nfi\n\n#------------------------------------------------------------------------------#\n# create root symlinks that exist on the Android system\necho \"creating root symlinks\"\n\ncreate_root_symlink() {\n    if [ -L $1 ] && [ ! -e ${mnt}${1} ]; then\n        link=`ls -l $1 | awk '{print $4}'`\n        target=`ls -l $1 | awk '{print $6}'`\n        ln -s $target ${mnt}${link}\n    fi\n}\n\nfor file in /*; do\n    create_root_symlink $file\ndone\n\n#------------------------------------------------------------------------------#\n# create configs\necho \"creating configs\"\n\n# create /etc/resolv.conf\ntest -e $mnt/etc || mkdir $mnt/etc\ntouch $mnt/etc/resolv.conf\necho 'nameserver 4.2.2.2' >> $mnt/etc/resolv.conf\necho 'nameserver 8.8.8.8' >> $mnt/etc/resolv.conf\necho 'nameserver 198.6.1.1' >> $mnt/etc/resolv.conf\nchmod 644 $mnt/etc/resolv.conf\n\n# create /etc/hosts\ncp /etc/hosts $mnt/etc/hosts\n\n# create live mtab\ntest -e $mnt/etc/mtab && rm $mnt/etc/mtab\nln -s /proc/mounts $mnt/etc/mtab\n\n# apt sources\nif [ ! -e $mnt/etc/apt/sources.list ]; then\n    test -e $mnt/etc/apt || mkdir $mnt/etc/apt\n    touch $mnt/etc/apt/sources.list\n    echo \"deb $mirror $release main\" >> $mnt/etc/apt/sources.list\nfi\n\n# sid does not have security updates, everything else should\nif [ $release != \"sid\" ] && [ $release != \"unstable\" ]; then\n    echo \"deb http://security.debian.org/ $release/updates main\" >> $mnt/etc/apt/sources.list\nfi\n\n# Debian's e2fsck.static needs to check /etc/mtab to make sure the\n# filesystem being check is not currently mounted. on Android, /etc is\n# actually /system/etc, so in order to avoid modifying /system, we run\n# e2fsck.static in a special minimal chroot.\necho \"set up chroot for e2fsck\"\ncreate_e2fsck_chroot\n\n#------------------------------------------------------------------------------#\n# finish tweaking Debian install\necho \"finish tweaking Debian install\"\n\nchroot $mnt apt-get -y update\n\n# purge install packages in cache\nchroot $mnt apt-get clean\n\n# remove stop scripts\nchroot $mnt /usr/sbin/update-rc.d -f halt remove\nchroot $mnt /usr/sbin/update-rc.d -f hwclock.sh remove\nchroot $mnt /usr/sbin/update-rc.d -f reboot remove\nchroot $mnt /usr/sbin/update-rc.d -f sendsigs remove\nchroot $mnt /usr/sbin/update-rc.d -f umountfs remove\nchroot $mnt /usr/sbin/update-rc.d -f umountroot remove\n\n# convert to ext3, if that's available. for some reason unknown to me, Android\n# shows the loop devices as /dev/block/loop[0-7] while those same devices show\n# up as /dev/loop[0-7] un Debian. tune2fs needs /proc mounted so it can read\n# /proc/mounts via the /etc/mtab symlink.\nif `grep -q -s ext3 /proc/filesystems`; then\n    mount -t proc proc $mnt/proc\n    chroot $mnt tune2fs -j `echo $loopdev | sed s,block/,,`\n    umount $mnt/proc\nfi\n\n\n#------------------------------------------------------------------------------#\n# clean up after debootstrap\n\nchroot $mnt dpkg --purge cdebootstrap-helper-rc.d\nif [ x\"$install_on_internal_storage\" = xyes ]; then\n    umount $mnt/dev\nfi\n"
  },
  {
    "path": "assets/delete-all-debian-setup.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\necho \"========================================\"\necho \"./delete-all-debian-setup.sh\"\n\ntest -e $1/lildebi-common || exit 1\n. $1/lildebi-common\n\n$1/stop-debian.sh\n\nset -x\n\n# force umount if stop-debian.sh failed\ntest -d $mnt/usr && umount -f $mnt\n$losetup -d $loopdev\n\nif [ x\"$install_on_internal_storage\" = xno ]; then\n    rm $install_path\nelse\n    rm -r $install_path\nfi\nrm $install_path.sha1\n\n# delete the log from previous install\nif [ -f $app_bin/../app_log/install.log ]; then\n    rm $app_bin/../app_log/install.log\nfi\n\nmount -o remount,rw rootfs /\nif [ -d $mnt ]; then\n    rmdir $mnt\nfi\n\n# if the /bin symlink exists, delete it\nif [ -h /bin ]; then\n    rm /bin\nfi\n\n# if the /debian symlink exists, delete it\nif [ -h /debian ]; then\n    rm /debian\nfi\n\n# if the old /debian mount dir exists, delete it\nif [ -d /debian ]; then\n    rmdir /debian\nfi\nmount -o remount,ro rootfs /\n\n#------------------------------------------------------------------------------#\n# shortcuts for setting up the chroot in the terminal\n\nif [ -e /data/local/bin/debian ]; then\n    rm /data/local/bin/debian\nfi\n\nif [ -d /data/local/bin ]; then\n    rmdir /data/local/bin\nfi\n"
  },
  {
    "path": "assets/lildebi-common",
    "content": "#!/bin/sh\n# this is the common settings for the various scripts here\n\necho \"----------------------------------------\"\n\nexport TERM=linux\nexport HOME=/root\nexport HOSTNAME=debian\nexport DEBIAN_FRONTEND=noninteractive\n\nif [ $# -lt 1 ]; then\n    echo \"incorrect number of arguments, should be between 1 and 8:\"\n    echo \"    $0 app_bin [sdcard] [install_path] [mnt] [release] [mirror] [imagesize] [arch]\"\nfi\n\n# use the included utilities first\napp_bin=$1\nexport PATH=$app_bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/sbin:/system/bin:/system/xbin\n\necho `basename $0`\n\nif [ -z $sdcard ]; then\n    sdcard=$2\nfi\nif [ -z $install_path ]; then\n    install_path=$3\nfi\nif [ -z $mnt ]; then\n    mnt=$4\nfi\n\nif [ x\"$mnt\" = x\"$install_path\" ]; then\n    install_on_internal_storage=yes\nelse\n    install_on_internal_storage=no\nfi\n\ntest -d $app_bin || echo \"app_bin: '$app_bin' not a directory\"\ntest -d $sdcard || echo \"sdcard: '$sdcard' not a directory\"\ntest -z $install_path && echo \"install_path: '$install_path' is empty\"\ntest -z $mnt && echo \"mnt: '$mnt' is empty\"\n\nbusybox_path=\"$app_bin\"\nbusybox=$busybox_path/busybox\n\nfsck_chroot=`dirname $app_bin`/fsck-chroot\ninstall_fsck=no\n\nsha1file=`dirname $app_bin`/`basename $install_path.sha1`\n\n# keep all files private to this app\numask 077\n\n\nmake_debian_symlink () {\n    if [ -d /debian ] && ! [ -h /debian ]; then\n        mount -o remount,rw rootfs /\n        umount /debian\n        rmdir /debian\n        mount -o remount,ro rootfs /\n    fi\n    if [ ! -e /debian ]; then\n        mount -o remount,rw rootfs /\n        echo \"'/debian' not found, making a symlink to the chroot.\"\n        cd /\n        ln -s $mnt /debian\n        mount -o remount,ro rootfs /\n    fi\n}\n\nmake_root_symlinks () {\n    wd=`pwd`\n    cd /\n    mount -o remount,rw rootfs /\n    for x in \\\n        bin boot home media opt selinux srv usr var tmp\n    do\n        ln -s $mnt/$x /$x\n    done\n    mount -o remount,ro rootfs /\n    cd \"$wd\"\n}\n\nremove_root_symlinks () {\n    cd /\n    mount -o remount,rw rootfs /\n    for x in \\\n        bin boot home media opt selinux srv usr var tmp\n    do\n        rm /$x\n    done\n    mount -o remount,ro rootfs /\n}\n\nfind_losetup () {\n    if [ -x /system/xbin/losetup ]; then\n        echo /system/xbin/losetup\n    else\n        echo $app_bin/losetup\n    fi\n}\n\nlosetup=`find_losetup`\n\nfind_mounted_loopdev () {\n    $app_bin/sed -n \"s|^\\(/dev/.*loop[0-9][0-9]*\\) $mnt .*|\\1|p\" /proc/mounts\n}\n\nfind_free_loopdev () {\n    # on Android 'losetup -f' doesn't reliably return a device that will\n    # actually work. So instead we iterate through the possible loop devices\n    # and query to see if anything is attached, and return the first one found\n    # that has nothing attached. Missing device files are created on the fly.\n    if [ -e /dev/block/loop0 ]; then\n        # only do this, if the loopback device files are in the location,\n        # we expect\n        i=0 # first device number is 0\n        while [ \"$i\" -le 255 ]; do # iterate through device numbers,\n                                   # until a free one is found (return below),\n                                   # or we run out of device numbers (255)\n            loopdev=\"/dev/block/loop$i\"\n\n            # create the device file, if it does not yet exist\n            if [ ! -e \"$loopdev\" ]; then\n                mknod -m 600 \"$loopdev\" b 7 $i > /dev/null 2>&1\n            fi\n\n            # check if it is unused; return it, if it's unused.\n            if ! `$losetup \"$loopdev\" > /dev/null 2>&1`; then\n                echo \"$loopdev\"\n                return\n            fi\n\n            i=$((i+1)); # next device number\n        done\n    fi\n\n    # if the above doesn't succeed, ask the system as a fallback\n    echo `$losetup -f`\n}\n\nfind_attached_loopdev () {\n    for loopdev in `$app_bin/ls -1 /dev/block/loop*`; do\n        if `$losetup $loopdev 2>&1 | grep -q $install_path`; then\n            echo $loopdev\n            return\n        fi\n    done\n}\n\nfind_loopdev () {\n    loopdev=`find_attached_loopdev`\n    if [ -z $loopdev ]; then\n        echo `find_free_loopdev`\n    else\n        echo $loopdev\n    fi\n}\n\nloopdev=`find_loopdev`\n\n\nfind_best_filesystem () {\n    $app_bin/grep 'ext[234]' /proc/filesystems | $app_bin/sort | $app_bin/tail -1\n}\n\n#------------------------------------------------------------------------------#\n# tricks to get a working fsck\n\n# We include Debian's e2fsck.static, which needs to check /etc/mtab to make\n# sure the filesystem being check is not currently mounted. on Android, /etc\n# is actually /system/etc, so in order to avoid modifying /system, we setup a\n# special minimal chroot just for running e2fsck.static\n\ntest_or_create_dir () {\n    test -e $1 || mkdir -p $1\n}\n\ncreate_e2fsck_chroot () {\n    echo \"Setting up chroot for e2fsck.static\"\n    test_or_create_dir $fsck_chroot\n    test_or_create_dir $fsck_chroot/`dirname $install_path`\n    test_or_create_dir $fsck_chroot/app_bin\n    test_or_create_dir $fsck_chroot/dev\n    test_or_create_dir $fsck_chroot/etc\n    test_or_create_dir $fsck_chroot/proc\n    test -e $fsck_chroot/etc/mtab || \\\n        ln -s /proc/mounts $fsck_chroot/etc/mtab\n}\n\nfind_and_run_fsck () {\n    if [ -z $1 ]; then\n        fsck_flags=\"-pv\"\n    else\n        fsck_flags=$1\n    fi\n# check for embedded fsck first, to allow overriding of Android's fsck\n    if [ -x $app_bin/e2fsck.static ]; then\n        fsck=$app_bin/e2fsck.static\n    # Debian's e2fsck.static needs to check /etc/mtab to make sure the\n    # filesystem being check is not currently mounted. on Android, /etc is\n    # actually /system/etc, so in order to avoid modifying /system, we run\n    # e2fsck.static in a special minimal chroot.\n        create_e2fsck_chroot\n        imagedir=`dirname $install_path`\n        mount -o bind $app_bin $fsck_chroot/app_bin\n        mount -o bind /dev $fsck_chroot/dev\n        mount -o bind /proc $fsck_chroot/proc\n        mount -o bind $imagedir $fsck_chroot/$imagedir\n        echo \"> $fsck $fsck_flags $install_path\"\n        chroot $fsck_chroot /app_bin/`basename $fsck` $fsck_flags $install_path\n        fsck_return=$?\n        umount $fsck_chroot/app_bin\n        umount $fsck_chroot/dev\n        umount $fsck_chroot/proc\n        umount $fsck_chroot/$imagedir\n    elif [ -x /system/bin/e2fsck ]; then\n        fsck=/system/bin/e2fsck\n        echo \"> $fsck $fsck_flags $install_path\"\n        $fsck $fsck_flags $install_path\n        fsck_return=$?\n    else\n        echo \"NO fsck FOUND, SKIPPING DISK CHECK!\"\n        fsck_return=0\n        install_fsck=yes\n    fi\n\n    test $fsck_return -lt 4 || exit $fsck_return\n}\n\ninstall_e2fsck_static () {\n        echo \"Installing e2fsck.static from Debian...\"\n        PATH=/sbin:/bin:/usr/bin \\\n            chroot $mnt /usr/bin/apt-get --no-install-recommends install e2fsck-static\n        cp $mnt/sbin/e2fsck.static $app_bin/\n}\n"
  },
  {
    "path": "assets/policy-rc.d",
    "content": "#!/bin/sh\n\n# Policy-rc.d is mentioned in manpage invoke-rc.d(8) and documented at\n# http://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt\n\nset -e\n\nscript=$1\ncommand=$2\n\n# \"exit 101\" means policy forbids the execution of that script\nforbid() {\n    echo >&2 \"Execution of \\\"$script $command\\\" forbidden by policy-rc.d\"\n    exit 101\n}\n\ncase \"$script\" in\n    halt) forbid ;;\n    hwclock.sh) forbid ;;\n    networking) forbid ;;\n    ifupdown) forbid ;;\n    reboot) forbid ;;\n    sendsigs) forbid ;;\n    umountfs) forbid ;;\n    umountroot) forbid ;;\n    urandom) forbid ;;\nesac\n\nexit 0\n"
  },
  {
    "path": "assets/remove-hard-restart.sh",
    "content": "#!/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 shutdown steps.  This allows Lil' Debi to\n# call \"/etc/init.d/rc 0\" to stop the Debian chroot without shutting down the\n# whole phone.\n\nfor script in halt reboot hwclock.sh sendsigs umountfs umountroot; do\n    echo \"removing $script:\"\n    /usr/sbin/update-rc.d -f $script remove\ndone\n"
  },
  {
    "path": "assets/shell",
    "content": "#!/system/bin/sh \n\nexport TERM=linux\nexport HOSTNAME=debian\nexport HOME=/root\nexport PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/xbin:/system/bin\napp_bin=/data/data/info.guardianproject.lildebi/app_bin\nexport USER=root\n\nusername=`$app_bin/whoami`\nid=`$app_bin/id -u`\n# make sure we got a valid ID before checking its 0\nif [ ! -z \"$id\" ] && [ `echo \"$id\" | grep -v '[^0-9]' > /dev/null` ] && [ \"$id\" -eq 0 ]; then\n# try using the chroot included in LilDebi, otherwise fail over to a possible system one\n    PATH=$app_bin SHELL=/bin/bash $app_bin/chroot /debian /bin/bash --login -i \\\n        || chroot /debian /bin/bash --login -i\nelif grep \"^${username}:\" /debian/etc/passwd > /dev/null; then\n    su -c \"PATH=$app_bin SHELL=/bin/sh TERMINFO=/lib/terminfo USER=$username \\\n             $app_bin/chroot /debian /bin/su $username --login\"\nelse\n    su -c \"HOME=/root PATH=$app_bin SHELL=/bin/bash TERMINFO=/lib/terminfo \\\n             $app_bin/chroot /debian /bin/bash --login -i\"\nfi\n"
  },
  {
    "path": "assets/start-debian.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\ntest -e $1/lildebi-common || exit 1\n. $1/lildebi-common\n\ntest_mount_bind() {\n    test -d $1 && \\\n        grep \" $1 \" /proc/mounts && \\\n        mount -o bind $1 $mnt/$1\n}\n\nexport TERM=linux\nexport HOME=/root\n# set the path to use the included utils first\nexport PATH=$app_bin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH\n\nif [ ! -e $mnt ]; then\n    echo \"Your Debian setup is missing mountpoint.\"\n    echo \"    mkdir $mnt\"\n    mkdir $mnt || exit\n    chmod 755 $mnt\n    exit\nfi\nif [ ! -d $sdcard ]; then\n    echo \"Your Debian setup is missing sdcard: $sdcard\"\n    exit\nfi\n# test if $install_path is a file\nif [ x\"$install_on_internal_storage\" = xyes ]; then\n    if [ ! -d $install_path ]; then\n        echo \"install_path ($install_path) does not exist or is not a directory\"\n        exit\n    fi\nelse\n    if [ ! -f $install_path ]; then\n        echo \"install_path ($install_path) does not exist or is not a regular file\"\n        exit\n    fi\nfi\n# test if $loopdev is a block device\nif [ x\"$install_on_internal_storage\" = xno ] && [ ! -b $loopdev ]; then\n    echo \"Your Debian setup is missing loopdev: $loopdev\"\n    exit\nfi\n\necho \"\"\necho \"Configuration that will be started:\"\necho \"app_bin: $app_bin\"\necho \"mnt: $mnt\"\necho \"sdcard: $sdcard\"\necho \"install_path: $install_path\"\n\nif [ x\"$install_on_internal_storage\" = xno ]; then\n    echo \"sha1file: $sha1file\"\n    echo \"loopdev: $loopdev\"\n\n    if [ -e $sha1file ]; then\n        echo \"Checking SHA1 checksum of $install_path...\"\n        cp $sha1file `dirname $install_path`\n        if `$app_bin/sha1sum -c $sha1file`; then\n            echo \"SHA1 checksum failed, exiting!\"\n            exit\n        else\n            echo \"Done!\"\n        fi\n    fi\n\n    # use system or lildebi fsck to check Debian partition\n    echo \"\"\n    find_and_run_fsck\n\n\n#------------------------------------------------------------------------------#\n# mounts\n\n    echo \"\"\n    echo \"> $losetup $loopdev $install_path\"\n    $losetup $loopdev $install_path\n\n    # some platforms need to have the ext2 module installed to get ext2 support\n    if [ -z `grep ext2 /proc/filesystems` ]; then\n        echo \"\"\n        echo \"Loading ext2 kernel module:\"\n        modprobe ext2\n    fi\n\n    echo \"\"\n    echo \"root mount for everything Debian\"\n    # root mount for everything Debian\n    echo \"> mount -t `find_best_filesystem` $loopdev $mnt\"\n    mount -t `find_best_filesystem` $loopdev $mnt\n\n    # check error code for the above mount\n    mounterr=$?\n    if [ $mounterr -ne 0 ] ; then\n        echo \"Mounting '$mnt' failed, returned $mounterr\"\n        exit\n    fi\nfi\n\nmount -t devpts devpts $mnt/dev/pts\nmount -t proc proc $mnt/proc\nmount -t sysfs sysfs $mnt/sys\nmount -t tmpfs tmpfs $mnt/tmp\nmount -o bind $sdcard $mnt/mnt/sdcard\n\n# mount other android mounts, these may vary device to device, so test\n# first. These are manually listed out here rather than automatically greped\n# from /proc/mounts since some of the mounts should not be mounted as 'bind',\n# e.g. things like /proc, /sys, /dev/pts, etc.\ntest_mount_bind /acct\ntest_mount_bind /app-cache\ntest_mount_bind /cache\ntest_mount_bind /data\ntest_mount_bind /dbdata\n\n# only bind mount /dev when installing into /data since /data is mounted nodev.  When\n# installing into an image file, then it can maintain its own /dev, and that means that\n# Debian won't be able to modify Android's /dev.\nif [ x\"$install_on_internal_storage\" = xyes ]; then\n    test_mount_bind /dev\nfi\ntest_mount_bind /dev/cpuctl\ntest_mount_bind /efs\ntest_mount_bind /mnt/.lfs\ntest_mount_bind /mnt/asec\ntest_mount_bind /mnt/obb\ntest_mount_bind /mnt/secure/asec\ntest_mount_bind /mnt/sdcard/external_sd\ntest_mount_bind /mnt/sdcard/external_sd/.android_secure\ntest_mount_bind /mnt/secure/.android_secure\ntest_mount_bind /mnt/shell/emulated\ntest_mount_bind /pds\ntest_mount_bind /sd-ext\ntest_mount_bind /sqlite_stmt_journals\ntest_mount_bind /storage/emulated/0\ntest_mount_bind /storage/emulated/legacy\ntest_mount_bind /storage/extSdCard\ntest_mount_bind /storage/sdcard0\ntest_mount_bind /storage/sdcard1\ntest_mount_bind /storage/usbdisk\ntest_mount_bind /sys/kernel/debug\ntest_mount_bind /system\n\n#------------------------------------------------------------------------------#\n# shortcuts for setting up the chroot in the terminal\n\nmake_debian_symlink\n\nif [ ! -e /debian/shell ]; then\n    echo \"installing '/debian/shell' for easy way to get to chroot from term\"\n    ln -s $app_bin/shell /debian/shell\nfi\n\nif [ ! -e /data/local/bin ]; then\n    mkdir /data/local/bin\nfi\n\nif [ ! -e /data/local/bin/debian ]; then\n    ln -s $app_bin/shell /data/local/bin/debian\nfi\n\n#\nif [ $install_fsck = yes ]; then\n    install_e2fsck_static\nfi\n\n\n#------------------------------------------------------------------------------#\n# remove rc.d scripts from Debian for things that Android handles\nfor script in halt hwclock.sh sendsigs umountfs umountroot; do\n    test -e $mnt/etc/rc0.d/*$script && \\\n        chroot $mnt /usr/sbin/update-rc.d -f $script remove && \\\n        echo \"Removed '$script' from /etc/rc?.d/\"\ndone\ntest -e /etc/rc6.d/*reboot && \\\n    chroot $mnt /usr/sbin/update-rc.d -f reboot remove && \\\n    echo \"Removed 'reboot' from /etc/rc?.d/\"\n\n\n\n#------------------------------------------------------------------------------#\n# ssh\n\nkeygen=/usr/bin/ssh-keygen\nif [ -x ${mnt}${keygen} ]; then\n    echo \"\"\n    echo \"My ssh host key fingerprint and random art:\"\n    chroot $mnt /bin/bash -c \\\n        \"for key in /etc/ssh/ssh_host_*_key; do $keygen -lv -f \\$key; done\"\nfi\n\n\n#------------------------------------------------------------------------------#\n# set the UTF-8 version as the system default if it has been generated\nif [ -x ${mnt}/usr/sbin/update-locale ]; then\n    LANG=`grep ^$LANG $mnt/etc/locale.gen | grep UTF-8 | cut -d ' ' -f 1 | head -1`\n    test -z $LANG || \\\n        chroot $mnt update-locale \"LANG=$LANG\"\nfi\n\n\necho \"\"\necho \"Debian chroot mounted and started.\"\n"
  },
  {
    "path": "assets/stop-debian.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there. The\n# first arg $1 is the \"app payload\" directory, where the included scripts are\n# kept.\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\ntest -e $1/lildebi-common || exit 1\n. $1/lildebi-common\n\nkill_processes () {\n    local signal=\"$1\"\n\n    for root in /proc/*/root; do\n      if [ ! -r \"$root\" ] || [ ! \"`readlink \"$root\"`\" = \"$mnt\" ]; then\n        continue\n      fi\n      pid=\"${root#/proc/}\"\n      pid=\"${pid%/root}\"\n      kill -\"$signal\" \"$pid\" 2>/dev/null || true\n    done\n\n    # /debian/shell starts outside of the chroot, so it must be killed separately\n    for pid in `ps | grep '/[d]ebian/shell' | cut -b1-5`; do\n      kill -$signal $pid\n    done\n}\n\necho -n \"Asking all processes to terminate...\"\n# first send TERM\nkill_processes TERM\nsleep 1\necho \"done\"\n# then send KILL to force the rest to die\necho -n \"Killing remaining processes...\"\nkill_processes KILL\necho \"done\"\n\necho -n \"Checking for open files in Debian chroot...\"\nopenfiles=`lsof $mnt | grep -v $(basename $install_path) | sed -n \"s|.*\\($mnt.*\\)|\\1|p\"`\necho \"done\"\n\nif [ ! -z \"$openfiles\" ]; then\n    echo \"Files that are still open:\"\n    for line in $openfiles; do\n        echo $line\n    done\n\n    echo \"\"\n    echo \"Not stopping debian because of open files, quit all processes and running shell sessions!\"\n    exit 1\nelse\n    echo -n \"Unmounting everything...\"\n    # sort reverse so it gets the nested mounts first\n    for mount in `cut -d ' ' -f 2 /proc/mounts | grep $mnt/ | sort -r`; do\n        $busybox_path/umount -f $mount\n    done\n\n    if [ x\"$install_on_internal_storage\" = xno ]; then\n        umount -d $mnt || /system/bin/umount $mnt || echo \"Failed to unmount $mnt!\"\n    fi\n    echo \"done\"\n\n    attached=`find_attached_loopdev`\n    if [ ! -z $attached ]; then\n        echo -n \"Deleting loopback device...\"\n        $losetup -d $attached\n        echo \"done\"\n    fi\n\n    echo \"\"\n    echo \"Debian chroot stopped and unmounted.\"\n    if [ -e $sha1file ]; then\n        echo -n \"Calculating new SHA1 checksum of $install_path...\"\n        $app_bin/sha1sum $install_path > $sha1file\n        chmod 0600 $sha1file\n        cp $sha1file `dirname $install_path`\n        echo \"Done!\"\n    fi\nfi\n"
  },
  {
    "path": "assets/test.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\necho \"--------------------------------------------------\"\necho \"./test.sh\"\n\necho $1/lildebi-common\ntest -e $1/lildebi-common || exit\n. $1/lildebi-common\n\n. $app_bin/install.conf\n\necho \"app_bin: $app_bin\"\necho \"sdcard: $sdcard\"\necho \"install_path: $install_path\"\necho \"mnt: $mnt\"\necho \"release: $release\"\necho \"mirror: $mirror\"\necho \"arch: $arch\"\necho \"imagesize: $imagesize\"\n"
  },
  {
    "path": "assets/unmounted-install-tweaks.sh",
    "content": "#!/data/data/info.guardianproject.lildebi/app_bin/sh\n#\n# see lildebi-common for arguments, the args are converted to vars there.  The\n# first arg is the \"app payload\" directory where the included scripts are kept\n\n# get full debug output\nset -x\n\n# many phones don't even include 'test', so set the path to our\n# busybox tools first, where we provide all the UNIX tools needed by\n# this script\nexport PATH=$1:$PATH\n\ntest -e $1/lildebi-common || exit 1\n. $1/lildebi-common\n\n# run fsck to set up ext3 journaling, if it was configed successfully. Try the\n# safe fsck first, then force it. Otherwise this install will be dead in the\n# water if fsck throws a \"manual intervention\" error.\nif [ x\"$install_on_internal_storage\" = xno ]; then\n    find_and_run_fsck -pfv\n    find_and_run_fsck -y\nfi\n"
  },
  {
    "path": "compare-to-official-release",
    "content": "#!/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.apk\"\n    exit 1\nfi\n\nset -e\nset -x\n\ntest -e \"$1\"\ntest -e \"$2\"\n\ntmpdir=`mktemp -d /tmp/.compare-apks.XXXXXXXXXX`\napk1=$(basename $1)\napk2=$(basename $2)\nsourcedir1=$(cd `dirname $1` && pwd)\nsourcedir2=$(cd `dirname $2` && pwd)\napkname1=`echo $apk1 | sed 's,\\.apk$,,'`\napkname2=`echo $apk2 | sed 's,\\.apk$,,'`\ndir1=$tmpdir/`echo $(dirname $1) | sed 's,[/ ],_,g'`-$apkname1\ndir2=$tmpdir/`echo $(dirname $2) | sed 's,[/ ],_,g'`-$apkname2\n\nmkdir -p $dir1/zip\ncd $dir1/zip\nunzip \"$sourcedir1/$apk1\"\ncd ..\napktool d \"$sourcedir1/$apk1\"\nmv \"$apkname1\" apktool\n# strip the full path to the zip for the comparison\nunzip -l \"$sourcedir1/$apk1\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir1/unzip-l.txt\nunzip -lv \"$sourcedir1/$apk1\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir1/unzip-lv.txt\nzipinfo -lv \"$sourcedir1/$apk1\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir1/zipinfo-lv.txt\nxxd \"$sourcedir1/$apk1\" > $dir1/xxd\n\nmkdir -p $dir2/zip\ncd $dir2/zip\nunzip \"$sourcedir2/$apk2\"\ncd ..\napktool d \"$sourcedir2/$apk2\"\nmv \"$apkname2\" apktool\n# strip the full path to the zip for the comparison\nunzip -l \"$sourcedir2/$apk2\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir2/unzip-l.txt\nunzip -lv \"$sourcedir2/$apk2\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir2/unzip-lv.txt\nzipinfo -lv \"$sourcedir2/$apk2\" | sed 's,^\\(Archive:\\s\\s*\\)/.*/,\\1,' > $dir2/zipinfo-lv.txt\nxxd \"$sourcedir2/$apk2\" > $dir2/xxd\n\nif which meld > /dev/null; then\n    meld $dir1 $dir2\nelif which opendiff > /dev/null; then\n    opendiff $dir1 $dir2\nelse\n    echo \"ERROR: meld or opendiff required for the comparison!\"\nfi\n\nrm -rf $dir1 $dir2\n"
  },
  {
    "path": "custom_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project>\n\n  <target name=\"rename-release-with-version-number\">\n    <xmlproperty file=\"AndroidManifest.xml\"\n                 prefix=\"themanifest\"\n                 collapseAttributes=\"true\"/>\n    <!--  see ${sdk.dir}/tools/ant/build.xml -set-release-mode -->\n    <property name=\"out.packaged.file\"\n              location=\"${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}-unsigned.apk\" />\n    <property name=\"out.final.file\"\n              location=\"${out.absolute.dir}/${ant.project.name}-${themanifest.manifest.android:versionName}.apk\" />\n  </target>\n\n  <target name=\"-set-release-mode\"\n          depends=\"rename-release-with-version-number,android_rules.-set-release-mode\">\n    <echo message=\"target: ${build.target}\"></echo>\n  </target>\n\n  <target name=\"-pre-build\">\n    <tstamp>\n      <format property=\"current.timestamp\" pattern=\"yyyyMMddHHmm.ss\" />\n    </tstamp>\n    <echo message=\"timestamp: ${current.timestamp}\"></echo>\n    <apply executable=\"touch\" parallel=\"true\" verbose=\"true\">\n      <arg value=\"-t\"/>\n      <arg value=\"${current.timestamp}\"/>\n      <fileset dir=\"assets\" casesensitive=\"yes\">\n        <include name=\"*\"/>\n      </fileset>\n    </apply>\n  </target>\n\n</project>\n"
  },
  {
    "path": "etc/resolv.conf",
    "content": "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",
    "content": "From: Tias Guns <tias@ulyssis.org>\nDate: Sun, 18 Mar 2012 14:12:41 +0000\nSubject: [PATCH] android: fix 'mount', 'umount', 'fsck', 'df'\n\npatch modified from 'Bionic Patch V1.0 (Vitaly Greck)'\nhttps://code.google.com/p/busybox-android/downloads/detail?name=patch\n---\n libbb/Kbuild.src |    3 +\n libbb/mntent_r.c |  290 ++++++++++++++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 293 insertions(+), 0 deletions(-)\n create mode 100644 libbb/mntent_r.c\n\ndiff --git a/libbb/Kbuild.src b/libbb/Kbuild.src\nindex 335b341..a054a44 100644\n--- a/libbb/Kbuild.src\n+++ b/libbb/Kbuild.src\n@@ -115,6 +115,9 @@ lib-y += xgethostbyname.o\n lib-y += xreadlink.o\n lib-y += xrealloc_vector.o\n \n+# for android-busybox-ndk\n+lib-y += mntent_r.o\n+\n lib-$(CONFIG_PLATFORM_LINUX) += match_fstype.o\n \n lib-$(CONFIG_FEATURE_UTMP) += utmp.o\ndiff --git a/libbb/mntent_r.c b/libbb/mntent_r.c\nnew file mode 100644\nindex 0000000..9944a2a\n--- /dev/null\n+++ b/libbb/mntent_r.c\n@@ -0,0 +1,290 @@\n+/* Utilities for reading/writing fstab, mtab, etc.\n+   Copyright (C) 1995-2000, 2001, 2002, 2003, 2006, 2010, 2011\n+   Free Software Foundation, Inc.\n+   This file is part of the GNU C Library.\n+\n+   The GNU C Library is free software; you can redistribute it and/or\n+   modify it under the terms of the GNU Lesser General Public\n+   License as published by the Free Software Foundation; either\n+   version 2.1 of the License, or (at your option) any later version.\n+\n+   The GNU C Library is distributed in the hope that it will be useful,\n+   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+   Lesser General Public License for more details.\n+\n+   You should have received a copy of the GNU Lesser General Public\n+   License along with the GNU C Library; if not, see\n+   <http://www.gnu.org/licenses/>.  */\n+\n+// file extracted from patch 'Bionic Patch V1.0 (Vitaly Greck)':\n+// https://busybox-android.googlecode.com/files/patch\n+// \n+// looks like its based on misc/mntent_r.c from glibc,\n+// contains all fixes in current master (2012-03-19),\n+// but is not source identical (mostly stuff removed)\n+// using the upstream one fails to build\n+\n+\n+#include <alloca.h>\n+#include <mntent.h>\n+#include <stdio.h>\n+#include <string.h>\n+#include <sys/types.h>\n+\n+\n+/* Prepare to begin reading and/or writing mount table entries from the\n+   beginning of FILE.  MODE is as for `fopen'.  */\n+FILE *setmntent (const char *file, const char *mode)\n+{\n+  /* Extend the mode parameter with \"c\" to disable cancellation in the\n+     I/O functions and \"e\" to set FD_CLOEXEC.  */\n+  size_t modelen = strlen (mode);\n+  char newmode[modelen + 3];\n+  memcpy (newmode, mode, modelen);\n+  memcpy (newmode + modelen, \"ce\", 3);\n+  FILE *result = fopen (file, newmode);\n+\n+  return result;\n+}\n+\n+\n+/* Close a stream opened with `setmntent'.  */\n+int endmntent (FILE *stream)\n+{\n+  if (stream)\t\t/* SunOS 4.x allows for NULL stream */\n+    fclose (stream);\n+  return 1;\t\t/* SunOS 4.x says to always return 1 */\n+}\n+\n+\n+/* Since the values in a line are separated by spaces, a name cannot\n+   contain a space.  Therefore some programs encode spaces in names\n+   by the strings \"\\040\".  We undo the encoding when reading an entry.\n+   The decoding happens in place.  */\n+static char *\n+decode_name (char *buf)\n+{\n+  char *rp = buf;\n+  char *wp = buf;\n+\n+  do\n+    if (rp[0] == '\\\\' && rp[1] == '0' && rp[2] == '4' && rp[3] == '0')\n+      {\n+\t/* \\040 is a SPACE.  */\n+\t*wp++ = ' ';\n+\trp += 3;\n+      }\n+    else if (rp[0] == '\\\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '1')\n+      {\n+\t/* \\011 is a TAB.  */\n+\t*wp++ = '\\t';\n+\trp += 3;\n+      }\n+    else if (rp[0] == '\\\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '2')\n+      {\n+\t/* \\012 is a NEWLINE.  */\n+\t*wp++ = '\\n';\n+\trp += 3;\n+      }\n+    else if (rp[0] == '\\\\' && rp[1] == '\\\\')\n+      {\n+\t/* We have to escape \\\\ to be able to represent all characters.  */\n+\t*wp++ = '\\\\';\n+\trp += 1;\n+      }\n+    else if (rp[0] == '\\\\' && rp[1] == '1' && rp[2] == '3' && rp[3] == '4')\n+      {\n+\t/* \\134 is also \\\\.  */\n+\t*wp++ = '\\\\';\n+\trp += 3;\n+      }\n+    else\n+      *wp++ = *rp;\n+  while (*rp++ != '\\0');\n+\n+  return buf;\n+}\n+\n+\n+/* Read one mount table entry from STREAM.  Returns a pointer to storage\n+   reused on the next call, or null for EOF or error (use feof/ferror to\n+   check).  */\n+struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz)\n+{\n+  char *cp;\n+  char *head;\n+\n+  do\n+    {\n+      char *end_ptr;\n+\n+      if (fgets (buffer, bufsiz, stream) == NULL)\n+\t{\n+\t  return NULL;\n+\t}\n+\n+      end_ptr = strchr (buffer, '\\n');\n+      if (end_ptr != NULL)\t/* chop newline */\n+\t*end_ptr = '\\0';\n+      else\n+\t{\n+\t  /* Not the whole line was read.  Do it now but forget it.  */\n+\t  char tmp[1024];\n+\t  while (fgets (tmp, sizeof tmp, stream) != NULL)\n+\t    if (strchr (tmp, '\\n') != NULL)\n+\t      break;\n+\t}\n+\n+      head = buffer + strspn (buffer, \" \\t\");\n+      /* skip empty lines and comment lines:  */\n+    }\n+  while (head[0] == '\\0' || head[0] == '#');\n+\n+  cp = strsep (&head, \" \\t\");\n+  mp->mnt_fsname = cp != NULL ? decode_name (cp) : (char *) \"\";\n+  if (head)\n+    head += strspn (head, \" \\t\");\n+  cp = strsep (&head, \" \\t\");\n+  mp->mnt_dir = cp != NULL ? decode_name (cp) : (char *) \"\";\n+  if (head)\n+    head += strspn (head, \" \\t\");\n+  cp = strsep (&head, \" \\t\");\n+  mp->mnt_type = cp != NULL ? decode_name (cp) : (char *) \"\";\n+  if (head)\n+    head += strspn (head, \" \\t\");\n+  cp = strsep (&head, \" \\t\");\n+  mp->mnt_opts = cp != NULL ? decode_name (cp) : (char *) \"\";\n+  switch (head ? sscanf (head, \" %d %d \", &mp->mnt_freq, &mp->mnt_passno) : 0)\n+    {\n+    case 0:\n+      mp->mnt_freq = 0;\n+    case 1:\n+      mp->mnt_passno = 0;\n+    case 2:\n+      break;\n+    }\n+\n+  return mp;\n+}\n+\n+struct mntent *getmntent (FILE *stream)\n+{\n+  static struct mntent m;\n+  static char *getmntent_buffer;\n+\n+  #define BUFFER_SIZE 4096\n+  if (getmntent_buffer == NULL) {\n+    getmntent_buffer = (char *) malloc (BUFFER_SIZE);\n+  }\n+\n+  return getmntent_r (stream, &m, getmntent_buffer, BUFFER_SIZE);\n+  #undef BUFFER_SIZE\n+}\n+\n+\n+/* We have to use an encoding for names if they contain spaces or tabs.\n+   To be able to represent all characters we also have to escape the\n+   backslash itself.  This \"function\" must be a macro since we use\n+   `alloca'.  */\n+#define encode_name(name) \\\n+  do {\t\t\t\t\t\t\t\t\t      \\\n+    const char *rp = name;\t\t\t\t\t\t      \\\n+\t\t\t\t\t\t\t\t\t      \\\n+    while (*rp != '\\0')\t\t\t\t\t\t\t      \\\n+      if (*rp == ' ' || *rp == '\\t' || *rp == '\\n' || *rp == '\\\\')\t      \\\n+\tbreak;\t\t\t\t\t\t\t\t      \\\n+      else\t\t\t\t\t\t\t\t      \\\n+\t++rp;\t\t\t\t\t\t\t\t      \\\n+\t\t\t\t\t\t\t\t\t      \\\n+    if (*rp != '\\0')\t\t\t\t\t\t\t      \\\n+      {\t\t\t\t\t\t\t\t\t      \\\n+\t/* In the worst case the length of the string can increase to\t      \\\n+\t   four times the current length.  */\t\t\t\t      \\\n+\tchar *wp;\t\t\t\t\t\t\t      \\\n+\t\t\t\t\t\t\t\t\t      \\\n+\trp = name;\t\t\t\t\t\t\t      \\\n+\tname = wp = (char *) alloca (strlen (name) * 4 + 1);\t\t      \\\n+\t\t\t\t\t\t\t\t\t      \\\n+\tdo\t\t\t\t\t\t\t\t      \\\n+\t  if (*rp == ' ')\t\t\t\t\t\t      \\\n+\t    {\t\t\t\t\t\t\t\t      \\\n+\t      *wp++ = '\\\\';\t\t\t\t\t\t      \\\n+\t      *wp++ = '0';\t\t\t\t\t\t      \\\n+\t      *wp++ = '4';\t\t\t\t\t\t      \\\n+\t      *wp++ = '0';\t\t\t\t\t\t      \\\n+\t    }\t\t\t\t\t\t\t\t      \\\n+\t  else if (*rp == '\\t')\t\t\t\t\t\t      \\\n+\t    {\t\t\t\t\t\t\t\t      \\\n+\t      *wp++ = '\\\\';\t\t\t\t\t\t      \\\n+\t      *wp++ = '0';\t\t\t\t\t\t      \\\n+\t      *wp++ = '1';\t\t\t\t\t\t      \\\n+\t      *wp++ = '1';\t\t\t\t\t\t      \\\n+\t    }\t\t\t\t\t\t\t\t      \\\n+\t  else if (*rp == '\\n')\t\t\t\t\t\t      \\\n+\t    {\t\t\t\t\t\t\t\t      \\\n+\t      *wp++ = '\\\\';\t\t\t\t\t\t      \\\n+\t      *wp++ = '0';\t\t\t\t\t\t      \\\n+\t      *wp++ = '1';\t\t\t\t\t\t      \\\n+\t      *wp++ = '2';\t\t\t\t\t\t      \\\n+\t    }\t\t\t\t\t\t\t\t      \\\n+\t  else if (*rp == '\\\\')\t\t\t\t\t\t      \\\n+\t    {\t\t\t\t\t\t\t\t      \\\n+\t      *wp++ = '\\\\';\t\t\t\t\t\t      \\\n+\t      *wp++ = '\\\\';\t\t\t\t\t\t      \\\n+\t    }\t\t\t\t\t\t\t\t      \\\n+\t  else\t\t\t\t\t\t\t\t      \\\n+\t    *wp++ = *rp;\t\t\t\t\t\t      \\\n+\twhile (*rp++ != '\\0');\t\t\t\t\t\t      \\\n+      }\t\t\t\t\t\t\t\t\t      \\\n+  } while (0)\n+\n+\n+/* Write the mount table entry described by MNT to STREAM.\n+   Return zero on success, nonzero on failure.  */\n+int addmntent (FILE *stream, const struct mntent *mnt)\n+{\n+  struct mntent mntcopy = *mnt;\n+  if (fseek (stream, 0, SEEK_END))\n+    return 1;\n+\n+  /* Encode spaces and tabs in the names.  */\n+  encode_name (mntcopy.mnt_fsname);\n+  encode_name (mntcopy.mnt_dir);\n+  encode_name (mntcopy.mnt_type);\n+  encode_name (mntcopy.mnt_opts);\n+\n+  return (fprintf (stream, \"%s %s %s %s %d %d\\n\",\n+\t\t   mntcopy.mnt_fsname,\n+\t\t   mntcopy.mnt_dir,\n+\t\t   mntcopy.mnt_type,\n+\t\t   mntcopy.mnt_opts,\n+\t\t   mntcopy.mnt_freq,\n+\t\t   mntcopy.mnt_passno) < 0\n+\t  || fflush (stream) != 0);\n+}\n+\n+\n+/* Search MNT->mnt_opts for an option matching OPT.\n+   Returns the address of the substring, or null if none found.  */\n+char *hasmntopt (const struct mntent *mnt, const char *opt)\n+{\n+  const size_t optlen = strlen (opt);\n+  char *rest = mnt->mnt_opts, *p;\n+\n+  while ((p = strstr (rest, opt)) != NULL)\n+    {\n+      if ((p == rest || p[-1] == ',')\n+\t  && (p[optlen] == '\\0' || p[optlen] == '=' || p[optlen] == ','))\n+\treturn p;\n+\n+      rest = strchr (p, ',');\n+      if (rest == NULL)\n+\tbreak;\n+      ++rest;\n+    }\n+\n+  return NULL;\n+}\n+\n+\n-- \n1.7.0.4\n\n"
  },
  {
    "path": "external/Makefile",
    "content": "# Please install the following prerequisites (instructions for each follows):\n# \tAndroid OS SDK: http://source.android.com/download\n#\n# Install and prepare the Android OS SDK ( http://source.android.com/download )\n# on Debian or Ubuntu\n\n### these modify the calling shell\n# point pkg-config to the .pc files generated from these builds\nexport PKG_CONFIG_PATH=$(LOCAL)/lib/pkgconfig\n# workaround for cross-compiling bug in autoconf\nexport ac_cv_func_malloc_0_nonnull=yes\n\nCWD = $(shell pwd)\nPROJECT_ROOT = $(CWD)/..\nEXTERNAL_ROOT = $(PROJECT_ROOT)/external\nASSETS = $(PROJECT_ROOT)/assets\n\n# Android now has 64-bit and 32-bit versions of the NDK for GNU/Linux.  We\n# assume that the build platform uses the appropriate version, otherwise the\n# user building this will have to manually set NDK_PROCESSOR or NDK_TOOLCHAIN.\nCPU := $(shell uname -m)\nifeq ($(CPU),x86_64)\n NDK_PROCESSOR=x86_64\nelse\n NDK_PROCESSOR=x86\nendif\n\n# Android NDK setup\nNDK_BASE ?= /opt/android-ndk\nNDK_ABI=arm\nNDK_TOOLCHAIN_VERSION=4.8\n# NDK platform level, aka APP_PLATFORM, is equivalent to minSdkVersion\nNDK_PLATFORM_LEVEL ?= \\\n\t$(shell sed -n 's,.*android:minSdkVersion=\"\\([0-9][0-9]*\\)\".*,\\1,p' $(PROJECT_ROOT)/AndroidManifest.xml)\n\nNDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)\nNDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')\nNDK_TOOLCHAIN = $(NDK_ABI)-linux-androideabi-$(NDK_TOOLCHAIN_VERSION)\nNDK_TOOLCHAIN_BASE=$(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)\n\n# to use the real HOST tag, you need the latest libtool files:\n# http://stackoverflow.com/questions/4594736/configure-does-not-recognize-androideabi\n#HOST := arm-none-linux-gnueabi\nHOST := arm-linux-androideabi\n\nPATH := ${PATH}:$(NDK_TOOLCHAIN_BASE)/bin\n\nCC := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-gcc --sysroot=$(NDK_SYSROOT)\nCXX := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-g++\nCPP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-cpp\nLD := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ld\nAR := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ar\nRANLIB := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ranlib\nSTRIP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip \\\n\t--strip-unneeded -R .note -R .comment\n\n# build as small as possible, mostly useful for static binaries\nALL_CFLAGS = -fdata-sections -ffunction-sections -Os\nALL_LDFLAGS = -Wl,--gc-sections\n\n# faketime needs to have a very specific timestamp format in order to freeze\n# time.  The time needs to be frozen so that the timestamps don't depend on\n# the speed of the machine that the build process is running on.  See `man\n# faketime` for more info on the \"advanced timestamp format\".  Also, force\n# time to UTC so its always the same on all machines.\nTIMESTAMP=\"$(shell faketime \"`git log -n1 --format=format:%ai`\" \\\n\t\t\t\tdate --utc '+%Y-%m-%d %H:%M:%S')\"\nexport TZ=UTC\n\n\n.PHONY: all assets clean distclean\n\nall: $(EXTERNAL_ROOT)/busybox/busybox $(EXTERNAL_ROOT)/gnupg/g10/gpgv\n\tmake -C $(EXTERNAL_ROOT)/cdebootstrap\n\nassets: all\n\tinstall $(EXTERNAL_ROOT)/busybox/busybox \\\n\t\t$(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap.tar \\\n\t\t$(EXTERNAL_ROOT)/gnupg/g10/gpgv \\\n\t\t$(ASSETS)/\n\n\n$(EXTERNAL_ROOT)/busybox/.config: $(EXTERNAL_ROOT)/busybox_config\n\tcp $(EXTERNAL_ROOT)/busybox_config $(EXTERNAL_ROOT)/busybox/.config\n\tsed -i \"s|^CONFIG_SYSROOT=.*|CONFIG_SYSROOT=\\\"$(NDK_SYSROOT)\\\"|\" \\\n\t\t$(EXTERNAL_ROOT)/busybox/.config\n\n$(EXTERNAL_ROOT)/busybox/busybox: $(EXTERNAL_ROOT)/busybox/.config\n# I haven't found a reliable way to install/uninstall a patch from a Makefile,\n# so just always try to apply it, and ignore it if it fails. Works fine unless\n# the files being patched have changed, in which cause a partial application\n# could happen unnoticed.\n\t-cd $(EXTERNAL_ROOT)/busybox/ && \\\n\t\tpatch -N -p1 --reject-file=- < ../003-mount-umount-fsck-df.patch\n\techo \"TIMESTAMP: $(TIMESTAMP)\"\n\tfaketime -f $(TIMESTAMP) make -C $(EXTERNAL_ROOT)/busybox/\n\n\n$(EXTERNAL_ROOT)/gnupg/configure: $(EXTERNAL_ROOT)/gnupg/configure.ac\n\tcd $(EXTERNAL_ROOT)/gnupg && \\\n\t\t./autogen.sh --force\n\n$(EXTERNAL_ROOT)/gnupg/Makefile: $(EXTERNAL_ROOT)/gnupg/configure\n\tcd $(EXTERNAL_ROOT)/gnupg && \\\n\t\tSYSROOT=$(NDK_SYSROOT) \\\n\t\tAR=\"$(AR)\" \\\n\t\tCC=\"$(CC)\" \\\n\t\tLD=\"$(LD)\" \\\n\t\tCFLAGS=\"$(ALL_CFLAGS)\" \\\n\t\tLDFLAGS=\"$(ALL_LDFLAGS) -static\" \\\n\t\t\t./configure \\\n\t\t\t\t--host=$(HOST) \\\n\t\t\t\t--disable-agent-support \\\n\t\t\t\t--disable-bzip2 \\\n\t\t\t\t--disable-card-support \\\n\t\t\t\t--disable-exec \\\n\t\t\t\t--disable-keyserver-helpers \\\n\t\t\t\t--disable-hkp \\\n\t\t\t\t--disable-ldap \\\n\t\t\t\t--disable-nls \\\n\t\t\t\t--disable-photo-viewers\n\n$(EXTERNAL_ROOT)/gnupg/g10/gpgv: $(EXTERNAL_ROOT)/gnupg/Makefile\n\tmake -C $(EXTERNAL_ROOT)/gnupg/cipher\n\tmake -C $(EXTERNAL_ROOT)/gnupg/mpi\n\tmake -C $(EXTERNAL_ROOT)/gnupg/util\n\tmake -C $(EXTERNAL_ROOT)/gnupg/zlib\n\tmake -C $(EXTERNAL_ROOT)/gnupg/g10\n\t$(STRIP) $(EXTERNAL_ROOT)/gnupg/g10/gpgv\n\n# to re-download and verify that the .debs included in git match the official\n# Debian ones\nverify-debian-packages: clean\n\tmake -C $(EXTERNAL_ROOT)/debian-archive-keyring\n\t-rm $(EXTERNAL_ROOT)/cdebootstrap/cdebootstrap-static*.deb\n\tmake -C $(EXTERNAL_ROOT)/cdebootstrap\n\nclean:\n\trm -f -- $(EXTERNAL_ROOT)/busybox/.config\n\trm -f -- $(EXTERNAL_ROOT)/busybox/busybox\n\t-cd $(EXTERNAL_ROOT)/busybox/ && \\\n\t\tpatch -N -R -p1 --reject-file=- < ../003-mount-umount-fsck-df.patch\n\t-make -C $(EXTERNAL_ROOT)/gnupg/ clean\n\tmake -C $(EXTERNAL_ROOT)/busybox/ clean\n\tmake -C $(EXTERNAL_ROOT)/cdebootstrap/ clean\n\tmake -C $(EXTERNAL_ROOT)/debian-archive-keyring/ clean\n\ndistclean: clean\n\trm -f -- $(ASSETS)/busybox\n\trm -f -- $(ASSETS)/cdebootstrap.tar\n"
  },
  {
    "path": "external/busybox_config",
    "content": "#\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_DOT_CONFIG=y\n\n#\n# Busybox Settings\n#\n\n#\n# General Configuration\n#\n# CONFIG_DESKTOP is not set\n# CONFIG_EXTRA_COMPAT is not set\n# CONFIG_INCLUDE_SUSv2 is not set\n# CONFIG_USE_PORTABLE_CODE is not set\nCONFIG_PLATFORM_LINUX=y\nCONFIG_FEATURE_BUFFERS_USE_MALLOC=y\n# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set\n# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set\nCONFIG_SHOW_USAGE=y\nCONFIG_FEATURE_VERBOSE_USAGE=y\nCONFIG_FEATURE_COMPRESS_USAGE=y\nCONFIG_FEATURE_INSTALLER=y\nCONFIG_INSTALL_NO_USR=y\n# CONFIG_LOCALE_SUPPORT is not set\nCONFIG_UNICODE_SUPPORT=y\n# CONFIG_UNICODE_USING_LOCALE is not set\n# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set\nCONFIG_SUBST_WCHAR=63\nCONFIG_LAST_SUPPORTED_WCHAR=0\n# CONFIG_UNICODE_COMBINING_WCHARS is not set\nCONFIG_UNICODE_WIDE_WCHARS=y\n# CONFIG_UNICODE_BIDI_SUPPORT is not set\n# CONFIG_UNICODE_NEUTRAL_TABLE is not set\nCONFIG_UNICODE_PRESERVE_BROKEN=y\nCONFIG_LONG_OPTS=y\n# CONFIG_FEATURE_DEVPTS is not set\n# CONFIG_FEATURE_CLEAN_UP is not set\n# CONFIG_FEATURE_UTMP is not set\n# CONFIG_FEATURE_WTMP is not set\n# CONFIG_FEATURE_PIDFILE is not set\nCONFIG_PID_FILE_PATH=\"\"\nCONFIG_FEATURE_SUID=y\n# CONFIG_FEATURE_SUID_CONFIG is not set\n# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set\n# CONFIG_SELINUX is not set\n# CONFIG_FEATURE_PREFER_APPLETS is not set\nCONFIG_BUSYBOX_EXEC_PATH=\"/proc/self/exe\"\n# CONFIG_FEATURE_SYSLOG is not set\n# CONFIG_FEATURE_HAVE_RPC is not set\n\n#\n# Build Options\n#\nCONFIG_STATIC=y\n# CONFIG_PIE is not set\n# CONFIG_NOMMU is not set\n# CONFIG_BUILD_LIBBUSYBOX is not set\n# CONFIG_FEATURE_INDIVIDUAL is not set\n# CONFIG_FEATURE_SHARED_BUSYBOX is not set\n# CONFIG_LFS is not set\nCONFIG_CROSS_COMPILER_PREFIX=\"arm-linux-androideabi-\"\nCONFIG_SYSROOT=\"/opt/android-ndk/platforms/android-8/arch-arm\"\nCONFIG_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\"\nCONFIG_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\"\nCONFIG_EXTRA_LDLIBS=\"m c gcc\"\n\n#\n# Debugging Options\n#\n# CONFIG_DEBUG is not set\n# CONFIG_DEBUG_PESSIMIZE is not set\n# CONFIG_WERROR is not set\nCONFIG_NO_DEBUG_LIB=y\n# CONFIG_DMALLOC is not set\n# CONFIG_EFENCE is not set\n\n#\n# Installation Options (\"make install\" behavior)\n#\nCONFIG_INSTALL_APPLET_SYMLINKS=y\n# CONFIG_INSTALL_APPLET_HARDLINKS is not set\n# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set\n# CONFIG_INSTALL_APPLET_DONT is not set\n# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set\n# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set\n# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set\nCONFIG_PREFIX=\"./_install\"\n\n#\n# Busybox Library Tuning\n#\n# CONFIG_FEATURE_SYSTEMD is not set\n# CONFIG_FEATURE_RTMINMAX is not set\nCONFIG_PASSWORD_MINLEN=6\nCONFIG_MD5_SMALL=1\nCONFIG_SHA3_SMALL=1\n# CONFIG_FEATURE_FAST_TOP is not set\n# CONFIG_FEATURE_ETC_NETWORKS is not set\n# CONFIG_FEATURE_USE_TERMIOS is not set\n# CONFIG_FEATURE_EDITING is not set\nCONFIG_FEATURE_EDITING_MAX_LEN=0\n# CONFIG_FEATURE_EDITING_VI is not set\nCONFIG_FEATURE_EDITING_HISTORY=0\n# CONFIG_FEATURE_EDITING_SAVEHISTORY is not set\n# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set\n# CONFIG_FEATURE_REVERSE_SEARCH is not set\n# CONFIG_FEATURE_TAB_COMPLETION is not set\n# CONFIG_FEATURE_USERNAME_COMPLETION is not set\n# CONFIG_FEATURE_EDITING_FANCY_PROMPT is not set\n# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set\n# CONFIG_FEATURE_NON_POSIX_CP is not set\nCONFIG_FEATURE_VERBOSE_CP_MESSAGE=y\nCONFIG_FEATURE_COPYBUF_KB=4\n# CONFIG_FEATURE_SKIP_ROOTFS is not set\n# CONFIG_MONOTONIC_SYSCALL is not set\n# CONFIG_IOCTL_HEX2STR_ERROR is not set\n# CONFIG_FEATURE_HWIB is not set\n\n#\n# Applets\n#\n\n#\n# Archival Utilities\n#\nCONFIG_FEATURE_SEAMLESS_XZ=y\nCONFIG_FEATURE_SEAMLESS_LZMA=y\nCONFIG_FEATURE_SEAMLESS_BZ2=y\nCONFIG_FEATURE_SEAMLESS_GZ=y\nCONFIG_FEATURE_SEAMLESS_Z=y\nCONFIG_AR=y\nCONFIG_FEATURE_AR_LONG_FILENAMES=y\nCONFIG_FEATURE_AR_CREATE=y\n# CONFIG_UNCOMPRESS is not set\nCONFIG_GUNZIP=y\nCONFIG_BUNZIP2=y\nCONFIG_UNLZMA=y\nCONFIG_FEATURE_LZMA_FAST=y\nCONFIG_LZMA=y\nCONFIG_UNXZ=y\nCONFIG_XZ=y\n# CONFIG_BZIP2 is not set\nCONFIG_CPIO=y\nCONFIG_FEATURE_CPIO_O=y\nCONFIG_FEATURE_CPIO_P=y\n# CONFIG_DPKG is not set\n# CONFIG_DPKG_DEB is not set\n# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set\n# CONFIG_GZIP is not set\n# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set\nCONFIG_GZIP_FAST=0\n# CONFIG_LZOP is not set\n# CONFIG_LZOP_COMPR_HIGH is not set\n# CONFIG_RPM is not set\n# CONFIG_RPM2CPIO is not set\nCONFIG_TAR=y\nCONFIG_FEATURE_TAR_CREATE=y\nCONFIG_FEATURE_TAR_AUTODETECT=y\nCONFIG_FEATURE_TAR_FROM=y\n# CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY is not set\n# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set\nCONFIG_FEATURE_TAR_GNU_EXTENSIONS=y\n# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set\n# CONFIG_FEATURE_TAR_TO_COMMAND is not set\nCONFIG_FEATURE_TAR_UNAME_GNAME=y\nCONFIG_FEATURE_TAR_NOPRESERVE_TIME=y\n# CONFIG_FEATURE_TAR_SELINUX is not set\n# CONFIG_UNZIP is not set\n\n#\n# Coreutils\n#\nCONFIG_BASENAME=y\nCONFIG_CAT=y\n# CONFIG_DATE is not set\n# CONFIG_FEATURE_DATE_ISOFMT is not set\n# CONFIG_FEATURE_DATE_NANO is not set\n# CONFIG_FEATURE_DATE_COMPAT is not set\n# CONFIG_HOSTID is not set\nCONFIG_ID=y\n# CONFIG_GROUPS is not set\nCONFIG_TEST=y\nCONFIG_FEATURE_TEST_64=y\nCONFIG_TOUCH=y\n# CONFIG_FEATURE_TOUCH_NODEREF is not set\n# CONFIG_FEATURE_TOUCH_SUSV3 is not set\nCONFIG_TR=y\nCONFIG_FEATURE_TR_CLASSES=y\nCONFIG_FEATURE_TR_EQUIV=y\n# CONFIG_BASE64 is not set\n# CONFIG_WHO is not set\n# CONFIG_USERS is not set\n# CONFIG_CAL is not set\n# CONFIG_CATV is not set\nCONFIG_CHGRP=y\nCONFIG_CHMOD=y\nCONFIG_CHOWN=y\nCONFIG_FEATURE_CHOWN_LONG_OPTIONS=y\nCONFIG_CHROOT=y\n# CONFIG_CKSUM is not set\n# CONFIG_COMM is not set\nCONFIG_CP=y\nCONFIG_FEATURE_CP_LONG_OPTIONS=y\nCONFIG_CUT=y\nCONFIG_DD=y\nCONFIG_FEATURE_DD_SIGNAL_HANDLING=y\nCONFIG_FEATURE_DD_THIRD_STATUS_LINE=y\nCONFIG_FEATURE_DD_IBS_OBS=y\n# CONFIG_DF is not set\n# CONFIG_FEATURE_DF_FANCY is not set\nCONFIG_DIRNAME=y\n# CONFIG_DOS2UNIX is not set\n# CONFIG_UNIX2DOS is not set\n# CONFIG_DU is not set\n# CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K is not set\nCONFIG_ECHO=y\nCONFIG_FEATURE_FANCY_ECHO=y\nCONFIG_ENV=y\nCONFIG_FEATURE_ENV_LONG_OPTIONS=y\n# CONFIG_EXPAND is not set\n# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set\nCONFIG_EXPR=y\nCONFIG_EXPR_MATH_SUPPORT_64=y\n# CONFIG_FALSE is not set\n# CONFIG_FOLD is not set\n# CONFIG_FSYNC is not set\nCONFIG_HEAD=y\nCONFIG_FEATURE_FANCY_HEAD=y\n# CONFIG_INSTALL is not set\n# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set\nCONFIG_LN=y\n# CONFIG_LOGNAME is not set\nCONFIG_LS=y\nCONFIG_FEATURE_LS_FILETYPES=y\nCONFIG_FEATURE_LS_FOLLOWLINKS=y\nCONFIG_FEATURE_LS_RECURSIVE=y\nCONFIG_FEATURE_LS_SORTFILES=y\n# CONFIG_FEATURE_LS_TIMESTAMPS is not set\n# CONFIG_FEATURE_LS_USERNAME is not set\n# CONFIG_FEATURE_LS_COLOR is not set\n# CONFIG_FEATURE_LS_COLOR_IS_DEFAULT is not set\nCONFIG_MD5SUM=y\nCONFIG_MKDIR=y\nCONFIG_FEATURE_MKDIR_LONG_OPTIONS=y\n# CONFIG_MKFIFO is not set\nCONFIG_MKNOD=y\nCONFIG_MV=y\nCONFIG_FEATURE_MV_LONG_OPTIONS=y\nCONFIG_NICE=y\n# CONFIG_NOHUP is not set\n# CONFIG_OD is not set\n# CONFIG_PRINTENV is not set\nCONFIG_PRINTF=y\nCONFIG_PWD=y\nCONFIG_READLINK=y\nCONFIG_FEATURE_READLINK_FOLLOW=y\nCONFIG_REALPATH=y\nCONFIG_RM=y\nCONFIG_RMDIR=y\nCONFIG_FEATURE_RMDIR_LONG_OPTIONS=y\n# CONFIG_SEQ is not set\nCONFIG_SHA1SUM=y\nCONFIG_SHA256SUM=y\nCONFIG_SHA512SUM=y\nCONFIG_SHA3SUM=y\nCONFIG_SLEEP=y\nCONFIG_FEATURE_FANCY_SLEEP=y\nCONFIG_FEATURE_FLOAT_SLEEP=y\nCONFIG_SORT=y\nCONFIG_FEATURE_SORT_BIG=y\n# CONFIG_SPLIT is not set\n# CONFIG_FEATURE_SPLIT_FANCY is not set\n# CONFIG_STAT is not set\n# CONFIG_FEATURE_STAT_FORMAT is not set\n# CONFIG_STTY is not set\n# CONFIG_SUM is not set\nCONFIG_SYNC=y\n# CONFIG_TAC is not set\nCONFIG_TAIL=y\nCONFIG_FEATURE_FANCY_TAIL=y\n# CONFIG_TEE is not set\n# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set\n# CONFIG_TRUE is not set\n# CONFIG_TTY is not set\nCONFIG_UNAME=y\n# CONFIG_UNEXPAND is not set\n# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set\nCONFIG_UNIQ=y\n# CONFIG_USLEEP is not set\n# CONFIG_UUDECODE is not set\n# CONFIG_UUENCODE is not set\nCONFIG_WC=y\nCONFIG_FEATURE_WC_LARGE=y\nCONFIG_WHOAMI=y\n# CONFIG_YES is not set\n\n#\n# Common options for cp and mv\n#\n# CONFIG_FEATURE_PRESERVE_HARDLINKS is not set\n\n#\n# Common options for ls, more and telnet\n#\n# CONFIG_FEATURE_AUTOWIDTH is not set\n\n#\n# Common options for df, du, ls\n#\n# CONFIG_FEATURE_HUMAN_READABLE is not set\n\n#\n# Common options for md5sum, sha1sum, sha256sum, sha512sum, sha3sum\n#\nCONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y\n\n#\n# Console Utilities\n#\n# CONFIG_CHVT is not set\n# CONFIG_FGCONSOLE is not set\n# CONFIG_CLEAR is not set\n# CONFIG_DEALLOCVT is not set\n# CONFIG_DUMPKMAP is not set\n# CONFIG_KBD_MODE is not set\n# CONFIG_LOADFONT is not set\n# CONFIG_LOADKMAP is not set\n# CONFIG_OPENVT is not set\n# CONFIG_RESET is not set\n# CONFIG_RESIZE is not set\n# CONFIG_FEATURE_RESIZE_PRINT is not set\n# CONFIG_SETCONSOLE is not set\n# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set\n# CONFIG_SETFONT is not set\n# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set\nCONFIG_DEFAULT_SETFONT_DIR=\"\"\n# CONFIG_SETKEYCODES is not set\n# CONFIG_SETLOGCONS is not set\n# CONFIG_SHOWKEY is not set\n# CONFIG_FEATURE_LOADFONT_PSF2 is not set\n# CONFIG_FEATURE_LOADFONT_RAW is not set\n\n#\n# Debian Utilities\n#\n# CONFIG_MKTEMP is not set\n# CONFIG_PIPE_PROGRESS is not set\n# CONFIG_RUN_PARTS is not set\n# CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS is not set\n# CONFIG_FEATURE_RUN_PARTS_FANCY is not set\n# CONFIG_START_STOP_DAEMON is not set\n# CONFIG_FEATURE_START_STOP_DAEMON_FANCY is not set\n# CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS is not set\n# CONFIG_WHICH is not set\n\n#\n# Editors\n#\nCONFIG_AWK=y\n# CONFIG_FEATURE_AWK_LIBM is not set\nCONFIG_FEATURE_AWK_GNU_EXTENSIONS=y\n# CONFIG_CMP is not set\n# CONFIG_DIFF is not set\n# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set\n# CONFIG_FEATURE_DIFF_DIR is not set\n# CONFIG_ED is not set\nCONFIG_PATCH=y\nCONFIG_SED=y\n# CONFIG_VI is not set\nCONFIG_FEATURE_VI_MAX_LEN=0\n# CONFIG_FEATURE_VI_8BIT is not set\n# CONFIG_FEATURE_VI_COLON is not set\n# CONFIG_FEATURE_VI_YANKMARK is not set\n# CONFIG_FEATURE_VI_SEARCH is not set\n# CONFIG_FEATURE_VI_REGEX_SEARCH is not set\n# CONFIG_FEATURE_VI_USE_SIGNALS is not set\n# CONFIG_FEATURE_VI_DOT_CMD is not set\n# CONFIG_FEATURE_VI_READONLY is not set\n# CONFIG_FEATURE_VI_SETOPTS is not set\n# CONFIG_FEATURE_VI_SET is not set\n# CONFIG_FEATURE_VI_WIN_RESIZE is not set\n# CONFIG_FEATURE_VI_ASK_TERMINAL is not set\n# CONFIG_FEATURE_ALLOW_EXEC is not set\n\n#\n# Finding Utilities\n#\n# CONFIG_FIND is not set\n# CONFIG_FEATURE_FIND_PRINT0 is not set\n# CONFIG_FEATURE_FIND_MTIME is not set\n# CONFIG_FEATURE_FIND_MMIN is not set\n# CONFIG_FEATURE_FIND_PERM is not set\n# CONFIG_FEATURE_FIND_TYPE is not set\n# CONFIG_FEATURE_FIND_XDEV is not set\n# CONFIG_FEATURE_FIND_MAXDEPTH is not set\n# CONFIG_FEATURE_FIND_NEWER is not set\n# CONFIG_FEATURE_FIND_INUM is not set\n# CONFIG_FEATURE_FIND_EXEC is not set\n# CONFIG_FEATURE_FIND_USER is not set\n# CONFIG_FEATURE_FIND_GROUP is not set\n# CONFIG_FEATURE_FIND_NOT is not set\n# CONFIG_FEATURE_FIND_DEPTH is not set\n# CONFIG_FEATURE_FIND_PAREN is not set\n# CONFIG_FEATURE_FIND_SIZE is not set\n# CONFIG_FEATURE_FIND_PRUNE is not set\n# CONFIG_FEATURE_FIND_DELETE is not set\n# CONFIG_FEATURE_FIND_PATH is not set\n# CONFIG_FEATURE_FIND_REGEX is not set\n# CONFIG_FEATURE_FIND_CONTEXT is not set\n# CONFIG_FEATURE_FIND_LINKS is not set\nCONFIG_GREP=y\nCONFIG_FEATURE_GREP_EGREP_ALIAS=y\nCONFIG_FEATURE_GREP_FGREP_ALIAS=y\nCONFIG_FEATURE_GREP_CONTEXT=y\n# CONFIG_XARGS is not set\n# CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION is not set\n# CONFIG_FEATURE_XARGS_SUPPORT_QUOTES is not set\n# CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT is not set\n# CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM is not set\n\n#\n# Init Utilities\n#\n# CONFIG_BOOTCHARTD is not set\n# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set\n# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set\n# CONFIG_HALT is not set\n# CONFIG_FEATURE_CALL_TELINIT is not set\nCONFIG_TELINIT_PATH=\"\"\n# CONFIG_INIT is not set\n# CONFIG_FEATURE_USE_INITTAB is not set\n# CONFIG_FEATURE_KILL_REMOVED is not set\nCONFIG_FEATURE_KILL_DELAY=0\n# CONFIG_FEATURE_INIT_SCTTY is not set\n# CONFIG_FEATURE_INIT_SYSLOG is not set\n# CONFIG_FEATURE_EXTRA_QUIET is not set\n# CONFIG_FEATURE_INIT_COREDUMPS is not set\n# CONFIG_FEATURE_INITRD is not set\nCONFIG_INIT_TERMINAL_TYPE=\"\"\n# CONFIG_MESG is not set\n# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set\n\n#\n# Login/Password Management Utilities\n#\n# CONFIG_ADD_SHELL is not set\n# CONFIG_REMOVE_SHELL is not set\n# CONFIG_FEATURE_SHADOWPASSWDS is not set\n# CONFIG_USE_BB_PWD_GRP is not set\n# CONFIG_USE_BB_SHADOW is not set\n# CONFIG_USE_BB_CRYPT is not set\n# CONFIG_USE_BB_CRYPT_SHA is not set\n# CONFIG_ADDUSER is not set\n# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set\n# CONFIG_FEATURE_CHECK_NAMES is not set\nCONFIG_FIRST_SYSTEM_ID=0\nCONFIG_LAST_SYSTEM_ID=0\n# CONFIG_ADDGROUP is not set\n# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set\n# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set\n# CONFIG_DELUSER is not set\n# CONFIG_DELGROUP is not set\n# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set\n# CONFIG_GETTY is not set\n# CONFIG_LOGIN is not set\n# CONFIG_LOGIN_SESSION_AS_CHILD is not set\n# CONFIG_PAM is not set\n# CONFIG_LOGIN_SCRIPTS is not set\n# CONFIG_FEATURE_NOLOGIN is not set\n# CONFIG_FEATURE_SECURETTY is not set\n# CONFIG_PASSWD is not set\n# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set\n# CONFIG_CRYPTPW is not set\n# CONFIG_CHPASSWD is not set\nCONFIG_FEATURE_DEFAULT_PASSWD_ALGO=\"\"\n# CONFIG_SU is not set\n# CONFIG_FEATURE_SU_SYSLOG is not set\n# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set\n# CONFIG_SULOGIN is not set\n# CONFIG_VLOCK is not set\n\n#\n# Linux Ext2 FS Progs\n#\n# CONFIG_CHATTR is not set\nCONFIG_FSCK=y\n# CONFIG_LSATTR is not set\nCONFIG_TUNE2FS=y\n\n#\n# Linux Module Utilities\n#\n# CONFIG_MODINFO is not set\n# CONFIG_MODPROBE_SMALL is not set\n# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set\n# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set\n# CONFIG_INSMOD is not set\n# CONFIG_RMMOD is not set\n# CONFIG_LSMOD is not set\n# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set\n# CONFIG_MODPROBE is not set\n# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set\n# CONFIG_DEPMOD is not set\n\n#\n# Options common to multiple modutils\n#\n# CONFIG_FEATURE_2_4_MODULES is not set\n# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set\n# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set\n# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set\n# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set\n# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set\n# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set\n# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set\n# CONFIG_FEATURE_MODUTILS_ALIAS is not set\n# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set\nCONFIG_DEFAULT_MODULES_DIR=\"\"\nCONFIG_DEFAULT_DEPMOD_FILE=\"\"\n\n#\n# Linux System Utilities\n#\n# CONFIG_BLOCKDEV is not set\nCONFIG_FSTRIM=y\n# CONFIG_MDEV is not set\n# CONFIG_FEATURE_MDEV_CONF is not set\n# CONFIG_FEATURE_MDEV_RENAME is not set\n# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set\n# CONFIG_FEATURE_MDEV_EXEC is not set\n# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set\n# CONFIG_REV is not set\n# CONFIG_ACPID is not set\n# CONFIG_FEATURE_ACPID_COMPAT is not set\n# CONFIG_BLKID is not set\n# CONFIG_FEATURE_BLKID_TYPE is not set\n# CONFIG_DMESG is not set\n# CONFIG_FEATURE_DMESG_PRETTY is not set\n# CONFIG_FBSET is not set\n# CONFIG_FEATURE_FBSET_FANCY is not set\n# CONFIG_FEATURE_FBSET_READMODE is not set\n# CONFIG_FDFLUSH is not set\n# CONFIG_FDFORMAT is not set\nCONFIG_FDISK=y\nCONFIG_FDISK_SUPPORT_LARGE_DISKS=y\nCONFIG_FEATURE_FDISK_WRITABLE=y\n# CONFIG_FEATURE_AIX_LABEL is not set\n# CONFIG_FEATURE_SGI_LABEL is not set\n# CONFIG_FEATURE_SUN_LABEL is not set\n# CONFIG_FEATURE_OSF_LABEL is not set\n# CONFIG_FEATURE_GPT_LABEL is not set\nCONFIG_FEATURE_FDISK_ADVANCED=y\n# CONFIG_FINDFS is not set\n# CONFIG_FLOCK is not set\n# CONFIG_FREERAMDISK is not set\n# CONFIG_FSCK_MINIX is not set\nCONFIG_MKFS_EXT2=y\n# CONFIG_MKFS_MINIX is not set\n# CONFIG_FEATURE_MINIX2 is not set\n# CONFIG_MKFS_REISER is not set\nCONFIG_MKFS_VFAT=y\n# CONFIG_GETOPT is not set\n# CONFIG_FEATURE_GETOPT_LONG is not set\n# CONFIG_HEXDUMP is not set\n# CONFIG_FEATURE_HEXDUMP_REVERSE is not set\n# CONFIG_HD is not set\n# CONFIG_HWCLOCK is not set\n# CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS is not set\n# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set\n# CONFIG_IPCRM is not set\n# CONFIG_IPCS is not set\nCONFIG_LOSETUP=y\n# CONFIG_LSPCI is not set\n# CONFIG_LSUSB is not set\n# CONFIG_MKSWAP is not set\n# CONFIG_FEATURE_MKSWAP_UUID is not set\n# CONFIG_MORE is not set\nCONFIG_MOUNT=y\nCONFIG_FEATURE_MOUNT_FAKE=y\nCONFIG_FEATURE_MOUNT_VERBOSE=y\nCONFIG_FEATURE_MOUNT_HELPERS=y\nCONFIG_FEATURE_MOUNT_LABEL=y\n# CONFIG_FEATURE_MOUNT_NFS is not set\n# CONFIG_FEATURE_MOUNT_CIFS is not set\nCONFIG_FEATURE_MOUNT_FLAGS=y\nCONFIG_FEATURE_MOUNT_FSTAB=y\n# CONFIG_PIVOT_ROOT is not set\n# CONFIG_RDATE is not set\n# CONFIG_RDEV is not set\n# CONFIG_READPROFILE is not set\n# CONFIG_RTCWAKE is not set\n# CONFIG_SCRIPT is not set\n# CONFIG_SCRIPTREPLAY is not set\n# CONFIG_SETARCH is not set\n# CONFIG_SWAPONOFF is not set\n# CONFIG_FEATURE_SWAPON_PRI is not set\n# CONFIG_SWITCH_ROOT is not set\nCONFIG_UMOUNT=y\n# CONFIG_FEATURE_UMOUNT_ALL is not set\n\n#\n# Common options for mount/umount\n#\nCONFIG_FEATURE_MOUNT_LOOP=y\nCONFIG_FEATURE_MOUNT_LOOP_CREATE=y\n# CONFIG_FEATURE_MTAB_SUPPORT is not set\nCONFIG_VOLUMEID=y\n\n#\n# Filesystem/Volume identification\n#\nCONFIG_FEATURE_VOLUMEID_BTRFS=y\nCONFIG_FEATURE_VOLUMEID_CRAMFS=y\nCONFIG_FEATURE_VOLUMEID_EXFAT=y\nCONFIG_FEATURE_VOLUMEID_EXT=y\nCONFIG_FEATURE_VOLUMEID_F2FS=y\nCONFIG_FEATURE_VOLUMEID_FAT=y\nCONFIG_FEATURE_VOLUMEID_HFS=y\nCONFIG_FEATURE_VOLUMEID_ISO9660=y\nCONFIG_FEATURE_VOLUMEID_JFS=y\nCONFIG_FEATURE_VOLUMEID_LINUXRAID=y\nCONFIG_FEATURE_VOLUMEID_LINUXSWAP=y\nCONFIG_FEATURE_VOLUMEID_LUKS=y\nCONFIG_FEATURE_VOLUMEID_NILFS=y\nCONFIG_FEATURE_VOLUMEID_NTFS=y\nCONFIG_FEATURE_VOLUMEID_OCFS2=y\nCONFIG_FEATURE_VOLUMEID_REISERFS=y\nCONFIG_FEATURE_VOLUMEID_ROMFS=y\n# CONFIG_FEATURE_VOLUMEID_SQUASHFS is not set\nCONFIG_FEATURE_VOLUMEID_SYSV=y\nCONFIG_FEATURE_VOLUMEID_UDF=y\nCONFIG_FEATURE_VOLUMEID_XFS=y\n\n#\n# Miscellaneous Utilities\n#\n# CONFIG_CONSPY is not set\n# CONFIG_LESS is not set\nCONFIG_FEATURE_LESS_MAXLINES=0\n# CONFIG_FEATURE_LESS_BRACKETS is not set\n# CONFIG_FEATURE_LESS_FLAGS is not set\n# CONFIG_FEATURE_LESS_MARKS is not set\n# CONFIG_FEATURE_LESS_REGEXP is not set\n# CONFIG_FEATURE_LESS_WINCH is not set\n# CONFIG_FEATURE_LESS_ASK_TERMINAL is not set\n# CONFIG_FEATURE_LESS_DASHCMD is not set\n# CONFIG_FEATURE_LESS_LINENUMS is not set\n# CONFIG_NANDWRITE is not set\n# CONFIG_NANDDUMP is not set\n# CONFIG_RFKILL is not set\n# CONFIG_SETSERIAL is not set\n# CONFIG_UBIATTACH is not set\n# CONFIG_UBIDETACH is not set\n# CONFIG_UBIMKVOL is not set\n# CONFIG_UBIRMVOL is not set\n# CONFIG_UBIRSVOL is not set\n# CONFIG_UBIUPDATEVOL is not set\n# CONFIG_WALL is not set\n# CONFIG_ADJTIMEX is not set\n# CONFIG_BBCONFIG is not set\n# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set\n# CONFIG_BEEP is not set\nCONFIG_FEATURE_BEEP_FREQ=0\nCONFIG_FEATURE_BEEP_LENGTH_MS=0\n# CONFIG_CHAT is not set\n# CONFIG_FEATURE_CHAT_NOFAIL is not set\n# CONFIG_FEATURE_CHAT_TTY_HIFI is not set\n# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set\n# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set\n# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set\n# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set\n# CONFIG_FEATURE_CHAT_CLR_ABORT is not set\n# CONFIG_CHRT is not set\n# CONFIG_CROND is not set\n# CONFIG_FEATURE_CROND_D is not set\n# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set\nCONFIG_FEATURE_CROND_DIR=\"\"\n# CONFIG_CRONTAB is not set\n# CONFIG_DC is not set\n# CONFIG_FEATURE_DC_LIBM is not set\n# CONFIG_DEVFSD is not set\n# CONFIG_DEVFSD_MODLOAD is not set\n# CONFIG_DEVFSD_FG_NP is not set\n# CONFIG_DEVFSD_VERBOSE is not set\n# CONFIG_FEATURE_DEVFS is not set\n# CONFIG_DEVMEM is not set\n# CONFIG_EJECT is not set\n# CONFIG_FEATURE_EJECT_SCSI is not set\n# CONFIG_FBSPLASH is not set\n# CONFIG_FLASHCP is not set\n# CONFIG_FLASH_LOCK is not set\n# CONFIG_FLASH_UNLOCK is not set\n# CONFIG_FLASH_ERASEALL is not set\n# CONFIG_IONICE is not set\n# CONFIG_INOTIFYD is not set\n# CONFIG_LAST is not set\n# CONFIG_FEATURE_LAST_SMALL is not set\n# CONFIG_FEATURE_LAST_FANCY is not set\n# CONFIG_HDPARM is not set\n# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set\n# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set\n# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set\n# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set\n# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set\n# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set\n# CONFIG_MAKEDEVS is not set\n# CONFIG_FEATURE_MAKEDEVS_LEAF is not set\n# CONFIG_FEATURE_MAKEDEVS_TABLE is not set\n# CONFIG_MAN is not set\n# CONFIG_MICROCOM is not set\n# CONFIG_MOUNTPOINT is not set\n# CONFIG_MT is not set\n# CONFIG_RAIDAUTORUN is not set\nCONFIG_READAHEAD=y\n# CONFIG_RUNLEVEL is not set\n# CONFIG_RX is not set\n# CONFIG_SETSID is not set\n# CONFIG_STRINGS is not set\n# CONFIG_TASKSET is not set\n# CONFIG_FEATURE_TASKSET_FANCY is not set\n# CONFIG_TIME is not set\n# CONFIG_TIMEOUT is not set\n# CONFIG_TTYSIZE is not set\n# CONFIG_VOLNAME is not set\n# CONFIG_WATCHDOG is not set\n\n#\n# Networking Utilities\n#\n# CONFIG_NAMEIF is not set\n# CONFIG_FEATURE_NAMEIF_EXTENDED is not set\n# CONFIG_NBDCLIENT is not set\n# CONFIG_NC is not set\n# CONFIG_NC_SERVER is not set\n# CONFIG_NC_EXTRA is not set\n# CONFIG_NC_110_COMPAT is not set\n# CONFIG_PING is not set\n# CONFIG_PING6 is not set\n# CONFIG_FEATURE_FANCY_PING is not set\n# CONFIG_WHOIS is not set\n# CONFIG_FEATURE_IPV6 is not set\n# CONFIG_FEATURE_UNIX_LOCAL is not set\n# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set\n# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set\n# CONFIG_ARP is not set\n# CONFIG_ARPING is not set\n# CONFIG_BRCTL is not set\n# CONFIG_FEATURE_BRCTL_FANCY is not set\n# CONFIG_FEATURE_BRCTL_SHOW is not set\n# CONFIG_DNSD is not set\n# CONFIG_ETHER_WAKE is not set\n# CONFIG_FAKEIDENTD is not set\n# CONFIG_FTPD is not set\n# CONFIG_FEATURE_FTP_WRITE is not set\n# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set\n# CONFIG_FTPGET is not set\n# CONFIG_FTPPUT is not set\n# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set\n# CONFIG_HOSTNAME is not set\n# CONFIG_HTTPD is not set\n# CONFIG_FEATURE_HTTPD_RANGES is not set\n# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set\n# CONFIG_FEATURE_HTTPD_SETUID is not set\n# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set\n# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set\n# CONFIG_FEATURE_HTTPD_CGI is not set\n# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set\n# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set\n# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set\n# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set\n# CONFIG_FEATURE_HTTPD_PROXY is not set\n# CONFIG_FEATURE_HTTPD_GZIP is not set\n# CONFIG_IFCONFIG is not set\n# CONFIG_FEATURE_IFCONFIG_STATUS is not set\n# CONFIG_FEATURE_IFCONFIG_SLIP is not set\n# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set\n# CONFIG_FEATURE_IFCONFIG_HW is not set\n# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set\n# CONFIG_IFENSLAVE is not set\n# CONFIG_IFPLUGD is not set\n# CONFIG_IFUPDOWN is not set\nCONFIG_IFUPDOWN_IFSTATE_PATH=\"\"\n# CONFIG_FEATURE_IFUPDOWN_IP is not set\n# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set\n# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set\n# CONFIG_FEATURE_IFUPDOWN_IPV4 is not set\n# CONFIG_FEATURE_IFUPDOWN_IPV6 is not set\n# CONFIG_FEATURE_IFUPDOWN_MAPPING is not set\n# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set\n# CONFIG_INETD is not set\n# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set\n# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set\n# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME is not set\n# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME is not set\n# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN is not set\n# CONFIG_FEATURE_INETD_RPC is not set\n# CONFIG_IP is not set\n# CONFIG_FEATURE_IP_ADDRESS is not set\n# CONFIG_FEATURE_IP_LINK is not set\n# CONFIG_FEATURE_IP_ROUTE is not set\n# CONFIG_FEATURE_IP_TUNNEL is not set\n# CONFIG_FEATURE_IP_RULE is not set\n# CONFIG_FEATURE_IP_SHORT_FORMS is not set\n# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set\n# CONFIG_IPADDR is not set\n# CONFIG_IPLINK is not set\n# CONFIG_IPROUTE is not set\n# CONFIG_IPTUNNEL is not set\n# CONFIG_IPRULE is not set\n# CONFIG_IPCALC is not set\n# CONFIG_FEATURE_IPCALC_FANCY is not set\n# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set\n# CONFIG_NETSTAT is not set\n# CONFIG_FEATURE_NETSTAT_WIDE is not set\n# CONFIG_FEATURE_NETSTAT_PRG is not set\n# CONFIG_NSLOOKUP is not set\n# CONFIG_NTPD is not set\n# CONFIG_FEATURE_NTPD_SERVER is not set\n# CONFIG_PSCAN is not set\n# CONFIG_ROUTE is not set\n# CONFIG_SLATTACH is not set\n# CONFIG_TCPSVD is not set\n# CONFIG_TELNET is not set\n# CONFIG_FEATURE_TELNET_TTYPE is not set\n# CONFIG_FEATURE_TELNET_AUTOLOGIN is not set\n# CONFIG_TELNETD is not set\n# CONFIG_FEATURE_TELNETD_STANDALONE is not set\n# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set\n# CONFIG_TFTP is not set\n# CONFIG_TFTPD is not set\n# CONFIG_FEATURE_TFTP_GET is not set\n# CONFIG_FEATURE_TFTP_PUT is not set\n# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set\n# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set\n# CONFIG_TFTP_DEBUG is not set\n# CONFIG_TRACEROUTE is not set\n# CONFIG_TRACEROUTE6 is not set\n# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set\n# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set\n# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set\n# CONFIG_TUNCTL is not set\n# CONFIG_FEATURE_TUNCTL_UG is not set\n# CONFIG_UDHCPC6 is not set\n# CONFIG_UDHCPD is not set\n# CONFIG_DHCPRELAY is not set\n# CONFIG_DUMPLEASES is not set\n# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set\n# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set\nCONFIG_DHCPD_LEASES_FILE=\"\"\n# CONFIG_UDHCPC is not set\n# CONFIG_FEATURE_UDHCPC_ARPING is not set\n# CONFIG_FEATURE_UDHCP_PORT is not set\nCONFIG_UDHCP_DEBUG=0\n# CONFIG_FEATURE_UDHCP_RFC3397 is not set\n# CONFIG_FEATURE_UDHCP_8021Q is not set\nCONFIG_UDHCPC_DEFAULT_SCRIPT=\"\"\nCONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=0\nCONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=\"\"\n# CONFIG_UDPSVD is not set\n# CONFIG_VCONFIG is not set\nCONFIG_WGET=y\nCONFIG_FEATURE_WGET_STATUSBAR=y\n# CONFIG_FEATURE_WGET_AUTHENTICATION is not set\nCONFIG_FEATURE_WGET_LONG_OPTIONS=y\nCONFIG_FEATURE_WGET_TIMEOUT=y\n# CONFIG_ZCIP is not set\n\n#\n# Print Utilities\n#\n# CONFIG_LPD is not set\n# CONFIG_LPR is not set\n# CONFIG_LPQ is not set\n\n#\n# Mail Utilities\n#\n# CONFIG_MAKEMIME is not set\nCONFIG_FEATURE_MIME_CHARSET=\"\"\n# CONFIG_POPMAILDIR is not set\n# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set\n# CONFIG_REFORMIME is not set\n# CONFIG_FEATURE_REFORMIME_COMPAT is not set\n# CONFIG_SENDMAIL is not set\n\n#\n# Process Utilities\n#\n# CONFIG_IOSTAT is not set\nCONFIG_LSOF=y\n# CONFIG_MPSTAT is not set\n# CONFIG_NMETER is not set\n# CONFIG_PMAP is not set\n# CONFIG_POWERTOP is not set\n# CONFIG_PSTREE is not set\n# CONFIG_PWDX is not set\n# CONFIG_SMEMCAP is not set\n# CONFIG_TOP is not set\n# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set\n# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set\n# CONFIG_FEATURE_TOP_SMP_CPU is not set\n# CONFIG_FEATURE_TOP_DECIMALS is not set\n# CONFIG_FEATURE_TOP_SMP_PROCESS is not set\n# CONFIG_FEATURE_TOPMEM is not set\n# CONFIG_UPTIME is not set\n# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set\n# CONFIG_FREE is not set\n# CONFIG_FUSER is not set\nCONFIG_KILL=y\n# CONFIG_KILLALL is not set\n# CONFIG_KILLALL5 is not set\n# CONFIG_PGREP is not set\nCONFIG_PIDOF=y\nCONFIG_FEATURE_PIDOF_SINGLE=y\nCONFIG_FEATURE_PIDOF_OMIT=y\n# CONFIG_PKILL is not set\nCONFIG_PS=y\n# CONFIG_FEATURE_PS_WIDE is not set\n# CONFIG_FEATURE_PS_LONG is not set\n# CONFIG_FEATURE_PS_TIME is not set\n# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set\n# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set\n# CONFIG_RENICE is not set\n# CONFIG_BB_SYSCTL is not set\n# CONFIG_FEATURE_SHOW_THREADS is not set\n# CONFIG_WATCH is not set\n\n#\n# Runit Utilities\n#\n# CONFIG_RUNSV is not set\n# CONFIG_RUNSVDIR is not set\n# CONFIG_FEATURE_RUNSVDIR_LOG is not set\n# CONFIG_SV is not set\nCONFIG_SV_DEFAULT_SERVICE_DIR=\"\"\n# CONFIG_SVLOGD is not set\n# CONFIG_CHPST is not set\n# CONFIG_SETUIDGID is not set\n# CONFIG_ENVUIDGID is not set\n# CONFIG_ENVDIR is not set\n# CONFIG_SOFTLIMIT is not set\n# CONFIG_CHCON is not set\n# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set\n# CONFIG_GETENFORCE is not set\n# CONFIG_GETSEBOOL is not set\n# CONFIG_LOAD_POLICY is not set\n# CONFIG_MATCHPATHCON is not set\n# CONFIG_RESTORECON is not set\n# CONFIG_RUNCON is not set\n# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set\n# CONFIG_SELINUXENABLED is not set\n# CONFIG_SETENFORCE is not set\n# CONFIG_SETFILES is not set\n# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set\n# CONFIG_SETSEBOOL is not set\n# CONFIG_SESTATUS is not set\n\n#\n# Shells\n#\nCONFIG_ASH=y\nCONFIG_ASH_BASH_COMPAT=y\n# CONFIG_ASH_IDLE_TIMEOUT is not set\n# CONFIG_ASH_JOB_CONTROL is not set\n# CONFIG_ASH_ALIAS is not set\nCONFIG_ASH_GETOPTS=y\nCONFIG_ASH_BUILTIN_ECHO=y\nCONFIG_ASH_BUILTIN_PRINTF=y\nCONFIG_ASH_BUILTIN_TEST=y\n# CONFIG_ASH_CMDCMD is not set\n# CONFIG_ASH_MAIL is not set\nCONFIG_ASH_OPTIMIZE_FOR_SIZE=y\nCONFIG_ASH_RANDOM_SUPPORT=y\n# CONFIG_ASH_EXPAND_PRMT is not set\nCONFIG_CTTYHACK=y\n# CONFIG_HUSH is not set\n# CONFIG_HUSH_BASH_COMPAT is not set\n# CONFIG_HUSH_BRACE_EXPANSION is not set\n# CONFIG_HUSH_HELP is not set\n# CONFIG_HUSH_INTERACTIVE is not set\n# CONFIG_HUSH_SAVEHISTORY is not set\n# CONFIG_HUSH_JOB is not set\n# CONFIG_HUSH_TICK is not set\n# CONFIG_HUSH_IF is not set\n# CONFIG_HUSH_LOOPS is not set\n# CONFIG_HUSH_CASE is not set\n# CONFIG_HUSH_FUNCTIONS is not set\n# CONFIG_HUSH_LOCAL is not set\n# CONFIG_HUSH_RANDOM_SUPPORT is not set\n# CONFIG_HUSH_EXPORT_N is not set\n# CONFIG_HUSH_MODE_X is not set\n# CONFIG_MSH is not set\nCONFIG_FEATURE_SH_IS_ASH=y\n# CONFIG_FEATURE_SH_IS_HUSH is not set\n# CONFIG_FEATURE_SH_IS_NONE is not set\nCONFIG_FEATURE_BASH_IS_ASH=y\n# CONFIG_FEATURE_BASH_IS_HUSH is not set\n# CONFIG_FEATURE_BASH_IS_NONE is not set\nCONFIG_SH_MATH_SUPPORT=y\nCONFIG_SH_MATH_SUPPORT_64=y\nCONFIG_FEATURE_SH_EXTRA_QUIET=y\n# CONFIG_FEATURE_SH_STANDALONE is not set\n# CONFIG_FEATURE_SH_NOFORK is not set\n# CONFIG_FEATURE_SH_HISTFILESIZE is not set\n\n#\n# System Logging Utilities\n#\n# CONFIG_SYSLOGD is not set\n# CONFIG_FEATURE_ROTATE_LOGFILE is not set\n# CONFIG_FEATURE_REMOTE_LOG is not set\n# CONFIG_FEATURE_SYSLOGD_DUP is not set\n# CONFIG_FEATURE_SYSLOGD_CFG is not set\nCONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=0\n# CONFIG_FEATURE_IPC_SYSLOG is not set\nCONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0\n# CONFIG_LOGREAD is not set\n# CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING is not set\n# CONFIG_FEATURE_KMSG_SYSLOG is not set\n# CONFIG_KLOGD is not set\n# CONFIG_FEATURE_KLOGD_KLOGCTL is not set\n# CONFIG_LOGGER is not set\n"
  },
  {
    "path": "external/cdebootstrap/Makefile",
    "content": "\nPKG_NAME:=cdebootstrap-static\nPKG_VERSION:=0.6.4\n\nPKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_armel.deb\n# the archive, so the build stays working as long as possible:\nPKG_SOURCE_URL:=http://snapshot.debian.org/archive/debian/20141130T041023Z/pool/main/c/cdebootstrap\n# the canonical:\n#PKG_SOURCE_URL:=https://mirrors.kernel.org/debian/pool/main/c/cdebootstrap\n\nDL_DIR=$(PKG_NAME)-$(PKG_VERSION)\n\nall: cdebootstrap.tar\n\nTIMESTAMP=\"`stat $(DL_DIR) | sed -n 's,Modify: \\(.*\\),\\1,p'`\"\ncdebootstrap.tar: $(DL_DIR)/usr/bin/cdebootstrap-static\n\techo \"TIMESTAMP: $(TIMESTAMP)\"\n\tfor f in `find $(DL_DIR)`; do touch --date=$(TIMESTAMP) \"$$f\"; done\n\tcd $(DL_DIR) && \\\n\t\tfind usr/ -type f -print0 -o -type l -print0 \\\n\t\t| sort --zero-terminated \\\n\t\t| tar --no-recursion --null --files-from - \\\n\t\t\t--owner=1000 --group=1000 --numeric-owner --format=gnu \\\n\t\t\t--create --file ../cdebootstrap.tar\n\ttouch --date=$(TIMESTAMP) cdebootstrap.tar\n\n$(DL_DIR)/usr/bin/cdebootstrap-static: $(DL_DIR)/$(PKG_SOURCE)\n\tcd $(DL_DIR) && \\\n\t\t(ar -p $(PKG_SOURCE) data.tar.xz | \\\n\t\t\ttar --exclude=usr/share/man --exclude=usr/share/doc \\\n\t\t\t\t--preserve-permissions --extract --xz --file -)\n# I haven't found a reliable way to install/uninstall a patch from a Makefile,\n# so just always try to apply it, and ignore it if it fails. Works fine unless\n# the files being patched have changed, in which cause a partial application\n# could happen unnoticed.\n\tpatch -N -p0 --reject-file=- < add-missing-ubuntu-releases.patch\n\n$(DL_DIR)/$(PKG_SOURCE): $(DL_DIR)\n\ttest -e $(PKG_SOURCE) || \\\n\t\twget --continue $(PKG_SOURCE_URL)/$(PKG_SOURCE)\n\tmd5sum -c $(PKG_SOURCE).md5\n\tsha1sum -c $(PKG_SOURCE).sha1\n\tsha256sum -c $(PKG_SOURCE).sha256\n\tcp $(PKG_SOURCE) $(DL_DIR)/\n\n$(DL_DIR):\n\tmkdir $(DL_DIR)\n\n\nclean:\n\t-rm -rf -- $(DL_DIR)\n\t-rm -f -- cdebootstrap.tar\n\n.PHONY: clean\n"
  },
  {
    "path": "external/cdebootstrap/add-missing-ubuntu-releases.patch",
    "content": "--- cdebootstrap-static-0.6.4-old/usr/share/cdebootstrap-static/suites\t2014-07-07 18:22:27.000000000 -0400\n+++ cdebootstrap-static-0.6.4/usr/share/cdebootstrap-static/suites\t2014-07-08 17:07:57.976326272 -0400\n@@ -50,6 +50,34 @@\n Config: generic-ubuntu\n Keyring: ubuntu-archive-keyring.gpg\n \n+Suite: oneiric\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: precise\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: quantal\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: raring\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: saucy\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: trusty\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n+Suite: utopic\n+Config: generic-ubuntu\n+Keyring: ubuntu-archive-keyring.gpg\n+\n Suite: oldstable\n Keyring: debian-archive-keyring.gpg\n \n"
  },
  {
    "path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.md5",
    "content": "99c796d92a63bf6fc568e9e741d37dba  cdebootstrap-static_0.6.4_armel.deb\n"
  },
  {
    "path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha1",
    "content": "7b6d5d5c4db8366ad7b7d04b81f6f40bd070fde7  cdebootstrap-static_0.6.4_armel.deb\n"
  },
  {
    "path": "external/cdebootstrap/cdebootstrap-static_0.6.4_armel.deb.sha256",
    "content": "792e5f63a6fae30aaa673e0568ad4dbc20acbed27a8e4fbfaff52981b908db40  cdebootstrap-static_0.6.4_armel.deb\n"
  },
  {
    "path": "external/debian-archive-keyring/Makefile",
    "content": "\nPKG_NAME:=debian-archive-keyring\nPKG_VERSION:=2014.3\n\nPKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_all.deb\n# the archive, so the build stays working as long as possible:\nPKG_SOURCE_URL:=http://snapshot.debian.org/archive/debian/20141209T161252Z/pool/main/d/debian-archive-keyring\n# the canonical:\n#PKG_SOURCE_URL:=https://mirrors.kernel.org/debian/pool/main/d/debian-archive-keyring\n\nDL_DIR=$(PKG_NAME)-$(PKG_VERSION)\n\ncompare: $(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg\n\tdiff ../../assets/debian-archive-keyring.gpg \\\n\t\t$(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg\n\n$(DL_DIR)/usr/share/keyrings/debian-archive-keyring.gpg: $(DL_DIR)/$(PKG_SOURCE)\n\tcd $(DL_DIR) && \\\n\t\t(ar -p $(PKG_SOURCE) data.tar.xz | \\\n\t\t\ttar --preserve-permissions --extract --xz --file - )\n\n$(DL_DIR)/$(PKG_SOURCE): $(DL_DIR)\n\tcd $(DL_DIR) && \\\n\t\twget --continue $(PKG_SOURCE_URL)/$(PKG_SOURCE)\n\tmd5sum -c $(PKG_SOURCE).md5\n\tsha1sum -c $(PKG_SOURCE).sha1\n\tsha256sum -c $(PKG_SOURCE).sha256\n\n$(DL_DIR):\n\tmkdir $(DL_DIR)\n\n\nclean:\n\t-rm -rf -- $(DL_DIR)\n\t-rm -f -- debian-archive-keyring.gpg\n\n.PHONY: clean compare\n"
  },
  {
    "path": "external/debian-archive-keyring/debian-archive-keyring_2014.3_all.deb.md5",
    "content": "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",
    "content": "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",
    "content": "017a2fba215cd64612891f5aa02546be5c0e30923a66672f889867cc6dd8d3a0  debian-archive-keyring-2014.3/debian-archive-keyring_2014.3_all.deb\n"
  },
  {
    "path": "jenkins-build",
    "content": "#!/bin/sh\n\nset -e\nset -x\n\nif [ -z $ANDROID_HOME ]; then\n    if [ -e ~/.android/bashrc ]; then\n        . ~/.android/bashrc\n    else\n        echo \"ANDROID_HOME must be set!\"\n        exit\n    fi\nfi\n\ngit submodule sync --recursive\ngit submodule foreach --recursive \"git submodule sync\"\ngit submodule update --init --recursive\n\nexport TZ=UTC\nTIMESTAMP=`git log -n1 --format=format:%ai`\n\n# reset version code/name to current date\nversionCodeDate=`faketime \"$TIMESTAMP\" date +%s`\nversionNameDate=`faketime \"$TIMESTAMP\" date +%Y-%m-%d_%H.%M.%S`\n\nsed -i \\\n    -e \"s,android:versionCode=\\\"[0-9][0-9]*\\\",android:versionCode=\\\"$versionCodeDate\\\",\" \\\n    -e \"s,android:versionName=\\\"\\([^\\\"][^\\\"]*\\)\\\",android:versionName=\\\"\\1.$versionNameDate\\\",\" \\\n    AndroidManifest.xml\n\nmake -C external/ clean\nmake -C external/ assets\n./setup-ant\n\n./tests/run-tests\n"
  },
  {
    "path": "libs/android-support-v4.jar.LICENSE",
    "content": "   Copyright (c) 2005-2013, The Android Open Source Project\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n\n"
  },
  {
    "path": "libs/android-support-v4.jar.properties",
    "content": "src=android-support-v4.jar\ndoc=/usr/share/doc/google-android-sdk-docs/docs/reference\n# On a recent Debian-ish system, you can install these docs by doing:\n#   apt-get install google-android-sdk-docs-installer\n#\n# The String value of 'doc' is handed straight to `new java.io.File()` so it\n# is not possible to use variables.  Therefore, change \"/opt/android-sdk\" to\n# the path to your Android SDK, i.e. the value of $ANDROID_HOME or ${sdk.dir}\n#\n# Here's the relevant source:\n# 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\n"
  },
  {
    "path": "libs/commons-io-2.2.jar.properties",
    "content": "# setup javadoc\nsrc=commons-io-2.2.jar\ndoc=../javadoc/commons-io-2.2-javadoc.jar\n# document source code\nsource.repo.svn=\"https://svn.apache.org/repos/asf/commons/proper/io\"\nsource.repo.tag=\"/tags/2.2\"\ndownload.url=\"https://archive.apache.org/dist/commons/io/binaries/commons-io-2.2-bin.zip\"\npgp.signature=\"https://archive.apache.org/dist/commons/io/binaries/commons-io-2.2-bin.zip.asc\"\npgp.signature.key.fingerprint=2DB4F1EF0FA761ECC4EA935C86FDC7E2A11262CB\n"
  },
  {
    "path": "make-release-build",
    "content": "#!/bin/bash\n# bash is required because we need bash's printf to guarantee a cross-platform\n# timestamp format.\n\nset -e\nset -x\n\n# make sure we're on a signed tag that matches the version name\nversionName=`sed -n 's,.*versionName=\"\\([^\"]*\\)\".*,\\1,p' AndroidManifest.xml`\ndescribe=`git describe`\nif [ $versionName != $describe ]; then\n    echo \"WARNING: building $describe, which is not the latest release ($versionName)\"\nelse\n    # make a clearer warning above by putting this here\n    set +x\n    echo \"\"\n    echo \"\"\n    echo \"Checking git tag signature for release build:\"\n    git tag -v $versionName\n    echo \"\"\n    echo \"\"\n    set -x\nfi\n\n\nif [ -z $ANDROID_HOME ]; then\n    if [ -e ~/.android/bashrc ]; then\n        . ~/.android/bashrc\n    else\n        echo \"ANDROID_HOME must be set!\"\n        exit\n    fi\nfi\n\nprojectroot=`pwd`\nprojectname=`sed -n 's,.*name=\"app_name\">\\(.*\\)<.*,\\1,p' res/values/strings.xml | sed 's,\\W,,g'`\n\n# standardize timezone to reduce build differences\nexport TZ=UTC\n# run the clock at 5% speed, ant requires a moving clock\nTIMESTAMP=`printf '@%(%Y-%m-%d %H:%M:%S)T x0.05' \\\n    $(git log -n1 --format=format:%at)`\n\ngit reset --hard\ngit clean -fdx\ngit submodule foreach --recursive git reset --hard\ngit submodule foreach --recursive git clean -fdx\ngit submodule sync --recursive\ngit submodule foreach --recursive git submodule sync\ngit submodule update --init --recursive\n\nmake -C external/ assets\n\nif [ -e ~/.android/ant.properties ]; then\n    cp ~/.android/ant.properties $projectroot/\nelse\n    echo \"skipping release ant.properties\"\nfi\n\n./setup-ant\nfaketime -f \"$TIMESTAMP\" ant release\n\napk=$projectroot/bin/$projectname-$versionName.apk\n# mark APK with actual build info, instead of version in manifest\nif [ $versionName != $describe ]; then\n    debugapk=$projectroot/bin/$projectname-$describe.apk\n    mv $apk $debugapk\n    apk=$debugapk\nfi\nif which gpg > /dev/null; then\n    if [ -z \"`gpg --list-secret-keys`\" ]; then\n        echo \"No GPG secret keys found, not signing APK\"\n    else\n        gpg --detach-sign $apk\n    fi\nelse\n    echo \"gpg not found, not signing APK\"\nfi\n"
  },
  {
    "path": "project.properties",
    "content": "# This file must be checked in Version Control Systems.\n#\n# To customize properties used by the Ant build system use,\n# \"ant.properties\", and override values to adapt the script to your\n# project structure.\n\n# Project target.\ntarget=android-21\nandroid.library.reference.1=external/libsuperuser/libsuperuser\n"
  },
  {
    "path": "res/layout/install_activity.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <LinearLayout\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"100dp\"\n        android:orientation=\"horizontal\" >\n\n        <LinearLayout\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"fill_parent\"\n            android:layout_margin=\"5sp\"\n            android:orientation=\"vertical\" >\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/release\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/mirror\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/arch\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n        </LinearLayout>\n\n        <LinearLayout\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"fill_parent\"\n            android:layout_margin=\"5sp\"\n            android:orientation=\"vertical\" >\n\n            <TextView\n                android:id=\"@+id/selectedRelease\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_debian_release\"\n                android:textSize=\"25sp\"\n                android:typeface=\"monospace\" />\n\n            <TextView\n                android:id=\"@+id/selectedMirror\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_mirror\"\n                android:textSize=\"20sp\"\n                android:typeface=\"monospace\" />\n\n            <TextView\n                android:id=\"@+id/selectedArch\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_arch\"\n                android:textSize=\"25sp\"\n                android:typeface=\"monospace\" />\n        </LinearLayout>\n    </LinearLayout>\n\n    <LinearLayout\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"5sp\"\n        android:orientation=\"horizontal\" >\n\n        <TextView\n            android:id=\"@+id/imagesizetext\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:gravity=\"right|center_vertical\"\n            android:text=\"@string/image_size\"\n            android:textSize=\"20sp\"\n            android:textStyle=\"bold\" />\n\n        <EditText\n            android:id=\"@+id/imagesize\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:gravity=\"center|right\"\n            android:inputType=\"number\"\n            android:text=\"@string/default_image_size\"\n            android:width=\"80dp\" />\n\n        <TextView\n            android:id=\"@+id/megabytes\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/megabytes\"\n            android:textSize=\"20sp\" />\n    </LinearLayout>\n\n    <Button\n        android:id=\"@+id/installButton\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"10sp\"\n        android:focusableInTouchMode=\"true\"\n        android:padding=\"20sp\"\n        android:text=\"@string/install\"\n        android:textSize=\"20sp\" />\n\n    <ScrollView\n        android:id=\"@+id/textScroll\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" >\n\n        <TextView\n            android:id=\"@+id/installLog\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\" />\n    </ScrollView>\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/install_log_view.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:addStatesFromChildren=\"false\"\n    android:orientation=\"vertical\" >\n\n    <LinearLayout\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\" >\n\n        <TextView\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:gravity=\"center\"\n            android:text=\"@string/title_install_log_view\"\n            android:textAppearance=\"?android:attr/textAppearanceLarge\" />\n\n        <Button\n            android:id=\"@+id/shareButton\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_weight=\"1\"\n            android:text=\"@string/title_share_button\" />\n    </LinearLayout>\n\n    <ScrollView\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\"\n        android:orientation=\"vertical\" >\n\n        <TextView\n            android:id=\"@+id/installLogView\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:textSize=\"12sp\"\n            android:typeface=\"monospace\" >\n\n            <requestFocus />\n        </TextView>\n    </ScrollView>\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/lildebi.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:addStatesFromChildren=\"false\"\n    android:orientation=\"vertical\" >\n\n    <LinearLayout\n        android:id=\"@+id/linearLayout1\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"10sp\" >\n\n        <TextView\n            android:id=\"@+id/statusTitle\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:padding=\"5sp\"\n            android:text=\"@string/title_status\"\n            android:textSize=\"20sp\"\n            android:textStyle=\"bold\" />\n\n        <TextView\n            android:id=\"@+id/statusText\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:singleLine=\"true\"\n            android:text=\"@string/blank\"\n            android:textSize=\"20sp\"\n            android:textStyle=\"bold\" />\n    </LinearLayout>\n\n    <LinearLayout\n        android:id=\"@+id/linearLayout2\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\" >\n\n        <Button\n            android:id=\"@+id/startStopButton\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:text=\"@string/title_start\" />\n    </LinearLayout>\n\n    <ScrollView\n        android:id=\"@+id/consoleScroll\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" >\n\n        <TextView\n            android:id=\"@+id/consoleText\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:textSize=\"13sp\"\n            android:typeface=\"monospace\" />\n    </ScrollView>\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/select_arch.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <TextView\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/select_arch\" />\n\n    <ListView\n        android:id=\"@+id/archList\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" />\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/select_mirror.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <TextView\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/select_mirror\" />\n\n    <ListView\n        android:id=\"@+id/mirrorList\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" />\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/select_release.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <TextView\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/select_release\" />\n\n    <ListView\n        android:id=\"@+id/releaseList\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" />\n\n</LinearLayout>"
  },
  {
    "path": "res/layout/unsupported_device.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <TextView\n        android:id=\"@+id/unsupportedDeviceMessage\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/unsupported_device_body\" >\n    </TextView>\n\n    <Button\n        android:id=\"@+id/uninstallButton\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/uninstall_button_title\" >\n    </Button>\n\n</LinearLayout>"
  },
  {
    "path": "res/layout-land/install_activity.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\"\n    android:orientation=\"vertical\" >\n\n    <LinearLayout\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"100dp\"\n        android:layout_margin=\"5sp\"\n        android:orientation=\"horizontal\" >\n\n        <LinearLayout\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"fill_parent\"\n            android:layout_margin=\"5sp\"\n            android:orientation=\"vertical\" >\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/release\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/mirror\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/arch\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n        </LinearLayout>\n\n        <LinearLayout\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"fill_parent\"\n            android:layout_margin=\"5sp\"\n            android:orientation=\"vertical\" >\n\n            <TextView\n                android:id=\"@+id/selectedRelease\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"left|center_vertical\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_debian_release\"\n                android:textSize=\"25sp\"\n                android:typeface=\"monospace\" />\n\n            <TextView\n                android:id=\"@+id/selectedMirror\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"left|center_vertical\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_mirror\"\n                android:textSize=\"20sp\"\n                android:typeface=\"monospace\" />\n\n            <TextView\n                android:id=\"@+id/selectedArch\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_weight=\"0.33\"\n                android:gravity=\"left|center_vertical\"\n                android:singleLine=\"true\"\n                android:text=\"@string/default_arch\"\n                android:textSize=\"25sp\"\n                android:typeface=\"monospace\" />\n        </LinearLayout>\n\n        <LinearLayout\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"25sp\"\n            android:orientation=\"horizontal\" >\n\n            <TextView\n                android:id=\"@+id/imagesizetext\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"match_parent\"\n                android:gravity=\"right|center_vertical\"\n                android:text=\"@string/image_size\"\n                android:textSize=\"20sp\"\n                android:textStyle=\"bold\" />\n\n            <EditText\n                android:id=\"@+id/imagesize\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:gravity=\"center|right\"\n                android:inputType=\"number\"\n                android:text=\"@string/default_image_size\"\n                android:width=\"100dp\" />\n\n            <TextView\n                android:id=\"@+id/megabytes\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:text=\"@string/megabytes\"\n                android:textSize=\"20sp\" />\n        </LinearLayout>\n    </LinearLayout>\n\n    <Button\n        android:id=\"@+id/installButton\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"10sp\"\n        android:padding=\"20sp\"\n        android:text=\"@string/install\"\n        android:textSize=\"20sp\" />\n\n    <ScrollView\n        android:id=\"@+id/textScroll\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"0dip\"\n        android:layout_weight=\"1\" >\n\n        <TextView\n            android:id=\"@+id/installLog\"\n            android:layout_width=\"fill_parent\"\n            android:layout_height=\"wrap_content\" />\n    </ScrollView>\n\n</LinearLayout>"
  },
  {
    "path": "res/menu/options_menu.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n    <item\n        android:id=\"@+id/menu_jackpal_terminal\"\n        android:title=\"@string/menu_jackpal_terminal_title\"/>\n    <item\n        android:id=\"@+id/menu_preferences\"\n        android:title=\"@string/menu_preferences_title\"/>\n    <item\n        android:id=\"@+id/menu_install_log\"\n        android:title=\"@string/menu_install_log_title\"/>\n    <item\n        android:id=\"@+id/menu_delete\"\n        android:title=\"@string/menu_delete_title\"/>\n\n</menu>"
  },
  {
    "path": "res/values/defaults.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\" tools:ignore=\"MissingTranslation\">\n\n    <!-- this static default_image_path can be overridden by the dynamic NativeHelper.default_image_path -->\n    <string name=\"default_image_path\">/sdcard/debian.img</string>\n    <string name=\"default_post_start_script\">/etc/init.d/rc 2</string>\n    <string name=\"default_pre_stop_script\">/etc/init.d/rc 0</string>\n    <string name=\"default_arch\">armel</string>\n    <string name=\"default_image_size\">600</string>\n    <string name=\"default_mirror\">mirrors.ece.ubc.ca</string>\n    <string name=\"default_debian_release\">stable</string>\n\n</resources>"
  },
  {
    "path": "res/values/keys.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\" tools:ignore=\"MissingTranslation\">\n\n    <string name=\"pref_start_automatically_key\">pref_start_automatically_key</string>\n    <string name=\"pref_prevent_sleep_key\">pref_prevent_sleep_key</string>\n    <string name=\"pref_use_checksum_key\">pref_use_checksum_key</string>\n    <string name=\"pref_limit_to_4gb_key\">pref_limit_to_4gb_key</string>\n    <string name=\"pref_image_path_key\">pref_image_path_key</string>\n    <string name=\"pref_post_start_key\">pref_post_start_key</string>\n    <string name=\"pref_pre_stop_key\">pref_pre_stop_key</string>\n    <string name=\"pref_install_on_internal_storage_key\">pref_install_on_internal_storage_key</string>\n\n</resources>"
  },
  {
    "path": "res/values/strings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<resources>\n\n    <string name=\"app_name\">Lil\\' Debi</string>\n    <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>\n    <string name=\"uninstall_button_title\">Uninstall Lil\\' Debi</string>\n    <string name=\"pref_start_automatically_title\">Start Automatically?</string>\n    <string name=\"pref_start_on_mount_summary\">Automatically start Debian whenever your SD Card is mounted</string>\n    <string name=\"pref_start_on_boot_summary\">Automatically start Debian whenever Android is booted</string>\n    <string name=\"pref_use_checksum_title\">Checksum Image on Start?</string>\n    <string name=\"pref_use_checksum_summary\">Before booting, check the SHA1 checksum of the image to verify its integrity.</string>\n    <string name=\"pref_limit_to_4gb_title\">2GB Image Limit</string>\n    <string name=\"pref_limit_to_4gb_summary\">Most SD Cards have FAT filesystems, which can have a file size limit of 2GB.</string>\n    <string name=\"pref_image_path_title\">Image Path</string>\n    <string name=\"pref_image_path_summary\">The path to the disk image file that Debian is installed on (default: /sdcard/debian.img)</string>\n    <string name=\"pref_post_start_title\">Post-start Script</string>\n    <string name=\"pref_post_start_summary\">Script to run after Debian is started (default: /etc/init.d/rc 2)</string>\n    <string name=\"pref_pre_stop_title\">Pre-stop Script</string>\n    <string name=\"pref_pre_stop_summary\">Script to run before Debian is stopped (default: /etc/init.d/rc 0)</string>\n    <string name=\"pref_prevent_sleep_title\">Prevent Sleep</string>\n    <string name=\"pref_prevent_sleep_summary\">prevent the device from sleeping while Debian is running</string>\n    <string name=\"menu_jackpal_terminal_title\">Open Terminal…</string>\n    <string name=\"menu_preferences_title\">Settings</string>\n    <string name=\"menu_install_log_title\">View Install Log</string>\n    <string name=\"menu_delete_title\">Delete All</string>\n    <string name=\"title_start\">Start Debian</string>\n    <string name=\"title_stop\">Stop Debian</string>\n    <string name=\"title_configure\">Configure Image</string>\n    <string name=\"title_status\">Status:</string>\n    <string name=\"doit\">Delete Setup</string>\n    <string name=\"cancel\">Cancel</string>\n    <string name=\"blank\">(blank)</string>\n    <string name=\"confirm_delete_message\">Are you sure you want to delete the whole Lil\\' Debi setup?</string>\n    <string name=\"release\">Release:</string>\n    <string name=\"mirror\">Mirror:</string>\n    <string name=\"arch\">Arch:</string>\n    <string name=\"image_size\">Image Size:</string>\n    <string name=\"megabytes\">MB</string>\n    <string name=\"install\">Install</string>\n    <string name=\"uninstall\">Uninstall…</string>\n    <string name=\"get_superuser\">Get Superuser…</string>\n    <string name=\"needs_superuser_message\">Lil\\' Debi needs root access, install Superuser</string>\n    <string name=\"smaller_imagesize_message\">Not enough space for specified image size, reducing size to fit on SD Card</string>\n    <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>\n    <string name=\"mounted_message\">Debian mounted</string>\n    <string name=\"not_mounted_message\">Debian not mounted</string>\n    <string name=\"not_installed_message\">Debian not installed</string>\n    <string name=\"not_configured_message\">Image not configured</string>\n    <string name=\"no_network_message\">Network required for install</string>\n    <string name=\"mount_point_not_found_format\">The mount point \\'%s\\' does not exist!</string>\n    <string name=\"no_ext2_message\">/proc/filesystems does not list \\'ext2\\' as a supported filesystem</string>\n    <string name=\"image_path_exists_message\">Warning: there is already an existing file at the image path that you have selected!</string>\n    <string name=\"image_path_parent_does_not_exist_message\">The folder you choose does not exist! Resetting to the default.</string>\n    <string name=\"no_sdcard_message\">The External Storage SD Card is not mounted read/write, cannot install or start Debian without it.</string>\n    <string name=\"no_sdcard_status\">(no SD card)</string>\n    <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>\n    <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>\n    <string name=\"title_install_log_view\">Install Log</string>\n    <string name=\"title_share_button\">Share</string>\n    <string name=\"starting_debian\">Started Debian…</string>\n    <string name=\"stopping_debian\">Stopped Debian…</string>\n    <string name=\"calculating_checksum\">Calculating SHA1 checksum…</string>\n    <string name=\"checksum_complete\">SHA1 checksum complete!</string>\n    <string name=\"select_mirror\">Select Mirror</string>\n    <string name=\"select_release\">Select Release</string>\n    <string name=\"select_arch\">Select CPU Architecture</string>\n    <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>\n    <string name=\"pref_install_on_internal_storage_summary\">Internal Storage: /data/debian (Beta)</string>\n    <string name=\"pref_install_on_internal_storage_title\">Install on Internal Storage</string>\n    <string name=\"install_in_internal_storage_summary\">Install Debian into Internal Storage: /data/debian</string>\n    <string name=\"not_enough_space\">Not enough space (&lt; 250MB)</string>\n\n</resources>\n"
  },
  {
    "path": "res/values-da/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <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>\n  <string name=\"uninstall_button_title\">Afinstaller Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Start automatisk Debian når dit SD-kort er monteret</string>\n  <string name=\"pref_use_checksum_title\">Kontroller aftryk ved start?</string>\n  <string name=\"pref_use_checksum_summary\">Før opstart, så kontroller SHA1-kontrolsum for aftrykket for at verificere dets integritet.</string>\n  <string name=\"pref_image_path_title\">Aftrykssti</string>\n  <string name=\"pref_image_path_summary\">Stien til diskaftryksfilen som Debian er installeret på (standard: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Post-start-skript</string>\n  <string name=\"pref_post_start_summary\">Skript der skal køres efter at Debian er startet (standard: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Pre-stop-skript</string>\n  <string name=\"pref_pre_stop_summary\">Skript der skal køres før Debian stoppes (standard: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Forhindr sovetilstand</string>\n  <string name=\"pref_prevent_sleep_summary\">forhindr at enheden går i sovetilstand når Debian kører</string>\n  <string name=\"menu_jackpal_terminal_title\">Åbn terminal …</string>\n  <string name=\"menu_install_log_title\">Vis installationslog</string>\n  <string name=\"menu_delete_title\">Slet alle</string>\n  <string name=\"title_start\">Start Debian</string>\n  <string name=\"title_stop\">Stop Debian</string>\n  <string name=\"title_configure\">Konfigurer aftryk</string>\n  <string name=\"title_status\">Status:</string>\n  <string name=\"doit\">Slet opsætning</string>\n  <string name=\"cancel\">Afbryd</string>\n  <string name=\"blank\">(tom)</string>\n  <string name=\"confirm_delete_message\">Er du sikker på, at du ønsker at slette hele Lil\\' Debi-opsætningen?</string>\n  <string name=\"release\">Udgivelse:</string>\n  <string name=\"mirror\">Spejl:</string>\n  <string name=\"arch\">Arkitektur:</string>\n  <string name=\"image_size\">Aftryksstørrelse:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Installer</string>\n  <string name=\"uninstall\">Afinstaller …</string>\n  <string name=\"get_superuser\">Hent superbruger …</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi skal bruge superbrugeradgang, installer app\\'en Superuser</string>\n  <string name=\"smaller_imagesize_message\">Ikke nok plads for angivet aftryksstørrelse, reducerer størrelse for at passe på et SD-kort</string>\n  <string name=\"mounted_message\">Debian monteret</string>\n  <string name=\"not_mounted_message\">Debian er ikke monteret</string>\n  <string name=\"not_installed_message\">Debian er ikke installeret</string>\n  <string name=\"not_configured_message\">Aftryk er ikke konfigureret</string>\n  <string name=\"no_network_message\">Netværk krævet for installation</string>\n  <string name=\"mount_point_not_found_format\">Monteringspunktet »%s« findes ikke!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems angiver ikke »ext2« som et understøttet filsystem</string>\n  <string name=\"image_path_exists_message\">Advarsel: Der er allerede en eksisterende fil på den valgte aftrykssti!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Mappen du valgte findes ikke! Nulstiller til standarden.</string>\n  <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>\n  <string name=\"no_sdcard_status\">(intet SD-kort)</string>\n  <string name=\"title_install_log_view\">Installer log</string>\n  <string name=\"title_share_button\">Del</string>\n  <string name=\"starting_debian\">Startede Debian …</string>\n  <string name=\"stopping_debian\">Stoppede Debian …</string>\n  <string name=\"calculating_checksum\">Beregner SHA1-kontrolsum …</string>\n  <string name=\"checksum_complete\">SHA1-kontrolsum færdig!</string>\n  <string name=\"select_mirror\">Vælg spejl</string>\n  <string name=\"select_release\">Vælg udgivelse</string>\n  <string name=\"select_arch\">Vælg CPU-arkitektur</string>\n</resources>\n"
  },
  {
    "path": "res/values-de/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Debilein</string>\n  <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>\n  <string name=\"uninstall_button_title\">Debilein deinstallieren</string>\n  <string name=\"pref_start_automatically_title\">Automatisch starten?</string>\n  <string name=\"pref_start_on_mount_summary\">Debian immer automatisch starten wenn die SD Karte gemountet ist</string>\n  <string name=\"pref_use_checksum_title\">Prüfsumme des Abbilds beim Starten verifizieren?</string>\n  <string name=\"pref_use_checksum_summary\">Vor dem Hochfahren die SHA1 Prüfsumme des Abbilds auf Integrität überprüfen.</string>\n  <string name=\"pref_image_path_title\">Pfad zum Abbild</string>\n  <string name=\"pref_image_path_summary\">Der Pfad zum Festplattenabbild auf welchem Debian installiert ist (Standard: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Skript nach Start</string>\n  <string name=\"pref_post_start_summary\">Auszuführendes Skript nachdem Debian gestartet wurde (Standard: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Skript vor Halt</string>\n  <string name=\"pref_pre_stop_summary\">Auszuführendes Skript nachdem Debian angehalten wurde (Standard: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Ruhezustand verhindern</string>\n  <string name=\"pref_prevent_sleep_summary\">Das Gerät nicht in den Ruhezustand versetzen während Debian läuft</string>\n  <string name=\"menu_jackpal_terminal_title\">Terminal öffnen…</string>\n  <string name=\"menu_install_log_title\">Installationslog anzeigen</string>\n  <string name=\"menu_delete_title\">Alles löschen</string>\n  <string name=\"title_start\">Debian starten</string>\n  <string name=\"title_stop\">Debian anhalten</string>\n  <string name=\"title_configure\">Abbild konfigurieren</string>\n  <string name=\"title_status\">Status:</string>\n  <string name=\"doit\">Eingestellungen löschen</string>\n  <string name=\"cancel\">Abbrechen</string>\n  <string name=\"blank\">(leer)</string>\n  <string name=\"confirm_delete_message\">Sind Sie sich sicher, dass Sie die gesamte Debilein-Installation löschen möchten?</string>\n  <string name=\"release\">Release:</string>\n  <string name=\"mirror\">Spiegelserver:</string>\n  <string name=\"arch\">Architektur:</string>\n  <string name=\"image_size\">Abbild-Größe:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Installieren</string>\n  <string name=\"uninstall\">Deinstallieren…</string>\n  <string name=\"get_superuser\">Werde Superuser</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi benötigt Superuser-Zugriff, installiere die Superuser app</string>\n  <string name=\"smaller_imagesize_message\">Nicht genug Speicherplatz für das Abbild, Größe wird reduziert, um auf die SD-Karte zu passen</string>\n  <string name=\"mounted_message\">Debian hochgefahren</string>\n  <string name=\"not_mounted_message\">Debian nicht hochgefahren</string>\n  <string name=\"not_installed_message\">Debian ist nicht installiert</string>\n  <string name=\"not_configured_message\">Abbild nicht konfiguriert</string>\n  <string name=\"no_network_message\">Internetverbindung wird für die Installation benötigt</string>\n  <string name=\"mount_point_not_found_format\">Der Mount-Punkt \\'%s\\' existiert nicht!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems unterstützt \\'ext2\\' nicht </string>\n  <string name=\"image_path_exists_message\">Warnung: eine Datei existiert bereits an ausgewählter Stelle!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Der ausgewählte Ordner existiert nicht! Zurückgesetzt auf die Standard-Einstellung.</string>\n  <string name=\"no_sdcard_message\">Die externe SD-Karte ist nicht les-/schreibbar, Debian kann nicht installiert oder gestartet werden.</string>\n  <string name=\"no_sdcard_status\">(keine SD-Karte)</string>\n  <string name=\"title_install_log_view\">Installationslog</string>\n  <string name=\"title_share_button\">Teilen</string>\n  <string name=\"starting_debian\">Debian gestartet…</string>\n  <string name=\"stopping_debian\">Debian angehalten…</string>\n  <string name=\"calculating_checksum\">Berechne SHA1-Prüfsumme…</string>\n  <string name=\"checksum_complete\">SHA1-Prüfsumme komplett!</string>\n  <string name=\"select_mirror\">Spiegelserver auswählen</string>\n  <string name=\"select_release\">Release auswählen</string>\n  <string name=\"select_arch\">CPU-Architektur auswählen</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Interner Speicher: /data/debian</string>\n</resources>\n"
  },
  {
    "path": "res/values-es/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <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>\n  <string name=\"uninstall_button_title\">Desinstalar Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">¿Iniciar automáticamente?</string>\n  <string name=\"pref_start_on_mount_summary\">Iniciar automáticamente Debian cuando se monte la tarjeta SD</string>\n  <string name=\"pref_start_on_boot_summary\">Iniciar Debian automáticamente cuando se arranque Android</string>\n  <string name=\"pref_use_checksum_title\">¿Comprobación de errores de la imagen al inicio?</string>\n  <string name=\"pref_use_checksum_summary\">Antes de iniciar, hacer una comprobación de errores SHA1 de la imagen para verificar su integridad.</string>\n  <string name=\"pref_limit_to_4gb_title\">Límite de imagen de 2 GB</string>\n  <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>\n  <string name=\"pref_image_path_title\">Ruta a la imagen</string>\n  <string name=\"pref_image_path_summary\">La ruta hacia el fichero de imagen de disco donde Debian está instalado (predeterminado: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Guion de órdenes tras el inicio</string>\n  <string name=\"pref_post_start_summary\">Script a ejecutar después de que Debian se inicie (por defecto: /etc/init.d/rc.2)</string>\n  <string name=\"pref_pre_stop_title\">Guion de órdenes antes de la parada</string>\n  <string name=\"pref_pre_stop_summary\">Script a ejecutar después de que Debian se detenga (por defecto: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Evitar inactividad</string>\n  <string name=\"pref_prevent_sleep_summary\">evitar que el dispositivo entre en inactividad mientras está ejecutando Debian</string>\n  <string name=\"menu_jackpal_terminal_title\">Abrir terminal…</string>\n  <string name=\"menu_preferences_title\">Configuración</string>\n  <string name=\"menu_install_log_title\">Ver el registro de instalación</string>\n  <string name=\"menu_delete_title\">Eliminar todo</string>\n  <string name=\"title_start\">Iniciar Debian</string>\n  <string name=\"title_stop\">Parar Debian</string>\n  <string name=\"title_configure\">Configurar imagen</string>\n  <string name=\"title_status\">Estado:</string>\n  <string name=\"doit\">Eliminar instalación</string>\n  <string name=\"cancel\">Cancelar</string>\n  <string name=\"blank\">(vacío)</string>\n  <string name=\"confirm_delete_message\">¿Está seguro de que desea eliminar toda la instalación de Lil\\' Debi?</string>\n  <string name=\"release\">Versión:</string>\n  <string name=\"mirror\">Réplica:</string>\n  <string name=\"arch\">Arquitectura:</string>\n  <string name=\"image_size\">Tamaño de la imagen:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Instalar</string>\n  <string name=\"uninstall\">Desinstalar…</string>\n  <string name=\"get_superuser\">Obtener Superuser…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi necesita acceso de superusuario, instale la aplicación Superuser</string>\n  <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>\n  <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>\n  <string name=\"mounted_message\">Debian montado</string>\n  <string name=\"not_mounted_message\">Debian no montado</string>\n  <string name=\"not_installed_message\">Debian no instalado</string>\n  <string name=\"not_configured_message\">Imagen no configurada</string>\n  <string name=\"no_network_message\">Se necesita conexión a la red para instalar</string>\n  <string name=\"mount_point_not_found_format\">¡El punto de montaje \\'%s\\' no existe!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems no lista \\'ext2\\' como sistema de ficheros soportado</string>\n  <string name=\"image_path_exists_message\">Advertencia: ¡ya existe un archivo de imagen en la ruta que ha seleccionado!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">¡La carpeta que ha escogido no existe! Restableciendo al valor predeterminado.</string>\n  <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>\n  <string name=\"no_sdcard_status\">(no hay tarjeta SD)</string>\n  <string name=\"terminal_emulator_not_installed\">¡Android Terminal Emulator no instalado! Para usar esta característica, tiene que instalarlo.</string>\n  <string name=\"title_install_log_view\">Registro de instalación</string>\n  <string name=\"title_share_button\">Compartir</string>\n  <string name=\"starting_debian\">Debian iniciado…</string>\n  <string name=\"stopping_debian\">Debian parado…</string>\n  <string name=\"calculating_checksum\">Calculando comprobación de errores SHA1…</string>\n  <string name=\"checksum_complete\">¡Comprobación de errores SHA1 completada!</string>\n  <string name=\"select_mirror\">Seleccionar réplica</string>\n  <string name=\"select_release\">Seleccionar versión</string>\n  <string name=\"select_arch\">Seleccionar arquitectura CPU</string>\n  <string name=\"app_description\">¿Quiere conseguir fácilmente una Debian ejecutándose en chroot en la que pueda confiar? Instale Lil\\' Debi, y podrá tener una instalación de Debian ejecutándose con un clic. Construye una Debian en chroot completa en su teléfono usando únicamente debootstrap. Elija la versión, servidor réplica (mirror), y tamaño de la imagen en disco, para ponerlo en marcha. Puede llevar hasta una hora en un equipo lento, luego estará listo. El paquete completo se construye desde código fuente, usando compilaciones reproducibles disponibles públicamente. Incluso valida cada paquete usando las claves de los repositorios oficiales de Debian, que están incluidas en la aplicación.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Almacenamiento interno: /data/debian</string>\n  <string name=\"pref_install_on_internal_storage_title\">Instalar en el almacenamiento interno</string>\n  <string name=\"install_in_internal_storage_summary\">Instalar Debian en el almacenamiento interno: /data/debian</string>\n</resources>\n"
  },
  {
    "path": "res/values-fr/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">P\\'tite Debi</string>\n  <string name=\"unsupported_device_body\">Votre appareil n\\'est pas pris en charge par P\\'tite Debi pour l\\'installation de Debian. Le support du système de fichier \\\"ext2\\\" et du montage des fichiers en loopback est nécessaire. Par conséquent, cette application vous est inutile. Nous vous recommandons de la désinstaller.</string>\n  <string name=\"uninstall_button_title\">Désinstaller P\\'tite Debi</string>\n  <string name=\"pref_start_automatically_title\">Démarrez automatiquement ?</string>\n  <string name=\"pref_start_on_mount_summary\">Démarrer automatiquement Debian lorsque la carte SD est montée</string>\n  <string name=\"pref_start_on_boot_summary\">Démarre automatiquement Debian chaque fois que Android est démarré</string>\n  <string name=\"pref_use_checksum_title\">Vérifier la somme de contrôle de l\\'image au démarrage ?</string>\n  <string name=\"pref_use_checksum_summary\">Avant l\\'amorçage, vérifier l\\'intégrité de l\\'image grâce à la somme de contrôle SHA1.</string>\n  <string name=\"pref_limit_to_4gb_title\">Limite de l\\'image de 2GB</string>\n  <string name=\"pref_limit_to_4gb_summary\">La plupart des cartes SD utilise le système de fichiers FAT, qui a une limite de taille de 2GB par fichier.</string>\n  <string name=\"pref_image_path_title\">Chemin de l\\'image</string>\n  <string name=\"pref_image_path_summary\">Le chemin de l\\'image disque sur laquelle Debian est installée (par défaut : /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script post-démarrage</string>\n  <string name=\"pref_post_start_summary\">Script à éxécuter après le démarrage de Debian (par défaut : /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script pré-extinction</string>\n  <string name=\"pref_pre_stop_summary\">Script à éxécuter avant l\\'extinction de Debian (par défaut : /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Empêcher la mise en veille</string>\n  <string name=\"pref_prevent_sleep_summary\">Empêcher la mise en veille lorsque Debian s\\'exécute</string>\n  <string name=\"menu_jackpal_terminal_title\">Ouverture du terminal…</string>\n  <string name=\"menu_preferences_title\">Paramètres</string>\n  <string name=\"menu_install_log_title\">Voir le journal d\\'installation</string>\n  <string name=\"menu_delete_title\">Tout supprimer</string>\n  <string name=\"title_start\">Démarrer Debian</string>\n  <string name=\"title_stop\">Arrêter Debian</string>\n  <string name=\"title_configure\">Configurer l\\'image</string>\n  <string name=\"title_status\">État :</string>\n  <string name=\"doit\">Supprimer l\\'installation</string>\n  <string name=\"cancel\">Annuler</string>\n  <string name=\"blank\">(vide)</string>\n  <string name=\"confirm_delete_message\">Êtes-vous sûr de vouloir supprimer complètement l\\'installation de P\\'tite Debi ?</string>\n  <string name=\"release\">Version :</string>\n  <string name=\"mirror\">Miroir :</string>\n  <string name=\"arch\">Architecture :</string>\n  <string name=\"image_size\">Taille de l\\'image :</string>\n  <string name=\"megabytes\">Mo</string>\n  <string name=\"install\">Installer</string>\n  <string name=\"uninstall\">Désinstallation…</string>\n  <string name=\"get_superuser\">Obtenir Super-utilisateur…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi nécessite les droits root, installer Super-utilisateur</string>\n  <string name=\"smaller_imagesize_message\">Espace insuffisant pour l\\'image spécifiée. Réduction de la taille pour s\\'adapter à celle disponible sur la carte SD</string>\n  <string name=\"mounted_message\">Debian est montée</string>\n  <string name=\"not_mounted_message\">Debian n\\'est pas montée</string>\n  <string name=\"not_installed_message\">Debian n\\'est pas installée</string>\n  <string name=\"not_configured_message\">L\\'image n\\'est pas configurée</string>\n  <string name=\"no_network_message\">Le réseau est nécessaire pour l\\'installation</string>\n  <string name=\"mount_point_not_found_format\">Le point de montage « %s » n\\'existe pas !</string>\n  <string name=\"no_ext2_message\">/proc/filesystems ne liste pas « ext2 » comme système de fichiers pris en charge</string>\n  <string name=\"image_path_exists_message\">Avertissement : le chemin d\\'image sélectionné contient déjà un fichier !</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Le dossier cible n\\'existe pas ! Utilisation du dossier par défaut.</string>\n  <string name=\"no_sdcard_message\">La carte SD externe n\\'est pas montée avec les droits en lecture/écriture. Impossible d\\'installer ou de démarrer Debian sans cela.</string>\n  <string name=\"no_sdcard_status\">(aucune carte SD)</string>\n  <string name=\"terminal_emulator_not_installed\">L\\'émulateur de terminal Android n\\'est pas installé ! Pour utiliser cette fonctionnalité, vous devez désinstaller Lil\\' Debi, installer l\\'émulateur de terminal, puis réinstaller Lil\\' Debi.</string>\n  <string name=\"terminal_emulator_installed_after_lildebi\">ERREUR : L\\'émulateur de terminal Android a été installé après Lil\\' Debi ! Pour utiliser cette fonctionnalité, vous devez désinstaller puis réinstaller Lil\\' Debi.</string>\n  <string name=\"title_install_log_view\">Journal d\\'installation</string>\n  <string name=\"title_share_button\">Partager</string>\n  <string name=\"starting_debian\">Debian a démarré…</string>\n  <string name=\"stopping_debian\">Debian est arrêté…</string>\n  <string name=\"calculating_checksum\">Calcul de la somme de contrôle SHA1…</string>\n  <string name=\"checksum_complete\">Calcul de la somme de contrôle SHA1 terminé !</string>\n  <string name=\"select_mirror\">Choisir un miroir</string>\n  <string name=\"select_release\">Choisir une version</string>\n  <string name=\"select_arch\">Choisir l\\'architecture processeur</string>\n  <string name=\"app_description\">Vous cherchez à mettre en place facilement un chroot de Debian auquel vous pouvez faire confiance ? Installez P\\'tite Debi et vous obtiendrez une installation fonctionnelle de Debian en un clic. P\\'tite Debi permet d\\'obtenir un environnement chroot complet pour Debian sur votre téléphone en utilisant uniquement debootstrap. Vous n\\'avez plus qu\\'à choisir votre distrib, le miroir utilisé et la taille de l\\'image disque ! NB: L\\'installation peut prendre jusqu\\'à 1 heure sur des appareils peu performants. L\\'ensemble du paquettage est compilé à partir du code source disponible publiquement. Tous les paquets sont vérifiés en utilisant les clés de dépôt officielle de Debian inclues dans l\\'application.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Stockage interne : /data/debian (Bêta)</string>\n  <string name=\"pref_install_on_internal_storage_title\">Installer dans le stockage interne</string>\n  <string name=\"install_in_internal_storage_summary\">Installer Debian sur le stockage interne : /data/debian</string>\n  <string name=\"not_enough_space\">Pas assez d\\'espace (&lt; 250MB)</string>\n</resources>\n"
  },
  {
    "path": "res/values-hu/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Az eszköze nem támogatott a Lil\\' Debi által Debian telepítéshez. \\\"ext2\\\" fájlrendszer támogatásra és a fájlok merevlemezkén történő hurokcsatolására volna szükség. Mivel ez így használhatatlan az ön számára, javasoljuk az eltávolítását.</string>\n  <string name=\"uninstall_button_title\">Lil\\' Debi eltávolítása</string>\n  <string name=\"pref_start_on_mount_summary\">A Debian automatikus indítása, amikor az SD kártya csatolása megtörténik.</string>\n  <string name=\"pref_use_checksum_title\">A képmás fájl ellenőrzése indításkor?</string>\n  <string name=\"pref_use_checksum_summary\">Mielőtt bootol, ellenőrizze az SHA1 ellenőrző összegét a képnek, hogy biztos legyen sértetlenségében.</string>\n  <string name=\"pref_image_path_title\">Képmás elérési útvonal</string>\n  <string name=\"pref_image_path_summary\">A lemezkép fájl útvonala amelyről a Debian installálásra kerül (alapértelmezett: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Indulás utáni szkript</string>\n  <string name=\"pref_post_start_summary\">Futtatandó script a Debian indítása után (alapértelmezett: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Leállás előtti szkript</string>\n  <string name=\"pref_pre_stop_summary\">Futtatandó script a Debian leállítása előtt (alapértelmezett: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Alvó állapot megakadályozása</string>\n  <string name=\"pref_prevent_sleep_summary\">az eszköz alvásának megakadályozása ha Debain fut</string>\n  <string name=\"menu_jackpal_terminal_title\">Terminál megnyitása…</string>\n  <string name=\"menu_install_log_title\">Telepítési napló megtekintése</string>\n  <string name=\"menu_delete_title\">Minden törlése</string>\n  <string name=\"title_start\">Debian indítása</string>\n  <string name=\"title_stop\">Debian leállítása</string>\n  <string name=\"title_configure\">Képmás beállítása</string>\n  <string name=\"title_status\">Státusz:</string>\n  <string name=\"doit\">Beállítás törlése</string>\n  <string name=\"cancel\">Mégse</string>\n  <string name=\"blank\">(üres)</string>\n  <string name=\"confirm_delete_message\">Biztosan törölni akarod az egész Lil\\' Debi beállításokat?</string>\n  <string name=\"release\">Kiadás:</string>\n  <string name=\"mirror\">Tükörkiszolgáló:</string>\n  <string name=\"arch\">Architektúra:</string>\n  <string name=\"image_size\">Képmás mérete:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Telepítés</string>\n  <string name=\"uninstall\">Eltávolítás…</string>\n  <string name=\"get_superuser\">Rendszergazdai jogosultság elérése…</string>\n  <string name=\"needs_superuser_message\">A Lil\\' Debi Superuser hozzáférést igényel, telepítse a Rendszergazda appot</string>\n  <string name=\"smaller_imagesize_message\">Nincs elég hely a megadott képhez, a méret csökkentése ahhoz, hogy elférjen SD kártyán</string>\n  <string name=\"mounted_message\">Debian felcsatlakoztatva</string>\n  <string name=\"not_mounted_message\">Debian nincs felcsatlakoztatva</string>\n  <string name=\"not_installed_message\">A Debian nincs telepítve</string>\n  <string name=\"not_configured_message\">A képmás nincs beállítva</string>\n  <string name=\"no_network_message\">Hálózati kapcsolat szükséges a telepítéshez</string>\n  <string name=\"mount_point_not_found_format\">A csatlakoztatási pont \\\"%s\\\" nem létezik.</string>\n  <string name=\"no_ext2_message\">/proc/filesystems nem jeleníti meg a \\\"ext2\\\" fájlrendszert mint támogatottat.</string>\n  <string name=\"image_path_exists_message\">Figyelem: már van image fájl a kiválasztott útvonalon!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">A választott könyvtár nem létezik! Az alapértelmezett beállítása.</string>\n  <string name=\"no_sdcard_message\">A külős SD kártya nem olvashatóan/írhatóan csatolt, nem telepíthető, vagy indítható Debian e nélkül.</string>\n  <string name=\"no_sdcard_status\">(nincs SD kártya)</string>\n  <string name=\"title_install_log_view\">Telepítési napló</string>\n  <string name=\"title_share_button\">Megosztás</string>\n  <string name=\"starting_debian\">A Debian elindult…</string>\n  <string name=\"stopping_debian\">A Debian leállt…</string>\n  <string name=\"calculating_checksum\">SHA1 ellenőrző összeg meghatározása…</string>\n  <string name=\"checksum_complete\">SHA1 ellenőrzőösszeg rendben!</string>\n  <string name=\"select_mirror\">Tükörkiszolgáló kiválasztása</string>\n  <string name=\"select_release\">Kiadás választása</string>\n  <string name=\"select_arch\">CPU architektúra kiválasztása</string>\n  <string name=\"app_description\">Szeretne egy könnyű Debian chroot-ot futtatni amiben megbízhat? Telepítse a Lil’ Debi-t és egy kattintással telepíthet is Debiant. Felépít egy Debian chroot-ot a telefonon a debootstrap segítségével. Választhat kiadást, tükröt, a lemezképfájl méretét, és kész is. Egy óraig is tarthat egy lassabb eszközön, míg elkészül. A teljes csomag publikus forrásból fordul, megismételhető lépsekkel. Minden egyes alkalommal validálja a forrást a hivatalos Debian repository kulcsokkal, amelyeket az alkalmazás ismer.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Belső tároló: /data/debian</string>\n  <string name=\"pref_install_on_internal_storage_title\">Telepítés belső tárolóra</string>\n  <string name=\"install_in_internal_storage_summary\">A Debian telepítése belső tárolóra: /data/debian</string>\n</resources>\n"
  },
  {
    "path": "res/values-it/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Il tuo device non è supportato da Lil\\' Debi per installarci Debian. E\\' necessario il supporto al filesystem \\\"ext2\\\" e la possibilità di montare in loopback files come dischi. Di conseguenza quest\\'app non ha alcuna utilità, ti consigliamo di disinstallarla.</string>\n  <string name=\"uninstall_button_title\">Disinstalla Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">Avvio Automatico?</string>\n  <string name=\"pref_start_on_mount_summary\">Avvia automaticamente Debian ogni volta che la tua scheda SD è montata</string>\n  <string name=\"pref_start_on_boot_summary\">Avvio automatico di Debian all\\'accensione del dispositivo</string>\n  <string name=\"pref_use_checksum_title\">Checksum dell\\'Immagine all\\'Avvio?</string>\n  <string name=\"pref_use_checksum_summary\">Prima di fare il boot, controlla il checksum SHA1 dell\\'immagine per verificarne l\\'integrità.</string>\n  <string name=\"pref_image_path_title\">Percorso Immagine</string>\n  <string name=\"pref_image_path_summary\">Il path al file di immagine del disco dove Debian è installata (default: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script post-avvio</string>\n  <string name=\"pref_post_start_summary\">Script da eseguire dopo l\\'avvio di Debian (predefinito: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script pre-stop</string>\n  <string name=\"pref_pre_stop_summary\">Script da eseguire prima dell\\'arresto di Debian (predefinito: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Impedisci lo stand-by</string>\n  <string name=\"pref_prevent_sleep_summary\">impedisce al device di andare in stand-by mentre Debian è in esecuzione</string>\n  <string name=\"menu_jackpal_terminal_title\">Apertura Terminale…</string>\n  <string name=\"menu_install_log_title\">Visualizza Registro Installazione</string>\n  <string name=\"menu_delete_title\">Elimina Tutto</string>\n  <string name=\"title_start\">Avvia Debian</string>\n  <string name=\"title_stop\">Arresta Debian</string>\n  <string name=\"title_configure\">Configura Immagine</string>\n  <string name=\"title_status\">Stato:</string>\n  <string name=\"doit\">Elimina Configurazione</string>\n  <string name=\"cancel\">Annulla</string>\n  <string name=\"confirm_delete_message\">Sei sicuro di voler eliminare tutta la configurazione di Lil\\' Debi?</string>\n  <string name=\"release\">Rilascio:</string>\n  <string name=\"mirror\">Server Mirror:</string>\n  <string name=\"arch\">Architettura:</string>\n  <string name=\"image_size\">Dimensioni Immagine:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Installa</string>\n  <string name=\"uninstall\">Disinstalla…</string>\n  <string name=\"get_superuser\">Scarica Superuser…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi ha bisogno di un accesso SuperUtente, installa l\\'app Superuser</string>\n  <string name=\"smaller_imagesize_message\">Non c\\'è abbastanza spazio per l\\'immagine specificata, riduco la dimensione per farla entrare nella scheda SD</string>\n  <string name=\"mounted_message\">Debian montata</string>\n  <string name=\"not_mounted_message\">Debian non montata</string>\n  <string name=\"not_installed_message\">Debian non installata</string>\n  <string name=\"not_configured_message\">Immagine non configurata</string>\n  <string name=\"no_network_message\">Connessione necessaria per l\\'installazione</string>\n  <string name=\"mount_point_not_found_format\">Il punto di mount \\'%s\\' non esiste!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems non riporta \\'ext2\\' come filesystem supportato</string>\n  <string name=\"image_path_exists_message\">Attenzione: esiste già un file con il nome che hai scelto per l\\'immagine!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">La cartella che hai selezionato non esiste! Ripristino quella predefinita.</string>\n  <string name=\"no_sdcard_message\">La scheda SD esterna non è montata in lettura/scrittura, impossibile installare Debian senza ciò.</string>\n  <string name=\"no_sdcard_status\">(nessuna scheda SD)</string>\n  <string name=\"title_install_log_view\">Registro Installazione</string>\n  <string name=\"title_share_button\">Condividi</string>\n  <string name=\"starting_debian\">Avviato Debian…</string>\n  <string name=\"stopping_debian\">Debian arrestato…</string>\n  <string name=\"calculating_checksum\">Calcolo del checksum SHA1…</string>\n  <string name=\"checksum_complete\">Checksum SHA1 completato!</string>\n  <string name=\"select_mirror\">Seleziona server Mirror</string>\n  <string name=\"select_release\">Seleziona Rilascio</string>\n  <string name=\"select_arch\">Seleziona Architettura CPU</string>\n  <string name=\"app_description\">Vuoi un facile chroot di Debian funzionante, che ci si può fidare? Installare Lil \\'Debi, e si può avere una installazione Debian in esecuzione con un solo clic di un pulsante. Si costruisce un intero chroot Debian sul vostro telefono interamente utilizzando debootstrap. Si sceglie il rilascio, specchio, e la dimensione dell\\'immagine del disco, e lontano va. Si potrebbe richiedere fino a un\\'ora su un dispositivo lento, quindi il suo fare. L\\'intero pacchetto è costruito dalla sorgente usando pubblicamente disponibili, ripetibile costruisce. Si convalida anche ogni pacchetto utilizzando i tasti ufficiali repository di Debian, che sono incluse in app.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Internal Storage: /data/debian</string>\n  <string name=\"pref_install_on_internal_storage_title\">Installa sulla memoria interna</string>\n  <string name=\"install_in_internal_storage_summary\">Installa Debian nella memoria interna: /data/debian</string>\n</resources>\n"
  },
  {
    "path": "res/values-nb-rNO/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Lil\\' Debi kan ikke Installere Debian på din enhet. Støtte for filsystemet \\\"ext2\\\" og filmontering av avspeilinger som volum er påkrevet. Derav er denne applikasjonen ubrukelig for deg, vi anbefaler avinstallasjon.</string>\n  <string name=\"uninstall_button_title\">Avinstaller Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">Start automatisk?</string>\n  <string name=\"pref_start_on_mount_summary\">Start Debian automatisk når SD-kortet blir montert</string>\n  <string name=\"pref_start_on_boot_summary\">Automatisk igangsettelse av Debian når Android starter opp</string>\n  <string name=\"pref_use_checksum_title\">Sjekk kontrollsum av fil-avspeiling ved oppstart?</string>\n  <string name=\"pref_use_checksum_summary\">Før oppstart, sjekk at SHA1-kontrollsummen av fil-avspeilingen stemmer.</string>\n  <string name=\"pref_limit_to_4gb_title\">2GB avgrensning for bilder</string>\n  <string name=\"pref_limit_to_4gb_summary\">De fleste SD-kort har FAT-filsystem, hvis maksimale filstørrelser begrenser seg til 2GB.</string>\n  <string name=\"pref_image_path_title\">Avtrykksfilbane</string>\n  <string name=\"pref_image_path_summary\">Filbanen til oppstartsfilen for Debian (default: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Etterstartelsesskript</string>\n  <string name=\"pref_post_start_summary\">Skript som kjører etter Debian starter (default: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Førstoppelsesskript</string>\n  <string name=\"pref_pre_stop_summary\">Skript som kjøres når Debian blir stoppet (default: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Forhindre dvaletilstand</string>\n  <string name=\"pref_prevent_sleep_summary\">forhindre enheten fra å gå i dvalemodus når Debian kjører</string>\n  <string name=\"menu_jackpal_terminal_title\">Åpne terminal…</string>\n  <string name=\"menu_preferences_title\">Innstillinger</string>\n  <string name=\"menu_install_log_title\">Se installasjonslogg</string>\n  <string name=\"menu_delete_title\">Slett alt</string>\n  <string name=\"title_start\">Start Debian</string>\n  <string name=\"title_stop\">Stopp Debian</string>\n  <string name=\"title_configure\">Oppsett av fil-avtrykk</string>\n  <string name=\"title_status\">Status:</string>\n  <string name=\"doit\">Slett oppsett</string>\n  <string name=\"cancel\">Avbryt</string>\n  <string name=\"blank\">(tom)</string>\n  <string name=\"confirm_delete_message\">Er du sikker på at du vil slette hele Lil\\' Debi oppsettet?</string>\n  <string name=\"release\">Utgivelse:</string>\n  <string name=\"mirror\">Speil:</string>\n  <string name=\"arch\">Arkitektur:</string>\n  <string name=\"image_size\">Billedstørrelse:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Installer</string>\n  <string name=\"uninstall\">Avinstaller…</string>\n  <string name=\"get_superuser\">Innhent superbrukertilgang…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi trenger root-tilgang, installer Superbruker</string>\n  <string name=\"smaller_imagesize_message\"> Forespeilet avtrykksstørrelse for stor for SD-kortet, reduserer størrelse for å få plass.</string>\n  <string name=\"image_size_limit_message\">SD-kort støtter vanligvis ikke filer større enn 2GB! Du kan skru av denne begrensningen i innstillingene.</string>\n  <string name=\"mounted_message\">Debian montert</string>\n  <string name=\"not_mounted_message\">Debian ikke montert</string>\n  <string name=\"not_installed_message\">Debian ikke Installert</string>\n  <string name=\"not_configured_message\">Fil-avspeiling ikke konfigurert</string>\n  <string name=\"no_network_message\">Nettverk påkrevd for installasjon</string>\n  <string name=\"mount_point_not_found_format\">Monteringspunktet \\'%s\\' eksisterer ikke!</string>\n  <string name=\"no_ext2_message\">/proc/-filsystem har ikke oppføring for \\'ext2\\' som støttet filsystem</string>\n  <string name=\"image_path_exists_message\">Advarsel: det finnes allerede en eksisterende fil på stien du har valgt!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Mappen du valgte finnes ikke! Returnerer til forvalg.</string>\n  <string name=\"no_sdcard_message\">Det eksterne SD-kortet er ikke montert les/skriv, kan ikke Installere eller starte Debian foruten.</string>\n  <string name=\"no_sdcard_status\">(inget SD-kort)</string>\n  <string name=\"terminal_emulator_not_installed\">Android terminalemulator ikke installert! For å bruke dette trekkplasteret, må du avinstallere Lil\\' Debi, installere Terminalemulatoren, for så å re-installere Lil\\' Debi</string>\n  <string name=\"terminal_emulator_installed_after_lildebi\">FEIL: Android Terminalemulator ble installert etter Lil\\' Debi! For å bruke dette trekkplasteret, må du avinstallere og installere Lil\\' Debi på ny.</string>\n  <string name=\"title_install_log_view\">Installasjonslog</string>\n  <string name=\"title_share_button\">Del</string>\n  <string name=\"starting_debian\">Debian startet…</string>\n  <string name=\"stopping_debian\">Debian stoppet…</string>\n  <string name=\"calculating_checksum\">Kalkulerer SHA1 kontrollsum…</string>\n  <string name=\"checksum_complete\">SHA1 kontrollsum ferdig!</string>\n  <string name=\"select_mirror\">Velg speil</string>\n  <string name=\"select_release\">Velg utgivelse</string>\n  <string name=\"select_arch\">Velg CPU-arkitektur</string>\n  <string name=\"app_description\">Behov for en pålitelig Debian chroot? Installer Lil\\' Debi og du kan ha Debian oppe å gå ved et enkelt tastetrykk. En hel debian chroot vil bli opprettet på din telefon bare ved bruk av debootstrap. Du velger utgave, speil og størrelse på installasjonen, og ferdig arbeid. Det kan ta opptil en time på en treg enhet, men så er den ferdig til bruk. Hele pakken er bygd ved bruk av fritt tilgjengelige, reproduserbare byggversjoner. Hver pakke blir faktisk sjekket opp mot Debians offisielle pakebrønn-nøkler, som er inkludert i app-en.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Internt lagringsmedie: /data/debian (Beta)</string>\n  <string name=\"pref_install_on_internal_storage_title\">Installer på internt lagringsmedie</string>\n  <string name=\"install_in_internal_storage_summary\">Installer Debian på internt lagringsmedie: /data/debian</string>\n  <string name=\"not_enough_space\">Utilstrekkelig plass (&lt; 250MB)</string>\n</resources>\n"
  },
  {
    "path": "res/values-nl/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Uw apparaat wordt niet ondersteund door Lil\\' Debi. Uw apparaat dient het \\\"ext2\\\" bestands-systeem te ondersteunen en het \\'loopback mounten\\' van bestanden als schijven. Deze app is dus nutteloos voor u en we raden u aan het te verwijderen.</string>\n  <string name=\"uninstall_button_title\">Verwijder Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">Automatisch starten?</string>\n  <string name=\"pref_start_on_mount_summary\">Start Debian automatisch zodra uw SD Card gekoppeld is.</string>\n  <string name=\"pref_start_on_boot_summary\">Start Debian automatisch waneer Android start.</string>\n  <string name=\"pref_use_checksum_title\">Image-bestand verifiëren bij starten?</string>\n  <string name=\"pref_use_checksum_summary\">Voor het starten de SHA1-checksum van het image-bestand controleren om zijn integriteit te waarborgen.</string>\n  <string name=\"pref_limit_to_4gb_title\">2GB Image Limiet</string>\n  <string name=\"pref_limit_to_4gb_summary\">De meeste SD Kaarten hebben het FAT bestandssysteem wat een maximale bestandsgroote heeft van 2GB</string>\n  <string name=\"pref_image_path_title\">Image pad:</string>\n  <string name=\"pref_image_path_summary\">Het pad naar het schijf-image bestand waar Debian is geinstalleerd (standaard: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Post-start Script</string>\n  <string name=\"pref_post_start_summary\">Script om uit te voeren nadat Debian is gestart (standaard: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Pre-stop Script</string>\n  <string name=\"pref_pre_stop_summary\">Script om uit te voeren voordat Debian wordt gestopt (standaard: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Voorkom slaapstand</string>\n  <string name=\"pref_prevent_sleep_summary\">voorkom dat het apparaat in slaapstand gaat terwijl Debian draait.</string>\n  <string name=\"menu_jackpal_terminal_title\">Open Terminal…</string>\n  <string name=\"menu_preferences_title\">Instellingen</string>\n  <string name=\"menu_install_log_title\">Bekijk installatie-log</string>\n  <string name=\"menu_delete_title\">Alles verwijderen</string>\n  <string name=\"title_start\">Debian starten</string>\n  <string name=\"title_stop\">Debian stoppen</string>\n  <string name=\"title_configure\">Image configureren</string>\n  <string name=\"title_status\">Status:</string>\n  <string name=\"doit\">Verwijder installatieprogramma</string>\n  <string name=\"cancel\">Annuleren</string>\n  <string name=\"blank\">(leeg)</string>\n  <string name=\"confirm_delete_message\">Weet u zeker dat u de volledige Lil\\' Debi-installatie wilt verwijderen?</string>\n  <string name=\"release\">Release:</string>\n  <string name=\"mirror\">Mirror:</string>\n  <string name=\"arch\">Arch: </string>\n  <string name=\"image_size\">Image grootte:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Installeer</string>\n  <string name=\"uninstall\">De-installeren…</string>\n  <string name=\"get_superuser\">Download Superuser…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi vereist root toegang, installeer Superuser</string>\n  <string name=\"smaller_imagesize_message\">Niet genoeg ruimte voor opgegeven image-grootte, grootte wordt verkleind om op SD-kaart te passen.</string>\n  <string name=\"image_size_limit_message\">SD Kaarten kunnen meestal geen bestanden opslaan van meer dan 2GB! Deze limiet kan uitgezet worden in de Instellingen</string>\n  <string name=\"mounted_message\">Debian gekoppeld</string>\n  <string name=\"not_mounted_message\">Debian niet gekoppeld</string>\n  <string name=\"not_installed_message\">Debian niet geinstalleerd</string>\n  <string name=\"not_configured_message\">Image niet geconfigureerd</string>\n  <string name=\"no_network_message\">Netwerk vereist voor installatie</string>\n  <string name=\"mount_point_not_found_format\">Koppelpunt \\'%s\\' bestaat niet!</string>\n  <string name=\"no_ext2_message\">Volgens /proc/filesystems is \\'ext2\\' niet een ondersteund bestands-systeem</string>\n  <string name=\"image_path_exists_message\">Waarschuwing: er bestaat al een bestand op de lokatie die u heeft geselecteerd!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">De map die u heeft gekozen bestaat niet! Gebruikt nu de standaard-map.</string>\n  <string name=\"no_sdcard_message\">De SD-kaart voor externe opslag is niet \\'gemount\\' om te kunnen lezen en schrijven, can Debian niet installeren of starten totdat dit wel zo is.</string>\n  <string name=\"no_sdcard_status\">(geen SD-kaart)</string>\n  <string name=\"terminal_emulator_not_installed\">De Android Terminal Emulator is niet geinstalleerd! om deze functie te gebruiken moet U Lil\\' Debi verwijderen, Terminal Emulator installeren, en dan Lil\\' Debi opnieuw installeren.</string>\n  <string name=\"terminal_emulator_installed_after_lildebi\">ERROR: De Android Terminal Emulator is geinstalleerd na Lil\\' Debi! Om deze functie te gebruiken moet u Lil\\' Debi opnieuw installeren.</string>\n  <string name=\"title_install_log_view\">Installatie logboek</string>\n  <string name=\"title_share_button\">Delen</string>\n  <string name=\"starting_debian\">Debian is gestart</string>\n  <string name=\"stopping_debian\">Debian is gestopt.</string>\n  <string name=\"calculating_checksum\">SHA1-checksum berekenen…</string>\n  <string name=\"checksum_complete\">SHA1-checksum berekend!</string>\n  <string name=\"select_mirror\">Mirror selecteren</string>\n  <string name=\"select_release\">Release selecteren</string>\n  <string name=\"select_arch\">CPU-Architectuur selecteren</string>\n  <string name=\"app_description\">Wilt u een makkelijke betrouwbare Debian chroot? Installeer Lil\\' Debi en ook u kunt een Debian installatie draaien met een enkele druk op de knop. Lil\\' Debi bouwt een complete Debian chroot op uw telefoon met debootstrap. U kiest de release, mirror en het formaat van het disk image en Lil\\' Debi doet de rest. Het kan een uur duren op een langzaam apparaat, dan is het klaar. het hele pakket is gebouwd van publiek beschikbare herhaalbare builds. Lil\\' Debi valideert elk pakket met de officiele Debian repository keys die bij de app bijgevoeegd zijn.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Interne opslag: /data/debian (Beta)</string>\n  <string name=\"pref_install_on_internal_storage_title\">Installeer op Interne opslag</string>\n  <string name=\"install_in_internal_storage_summary\">Installeer Debian op Interne opslag: /data/debian</string>\n  <string name=\"not_enough_space\">Niet genoeg ruimte (&lt; 250MB)</string>\n</resources>\n"
  },
  {
    "path": "res/values-pl/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">To urządzenie nie jest obsługiwane przez Lil\\' Debi w celu instalacji Debiana. Wymagana jest obsługa systemu plików \\\"ext2\\\" oraz ponowne montowanie plików jako dyski. Z tego powodu ta aplikacja jest bezużyteczna i zaleca się odinstalowanie jej.</string>\n  <string name=\"uninstall_button_title\">Odinstaluj Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">Rozpocząć automatycznie?</string>\n  <string name=\"pref_start_on_mount_summary\">Uruchamia Debiana automatycznie jeśli tylko zamontowana jest karta SD</string>\n  <string name=\"pref_start_on_boot_summary\">Automatycznie startuj Debiana gdy tylko Android zostanie uruchomiony</string>\n  <string name=\"pref_use_checksum_title\">Sprawdzić sumę kontrolną obrazu przy starcie?</string>\n  <string name=\"pref_use_checksum_summary\">Przed uruchomieniem sprawdza sumę kontrolną SHA1 obrazu, aby zweryfikować jego integralność.</string>\n  <string name=\"pref_image_path_title\">Ścieżka do obrazu</string>\n  <string name=\"pref_image_path_summary\">Ścieżka do pliku obrazu dysku z zainstalowanym Debianem (domyślnie: </string>\n  <string name=\"pref_post_start_title\">Skrypty pouruchomieniowe</string>\n  <string name=\"pref_post_start_summary\">Skrypty włączane po uruchomieniu Debiana (domyślnie: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Skrypty końcowe</string>\n  <string name=\"pref_pre_stop_summary\">Skrypty uruchamiane przed wyłączeniem Debiana (domyślnie: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Nie usypiaj</string>\n  <string name=\"pref_prevent_sleep_summary\">zapobiega usypianiu urządzenia przy działającym Debianie</string>\n  <string name=\"menu_install_log_title\">Przeglądnij dziennik instalacji</string>\n  <string name=\"menu_delete_title\">Usuń wszystko</string>\n  <string name=\"title_start\">Uruchom Debiana</string>\n  <string name=\"title_stop\">Zatrzymaj Debiana</string>\n  <string name=\"title_configure\">Skonfiguruj obraz</string>\n  <string name=\"title_status\">Stan:</string>\n  <string name=\"doit\">Usuń ustawienia</string>\n  <string name=\"cancel\">Anuluj</string>\n  <string name=\"confirm_delete_message\">Na pewno usunąć wszystkie ustawienia Lil\\' Debi?</string>\n  <string name=\"release\">Wydanie:</string>\n  <string name=\"mirror\">Serwer lustrzany:</string>\n  <string name=\"arch\">Architektura:</string>\n  <string name=\"image_size\">Rozmiar obrazu:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Instaluj</string>\n  <string name=\"uninstall\">Odinstaluj…</string>\n  <string name=\"get_superuser\">Pozyskaj prawa administratora…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi wymaga dostępu administracyjnego, proszę zainstalować program Superuser</string>\n  <string name=\"smaller_imagesize_message\">Brak miejsca dla danego rozmiaru obrazu, zmniejszanie obrazu w celu zmieszczenia go na karcie SD</string>\n  <string name=\"mounted_message\">Debian jest zamontowany</string>\n  <string name=\"not_mounted_message\">Debian nie jest zamontowany</string>\n  <string name=\"not_installed_message\">Debian nie jest zainstalowany</string>\n  <string name=\"not_configured_message\">Obraz nie jest skonfigurowany</string>\n  <string name=\"no_network_message\">Do instalacji wymagany jest dostęp sieciowy</string>\n  <string name=\"mount_point_not_found_format\">Punkt montowania \\\"%s\\\" nie istnieje!</string>\n  <string name=\"no_ext2_message\">W /proc/filesystems nie figuruje system plików \\\"ext2\\\" jako obsługiwany</string>\n  <string name=\"image_path_exists_message\">Ostrzeżenie: w wybranej ścieżce obrazu istnieje już inny plik!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Wybrany katalog nie istnieje. Wracanie do wartości domyślnej.</string>\n  <string name=\"no_sdcard_message\">Zewnętrzna karta SD nie jest zamontowana do odczytu i zapisu, bez niej nie można zainstalować ani uruchomić Debiana</string>\n  <string name=\"no_sdcard_status\">(brak karty SD)</string>\n  <string name=\"title_install_log_view\">Dziennik instalacji</string>\n  <string name=\"title_share_button\">Podziel się</string>\n  <string name=\"starting_debian\">Uruchamianie Debiana…</string>\n  <string name=\"stopping_debian\">Zatrzymywanie Debiana…</string>\n  <string name=\"calculating_checksum\">Obliczanie sumy kontrolnej SHA1</string>\n  <string name=\"checksum_complete\">Obliczono sumę kontrolną SHA1!</string>\n  <string name=\"select_mirror\">Wybierz serwer lustrzany</string>\n  <string name=\"select_release\">Wybierz wydanie</string>\n  <string name=\"select_arch\">Wybierz architekturę procesora</string>\n</resources>\n"
  },
  {
    "path": "res/values-pt/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">O seu dispositivo não suporta o Lil\\' Debi para instalar o Debian. Ele precisa de suporte ao sistema de arquivos \\\"ext2\\\" e criar documentos como discos.</string>\n  <string name=\"uninstall_button_title\">Desinstalar Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Iniciar o Debian automaticamente sempre que o cartão SD estiver montado</string>\n  <string name=\"pref_use_checksum_title\">Verificar erros da Imagem ao iniciar?</string>\n  <string name=\"pref_use_checksum_summary\">Antes de iniciar, verificar erros SHA1 da imagem para verificar sua integridade.</string>\n  <string name=\"pref_image_path_title\">Endereço da Imagem</string>\n  <string name=\"pref_image_path_summary\">O caminho para o disco de imagem onde o Debian esta instalado (padrão:/sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script executado após início</string>\n  <string name=\"pref_post_start_summary\">Script a ser executado após o início do Debian (padrão: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script executado antes de parar</string>\n  <string name=\"pref_pre_stop_summary\">Script a ser executado antes da parada do Debian (padrão: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Previnir inatividade</string>\n  <string name=\"pref_prevent_sleep_summary\">Previnir o dispositivo de entrar em inatividade enquanto o Debian esta sendo executado</string>\n  <string name=\"menu_jackpal_terminal_title\">Abrir terminal</string>\n  <string name=\"menu_install_log_title\">Ver o registro de instalação</string>\n  <string name=\"menu_delete_title\">Deletar todos</string>\n  <string name=\"title_start\">Iniciar Debian</string>\n  <string name=\"title_stop\">Parar Debian</string>\n  <string name=\"title_configure\">Configurar Imagem</string>\n  <string name=\"title_status\">Estado:</string>\n  <string name=\"doit\">Deletar configurações</string>\n  <string name=\"cancel\">Cancelar</string>\n  <string name=\"blank\">(vazio)</string>\n  <string name=\"confirm_delete_message\">Você tem certeza de que deseja deletar todas as configurações do Lil\\' Debi?</string>\n  <string name=\"release\">Versão:</string>\n  <string name=\"mirror\">Réplica:</string>\n  <string name=\"arch\">Arquitetura:</string>\n  <string name=\"image_size\">Tamanho da Imagem</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Instalar</string>\n  <string name=\"uninstall\">Desinstalar…</string>\n  <string name=\"get_superuser\">Obter Superusuário…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi Precisa de acesso de SuperUsuario, instale o aplicativo Superusuário</string>\n  <string name=\"smaller_imagesize_message\">Sem espaço suficiente para o tamanho de imagem selecionado, reduzindo para caber no cartão SD.</string>\n  <string name=\"mounted_message\">Debian montado</string>\n  <string name=\"not_mounted_message\">Debian não montado</string>\n  <string name=\"not_installed_message\">Debian não instalado</string>\n  <string name=\"not_configured_message\">Imagem não configurada</string>\n  <string name=\"no_network_message\">Conexão a internet requerida para instalar</string>\n  <string name=\"mount_point_not_found_format\">O ponto de montagem \\'%s\\' não existe!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems não lista \\'ext2\\' como um sistema de documentos suportado</string>\n  <string name=\"image_path_exists_message\">Atenção: Já existe um arquivo no endereço de imagem que você selecionou!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">A pasta que você selecionou não existe! Voltando ao padrão.</string>\n  <string name=\"no_sdcard_message\">O cartão SD externo não esta motado para ler/escrever, não pode instalar ou iniciar o Debian sem ele.</string>\n  <string name=\"no_sdcard_status\">(Sem cartão SD)</string>\n  <string name=\"title_install_log_view\">Registro de instalação</string>\n  <string name=\"title_share_button\">Compartilhar</string>\n  <string name=\"starting_debian\">Debian iniciado…</string>\n  <string name=\"stopping_debian\">Debian interrompido…</string>\n  <string name=\"calculating_checksum\">Calculando verificação de erros SHA1…</string>\n  <string name=\"checksum_complete\">Verificação SHA1 completa!</string>\n  <string name=\"select_mirror\">Selecionar réplica</string>\n  <string name=\"select_release\">Selecionar versão</string>\n  <string name=\"select_arch\">Selecionar arquitetura da CPU</string>\n</resources>\n"
  },
  {
    "path": "res/values-pt-rPT/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">O seu dispositivo não é suportado pelo Lil\\' Debi para a instalação do Debian.  Este precisa de suportar o sistema de ficheiro \\\"ext2\\\" e montagem \\\"loopback\\\" dos ficheiros como discos. Por isso, esta app é inútil para si, nós recomendamos a sua desinstalação.</string>\n  <string name=\"uninstall_button_title\">Desinstalar Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Iniciar automaticamente o Debian quer o seu Cartão SD esteja ou não montado</string>\n  <string name=\"pref_use_checksum_title\">Teste por Soma da Imagem no Arranque?</string>\n  <string name=\"pref_use_checksum_summary\">Antes de arrancar, verificar Teste por Soma SHA1 da imagem para verificar a sua integridade.</string>\n  <string name=\"pref_image_path_title\">Caminho da Imagem</string>\n  <string name=\"pref_image_path_summary\">O caminho para o ficheiro da imagem de disco em que o Debian está instalado (predefinição: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script executado após início</string>\n  <string name=\"pref_post_start_summary\">Script a ser executado após o início do Debian (padrão: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script executado antes de parar</string>\n  <string name=\"pref_pre_stop_summary\">Script a ser executado antes da parada do Debian (padrão: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Evitar Hibernação</string>\n  <string name=\"pref_prevent_sleep_summary\">evitar que o dispositivo hiberne durante a execuçã do Debian</string>\n  <string name=\"menu_jackpal_terminal_title\">Abrir terminal</string>\n  <string name=\"menu_install_log_title\">Visualizar Registo da Instalção</string>\n  <string name=\"menu_delete_title\">Apagar Tudo</string>\n  <string name=\"title_start\">Iniciar Debian</string>\n  <string name=\"title_stop\">Parar Debian</string>\n  <string name=\"title_configure\">Configurar Imagem</string>\n  <string name=\"title_status\">Estado:</string>\n  <string name=\"doit\">Apagar Configuração</string>\n  <string name=\"cancel\">Cancelar</string>\n  <string name=\"blank\">(vazio)</string>\n  <string name=\"confirm_delete_message\">Deseja apagar toda a configuração do Lil\\' Debi?</string>\n  <string name=\"release\">Lançamento:</string>\n  <string name=\"mirror\">Site da Imagem:</string>\n  <string name=\"arch\">Arq.:</string>\n  <string name=\"image_size\">Tamanho da Imagem:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Instalar</string>\n  <string name=\"uninstall\">Desinstalar …</string>\n  <string name=\"get_superuser\">Obter o Superuser …</string>\n  <string name=\"needs_superuser_message\">O Lil\\' Debi precisa de acesso Superuser, instale a app Superuser</string>\n  <string name=\"smaller_imagesize_message\">Espaço insuficiente para o tamanho da imagem especificada, a reduzir o tamanho para caber no Cartão SD</string>\n  <string name=\"mounted_message\">Debian montado</string>\n  <string name=\"not_mounted_message\">Debian não montado</string>\n  <string name=\"not_installed_message\">O Debian não está instalado</string>\n  <string name=\"not_configured_message\">A Imagem não está configurada</string>\n  <string name=\"no_network_message\">É necessário Rede para a instalação</string>\n  <string name=\"mount_point_not_found_format\">O ponto de montagem \\'%s\\' não existe!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems não lista \\'ext2\\' como um sistema de ficheiros suportado</string>\n  <string name=\"image_path_exists_message\">Aviso: já existe um ficheiro no caminho da imagem que selecionou!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">A pasta selecionada não existe! A repor predefinição.</string>\n  <string name=\"no_sdcard_message\">O Cartão SD de Armazenamento Externo não está montado com ler/gravar, não é possível instalar  ou iniciar o Debian sem isto.</string>\n  <string name=\"no_sdcard_status\">(sem Cartão SD)</string>\n  <string name=\"title_install_log_view\">Registo da Instalação</string>\n  <string name=\"title_share_button\">Compartilhar</string>\n  <string name=\"starting_debian\">Debian Iniciado …</string>\n  <string name=\"stopping_debian\">Debian Parado …</string>\n  <string name=\"calculating_checksum\">A calcular teste por soma SHA1 …</string>\n  <string name=\"checksum_complete\">Teste por soma SHA1 concluído!</string>\n  <string name=\"select_mirror\">Selecione o Site da Imagem</string>\n  <string name=\"select_release\">Selecione Lançamento</string>\n  <string name=\"select_arch\">Selecione Arquitetura do CPU</string>\n</resources>\n"
  },
  {
    "path": "res/values-ro/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Aparatul dumneavoastra nu este suportat de Lil\\' Debi pentru a instala Debian. Trebuie sa suporte sistemul de fisiere \\\"ext2\\\" si montarea loopback de fisiere ca discuri. Astfel, aplicatia aceasta va este inutila, recomandam sa o dezinstalati.</string>\n  <string name=\"uninstall_button_title\">Dezinstaleaza Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Porneste Debian automat cand SD card-ul este montat</string>\n  <string name=\"pref_use_checksum_title\">Verifica Imaginea la Pornire?</string>\n  <string name=\"pref_use_checksum_summary\">Inainte de bootare, verifica suma SHA1 a imaginii pentru a verifica integritatea ei.</string>\n  <string name=\"pref_image_path_title\">Calea Imaginii</string>\n  <string name=\"pref_image_path_summary\">Calea catre imaginea de disc pe care este instalat Debian (implicit: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script post-pornire</string>\n  <string name=\"pref_post_start_summary\">Script de rulat dupa ce Debian a fost pornit (implicit: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script de pre-oprire</string>\n  <string name=\"pref_pre_stop_summary\">Script de rulat inainte ca Debian sa fie oprit (implicit: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Previne Oprirea Ecranului</string>\n  <string name=\"pref_prevent_sleep_summary\">previne oprirea ecranului cat timp Debian este pornit</string>\n  <string name=\"menu_install_log_title\">Vezi Jurnalul Instalarii</string>\n  <string name=\"menu_delete_title\">Sterge Tot</string>\n  <string name=\"title_start\">Porneste Debian</string>\n  <string name=\"title_stop\">Opreste Debian</string>\n  <string name=\"title_configure\">Configureaza Imaginea</string>\n  <string name=\"title_status\">Stare</string>\n  <string name=\"doit\">Sterge Setup</string>\n  <string name=\"cancel\">Anuleaza</string>\n  <string name=\"confirm_delete_message\">Sunteti sigur ca vreti sa sterget iintreaga configuratie Lil\\' Debi?</string>\n  <string name=\"release\">Versiune:</string>\n  <string name=\"mirror\">Sursa de Pachete:</string>\n  <string name=\"arch\">Arhitectura:</string>\n  <string name=\"image_size\">Marimea Imaginii:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Instaleaza</string>\n  <string name=\"uninstall\">Dezinstaleaza…</string>\n  <string name=\"get_superuser\">Obtine Superuser…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi necesita acces Superuser, instalati aplicatia Superuser</string>\n  <string name=\"smaller_imagesize_message\">Nu este suficient spatiu pentru marimea de imagine aleasa, reduc imaginea pentru a incapea pe SD Card</string>\n  <string name=\"mounted_message\">Debian montat</string>\n  <string name=\"not_mounted_message\">Debian nu este montat</string>\n  <string name=\"not_installed_message\">Debian nu este instalat</string>\n  <string name=\"not_configured_message\">Imaginea nu este configurata</string>\n  <string name=\"no_network_message\">Instalarea necesita acces la internet</string>\n  <string name=\"no_ext2_message\">/proc/filesystems nu include \\'ext2\\' ca filesystem suportat</string>\n  <string name=\"image_path_exists_message\">Atentie: exista deja un fisier la calea imaginii aleasa!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Folderul pe care l-ati ales nu exista! Revin la cel implicit.</string>\n  <string name=\"no_sdcard_message\">SD Card-ul de stocare externa nu este montat pentru citire/scriere, nu pot instala sau porni debian.</string>\n  <string name=\"no_sdcard_status\">(fara SD card)</string>\n  <string name=\"title_install_log_view\">Log de instalare</string>\n  <string name=\"title_share_button\">Partajeaza</string>\n  <string name=\"starting_debian\">Debian a fost pornit…</string>\n  <string name=\"stopping_debian\">Debian a fost oprit…</string>\n  <string name=\"calculating_checksum\">Calculez suma SHA1…</string>\n  <string name=\"checksum_complete\">Calcularea sumei SHA1 este completa!</string>\n  <string name=\"select_mirror\">Alege Sursa de Pachete</string>\n  <string name=\"select_release\">Alege Versiune</string>\n  <string name=\"select_arch\">Alege Arhitectura</string>\n</resources>\n"
  },
  {
    "path": "res/values-ru/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Малыш Деби</string>\n  <string name=\"unsupported_device_body\">Ваше устройство не поддерживается Малышом Деби для установки Debian. Необходимо, чтобы устройство поддерживало файловую систему \\\"ext2\\\" и петлевое монтирование файлов в качестве дисков. Таким образом, это приложение для вас бесполезно и мы рекомендуем удалить его.</string>\n  <string name=\"uninstall_button_title\">Удалить Малыша Деби</string>\n  <string name=\"pref_start_automatically_title\">Запускать автоматически?</string>\n  <string name=\"pref_start_on_mount_summary\">Автоматически запускать Debian при монтировании карты SD</string>\n  <string name=\"pref_start_on_boot_summary\">Автоматически запускать Debian при загрузке Android</string>\n  <string name=\"pref_use_checksum_title\">Проверить контрольную сумму образа при запуске?</string>\n  <string name=\"pref_use_checksum_summary\">Перед загрузкой, проверьте контрольную сумму SHA1 образа, для того чтобы удостовериться в его целостности.</string>\n  <string name=\"pref_limit_to_4gb_title\">Ограничение размера образа: 2 Гб</string>\n  <string name=\"pref_limit_to_4gb_summary\">Большинство карт памяти SD отформатировано под файловую систему FAT, в которой размер каждого отдельного файла не может превышать 2 Гб.</string>\n  <string name=\"pref_image_path_title\">Путь к образу</string>\n  <string name=\"pref_image_path_summary\">Путь к файлу образа диска, куда установлен Debian (по умолчанию: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Сценарий после запуска</string>\n  <string name=\"pref_post_start_summary\">Скрипт, который необходимо запустить после загрузки Debian (по умолчанию: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Сценарий перед остановкой</string>\n  <string name=\"pref_pre_stop_summary\">Скрипт, который нужно запустить до того, как остановить Debian (default: /etc/init.d/rc 0) </string>\n  <string name=\"pref_prevent_sleep_title\">Предотвращение перехода в режим сна</string>\n  <string name=\"pref_prevent_sleep_summary\">предотвратить переход устройства в режим сна, когда работает Debian</string>\n  <string name=\"menu_jackpal_terminal_title\">Открыть Терминал…</string>\n  <string name=\"menu_preferences_title\">Настройки</string>\n  <string name=\"menu_install_log_title\">Открыть журнал установки</string>\n  <string name=\"menu_delete_title\">Удалить всё</string>\n  <string name=\"title_start\">Запустить Debian</string>\n  <string name=\"title_stop\">Остановить Debian</string>\n  <string name=\"title_configure\">Настроить образ</string>\n  <string name=\"title_status\">Состояние:</string>\n  <string name=\"doit\">Удалить установку</string>\n  <string name=\"cancel\">Отмена</string>\n  <string name=\"blank\">(пусто)</string>\n  <string name=\"confirm_delete_message\">Вы действительно хотите полностью удалить настройку Малыша Деби?</string>\n  <string name=\"release\">Версия:</string>\n  <string name=\"mirror\">Зеркало:</string>\n  <string name=\"arch\">Архитектура:</string>\n  <string name=\"image_size\">Размер образа:</string>\n  <string name=\"megabytes\">МБ</string>\n  <string name=\"install\">Установить</string>\n  <string name=\"uninstall\">Выполняется удаление …</string>\n  <string name=\"get_superuser\">Получить права Суперпользователя….</string>\n  <string name=\"needs_superuser_message\">Малышу Деби нужны права доступа root, устанавливаем Суперпользователя</string>\n  <string name=\"smaller_imagesize_message\">Недостаточно места для указанного размера образа, уменьшите размер для того, чтобы файл образа поместился на SD  карту.</string>\n  <string name=\"image_size_limit_message\">Обычно карты памяти SD не поддерживают файлы, размером более 2 Гб! Вы можете отключить это ограничение в настройках.</string>\n  <string name=\"mounted_message\">Debian смонтирован</string>\n  <string name=\"not_mounted_message\">Debian не смонтирован</string>\n  <string name=\"not_installed_message\">Debian не установлен</string>\n  <string name=\"not_configured_message\">Образ не настроен</string>\n  <string name=\"no_network_message\">Для установки требуется подключение к сети</string>\n  <string name=\"mount_point_not_found_format\">Точка монтирования \\'%s\\' не существует!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems не входит в список \\'ext2\\' в качестве поддерживаемой файловой системы.</string>\n  <string name=\"image_path_exists_message\">Внимание: в выбранном вами каталоге для файла образа уже существует файл!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Каталог, который вы выбрали, не существует! Восстанавливаем выбор по умолчанию.</string>\n  <string name=\"no_sdcard_message\">Внешнее хранилище на SD карте не смонтировано в режим чтения/записи. Без этого установка или запуск Debian невозможны.</string>\n  <string name=\"no_sdcard_status\">(нет карты SD)</string>\n  <string name=\"terminal_emulator_not_installed\">Приложение Android Terminal Emulator не установлено! Для использования этой функции вы должны удалить Малыша Деби, установить эмулятор терминала, и затем переустановить Малыша Деби.</string>\n  <string name=\"terminal_emulator_installed_after_lildebi\">ОШИБКА: Приложение Android Terminal Emulator было установлено после установки Малыша Деби! Для использования этой функции, вы должны удалить, а затем переустановить Малыша Деби.</string>\n  <string name=\"title_install_log_view\">Журнал установки</string>\n  <string name=\"title_share_button\">Поделиться</string>\n  <string name=\"starting_debian\">Запуск Debian…</string>\n  <string name=\"stopping_debian\">Остановка Debian…</string>\n  <string name=\"calculating_checksum\">Вычисляется контрольная сумма SHA1 …</string>\n  <string name=\"checksum_complete\">Контрольная сумма SHA1 вычислена!</string>\n  <string name=\"select_mirror\">Выберите зеркало</string>\n  <string name=\"select_release\">Выберите выпуск</string>\n  <string name=\"select_arch\">Выберите архитектуру ЦП</string>\n  <string name=\"app_description\">Хотите иметь легкий и надежный способ установить Debian в измененный корневой каталог - chroot? Установите Малыша Деби и у вас будет Debian, запускающийся по одному нажатию кнопки. Он создаст весь Debian chroot на вашем смартфоне, полностью используя debootstrap. Выберите версию, зеркало и размер образа диска, и все остальное приложение сделает самостоятельно. На медленных устройствах процесс может занять до часа. Весь пакет собирается из доступного, открытого источника с возможностью повторной сборки. Также каждый каждый пакет проверяется используя ключи официального репозитария Debian, которые имеются в приложении.</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Внутреннее хранилище: /data/debian (Beta)</string>\n  <string name=\"pref_install_on_internal_storage_title\">Установить во внутреннее хранилище</string>\n  <string name=\"install_in_internal_storage_summary\">Установить Debian во внутреннее хранилище: /data/debian</string>\n  <string name=\"not_enough_space\">Недостаточно свободного места (&lt; 250Мб)</string>\n</resources>\n"
  },
  {
    "path": "res/values-sk/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Vaše zariadenie nie je podporované Lil\\' Debi pre nainštalovanie Debianu. Potrebujete podporu \\\"ext2\\\" systémového súboru pre namontovanie súborov ako disk. Preto je pre vás táto aplikácia nepotrebná a odporúčame vám ju odinštalovať.</string>\n  <string name=\"uninstall_button_title\">Odinštalovať Lil\\' Debi</string>\n  <string name=\"pref_start_automatically_title\">Začať automaticky?</string>\n  <string name=\"pref_start_on_mount_summary\">Automaticky spustiť Debian vždy, keď je vaša SD karta nainštalovaná</string>\n  <string name=\"pref_use_checksum_title\">Kontrolný súčet obrazu pri štarte?</string>\n  <string name=\"pref_use_checksum_summary\">Pred spustením skontrolujte SHA1 kontrolný súčet obrazu pre overenie jeho integrity.</string>\n  <string name=\"pref_limit_to_4gb_title\">2GB limit pre obraz disku</string>\n  <string name=\"pref_image_path_title\">cesta k obrazu</string>\n  <string name=\"pref_image_path_summary\">Cesta k súboru an disku, na ktorom je Debian nainštalovaný (predvolené: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Post-štartovací skript</string>\n  <string name=\"pref_post_start_summary\">Skript, ktorý sa má spustiť po Debiane je spustený (predvolené: /etc /init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Pre-stop skript</string>\n  <string name=\"pref_pre_stop_summary\">Skript, ktorý sa má spustiť pred Debianom je zastavený (predvolené: /etc/init.d/rc 0) </string>\n  <string name=\"pref_prevent_sleep_title\">Opatriť proti zaspatiu</string>\n  <string name=\"pref_prevent_sleep_summary\">opatriť zariadenie proti zaspaniu pokiaľ bude Debian zapnutý</string>\n  <string name=\"menu_jackpal_terminal_title\">Otvoriť Terminal…</string>\n  <string name=\"menu_preferences_title\">Nastavenia</string>\n  <string name=\"menu_install_log_title\">Zobraziť inštalačný denník</string>\n  <string name=\"menu_delete_title\">Vymazať všetko</string>\n  <string name=\"title_start\">Spustiť Debian</string>\n  <string name=\"title_stop\">Zastaviť Debian</string>\n  <string name=\"title_configure\">Konfigurovať obraz</string>\n  <string name=\"title_status\">Stav:</string>\n  <string name=\"doit\">Vymazať nastavenia</string>\n  <string name=\"cancel\">Zrušiť</string>\n  <string name=\"confirm_delete_message\">Ste si istý, že chcete vymazať všetky nastavenia Lil\\' Debi?</string>\n  <string name=\"release\">Vydanie:</string>\n  <string name=\"mirror\">Zrkadlo:</string>\n  <string name=\"arch\">Arch:</string>\n  <string name=\"image_size\">Velkosť obrazu:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Inštalovať</string>\n  <string name=\"uninstall\">Odinštalovať…</string>\n  <string name=\"get_superuser\">Získať superužívateľa…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi potrebuje superužívateľský prístup, inštalujte Superuser aplikáciu</string>\n  <string name=\"smaller_imagesize_message\">Nie je dostatok priestoru pre zadanú veľkosť obrazu, znížte veľkosť obrazu aby sa zmestil na SD kartu</string>\n  <string name=\"mounted_message\">Debian nainštalovaný</string>\n  <string name=\"not_mounted_message\">Debian nenainštalovaný</string>\n  <string name=\"not_installed_message\">Debian nenainštalovaný</string>\n  <string name=\"not_configured_message\">Obraz nenakonfigurovaný</string>\n  <string name=\"no_network_message\">Sieť potrebná pre inštaláciu</string>\n  <string name=\"mount_point_not_found_format\">Bod slúžiaci na nainštalovanie \\'%s\\' neexistuje!</string>\n  <string name=\"no_ext2_message\">/proc/systémový súbor nezahŕňa \\'ext2\\' ako podporovaný systémový súbor</string>\n  <string name=\"image_path_exists_message\">Upozornenie: na ceste k obrazu, ktorú ste zvolili už existuje súbor!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Zvolený priečinok neexistuje! Obnovte na predvolené.</string>\n  <string name=\"no_sdcard_message\">Externé úložisko SD karty nie je nainštalované spôsobom read/write, nemožno bez toho Debian nainštalovať</string>\n  <string name=\"no_sdcard_status\">(žiadna SD karta)</string>\n  <string name=\"title_install_log_view\">denník inštalácie</string>\n  <string name=\"title_share_button\">Zdielať</string>\n  <string name=\"starting_debian\">Spustený Debian ..</string>\n  <string name=\"stopping_debian\">Zastavený Debian…</string>\n  <string name=\"calculating_checksum\">Výpočet SHA1 kontrolného súčtu…</string>\n  <string name=\"checksum_complete\">SHA1 kontrolného súčtu dokončené!</string>\n  <string name=\"select_mirror\">Zvoľte zrkadlo</string>\n  <string name=\"select_release\">Zvoľte vydanie</string>\n  <string name=\"select_arch\">Zvoľte architektúru procesora</string>\n</resources>\n"
  },
  {
    "path": "res/values-sl/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Lil\\' Debi ne podpira vaše naprave. Mora podpirati \\\"ext2\\\" datotečni sistem in povratno priklapljanje datotek kot diskov. Zato smatramo, da je ta aplikacija za vas neuporabna in vam svetujemo, da jo odstranite.</string>\n  <string name=\"uninstall_button_title\">Odstrani Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Samodejno zaženi Debian ob priklopu SD kartice</string>\n  <string name=\"pref_use_checksum_title\">Izračunam kontrolni seštevek slike ob začetku? </string>\n  <string name=\"pref_use_checksum_summary\">Pred zagonom preveri integriteto slike s primerjavo SHA1 rezultatov.</string>\n  <string name=\"pref_image_path_title\">Pot do slike</string>\n  <string name=\"pref_image_path_summary\">Pot do slike diska, kjer je nameščen Debian (privzeta: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Pozagonska skripta</string>\n  <string name=\"pref_post_start_summary\">Skripta, ki se zažene po zagonu Debiana (privzeta: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Skripta pred zaustavitvijo</string>\n  <string name=\"pref_pre_stop_summary\">Skripta, ki se zažene pred zaustavitvijo Debiana (privzeta: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Prepreči spanje</string>\n  <string name=\"pref_prevent_sleep_summary\">Prepreči napravi, da bi šla v spanje medtem kot je Debian zagnan</string>\n  <string name=\"menu_install_log_title\">Prikaži namestitveni dnevnik</string>\n  <string name=\"menu_delete_title\">Zbriši vse</string>\n  <string name=\"title_start\">Zaženi Debian</string>\n  <string name=\"title_stop\">Ustavi Debian</string>\n  <string name=\"title_configure\">Nastavi sliko</string>\n  <string name=\"title_status\">Stanje:</string>\n  <string name=\"doit\">Zbriši namestitev</string>\n  <string name=\"cancel\">Prekini</string>\n  <string name=\"confirm_delete_message\">Ali ste prepričani, da želite zbrisati celotno Lil\\' Debi namestitev?</string>\n  <string name=\"release\">Izdaja:</string>\n  <string name=\"mirror\">Zrcalni strežnik:</string>\n  <string name=\"arch\">Arhitektura:</string>\n  <string name=\"image_size\">Velikost slike:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Namesti</string>\n  <string name=\"uninstall\">Odstranjevanje …</string>\n  <string name=\"get_superuser\">Pridobi Superuser …</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi potrebuje nadzorniški dostop, namesti Superuser aplikacijo</string>\n  <string name=\"smaller_imagesize_message\">Ni dovolj prostora na SD kartici za želeno velikost slike, samodejno bo prilagojena - zmanjšana</string>\n  <string name=\"mounted_message\">Debian priklopljen</string>\n  <string name=\"not_mounted_message\">Debian ni priklopljen</string>\n  <string name=\"not_installed_message\">Debian ni nameščen</string>\n  <string name=\"not_configured_message\">Slika ni nastavljena</string>\n  <string name=\"no_network_message\">Omrežje je zahtevano za namestitev</string>\n  <string name=\"mount_point_not_found_format\">Točka priklopa \\'%s\\' ne obstaja!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems ne vsebuje \\'ext2\\' kot podprt sistem</string>\n  <string name=\"image_path_exists_message\">Opozorilo: slika z istim imenom in potjo že obstaja!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Datoteka, ki ste jo izbrali ne obstaja! Ponastavljam na privzeto.</string>\n  <string name=\"no_sdcard_message\">Zunanja SD kartica ni priklopljena, ni moč namestiti ali zagnati Debiana brez priklopa.</string>\n  <string name=\"no_sdcard_status\">(ni SD kartice)</string>\n  <string name=\"title_install_log_view\">Namestitveni dnevnik</string>\n  <string name=\"title_share_button\">Deli</string>\n  <string name=\"starting_debian\">Debian zagnan …</string>\n  <string name=\"stopping_debian\">Debian zaustavljen …</string>\n  <string name=\"calculating_checksum\">Računam SHA1 rezultat …</string>\n  <string name=\"checksum_complete\">SHA1 rezultat izračunan!</string>\n  <string name=\"select_mirror\">Izberi zrcalni strežnik</string>\n  <string name=\"select_release\">Izberi izdajo</string>\n  <string name=\"select_arch\">Izberi arhitekturo CPE</string>\n</resources>\n"
  },
  {
    "path": "res/values-tr/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Cihazınız Debian kurulumu için Lil\\' Debi tarafından desteklenmemektedir. Lil\\' Debi \\\"ext2\\\" dosya sistemini desteğine ve disk üzerindeki bağlanmış dosyaların döngü sınamasına ihtiyaç duyar. Bu nedenle, bu uygulama sizin için kullanışsız, uygulamayı kaldırmanızı öneririz.</string>\n  <string name=\"uninstall_button_title\">Lil\\' Debi\\'yi kaldır</string>\n  <string name=\"pref_start_automatically_title\">Otomatik Başlatma?</string>\n  <string name=\"pref_start_on_mount_summary\">SD kartınız bağlandığında Debian otomatik olarak başlatılır.</string>\n  <string name=\"pref_start_on_boot_summary\">Android önyüklendiğinde Debian otomatik olarak başatılır</string>\n  <string name=\"pref_use_checksum_title\">Başlangıçta imaj doğrulaması yapılsın mı?</string>\n  <string name=\"pref_use_checksum_summary\">Başlatmadan önce , SHA1\\'in görünüm bütünlük saglamlıgının tam oldugunu denetleyin.</string>\n  <string name=\"pref_limit_to_4gb_title\">2GB İmaj Limiti</string>\n  <string name=\"pref_limit_to_4gb_summary\">Çoğu SD Kart dosya limiti 2GB olan FAT dosya sistemine sahiptir.</string>\n  <string name=\"pref_image_path_title\">İmaj yolu</string>\n  <string name=\"pref_image_path_summary\">Debian\\'ın yüklendigi disk imaj uzantısı (Varsayılan: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Başlanıç Sonrası Betiği</string>\n  <string name=\"pref_post_start_summary\">Debian başladıktan sonra betiği çalıştırın (varsayılan: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Durdurma Öncesi Betiği</string>\n  <string name=\"pref_pre_stop_summary\">Debian durdurulmadan önce betiği çalıştırın (varsayılan: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Uyku moduna geçmeyi önleyin</string>\n  <string name=\"pref_prevent_sleep_summary\">Debian çalışırken cihazın uyku moduna geçmesini engelleyin</string>\n  <string name=\"menu_jackpal_terminal_title\">Terminal Aç…</string>\n  <string name=\"menu_preferences_title\">Ayarlar</string>\n  <string name=\"menu_install_log_title\">Yükleme kaydını görün</string>\n  <string name=\"menu_delete_title\">Hepsini sil</string>\n  <string name=\"title_start\">Debian\\'ı başlat</string>\n  <string name=\"title_stop\">Debian\\'ı durdur</string>\n  <string name=\"title_configure\">Görüntü ayarla</string>\n  <string name=\"title_status\">Durum:</string>\n  <string name=\"doit\">Kurulumu sil</string>\n  <string name=\"cancel\">İptal</string>\n  <string name=\"blank\">(boş)</string>\n  <string name=\"confirm_delete_message\">Bütün Lil\\' Debi kurulumunu silmek istediginizden emin misiniz ?</string>\n  <string name=\"release\">Yayın izni:</string>\n  <string name=\"mirror\">Yansıma:</string>\n  <string name=\"arch\">Baş:</string>\n  <string name=\"image_size\">İmaj Boyutu:</string>\n  <string name=\"megabytes\">MegaByte</string>\n  <string name=\"install\">Yükle</string>\n  <string name=\"uninstall\">Kaldır</string>\n  <string name=\"get_superuser\">Superuser uygulamasını yükle…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi root yetkilerine ihtiyaç duyar, Yetkili kullanıcı uygulamasını yükleyin</string>\n  <string name=\"smaller_imagesize_message\">Belirtilen görüntü boyutu için hafızada yeterince yer yok , SD Kart\\'a sığdırmak için boyut küçültülüyor</string>\n  <string name=\"image_size_limit_message\">SD Kartlar genelde 2GB\\'tan fazla olan dosyaları desteklemez! Ayarlardan bu limiti kapatabilirsiniz.</string>\n  <string name=\"mounted_message\">Debian bağlı durumda</string>\n  <string name=\"not_mounted_message\">Debian bağlı durumda değil</string>\n  <string name=\"not_installed_message\">Debian yüklü değil</string>\n  <string name=\"not_configured_message\">Görüntü ayarlanmamış</string>\n  <string name=\"no_network_message\">Yükleme için internet ağı gerekli</string>\n  <string name=\"mount_point_not_found_format\">Bağlantı noktası \\'%s\\' mevcut değil!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems does not list \\'ext2\\' as a supported filesystem</string>\n  <string name=\"image_path_exists_message\">Uyarı: Önceden seçilmiş olan imaj uzantı yolu zaten mevcut !</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Seçtiğiniz klasör bulunamamaktadır! Varsayılanı yeniden oluşturunuz .</string>\n  <string name=\"no_sdcard_message\">Harici Depolama SD Karta okuma/yazma için bağlanılamadı, Debian olmadan kuramaz ya da başlatamazınız.</string>\n  <string name=\"no_sdcard_status\">(SD card mevcut değil)</string>\n  <string name=\"terminal_emulator_not_installed\">Android Terminal Emulator yüklü değil! Bu özelliği kullanabilmek için Lil\\' Debi kaldırımalı, Terminal Emülator yüklenmeli ve Lil\\' Debi tekrar kurulmalıdır.</string>\n  <string name=\"terminal_emulator_installed_after_lildebi\">HATA: Lil\\' Debi, Terminal Emülatörden önce kurulmuş!  Bu özelliği kullanabilmek için Lil\\' Debi kaldırılıp tekrar kurulmalıdır.</string>\n  <string name=\"title_install_log_view\">Kayıtları yükle</string>\n  <string name=\"title_share_button\">Paylaş</string>\n  <string name=\"starting_debian\">Debian başlatıldı…</string>\n  <string name=\"stopping_debian\">Debian durduruldu….</string>\n  <string name=\"calculating_checksum\">SHA1 sağlaması hesaplanıyor …</string>\n  <string name=\"checksum_complete\">SHA1 sağlaması hazır!</string>\n  <string name=\"select_mirror\">Yansımayı seçiniz</string>\n  <string name=\"select_release\">Sürüm seçiniz</string>\n  <string name=\"select_arch\">İşlemci mimarisini seçiniz</string>\n  <string name=\"pref_install_on_internal_storage_summary\">Dahili Depolama: /data/debian (Beta)</string>\n  <string name=\"pref_install_on_internal_storage_title\">Dahili Depolama\\'ya yükle</string>\n  <string name=\"install_in_internal_storage_summary\">Debian\\'ı Dahili Depolama\\'ya yükleyin: /data/debian</string>\n  <string name=\"not_enough_space\">Yeterli alan yok (&lt; 250MB)</string>\n</resources>\n"
  },
  {
    "path": "res/values-vi/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\">Thiết bị của bạn không được hỗ trợ bởi chương trình cho việc cài đặt Debian. Hệ thống cần hỗ trợ tập tin dạng \\\"ext2\\\" và cơ chế lặp trong việc kết nối các tập tin dưới dạng ổ đĩa ảo. Bởi thế, bạn không thể làm gì với ứng dụng này, bạn nên gỡ bỏ ứng dụng này là tốt nhất.</string>\n  <string name=\"uninstall_button_title\">Gỡ bỏ Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">Tự động khởi động Debian khi thẻ nhớ của bạn được kết nối</string>\n  <string name=\"pref_use_checksum_title\">Hình ảnh checksum khi khởi động?</string>\n  <string name=\"pref_use_checksum_summary\">Trước khi boot, kiểm tra mã checksum SHA1 để xác nhận tính kết nối.</string>\n  <string name=\"pref_image_path_title\">Đường dẫn ổ đĩa ảo</string>\n  <string name=\"pref_image_path_summary\">Đường dẫn tới tập tin ổ đĩa ảo mà Debian được cài đặt vào (mặc định: /sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">Script trước-khởi động</string>\n  <string name=\"pref_post_start_summary\">Script để chạy sau khi Debian được khởi động (mặc định: /etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">Script trước khi-dừng lại</string>\n  <string name=\"pref_pre_stop_summary\">Script để chạy trước khi Debian được dừng lại (mặc định: /etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">Ngăn cản chế độ tắt màn hình</string>\n  <string name=\"pref_prevent_sleep_summary\">ngăn cản thiết bị tắt màn hình khi Debian đang chạy</string>\n  <string name=\"menu_install_log_title\">Xem nhật ký cài đặt</string>\n  <string name=\"menu_delete_title\">Xóa tất cả</string>\n  <string name=\"title_start\">Bắt đầu Debian</string>\n  <string name=\"title_stop\">Dừng lại Debian</string>\n  <string name=\"title_configure\">Chỉnh sửa ổ đĩa</string>\n  <string name=\"title_status\">Trạng thái:</string>\n  <string name=\"doit\">Xóa Cài đặt</string>\n  <string name=\"cancel\">Hủy bỏ</string>\n  <string name=\"confirm_delete_message\">Bạn có chắc muốn xóa toàn bộ cài đặt từ Lil\\'Debi?</string>\n  <string name=\"release\">Phiên bản:</string>\n  <string name=\"mirror\">Bản sao:</string>\n  <string name=\"arch\">Arch:</string>\n  <string name=\"image_size\">Kích thước ổ đĩa ảo:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">Cài đặt</string>\n  <string name=\"uninstall\">Gỡ cài đặt…</string>\n  <string name=\"get_superuser\">Quyền Superuser…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi cần quyền truy cập Superuser, cài ứng dụng Superuser vào</string>\n  <string name=\"smaller_imagesize_message\">Không đủ chỗ trống cho định dạng ổ đĩa, giảm kích thước để có thể chứa vào thẻ nhớ</string>\n  <string name=\"mounted_message\">Đã kết nối với Debian</string>\n  <string name=\"not_mounted_message\">Debian chưa được kết nối</string>\n  <string name=\"not_installed_message\">Debian chưa được cài đặt</string>\n  <string name=\"not_configured_message\">Ổ đĩa ảo chưa được cấu hình</string>\n  <string name=\"no_network_message\">Yêu cầu kết nối mạng khi cài</string>\n  <string name=\"mount_point_not_found_format\">Điểm kết nối \\'%s\\' không tồn tại!</string>\n  <string name=\"no_ext2_message\">/proc/filesystems không liệt kê \\'ext2\\' dưới dạng tập tin được hỗ trợ bởi hệ thống</string>\n  <string name=\"image_path_exists_message\">Cảnh báo: đã tồn tại một tập tin trong đường dẫn đến ổ đĩa ảo mà bạn đã chọn!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">Thư mục bạn chọn không tồn tại! Thiết lập lại thông số theo mặc định.</string>\n  <string name=\"no_sdcard_message\">Thẻ nhớ không thể tiếp cận ổ đĩa ảo, không thể cài đặt hoặc khởi động Debian mà không có phần này.</string>\n  <string name=\"no_sdcard_status\">(không có thẻ nhớ)</string>\n  <string name=\"title_install_log_view\">Nhật ký cài đặt</string>\n  <string name=\"title_share_button\">Chia sẻ</string>\n  <string name=\"starting_debian\">Đã bắt đầu Debian…</string>\n  <string name=\"stopping_debian\">Đã dừng lại Debian…</string>\n  <string name=\"calculating_checksum\">Đang tính toán checksum SHA1…</string>\n  <string name=\"checksum_complete\">Đã hoàn tất việc kiểm tra checksum SHA1!</string>\n  <string name=\"select_mirror\">Chọn bản sao</string>\n  <string name=\"select_release\">Chọn phiên bản</string>\n  <string name=\"select_arch\">Chọn cấu trúc CPU</string>\n</resources>\n"
  },
  {
    "path": "res/values-zh-rCN/strings.xml",
    "content": "<?xml version='1.0' encoding='UTF-8'?>\n<resources>\n  <string name=\"app_name\">Lil\\' Debi</string>\n  <string name=\"unsupported_device_body\"> Lil\\' Debi 不支持在您的设备上安装 Debian。 \\n它必须支持 \\\"ext2\\\" 文件系统及 loopback 设备挂载文件为磁盘。因此，本程序对您无用，建议卸载。</string>\n  <string name=\"uninstall_button_title\">卸载 Lil\\' Debi</string>\n  <string name=\"pref_start_on_mount_summary\">插入 SD 卡时自动启动 Debian</string>\n  <string name=\"pref_use_checksum_title\">启动时校验映像?</string>\n  <string name=\"pref_use_checksum_summary\">启动前，检查映像的 SHA1 校验值，验证映像的完整性。</string>\n  <string name=\"pref_image_path_title\">映像位置</string>\n  <string name=\"pref_image_path_summary\">安装了 Debian 的磁盘映像文件的路径(默认：/sdcard/debian.img)</string>\n  <string name=\"pref_post_start_title\">”启动后“脚本</string>\n  <string name=\"pref_post_start_summary\">Debian 启动后运行的脚本(默认：/etc/init.d/rc 2)</string>\n  <string name=\"pref_pre_stop_title\">“关闭前”脚本</string>\n  <string name=\"pref_pre_stop_summary\">Debian 关闭前运行的脚本(默认：/etc/init.d/rc 0)</string>\n  <string name=\"pref_prevent_sleep_title\">阻止休眠</string>\n  <string name=\"pref_prevent_sleep_summary\">Debian 运行时阻止设备休眠</string>\n  <string name=\"menu_install_log_title\">查看安装日志</string>\n  <string name=\"menu_delete_title\">删除全部</string>\n  <string name=\"title_start\">启动 Debian</string>\n  <string name=\"title_stop\">关闭 Debian</string>\n  <string name=\"title_configure\">配置映像</string>\n  <string name=\"title_status\">状态：</string>\n  <string name=\"doit\">删除 Debian</string>\n  <string name=\"cancel\">取消</string>\n  <string name=\"confirm_delete_message\">您确定要删除 Lil\\' Debi 安装的整个Debian吗?</string>\n  <string name=\"release\">发行版：</string>\n  <string name=\"mirror\">镜像:</string>\n  <string name=\"arch\">构架:</string>\n  <string name=\"image_size\">映像大小:</string>\n  <string name=\"megabytes\">MB</string>\n  <string name=\"install\">安装</string>\n  <string name=\"uninstall\">卸载…</string>\n  <string name=\"get_superuser\">获取 超级用户…</string>\n  <string name=\"needs_superuser_message\">Lil\\' Debi 需要超级用户访问权限，请安装 超级用户 程序</string>\n  <string name=\"smaller_imagesize_message\">没有足够的空间建立指定大小的映像，请减小体积以适合 SD 卡的空间</string>\n  <string name=\"mounted_message\">Debian 已挂载</string>\n  <string name=\"not_mounted_message\">Debian 未挂载</string>\n  <string name=\"not_installed_message\">Debian 未安装</string>\n  <string name=\"not_configured_message\">映像尚未配置</string>\n  <string name=\"no_network_message\">安装需要网络连接</string>\n  <string name=\"mount_point_not_found_format\">挂载点“%s”不存在! </string>\n  <string name=\"no_ext2_message\">/proc/filesystems 未将 \\'ext2\\' 列为支持的文件系统</string>\n  <string name=\"image_path_exists_message\">警告: 您所选择的映像位置已存在文件!</string>\n  <string name=\"image_path_parent_does_not_exist_message\">您选择的文件夹不存在! 已恢复默认值。</string>\n  <string name=\"no_sdcard_message\">外部存储 SD 卡没有按可读可写模式挂载，权限不对无法安装或启动 Debian。</string>\n  <string name=\"no_sdcard_status\">(无 SD 卡)</string>\n  <string name=\"title_install_log_view\">安装日志</string>\n  <string name=\"title_share_button\">分享</string>\n  <string name=\"starting_debian\">已启动 Debian …</string>\n  <string name=\"stopping_debian\">已关闭 Debian …</string>\n  <string name=\"calculating_checksum\">正在计算 SHA1 校验值…</string>\n  <string name=\"checksum_complete\">SHA1 校验完成!</string>\n  <string name=\"select_mirror\">选择镜像服务器</string>\n  <string name=\"select_release\">选择发行版</string>\n  <string name=\"select_arch\">选择 CPU 构架</string>\n</resources>\n"
  },
  {
    "path": "res/xml/preferences.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n    <CheckBoxPreference\n        android:defaultValue=\"false\"\n        android:key=\"@string/pref_start_automatically_key\"\n        android:summary=\"@string/pref_start_on_mount_summary\"\n        android:title=\"@string/pref_start_automatically_title\" />\n    <CheckBoxPreference\n        android:defaultValue=\"false\"\n        android:key=\"@string/pref_prevent_sleep_key\"\n        android:summary=\"@string/pref_prevent_sleep_summary\"\n        android:title=\"@string/pref_prevent_sleep_title\" />\n    <CheckBoxPreference\n        android:defaultValue=\"false\"\n        android:key=\"@string/pref_install_on_internal_storage_key\"\n        android:summary=\"@string/pref_install_on_internal_storage_summary\"\n        android:title=\"@string/pref_install_on_internal_storage_title\" />\n    <CheckBoxPreference\n        android:defaultValue=\"true\"\n        android:key=\"@string/pref_limit_to_4gb_key\"\n        android:summary=\"@string/pref_limit_to_4gb_summary\"\n        android:title=\"@string/pref_limit_to_4gb_title\" />\n    <CheckBoxPreference\n        android:defaultValue=\"false\"\n        android:key=\"@string/pref_use_checksum_key\"\n        android:summary=\"@string/pref_use_checksum_summary\"\n        android:title=\"@string/pref_use_checksum_title\" />\n\n    <EditTextPreference\n        android:defaultValue=\"@string/default_image_path\"\n        android:inputType=\"textNoSuggestions\"\n        android:key=\"@string/pref_image_path_key\"\n        android:summary=\"@string/pref_image_path_summary\"\n        android:title=\"@string/pref_image_path_title\" />\n    <EditTextPreference\n        android:defaultValue=\"@string/default_post_start_script\"\n        android:inputType=\"textNoSuggestions\"\n        android:key=\"@string/pref_post_start_key\"\n        android:summary=\"@string/pref_post_start_summary\"\n        android:title=\"@string/pref_post_start_title\" />\n    <EditTextPreference\n        android:defaultValue=\"@string/default_pre_stop_script\"\n        android:inputType=\"textNoSuggestions\"\n        android:key=\"@string/pref_pre_stop_key\"\n        android:summary=\"@string/pref_pre_stop_summary\"\n        android:title=\"@string/pref_pre_stop_title\" />\n\n</PreferenceScreen>"
  },
  {
    "path": "setup-ant",
    "content": "#!/bin/sh\n\nif ! which android > /dev/null; then\n    if [ -z $ANDROID_HOME ]; then\n        if [ -e ~/.android/bashrc ]; then\n            . ~/.android/bashrc\n        else\n            echo \"'android' not found, ANDROID_HOME must be set!\"\n            exit\n        fi\n    else\n        export PATH=\"${ANDROID_HOME}/tools:$PATH\"\n    fi\nfi\n\nprojectname=`sed -n 's,.*name=\"app_name\">\\(.*\\)<.*,\\1,p' res/values/strings.xml | sed 's,\\W,,g'`\n\n# fetch target from project.properties\neval `grep '^target=' project.properties`\n\necho \"Setting up build for $projectname\"\necho \"\"\n\nfor f in `find * -name project.properties`; do\n    projectdir=`dirname $f`\n    echo \"Updating ant setup in $projectdir:\"\n    android update lib-project -p $projectdir -t $target\ndone\nandroid update project -p . --subprojects --name \"$projectname\" --target $target\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/BootCompletedReceiver.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.File;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.SharedPreferences;\nimport android.preference.PreferenceManager;\n\npublic class BootCompletedReceiver {\n\n    private LilDebiAction action;\n\n    public void onReceive(Context context, Intent intent) {\n        SharedPreferences prefs = PreferenceManager\n                .getDefaultSharedPreferences(context);\n\n        if (NativeHelper.installInInternalStorage && !NativeHelper.isStarted()) {\n            if (prefs.getBoolean(\n                    context.getString(R.string.pref_start_automatically_key), false)) {\n                if (new File(NativeHelper.image_path).exists()\n                        && new File(NativeHelper.mnt).exists()) {\n                    action = new LilDebiAction(context, null);\n                    action.startDebian();\n                }\n            }\n        }\n\n    }\n\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/InstallActivity.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.BroadcastReceiver;\nimport android.content.ComponentName;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.IntentFilter;\nimport android.content.ServiceConnection;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.os.IBinder;\nimport android.os.PowerManager;\nimport android.text.Editable;\nimport android.text.TextWatcher;\nimport android.util.Log;\nimport android.view.Menu;\nimport android.view.MenuInflater;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.Window;\nimport android.widget.Button;\nimport android.widget.EditText;\nimport android.widget.ScrollView;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\nimport org.apache.commons.io.FileUtils;\n\nimport java.io.BufferedReader;\nimport java.io.DataInputStream;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\n\npublic class InstallActivity extends Activity implements View.OnCreateContextMenuListener {\n    public static final String TAG = \"InstallActivity\";\n\n    public static final String RELEASE = \"RELEASE\";\n    public static final String MIRROR = \"MIRROR\";\n    public static final String ARCH = \"ARCH\";\n    public static final String IMAGESIZE = \"IMAGESIZE\";\n\n    private TextView selectedRelease;\n    private TextView selectedMirror;\n    private TextView selectedArch;\n    private TextView imageSizeText;\n    private TextView megaBytes;\n    private EditText imagesize;\n    private InstallService mBoundService;\n    private PowerManager.WakeLock wl;\n    private static int MinimumFreeSize = 250;\n    private String installButtonText;\n\n    private ServiceConnection mConnection = new ServiceConnection() {\n        public void onServiceConnected(ComponentName className, IBinder service) {\n            mBoundService = ((InstallService.LocalBinder) service).getService();\n            Log.i(LilDebi.TAG, \"calling serviceBound\");\n            wireButtons();\n        }\n\n        public void onServiceDisconnected(ComponentName className) {\n            mBoundService = null;\n            unwireButtons();\n            setProgressBarIndeterminateVisibility(false);\n        }\n    };\n    private boolean mIsBound;\n    private Button installButton;\n    private TextView installLog;\n    private ScrollView textScroll;\n    private Handler handler;\n    private BroadcastReceiver installLogUpdateRec;\n    private BroadcastReceiver installFinishedRec;\n\n    void doBindService() {\n        Log.i(LilDebi.TAG, \"bindService\");\n        bindService(new Intent(this, InstallService.class), mConnection,\n                Context.BIND_AUTO_CREATE);\n        mIsBound = true;\n    }\n\n    void doUnbindService() {\n        if (mIsBound) {\n            unbindService(mConnection);\n            mIsBound = false;\n        }\n    }\n\n    /** Called when the activity is first created. */\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);\n        setContentView(R.layout.install_activity);\n        selectedRelease = (TextView) findViewById(R.id.selectedRelease);\n        selectedMirror = (TextView) findViewById(R.id.selectedMirror);\n        selectedArch = (TextView) findViewById(R.id.selectedArch);\n        imageSizeText = (TextView) findViewById(R.id.imagesizetext);\n        imagesize = (EditText) findViewById(R.id.imagesize);\n        megaBytes = (TextView) findViewById(R.id.megabytes);\n        installButton = (Button) findViewById(R.id.installButton);\n        installButtonText = installButton.getText().toString();\n        installLog = (TextView) findViewById(R.id.installLog);\n        textScroll = (ScrollView) findViewById(R.id.textScroll);\n        handler = new Handler();\n\n        if (NativeHelper.installInInternalStorage) {\n            imageSizeText.setVisibility(View.GONE);\n            imagesize.setVisibility(View.GONE);\n            megaBytes.setVisibility(View.GONE);\n        } else {\n            imageSizeText.setVisibility(View.VISIBLE);\n            imagesize.setVisibility(View.VISIBLE);\n            megaBytes.setVisibility(View.VISIBLE);\n        }\n\n        PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n        wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"InstallWakeLock\");\n\n        // make sure the user can't set the image size greater than the total free space\n        imagesize.addTextChangedListener(new TextWatcher() {\n            public void afterTextChanged(Editable s) {\n                try {\n                    installButton.setEnabled(true);\n                    if (NativeHelper.installInInternalStorage)\n                        minimumFreeSizeTest(NativeHelper.getInstallPathFreeMegaBytes());\n                    else\n                        setImageSizeInMB(Long.parseLong(imagesize.getText().toString()));\n\n                } catch (NumberFormatException e) {\n                    // this means we got blank value or something like that\n                    installButton.setEnabled(false);\n                }\n            }\n            public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\n            public void onTextChanged(CharSequence s, int start, int before, int count) {}\n        });\n    }\n\n    @Override\n    protected void onResume() {\n        super.onResume();\n        wl.acquire();\n        if (!isExt2Supported()) {\n            unwireButtons();\n            renameInstallButton(R.string.uninstall);\n            installButton.requestFocus();\n            installButton.setOnClickListener(new View.OnClickListener() {\n                public void onClick(View view) {\n                    UnsupportedDeviceActivity.callMe(InstallActivity.this);\n                }\n            });\n        } else {\n            if (!NativeHelper.isInstallRunning) {\n                // make sure the default image size isn't larger than the SDcard's free space\n                if (NativeHelper.installInInternalStorage) {\n                    minimumFreeSizeTest(NativeHelper.getInstallPathFreeMegaBytes());\n                } else {\n                    long size = 0;\n                    try {\n                        size = Integer.parseInt(imagesize.getText().toString());\n                    } catch (NumberFormatException e) {\n                        e.printStackTrace();\n                        /*\n                         * This means we got blank value or something like that, and\n                         * the install button should already have been disabled\n                         * before the Activity was paused.\n                         */\n                    }\n                    setImageSizeInMB(size);\n                }\n            }\n            refreshButtons();\n            doBindService();\n            installButton.requestFocus();\n            /* display existing log file */\n            new AsyncTask<Void, Void, Void>() {\n                private final StringBuilder log = new StringBuilder();\n\n                @Override\n                protected Void doInBackground(Void... params) {\n                    try {\n                        BufferedReader r = new BufferedReader(new FileReader(\n                                NativeHelper.install_log));\n                        String line;\n                        while ((line = r.readLine()) != null) {\n                            log.append(line + \"\\n\");\n                        }\n                        r.close();\n                    } catch (FileNotFoundException e) {\n                        e.printStackTrace();\n                    } catch (IOException e) {\n                        e.printStackTrace();\n                    }\n                    return null;\n                }\n\n                @Override\n                protected void onPostExecute(Void result) {\n                    super.onPostExecute(result);\n                    installLog.setText(log.toString());\n                }\n            }.execute();\n        }\n    }\n\n    @Override\n    public void onBackPressed() {\n        if (!NativeHelper.isInstallRunning)\n            super.onBackPressed();\n    }\n\n    @Override\n    protected void onPause() {\n        super.onPause();\n        doUnbindService();\n        wl.release();\n    }\n\n    private void setImageSizeInMB(long requestedSize) {\n        boolean changedSize = false;\n        // adjust size is request is bigger than available space\n        int resId = R.string.smaller_imagesize_message;\n        long freeSize = NativeHelper.getInstallPathFreeMegaBytes();\n        if (freeSize < requestedSize) {\n            requestedSize = freeSize - 10; // leave 10MB free\n            changedSize = true;\n        }\n        // FAT has a 4gb - 1 byte file size limit\n        //long sizeLimit = (4 * 1024) - 1;\n        // busybox without CONFIG_LFS has a 2000MB limit\n        long sizeLimit = 2000;\n        if (NativeHelper.limitTo4GB && requestedSize > sizeLimit) {\n            resId = R.string.image_size_limit_message;\n            requestedSize = sizeLimit;\n            changedSize = true;\n        }\n        if (changedSize) {\n            Toast.makeText(getApplicationContext(), resId, Toast.LENGTH_LONG).show();\n            imagesize.setText(String.valueOf(requestedSize));\n        }\n\n        minimumFreeSizeTest(requestedSize);\n    }\n\n    private void minimumFreeSizeTest(long requestedSize) {\n        if (requestedSize < MinimumFreeSize) {\n            installButton.setEnabled(false);\n            installButton.setText(R.string.not_enough_space);\n        } else {\n            installButton.setEnabled(true);\n            installButton.setText(installButtonText);\n        }\n    }\n\n    private void writeInstallConf() {\n        String conf = new String();\n        conf += \"release=\" + selectedRelease.getText().toString() + \"\\n\";\n        conf += \"mirror=http://\" + selectedMirror.getText().toString() + \"/debian/\\n\";\n        conf += \"arch=\" + selectedArch.getText().toString() + \"\\n\";\n        conf += \"imagesize=\" + imagesize.getText().toString() + \"\\n\";\n        conf += \"LANG=\" + NativeHelper.getLANG() + \"\\n\";\n\n        try {\n            FileUtils.writeStringToFile(NativeHelper.install_conf, conf);\n        } catch (IOException e) {\n            String msg = \"Failed to write install config: \"    + NativeHelper.install_conf;\n            Log.e(TAG, msg);\n            LilDebiAction.log.append(msg + \"\\n\");\n            e.printStackTrace();\n        }\n    }\n\n    private void wireButtons() {\n        installButton.setOnClickListener(new View.OnClickListener() {\n            public void onClick(View view) {\n                registerReceivers();\n                setProgressBarIndeterminateVisibility(true);\n                setResult(NativeHelper.STARTING_INSTALL);\n                writeInstallConf();\n                Intent intent = new Intent(InstallActivity.this, InstallService.class);\n                startService(intent);\n                Log.i(TAG, \"Starting install service\");\n                handler.postDelayed(new Runnable() {\n                    public void run() {\n                        refreshButtons();\n                    }\n                }, 300);\n            }\n        });\n\n        selectedRelease.setOnClickListener(new View.OnClickListener() {\n            public void onClick(View view) {\n                SelectRelease.callMe(InstallActivity.this);\n            }\n        });\n\n        selectedMirror.setOnClickListener(new View.OnClickListener() {\n            public void onClick(View view) {\n                SelectMirror.callMe(InstallActivity.this);\n            }\n        });\n\n        selectedArch.setOnClickListener(new View.OnClickListener() {\n            public void onClick(View view) {\n                SelectArch.callMe(InstallActivity.this);\n            }\n        });\n\n        refreshButtons();\n    }\n\n    private void registerReceivers() {\n            installLogUpdateRec = new BroadcastReceiver() {\n                @Override\n                public void onReceive(Context context, Intent intent) {\n                    installLog.append(intent.getExtras().getString(Intent.EXTRA_TEXT));\n                    textScroll.fullScroll(View.FOCUS_DOWN);\n                }\n            };\n            registerReceiver(installLogUpdateRec,\n                    new IntentFilter(InstallService.INSTALL_LOG_UPDATE));\n\n            installFinishedRec = new BroadcastReceiver() {\n                @Override\n                public void onReceive(Context context, Intent intent) {\n                    intent.setAction(Intent.ACTION_VIEW);\n                    intent.setClass(getApplicationContext(), LilDebi.class);\n                    startActivity(intent);\n                    finish();\n                    unregisterReceivers();\n                }\n            };\n            registerReceiver(installFinishedRec,\n                    new IntentFilter(InstallService.INSTALL_FINISHED));\n    }\n\n    private void unregisterReceivers() {\n        if (installLogUpdateRec != null)\n            unregisterReceiver(installLogUpdateRec);\n\n        if (installFinishedRec != null)\n            unregisterReceiver(installFinishedRec);\n    }\n\n    private void unwireButtons() {\n        selectedRelease.setEnabled(false);\n        selectedMirror.setEnabled(false);\n        selectedMirror.setOnClickListener(null);\n        selectedArch.setEnabled(false);\n        selectedArch.setOnClickListener(null);\n        imagesize.setEnabled(false);\n        installButton.setOnClickListener(null);\n        installButton.setVisibility(View.GONE);\n    }\n\n    private void renameInstallButton(int resid) {\n        installButton.setEnabled(true);\n        installButton.setVisibility(View.VISIBLE);\n        installButton.setText(getString(resid));\n    }\n\n    private void refreshButtons() {\n        if (mBoundService != null && mBoundService.isRunning()) {\n            selectedRelease.setEnabled(false);\n            selectedMirror.setEnabled(false);\n            selectedArch.setEnabled(false);\n            imagesize.setEnabled(false);\n            installButton.setVisibility(View.GONE);\n        } else {\n            selectedRelease.setEnabled(true);\n            selectedMirror.setEnabled(true);\n            selectedArch.setEnabled(true);\n            if (NativeHelper.installInInternalStorage) {\n                imageSizeText.setVisibility(View.GONE);\n                imagesize.setVisibility(View.GONE);\n                megaBytes.setVisibility(View.GONE);\n            } else {\n                imageSizeText.setVisibility(View.VISIBLE);\n                imagesize.setVisibility(View.VISIBLE);\n                megaBytes.setVisibility(View.VISIBLE);\n            }\n            installButton.setVisibility(View.VISIBLE);\n        }\n    }\n\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        if (resultCode == RESULT_OK) {\n            if (data.hasExtra(RELEASE))\n                selectedRelease.setText(data.getStringExtra(RELEASE));\n            if (data.hasExtra(MIRROR))\n                selectedMirror.setText(data.getStringExtra(MIRROR));\n            if (data.hasExtra(ARCH))\n                selectedArch.setText(data.getStringExtra(ARCH));\n        }\n    }\n\n    private boolean isExt2Supported() {\n        Context context = getApplicationContext();\n        boolean foundExt2 = false;\n        try {\n            FileInputStream fstream = new FileInputStream(\"/proc/filesystems\");\n            DataInputStream in = new DataInputStream(fstream);\n            BufferedReader br = new BufferedReader(new InputStreamReader(in), 8192);\n            String line;\n            while ((line = br.readLine()) != null) {\n                if (line.contains(\"ext2\")) {\n                    foundExt2 = true;\n                    break;\n                }\n            }\n            br.close();\n            fstream.close();\n            if (new File(\"/system/lib/modules/ext2.ko\").exists())\n                foundExt2 = true;\n        } catch (Exception e) {\n            Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG).show();\n        }\n        if (! foundExt2)\n            Toast.makeText(context, R.string.no_ext2_message, Toast.LENGTH_LONG).show();\n        return foundExt2;\n    }\n\n    public static void writeCommand(OutputStream os, String command) throws Exception {\n        os.write((command + \"\\n\").getBytes(\"ASCII\"));\n    }\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        MenuInflater inflater = getMenuInflater();\n        inflater.inflate(R.menu.options_menu, menu);\n        return true;\n    }\n\n    public boolean onOptionsItemSelected(MenuItem item) {\n        switch (item.getItemId()) {\n        case R.id.menu_preferences:\n            Intent intent = new Intent(this, PreferencesActivity.class);\n            startActivity(intent);\n            return true;\n        }\n        return false;\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/InstallLogViewActivity.java",
    "content": "\npackage info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.net.Uri;\nimport android.os.AsyncTask;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.view.View.OnClickListener;\nimport android.view.Window;\nimport android.widget.Button;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\nimport org.apache.commons.io.FileUtils;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.IOException;\n\npublic class InstallLogViewActivity extends Activity {\n\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);\n        setContentView(R.layout.install_log_view);\n        setProgressBarIndeterminateVisibility(true);\n        new LoadLogTask().execute();\n        Button shareButton = (Button) findViewById(R.id.shareButton);\n        shareButton.setOnClickListener(new OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                shareInstallLog(NativeHelper.install_log);\n            }\n        });\n\n    }\n\n    protected void shareInstallLog(File f) {\n        if (!NativeHelper.isSdCardPresent()) {\n            Toast.makeText(this, R.string.no_sdcard_message, Toast.LENGTH_LONG)\n                    .show();\n            return;\n        }\n        final File fToSend = new File(NativeHelper.publicFiles, f.getName());\n        try {\n            FileUtils.copyFile(f, fToSend);\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n        Intent i = new Intent(android.content.Intent.ACTION_SEND);\n        i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);\n        i.setType(\"text/plain\");\n        i.putExtra(Intent.EXTRA_SUBJECT, \"install.log from Lil' Debi\");\n        i.putExtra(Intent.EXTRA_TEXT,\n                \"Attached is an log sent by Lil' Debi.  For more info, see:\\n\"\n                        + \"https://github.com/guardianproject/lildebi\\n\\n\"\n                        + \"manufacturer: \" + Build.MANUFACTURER + \"\\n\"\n                        + \"model: \" + Build.MODEL + \"\\n\"\n                        + \"product: \" + Build.PRODUCT + \"\\n\"\n                        + \"brand: \" + Build.BRAND + \"\\n\"\n                        + \"device: \" + Build.DEVICE + \"\\n\"\n                        + \"board: \" + Build.BOARD + \"\\n\"\n                        + \"ID: \" + Build.ID + \"\\n\"\n                        + \"CPU ABI: \" + Build.CPU_ABI + \"\\n\"\n                        + \"release: \" + Build.VERSION.RELEASE + \"\\n\"\n                        + \"incremental: \" + Build.VERSION.INCREMENTAL + \"\\n\"\n                        + \"codename: \" + Build.VERSION.CODENAME + \"\\n\"\n                        + \"SDK: \" + Build.VERSION.SDK_INT + \"\\n\"\n                        );\n        i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(fToSend));\n        startActivity(Intent.createChooser(i, \"How do you want to share?\"));\n    }\n\n    private class LoadLogTask extends AsyncTask<Void, Void, String> {\n\n        @Override\n        protected String doInBackground(Void... params) {\n            StringBuilder log = new StringBuilder(\"\");\n            try {\n                BufferedReader in = new BufferedReader(new FileReader(\n                        NativeHelper.install_log));\n                String line = \"\";\n                while (line != null) {\n                    log.append(line + \"\\n\");\n                    line = in.readLine();\n                    if (isCancelled())\n                        break;\n                }\n                in.close();\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n            return log.toString();\n        }\n\n        protected void onPostExecute(String result) {\n            final TextView installLog = (TextView) findViewById(R.id.installLogView);\n            installLog.setText(result);\n            setProgressBarIndeterminateVisibility(false);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/InstallService.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.PendingIntent;\nimport android.app.Service;\nimport android.content.Intent;\nimport android.os.Binder;\nimport android.os.IBinder;\nimport android.support.v4.app.NotificationCompat;\nimport android.util.Log;\n\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\npublic class InstallService extends Service {\n    private InstallThread installThread;\n\n    public static final String INSTALL_LOG_UPDATE = \"INSTALL_LOG_UPDATE\";\n    public static final String INSTALL_FINISHED = \"INSTALL_FINISHED\";\n\n    public class LocalBinder extends Binder {\n        public InstallService getService() {\n            return InstallService.this;\n        }\n    }\n\n    private final IBinder mBinder = new LocalBinder();\n\n    @Override\n    public IBinder onBind(Intent intent) {\n        return mBinder;\n    }\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n\n    }\n\n    public boolean isRunning() {\n        synchronized (this) {\n            return installThread != null && installThread.isAlive();\n        }\n    }\n\n    @Override\n    public int onStartCommand(Intent intent, int flags, int startId) {\n        Intent i = new Intent(this, InstallActivity.class);\n        i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n        PendingIntent pi = PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n        NotificationCompat.Builder builder =\n                new NotificationCompat.Builder(this)\n                .setSmallIcon(R.drawable.icon)\n                .setContentTitle(getString(R.string.title_install_log_view))\n                .setContentIntent(pi)\n                .setLights(0xffff00ff, 1, 0)\n                .setOngoing(true);\n        startForeground(13117, builder.build());\n        synchronized (this) {\n            NativeHelper.isInstallRunning = true;\n            installThread = new InstallThread();\n            installThread.start();\n        }\n\n        return START_STICKY;\n    }\n\n    class InstallThread extends Thread {\n\n        private LogUpdate logUpdate;\n\n        public void writeCommand(OutputStream os, String command) throws Exception {\n            Log.i(LilDebi.TAG, \"writeCommand: \" + command);\n            logUpdate.update(\"# \" + command + \"\\n\");\n            os.write((command + \"\\n\").getBytes(\"ASCII\"));\n        }\n\n        @Override\n        public void run() {\n            logUpdate = new LogUpdate();\n            logUpdate.open();\n            try {\n                String suCmd = \"su -s \" + NativeHelper.sh.getAbsolutePath();\n                Log.i(LilDebi.TAG, \"exec: \" + suCmd);\n                Process sh = Runtime.getRuntime().exec(suCmd);\n                OutputStream os = sh.getOutputStream();\n\n                StreamThread it = new StreamThread(sh.getInputStream(), logUpdate);\n                StreamThread et = new StreamThread(sh.getErrorStream(), logUpdate);\n\n                it.start();\n                et.start();\n\n                String stdArgs = NativeHelper.getArgs();\n                String command = \"./create-debian-setup.sh \" + stdArgs;\n                command += \"\\\\\\n&& \" + \"./stop-debian.sh \" + stdArgs;\n                command += \"\\\\\\n&& \" + \"./unmounted-install-tweaks.sh \" + stdArgs;\n                command += \"\\\\\\n&& \" + \"./start-debian.sh \" + stdArgs;\n                command += \"\\\\\\n&& \" + NativeHelper.app_bin + \"/chroot \" + NativeHelper.mnt\n                        + \" \" + NativeHelper.app_bin + \"/complete-debian-setup.sh \"\n                        + stdArgs;\n                writeCommand(os, \"cd \" + NativeHelper.app_bin.getAbsolutePath());\n                writeCommand(os, command);\n                // Avoid keeping the resource mounted because of some failure\n                writeCommand(os, \"./stop-debian.sh \" + stdArgs);\n                writeCommand(os, \"exit\");\n\n                sh.waitFor();\n                Log.i(LilDebi.TAG, \"Done!\");\n            } catch (Exception e) {\n                Log.e(LilDebi.TAG, \"Error!!!\", e);\n            } finally {\n                logUpdate.close();\n                stopSelf();\n                synchronized (InstallService.this) {\n                    installThread = null;\n                }\n                NativeHelper.isInstallRunning = false;\n                sendBroadcast(new Intent(INSTALL_FINISHED));\n            }\n        }\n    }\n\n    class LogUpdate extends StreamThread.StreamUpdate {\n\n        StringBuffer sb = new StringBuffer();\n        FileWriter logWriter;\n\n        public void open() {\n            try {\n                logWriter = new FileWriter(NativeHelper.install_log);\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n        }\n\n        public void close() {\n            try {\n                logWriter.close();\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n        }\n\n        @Override\n        public void update(String value) {\n            if (logWriter != null) {\n                try {\n                    logWriter.append(value);\n                } catch (IOException e) {\n                    e.printStackTrace();\n                }\n            }\n            Intent intent = new Intent(INSTALL_LOG_UPDATE);\n            intent.putExtra(Intent.EXTRA_TEXT, value);\n            sendBroadcast(intent);\n        }\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/LilDebi.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport android.app.AlertDialog;\nimport android.content.ActivityNotFoundException;\nimport android.content.Context;\nimport android.content.DialogInterface;\nimport android.content.Intent;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\nimport android.net.Uri;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.os.Message;\nimport android.util.Log;\nimport android.view.Menu;\nimport android.view.MenuInflater;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.View.OnCreateContextMenuListener;\nimport android.view.Window;\nimport android.widget.Button;\nimport android.widget.ScrollView;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\nimport eu.chainfire.libsuperuser.Shell;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\n\npublic class LilDebi extends Activity implements OnCreateContextMenuListener {\n    public static final String TAG = \"LilDebi\";\n\n    private static TextView statusTitle;\n    private static TextView statusText;\n    private static Button startStopButton;\n    private static ScrollView consoleScroll;\n    private TextView consoleText;\n    private static int savedStatus = -1;\n\n    private Handler commandThreadHandler;\n    private LilDebiAction action;\n\n    private boolean foundSU = false;\n    Thread findSUThread = new Thread() {\n        public void run() {\n            foundSU = Shell.SU.available();\n        }\n    };\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n\n        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);\n        setContentView(R.layout.lildebi);\n        statusTitle = (TextView) findViewById(R.id.statusTitle);\n        statusText = (TextView) findViewById(R.id.statusText);\n        startStopButton = (Button) findViewById(R.id.startStopButton);\n        consoleScroll = (ScrollView) findViewById(R.id.consoleScroll);\n        consoleText = (TextView) findViewById(R.id.consoleText);\n\n        // All SU calls are blocking calls. libsuperuser doen't allow\n        // to make such blocking calls from Main Thread.\n        findSUThread.start();\n\n        commandThreadHandler = new Handler() {\n            public void handleMessage(Message msg) {\n                if (msg.arg1 == LilDebiAction.COMMAND_FINISHED)\n                    updateScreenStatus();\n                else if (msg.arg1 == LilDebiAction.LOG_UPDATE)\n                    updateLog();\n            }\n        };\n\n        action = new LilDebiAction(this, commandThreadHandler);\n\n        if (savedInstanceState != null)\n            LilDebiAction.log.append(savedInstanceState.getString(\"log\"));\n        else\n            Log.i(TAG, \"savedInstanceState was null\");\n\n        NativeHelper.installOrUpgradeAppBin(this);\n        installBusyboxSymlinks();\n    }\n\n    @Override\n    protected void onResume() {\n        super.onResume();\n        // check again for SU\n        if (!foundSU && !findSUThread.isAlive())\n            findSUThread.start();\n        if (NativeHelper.isInstallRunning) {\n            // go back to the running install screen\n            Intent intent = new Intent(this, InstallActivity.class);\n            startActivity(intent);\n            finish();\n            return;\n        }\n        updateScreenStatus();\n        updateLog();\n    }\n\n    protected void onDestroy() {\n        super.onDestroy();\n    }\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        MenuInflater inflater = getMenuInflater();\n        inflater.inflate(R.menu.options_menu, menu);\n        return true;\n    }\n\n    @Override\n    public boolean onPrepareOptionsMenu(Menu menu) {\n        menu.findItem(R.id.menu_jackpal_terminal).setEnabled(NativeHelper.isStarted());\n        menu.findItem(R.id.menu_install_log).setEnabled(NativeHelper.install_log.exists());\n        return true;\n    }\n\n    @SuppressLint(\"InlinedApi\")\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        switch (item.getItemId()) {\n        case R.id.menu_preferences:\n            startActivity(new Intent(this, PreferencesActivity.class));\n            return true;\n        case R.id.menu_install_log:\n            startActivity(new Intent(this, InstallLogViewActivity.class));\n            return true;\n        case R.id.menu_jackpal_terminal:\n            Intent i = new Intent(\"jackpal.androidterm.RUN_SCRIPT\");\n            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n            i.addCategory(Intent.CATEGORY_DEFAULT);\n            i.putExtra(\"jackpal.androidterm.iInitialCommand\", \"su -c \\\"PATH=\"\n                    + NativeHelper.app_bin + \":$PATH \"\n                    + \"chroot /debian /bin/bash -l\\\"\");\n\n                try {\n                    startActivity(i);\n                } catch (ActivityNotFoundException e) {\n                    e.printStackTrace();\n                    Toast.makeText(this, R.string.terminal_emulator_not_installed,\n                            Toast.LENGTH_LONG).show();\n                    Intent intent = new Intent(Intent.ACTION_VIEW);\n                    intent.setData(Uri.parse(\"market://details?id=jackpal.androidterm\"));\n                    startActivity(intent);\n                } catch (SecurityException e) {\n                    /*\n                     * For jackpal.androidterm.permission.RUN_SCRIPT to be set\n                     * up in Android, Terminal Emulator must have been installed\n                     * before Lil' Debi was installed. That's just a limitation\n                     * of the permissions system...\n                     */\n                    e.printStackTrace();\n                    Toast.makeText(this, R.string.terminal_emulator_installed_after_lildebi,\n                            Toast.LENGTH_LONG).show();\n                    Intent intent = new Intent(Intent.ACTION_VIEW,\n                            Uri.parse(\"market://details?id=info.guardianproject.lildebi\"));\n                    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n                    startActivity(intent);\n                }\n            return true;\n        case R.id.menu_delete:\n            new AlertDialog.Builder(this).setMessage(R.string.confirm_delete_message)\n                    .setCancelable(false).setPositiveButton(R.string.doit,\n                            new DialogInterface.OnClickListener() {\n                                public void onClick(DialogInterface dialog, int id) {\n                                    action.removeDebianSetup();\n                                }\n                            }).setNegativeButton(R.string.cancel,\n                            new DialogInterface.OnClickListener() {\n                                public void onClick(DialogInterface dialog, int id) {\n                                    dialog.cancel();\n                                }\n                            }).show();\n            return true;\n        }\n        return false;\n    }\n\n    private void updateScreenStatus() {\n        startStopButton.setEnabled(true);\n        setProgressBarIndeterminateVisibility(false);\n        if (!NativeHelper.isSdCardPresent()\n                && !NativeHelper.installInInternalStorage) {\n            Toast.makeText(getApplicationContext(), R.string.no_sdcard_message,\n                    Toast.LENGTH_LONG).show();\n            statusTitle.setVisibility(View.VISIBLE);\n            statusText.setVisibility(View.VISIBLE);\n            statusText.setText(R.string.no_sdcard_status);\n            savedStatus = R.string.no_sdcard_status;\n            startStopButton.setVisibility(View.GONE);\n            return;\n        }\n\n        try {\n            findSUThread.join();\n        } catch (InterruptedException e) {\n            e.printStackTrace();\n        }\n\n        if (!foundSU) {\n            statusTitle.setVisibility(View.VISIBLE);\n            statusText.setVisibility(View.VISIBLE);\n            statusText.setText(R.string.needs_superuser_message);\n            savedStatus = R.string.needs_superuser_message;\n            startStopButton.setVisibility(View.VISIBLE);\n            startStopButton.setText(R.string.get_superuser);\n            startStopButton.setOnClickListener(new View.OnClickListener() {\n                public void onClick(View view) {\n                    final String APP_MARKET_URL = \"market://details?id=com.koushikdutta.superuser\";\n                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri\n                            .parse(APP_MARKET_URL));\n                    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n                    startActivity(intent);\n                    finish();\n                }\n            });\n        } else if (NativeHelper.isInstalled()) {\n            if (!new File(NativeHelper.mnt).exists()) {\n                // we have a manually downloaded debian.img file, config for it\n                LilDebiAction.log.append(String.format(\n                        getString(R.string.mount_point_not_found_format),\n                        NativeHelper.mnt) + \"\\n\");\n                statusTitle.setVisibility(View.VISIBLE);\n                statusText.setVisibility(View.VISIBLE);\n                statusText.setText(R.string.not_configured_message);\n                savedStatus = R.string.not_configured_message;\n                startStopButton.setVisibility(View.VISIBLE);\n                startStopButton.setText(R.string.title_configure);\n                startStopButton.setOnClickListener(new View.OnClickListener() {\n                    public void onClick(View view) {\n                        startStopButton.setEnabled(false);\n                        setProgressBarIndeterminateVisibility(true);\n                        action.configureDownloadedImage();\n                    }\n                });\n            } else if (NativeHelper.isStarted()) {\n                // we have a configured and mounted Debian setup, stop it\n                statusTitle.setVisibility(View.GONE);\n                statusText.setVisibility(View.GONE);\n                statusText.setText(R.string.mounted_message);\n                savedStatus = R.string.mounted_message;\n                startStopButton.setVisibility(View.VISIBLE);\n                startStopButton.setText(R.string.title_stop);\n                startStopButton.setOnClickListener(new View.OnClickListener() {\n                    public void onClick(View view) {\n                        startStopButton.setEnabled(false);\n                        setProgressBarIndeterminateVisibility(true);\n                        action.stopDebian();\n                    }\n                });\n            } else {\n                // we have a configured Debian setup that is not mounted, start it\n                statusTitle.setVisibility(View.VISIBLE);\n                statusText.setVisibility(View.VISIBLE);\n                statusText.setText(R.string.not_mounted_message);\n                savedStatus = R.string.not_mounted_message;\n                startStopButton.setVisibility(View.VISIBLE);\n                startStopButton.setText(R.string.title_start);\n                startStopButton.setOnClickListener(new View.OnClickListener() {\n                    public void onClick(View view) {\n                        startStopButton.setEnabled(false);\n                        setProgressBarIndeterminateVisibility(true);\n                        action.startDebian();\n                    }\n                });\n            }\n        } else if (! isOnline()) {\n            statusTitle.setVisibility(View.VISIBLE);\n            statusText.setVisibility(View.VISIBLE);\n            statusText.setText(R.string.no_network_message);\n            savedStatus = R.string.no_network_message;\n            startStopButton.setVisibility(View.GONE);\n        } else {\n            // we've got nothing, run the install\n            statusTitle.setVisibility(View.VISIBLE);\n            statusText.setVisibility(View.VISIBLE);\n            statusText.setText(R.string.not_installed_message);\n            savedStatus = R.string.not_installed_message;\n            startStopButton.setVisibility(View.VISIBLE);\n            startStopButton.setText(R.string.install);\n            startStopButton.setOnClickListener(new View.OnClickListener() {\n                public void onClick(View view) {\n                    Intent intent = new Intent(getApplicationContext(),\n                            InstallActivity.class);\n                    startActivityForResult(intent, NativeHelper.STARTING_INSTALL);\n                    return;\n                }\n            });\n        }\n    }\n\n    public static void sdcardUnmounted() {\n        if (startStopButton != null && !NativeHelper.isSdCardPresent()) {\n            statusTitle.setVisibility(View.VISIBLE);\n            statusText.setVisibility(View.VISIBLE);\n            statusText.setText(R.string.no_sdcard_status);\n            startStopButton.setVisibility(View.GONE);\n        }\n    }\n\n    public static void sdcardMounted() {\n        if (startStopButton != null && NativeHelper.isSdCardPresent()) {\n\n            if (NativeHelper.isStarted()) {\n                // lildebi started after sdcard mounted\n                savedStatus = R.string.mounted_message;\n                startStopButton.setText(R.string.title_stop);\n            } else if (savedStatus == R.string.mounted_message) {\n                // lildebi was running before sdcard unmounted\n                savedStatus = R.string.not_mounted_message;\n                startStopButton.setText(R.string.title_start);\n            }\n\n            if (savedStatus != -1) {\n                statusTitle.setVisibility(View.VISIBLE);\n                statusText.setVisibility(View.VISIBLE);\n                statusText.setText(savedStatus);\n            } else {\n                // we don't know current status\n                statusTitle.setVisibility(View.GONE);\n                statusText.setVisibility(View.GONE);\n            }\n            startStopButton.setVisibility(View.VISIBLE);\n        }\n    }\n\n    private boolean isOnline() {\n        ConnectivityManager cm =\n            (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n        NetworkInfo netInfo = cm.getActiveNetworkInfo();\n        if (netInfo != null && netInfo.isConnected()) {\n            return true;\n        }\n        return false;\n    }\n\n    private void updateLog() {\n        final String logContents = LilDebiAction.log.toString();\n        if (logContents != null && logContents.trim().length() > 0)\n            consoleText.setText(logContents);\n        consoleScroll.scrollTo(0, consoleText.getHeight());\n    }\n\n    private void installBusyboxSymlinks() {\n        if (! NativeHelper.sh.exists()) {\n            File busybox = new File(NativeHelper.app_bin, \"busybox\");\n            if (!busybox.exists()) {\n                String msg = \"busybox is missing from the apk!\";\n                Log.e(TAG, msg);\n                LilDebiAction.log.append(msg + \"\\n\");\n                return;\n            }\n            Log.i(TAG, \"Installing busybox symlinks into \" + NativeHelper.app_bin);\n            // setup busybox so we have the utils we need, guaranteed\n            String cmd = busybox.getAbsolutePath()\n                    + \" --install -s \" + NativeHelper.app_bin.getAbsolutePath();\n            Log.i(TAG, cmd);\n            LilDebiAction.log.append(\"# \" + cmd + \"\\n\\n\");\n            // this can't use CommandThread because CommandThread depends on busybox sh\n            try {\n                Process sh = Runtime.getRuntime().exec(\"/system/bin/sh\");\n                OutputStream os = sh.getOutputStream();\n                os.write(cmd.getBytes(\"ASCII\"));\n                os.write(\";\\nexit\\n\".getBytes(\"ASCII\"));\n                BufferedReader in = new BufferedReader(\n                        new InputStreamReader(sh.getInputStream()));\n                String line = null;\n                while ((line = in.readLine()) != null)\n                    LilDebiAction.log.append(line);\n            } catch (IOException e) {\n                e.printStackTrace();\n                LilDebiAction.log.append(\"Exception triggered by \" + cmd);\n            }\n        }\n    }\n\n    @Override\n    public void onSaveInstanceState(Bundle savedInstanceState) {\n        // Save UI state changes to the savedInstanceState.\n        // This bundle will be passed to onCreate if the process is\n        // killed and restarted.\n        savedInstanceState.putString(\"log\", LilDebiAction.log.toString());\n        super.onSaveInstanceState(savedInstanceState);\n    }\n    // the saved state is restored in onCreate()\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/LilDebiAction.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.OutputStream;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.os.Handler;\nimport android.os.Message;\nimport android.os.PowerManager;\nimport android.preference.PreferenceManager;\nimport android.util.Log;\nimport android.widget.Toast;\n\npublic class LilDebiAction {\n    public static final String TAG = \"LilDebiAction\";\n\n    private PowerManager.WakeLock wl;\n    private boolean useWakeLock;\n\n    static StringBuffer log = null;\n    public String command;\n    private CommandThread commandThread;\n    private Handler commandThreadHandler;\n    private Context context;\n\n    public static final int LOG_UPDATE = 654321;\n    public static final int COMMAND_FINISHED = 123456;\n\n    LilDebiAction(Context context, Handler commandThreadHandler) {\n        this.context = context;\n        this.commandThreadHandler = commandThreadHandler;\n\n        if (log == null)\n            log = new StringBuffer();\n\n        SharedPreferences prefs = PreferenceManager\n                .getDefaultSharedPreferences(context);\n        useWakeLock = prefs.getBoolean(\n                context.getString(R.string.pref_prevent_sleep_key), false);\n\n        PowerManager pm = (PowerManager) context\n                .getSystemService(Context.POWER_SERVICE);\n        wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,\n                \"StartStopWakeLock\");\n    }\n\n    public void startDebian() {\n        if (useWakeLock)\n            wl.acquire();\n\n        command = new String(\"LANG=\" + NativeHelper.getLANG() +\n                \" ./start-debian.sh\" + NativeHelper.getArgs()\n                + \" && \" + NativeHelper.app_bin + \"/chroot \" + NativeHelper.mnt\n                + \" /bin/bash -c \\\"\" + NativeHelper.postStartScript + \"\\\"\");\n        commandThread = new CommandThread();\n        commandThread.start();\n        Toast.makeText(context, R.string.starting_debian, Toast.LENGTH_LONG)\n                .show();\n    }\n\n    public void stopDebian() {\n        if (wl.isHeld())\n            wl.release();\n\n        command = new String(NativeHelper.app_bin + \"/chroot \"\n                + NativeHelper.mnt + \" /bin/bash -c \\\"\"\n                + NativeHelper.preStopScript + \"\\\"; ./stop-debian.sh \"\n                + NativeHelper.getArgs());\n        commandThread = new CommandThread();\n        commandThread.start();\n        Toast.makeText(context, R.string.stopping_debian, Toast.LENGTH_LONG)\n                .show();\n    }\n\n    public void removeDebianSetup() {\n        command = \"./delete-all-debian-setup.sh \" + NativeHelper.getArgs();\n        commandThread = new CommandThread();\n        commandThread.start();\n    }\n\n    public void configureDownloadedImage() {\n        command = new String(\"./configure-downloaded-image.sh\"\n                + NativeHelper.getArgs());\n        commandThread = new CommandThread();\n        commandThread.start();\n    }\n\n    class CommandThread extends Thread {\n        private LogUpdate logUpdate;\n\n        @Override\n        public void run() {\n            logUpdate = new LogUpdate();\n            try {\n                String suCmd = \"su -s \" + NativeHelper.sh.getAbsolutePath();\n                Log.i(TAG, \"exec: \" + suCmd);\n                Process sh = Runtime.getRuntime().exec(suCmd);\n                OutputStream os = sh.getOutputStream();\n\n                StreamThread it = new StreamThread(sh.getInputStream(),\n                        logUpdate);\n                StreamThread et = new StreamThread(sh.getErrorStream(),\n                        logUpdate);\n\n                it.start();\n                et.start();\n\n                writeCommand(os, \"cd \" + NativeHelper.app_bin.getAbsolutePath());\n                writeCommand(os,\n                        \"export PATH=\" + NativeHelper.app_bin.getAbsolutePath());\n                writeCommand(os, command);\n                writeCommand(os, \"exit\");\n\n                sh.waitFor();\n                Log.i(LilDebi.TAG, \"Done!\");\n            } catch (Exception e) {\n                Log.e(LilDebi.TAG, \"Error!!!\", e);\n            } finally {\n                synchronized (LilDebiAction.this) {\n                    commandThread = null;\n                }\n                if (commandThreadHandler != null) {\n                    Message msg = commandThreadHandler.obtainMessage();\n                    msg.arg1 = COMMAND_FINISHED;\n                    commandThreadHandler.sendMessage(msg);\n                }\n            }\n        }\n    }\n\n    public static void writeCommand(OutputStream os, String command)\n            throws Exception {\n        Log.i(TAG, command);\n        os.write((command + \"\\n\").getBytes(\"ASCII\"));\n    }\n\n    class LogUpdate extends StreamThread.StreamUpdate {\n\n        @Override\n        public void update(String val) {\n            log.append(val);\n            if (commandThreadHandler != null) {\n                Message msg = commandThreadHandler.obtainMessage();\n                msg.arg1 = LilDebiAction.LOG_UPDATE;\n                commandThreadHandler.sendMessage(msg);\n            }\n        }\n    }\n}"
  },
  {
    "path": "src/info/guardianproject/lildebi/LilDebiApplication.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Application;\n\npublic class LilDebiApplication extends Application {\n    public static final String TAG = \"LilDebiApplication\";\n\n    public void onCreate() {\n        super.onCreate();\n        NativeHelper.setup(getApplicationContext());\n        // TODO move this code from NativeHelper to here\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/MediaEjectReceiver.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\n\n// This receiver tries to stopDebian when sdcard is present\npublic class MediaEjectReceiver extends BroadcastReceiver {\n\n    private LilDebiAction action;\n\n    public void onReceive(Context context, Intent intent) {\n        if (!NativeHelper.installInInternalStorage) {\n            if (NativeHelper.isStarted()) {\n            action = new LilDebiAction(context, null);\n            action.stopDebian();\n            }\n            LilDebi.sdcardUnmounted();\n        }\n    }\n}"
  },
  {
    "path": "src/info/guardianproject/lildebi/MediaMountedReceiver.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.File;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.SharedPreferences;\nimport android.preference.PreferenceManager;\n\npublic class MediaMountedReceiver extends BroadcastReceiver {\n\n    private LilDebiAction action;\n\n    public void onReceive(Context context, Intent intent) {\n        SharedPreferences prefs = PreferenceManager\n                .getDefaultSharedPreferences(context);\n\n        if (!NativeHelper.installInInternalStorage) {\n            if (!NativeHelper.isStarted()\n                    && prefs.getBoolean(context\n                            .getString(R.string.pref_start_automatically_key),\n                            false)) {\n                if (new File(NativeHelper.image_path).exists()\n                        && new File(NativeHelper.mnt).exists()) {\n                    action = new LilDebiAction(context, null);\n                    action.startDebian();\n                }\n            }\n            LilDebi.sdcardMounted();\n        }\n\n    }\n\n}\n\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/MediaUnmountedReceiver.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\n\n// This receiver tries to stopDebian when sdcard is not present\npublic class MediaUnmountedReceiver extends BroadcastReceiver {\n\n    private LilDebiAction action;\n\n    public void onReceive(Context context, Intent intent) {\n        // '!NativeHelper.isInstalled()' check tells us that the image is not\n        // installed after SDcard is unmounted\n        if (!NativeHelper.isInstalled() && NativeHelper.isStarted()) {\n            action = new LilDebiAction(context, null);\n            action.stopDebian();\n        }\n        if (!NativeHelper.installInInternalStorage)\n            LilDebi.sdcardUnmounted();\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/NativeHelper.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.BufferedOutputStream;\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStreamWriter;\nimport java.lang.reflect.InvocationTargetException;\nimport java.lang.reflect.Method;\nimport java.util.Calendar;\nimport java.util.Locale;\nimport java.util.Scanner;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.content.pm.PackageInfo;\nimport android.content.res.AssetManager;\nimport android.os.Environment;\nimport android.os.StatFs;\nimport android.preference.PreferenceManager;\nimport android.util.Log;\n\npublic class NativeHelper {\n    public static int STARTING_INSTALL = 12345;\n\n    public static File app_bin;\n    public static File app_log;\n    public static File install_log;\n    public static File publicFiles;\n    public static File sh;\n    public static File install_conf;\n    public static File versionFile;\n    public static String sdcard;\n    public static String image_path;\n    public static String default_image_path;\n    public static String mnt;\n\n    public static String postStartScript;\n    public static String preStopScript;\n\n    public static boolean isInstallRunning = false;\n    public static boolean installInInternalStorage;\n    public static boolean limitTo4GB;\n\n    public static void setup(Context context) {\n        app_bin = context.getDir(\"bin\", Context.MODE_PRIVATE).getAbsoluteFile();\n        app_log = context.getDir(\"log\", Context.MODE_PRIVATE).getAbsoluteFile();\n        install_log = new File(app_log, \"install.log\");\n        // this is the same as android-8's getExternalFilesDir() but works on android-1\n        publicFiles = new File(Environment.getExternalStorageDirectory(),\n                \"Android/data/\" + context.getPackageName() + \"/files/\");\n        publicFiles.mkdirs();\n        sh = new File(app_bin, \"sh\");\n        install_conf = new File(app_bin, \"install.conf\");\n        versionFile = new File(app_bin, \"VERSION\");\n        // they did a real hackjob with the \"external storage\" aka SD Card path\n        // in 4.3/4.4, so we have to add this kludge to make sure we have a path\n        // we can work with.\n        File dir = new File(System.getenv(\"EXTERNAL_STORAGE\"));\n        if (!dir.exists())\n            dir = Environment.getExternalStorageDirectory();\n        try {\n            sdcard = dir.getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n            sdcard = dir.getAbsolutePath();\n        }\n\n        mnt = \"/data/debian\";\n\n        SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n        default_image_path = sdcard + \"/debian.img\";\n        String prefName = context.getString(R.string.pref_image_path_key);\n        image_path = prefs.getString(prefName, default_image_path);\n        prefName = context.getString(R.string.pref_limit_to_4gb_key);\n        limitTo4GB = prefs.getBoolean(prefName, true);\n        postStartScript = prefs.getString(\n                context.getString(R.string.pref_post_start_key),\n                context.getString(R.string.default_post_start_script));\n        preStopScript = prefs.getString(\n                context.getString(R.string.pref_pre_stop_key),\n                context.getString(R.string.default_pre_stop_script));\n\n        boolean detectedInternalInstall = false;\n        /* attempt to auto-detect existing internal install */\n        if (!isStarted()\n                && new File(NativeHelper.mnt + \"/etc\").exists()\n                && !new File(image_path).exists())\n            detectedInternalInstall = true;\n        prefName = context.getString(R.string.pref_install_on_internal_storage_key);\n        installInInternalStorage = prefs.getBoolean(prefName, detectedInternalInstall);\n        if (installInInternalStorage)\n            NativeHelper.image_path = NativeHelper.mnt;\n    }\n\n    public static boolean isStarted() {\n        if (installInInternalStorage) {\n            /*\n             * When installed on the internal storage, the \"started\" state means\n             * that the bind mounts are setup, so this checks for a directory\n             * that will only exist if the bind mount is setup.\n             */\n            return new File(NativeHelper.mnt + \"/system/bin\").exists();\n        } else {\n            /*\n             * When installed on a loopback image file, then the \"started\" state\n             * means that the loopback image file is mounted, so this checks for\n             * a file that can only be in the loopback image.\n             */\n            return new File(NativeHelper.mnt + \"/etc\").exists();\n        }\n    }\n\n    public static boolean isInstalled() {\n        if (installInInternalStorage)\n            return (new File(NativeHelper.mnt + \"/etc\").exists());\n        else\n            return (new File(NativeHelper.image_path).exists());\n    }\n\n    public static String getArgs() {\n        return new String(\" \" + app_bin.getAbsolutePath() + \" \" + sdcard + \" \"\n                + image_path + \" \" + mnt + \" \");\n    }\n\n    private static int readVersionFile() {\n        if (! versionFile.exists()) return 0;\n        Scanner in;\n        int versionCode = 0;\n        try {\n            in = new Scanner(versionFile);\n            versionCode = Integer.parseInt(in.next());\n            in.close();\n        } catch (Exception e) {\n            LilDebiAction.log.append(\"Can't read app version file: \" + e.getLocalizedMessage() + \"\\n\");\n        }\n        return versionCode;\n    }\n\n    private static void writeVersionFile(Context context) {\n        try {\n            PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n            FileOutputStream fos = new FileOutputStream(versionFile);\n            OutputStreamWriter out = new OutputStreamWriter(fos);\n            out.write(String.valueOf(pInfo.versionCode) + \"\\n\");\n            out.close();\n            fos.close();\n        } catch (Exception e) {\n            LilDebiAction.log.append(\"Can't write app version file: \" + e.getLocalizedMessage() + \"\\n\");\n        }\n    }\n\n    private static int getCurrentVersionCode(Context context) {\n        try {\n            PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n            return pInfo.versionCode;\n        } catch (Exception e) {\n            LilDebiAction.log.append(\"Can't get app version: \" + e.getLocalizedMessage() + \"\\n\");\n            return 0;\n        }\n    }\n\n    public static String getLANG() {\n        Locale locale = Locale.getDefault();\n        if (locale == null)\n            return \"\";\n        else\n            return locale.getLanguage() + \"_\" + locale.getCountry();\n    }\n\n    private static void renameOldAppBin() {\n        String moveTo = app_bin.toString();\n        Calendar now = Calendar.getInstance();\n        int version = readVersionFile();\n        if (version == 0) {\n            moveTo += \".old\";\n        } else {\n            moveTo += \".build\" + String.valueOf(version);\n        }\n        moveTo += \".\" + String.valueOf(now.getTimeInMillis());\n        LilDebiAction.log.append(\"Moving '\" + app_bin + \"' to '\" + moveTo + \"'\\n\");\n        app_bin.renameTo(new File(moveTo));\n        app_bin.mkdir(); // Android normally creates this at onCreate()\n    }\n\n    public static void unzipDebiFiles(Context context) {\n        try {\n            AssetManager am = context.getAssets();\n            final String[] assetList = am.list(\"\");\n\n            for (String asset : assetList) {\n                if (asset.equals(\"images\")\n                        || asset.equals(\"sounds\")\n                        || asset.equals(\"webkit\")\n                        || asset.equals(\"databases\")  // Motorola\n                        || asset.equals(\"kioskmode\")) // Samsung\n                    continue;\n\n                int BUFFER = 2048;\n                final File file = new File(app_bin, asset);\n                InputStream tmp;\n                try {\n                    tmp = am.open(asset);\n                } catch (FileNotFoundException e) {\n                    e.printStackTrace();\n                    continue;\n                }\n                final InputStream assetIS = tmp;\n\n                if (file.exists()) {\n                    file.delete();\n                    LilDebiAction.log.append(\"DebiHelper.unzipDebiFiles() deleting \" + file.getAbsolutePath() + \"\\n\");\n                }\n\n                FileOutputStream fos = new FileOutputStream(file);\n                BufferedOutputStream dest = new BufferedOutputStream(fos, BUFFER);\n\n                int count;\n                byte[] data = new byte[BUFFER];\n\n                while ((count = assetIS.read(data, 0, BUFFER)) != -1) {\n                    // System.out.write(x);\n                    dest.write(data, 0, count);\n                }\n\n                dest.flush();\n                dest.close();\n\n                assetIS.close();\n            }\n        } catch (IOException e) {\n            Log.e(LilDebi.TAG, \"Can't unzip\", e);\n        }\n        chmod(0644, new File(app_bin, \"cdebootstrap.tar\"));\n        chmod(0644, new File(app_bin, \"lildebi-common\"));\n        chmod(0755, new File(app_bin, \"create-debian-setup.sh\"));\n        chmod(0755, new File(app_bin, \"complete-debian-setup.sh\"));\n        chmod(0755, new File(app_bin, \"unmounted-install-tweaks.sh\"));\n        chmod(0755, new File(app_bin, \"delete-all-debian-setup.sh\"));\n        chmod(0755, new File(app_bin, \"configure-downloaded-image.sh\"));\n        chmod(0755, new File(app_bin, \"start-debian.sh\"));\n        chmod(0755, new File(app_bin, \"stop-debian.sh\"));\n        chmod(0755, new File(app_bin, \"shell\"));\n        chmod(0755, new File(app_bin, \"test.sh\"));\n        chmod(0755, new File(app_bin, \"gpgv\"));\n        chmod(0755, new File(app_bin, \"busybox\"));\n        writeVersionFile(context);\n    }\n\n    public static void installOrUpgradeAppBin(Context context) {\n        if (versionFile.exists()) {\n            if (getCurrentVersionCode(context) > readVersionFile()) {\n                LilDebiAction.log.append(\"Upgrading '\" + app_bin + \"'\\n\");\n                // upgrade, rename current app_bin, then unpack\n                renameOldAppBin();\n                unzipDebiFiles(context);\n            } else {\n                Log.i(LilDebi.TAG, \"Not upgrading '\" + app_bin + \"'\\n\");\n            }\n        } else {\n            File[] list = app_bin.listFiles();\n            if (list == null || list.length > 0) {\n                LilDebiAction.log.append(\"Old, unversioned app_bin dir, upgrading.\\n\");\n                renameOldAppBin();\n            } else {\n                LilDebiAction.log.append(\"Fresh app_bin install.\\n\");\n            }\n            unzipDebiFiles(context);\n        }\n    }\n\n    public static void chmod(int mode, File path) {\n        try {\n            if (!path.exists())\n                throw new IOException();\n            Class<?> fileUtils = Class.forName(\"android.os.FileUtils\");\n            Method setPermissions = fileUtils.getMethod(\"setPermissions\", String.class,\n                    int.class, int.class, int.class);\n            int a = (Integer) setPermissions.invoke(null, path.getAbsolutePath(), mode,\n                    -1, -1);\n            if (a != 0) {\n                Log.i(LilDebi.TAG, \"ERROR: android.os.FileUtils.setPermissions() returned \" + a\n                        + \" for '\" + path + \"'\");\n            }\n        } catch (ClassNotFoundException e) {\n            Log.i(LilDebi.TAG, \"android.os.FileUtils.setPermissions() failed - ClassNotFoundException.\");\n        } catch (IllegalAccessException e) {\n            Log.i(LilDebi.TAG, \"android.os.FileUtils.setPermissions() failed - IllegalAccessException.\");\n        } catch (InvocationTargetException e) {\n            Log.i(LilDebi.TAG, \"android.os.FileUtils.setPermissions() failed - InvocationTargetException.\");\n        } catch (NoSuchMethodException e) {\n            Log.i(LilDebi.TAG, \"android.os.FileUtils.setPermissions() failed - NoSuchMethodException.\");\n        } catch (IOException e) {\n            Log.e(LilDebi.TAG, path + \" does not exist!\");\n            e.printStackTrace();\n        }\n    }\n\n    public static boolean isSdCardPresent() {\n        return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);\n    }\n\n    public static long getInstallPathFreeMegaBytes() {\n        String path;\n        StatFs stat;\n        long freeSizeInBytes;\n        File parent = new File(image_path).getParentFile();\n        try {\n            path = parent.getCanonicalPath();\n        } catch (IOException e) {\n            e.printStackTrace();\n            path = parent.getAbsolutePath();\n        }\n        stat = new StatFs(path);\n        freeSizeInBytes = stat.getAvailableBlocks() * (long) stat.getBlockSize();\n        return freeSizeInBytes / 1024 / 1024;\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/PreferencesActivity.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\nimport android.content.SharedPreferences;\nimport android.content.SharedPreferences.OnSharedPreferenceChangeListener;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\nimport android.preference.CheckBoxPreference;\nimport android.preference.EditTextPreference;\nimport android.util.Log;\nimport android.widget.Toast;\n\npublic class PreferencesActivity extends android.preference.PreferenceActivity\n        implements OnSharedPreferenceChangeListener {\n    CheckBoxPreference useChecksumCheckBox;\n    CheckBoxPreference installOnInternalStorageBox;\n    CheckBoxPreference limitTo4gbCheckBox;\n    CheckBoxPreference startAutomatically;\n    EditTextPreference imagepathEditText;\n    EditTextPreference postStartEditText;\n    EditTextPreference preStopEditText;\n\n    @Override\n    public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {\n        if (key.equals(getString(R.string.pref_image_path_key))) {\n            String path = prefs.getString(key, NativeHelper.default_image_path);\n            File f = new File(path);\n            File folder = f.getParentFile();\n            if (f.exists())\n                Toast.makeText(this, R.string.image_path_exists_message, Toast.LENGTH_LONG).show();\n            if (path == null\n                    || path.length() < 2 // the shortest possible path is \"/a\"\n                    || folder == null\n                    || ! folder.exists()) {\n                NativeHelper.image_path = NativeHelper.default_image_path;\n                imagepathEditText.setText(NativeHelper.image_path);\n                Toast.makeText(this, R.string.image_path_parent_does_not_exist_message,\n                        Toast.LENGTH_LONG).show();\n            } else\n                NativeHelper.image_path = prefs.getString(key, NativeHelper.default_image_path);\n            setSummaries();\n        } else if (key.equals(getString(R.string.pref_post_start_key))) {\n            NativeHelper.postStartScript = prefs.getString(key,\n                    getString(R.string.default_post_start_script));\n            setSummaries();\n        } else if (key.equals(getString(R.string.pref_pre_stop_key))) {\n            NativeHelper.preStopScript = prefs.getString(key,\n                    getString(R.string.default_pre_stop_script));\n            setSummaries();\n        } else if (key.equals(getString(R.string.pref_use_checksum_key))) {\n            Boolean checked = prefs.getBoolean(getString(R.string.pref_use_checksum_key), false);\n            if (checked)\n                Toast.makeText(this, R.string.calculating_checksum,\n                        Toast.LENGTH_LONG).show();\n            new ShellAsyncTask().execute(checked);\n        } else if (key.equals(getString(R.string.pref_install_on_internal_storage_key))) {\n            Boolean checked = prefs.getBoolean(\n                    getString(R.string.pref_install_on_internal_storage_key), false);\n\n            if (checked) {\n                NativeHelper.installInInternalStorage = true;\n                NativeHelper.image_path = NativeHelper.mnt;\n                limitTo4gbCheckBox.setEnabled(false);\n                useChecksumCheckBox.setEnabled(false);\n                imagepathEditText.setEnabled(false);\n            } else {\n                NativeHelper.installInInternalStorage = false;\n                NativeHelper.image_path = imagepathEditText.getText();\n                limitTo4gbCheckBox.setEnabled(true);\n                useChecksumCheckBox.setEnabled(true);\n                imagepathEditText.setEnabled(true);\n            }\n            setSummaries();\n        } else if (key.equals(getString(R.string.pref_limit_to_4gb_key))) {\n            NativeHelper.limitTo4GB = prefs.getBoolean(\n                    getString(R.string.pref_limit_to_4gb_key), true);\n        }\n    }\n\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        addPreferencesFromResource(R.xml.preferences);\n        startAutomatically = (CheckBoxPreference) findPreference(getString(R.string.pref_start_automatically_key));\n        imagepathEditText = (EditTextPreference) findPreference(getString(R.string.pref_image_path_key));\n        postStartEditText = (EditTextPreference) findPreference(getString(R.string.pref_post_start_key));\n        preStopEditText = (EditTextPreference) findPreference(getString(R.string.pref_pre_stop_key));\n        useChecksumCheckBox = (CheckBoxPreference) findPreference(getString(R.string.pref_use_checksum_key));\n        installOnInternalStorageBox = (CheckBoxPreference) findPreference(getString(R.string.pref_use_checksum_key));\n        limitTo4gbCheckBox = (CheckBoxPreference) findPreference(getString(R.string.pref_limit_to_4gb_key));\n\n        SharedPreferences prefs = getPreferenceScreen().getSharedPreferences();\n        Boolean checked = prefs.getBoolean(\n                getString(R.string.pref_install_on_internal_storage_key), false);\n\n        if (checked) {\n            NativeHelper.installInInternalStorage = true;\n            NativeHelper.image_path = NativeHelper.mnt;\n            useChecksumCheckBox.setEnabled(false);\n            imagepathEditText.setEnabled(false);\n            limitTo4gbCheckBox.setEnabled(false);\n            setSummaries();\n        }\n\n        if (NativeHelper.installInInternalStorage)\n            startAutomatically\n                    .setSummary(getString(R.string.pref_start_on_boot_summary));\n    }\n\n    @Override\n    protected void onResume() {\n        super.onResume();\n        SharedPreferences prefs = getPreferenceScreen().getSharedPreferences();\n        prefs.registerOnSharedPreferenceChangeListener(this);\n        setSummaries();\n    }\n\n    @Override\n    protected void onPause() {\n        super.onPause();\n        getPreferenceScreen().getSharedPreferences()\n                .unregisterOnSharedPreferenceChangeListener(this);\n    }\n\n    private void setSummaries() {\n        // this is extra complicated because R.string.default_image_path can only be set\n        // statically in preferences.xml, but the actual default image_path is based on\n        // the \"external storage\" location, which might not always be /sdcard. Also\n        // some devices don't have the /sdcard symlink.\n        if (NativeHelper.installInInternalStorage) {\n            imagepathEditText.setSummary(getString(R.string.install_in_internal_storage_summary));\n            startAutomatically\n                    .setSummary(getString(R.string.pref_start_on_boot_summary));\n        }\n        else if (NativeHelper.image_path.equals(NativeHelper.default_image_path)\n                || NativeHelper.image_path.equals(getString(R.string.default_image_path))) {\n            imagepathEditText\n                    .setSummary(getString(R.string.pref_image_path_summary));\n            startAutomatically\n                    .setSummary(getString(R.string.pref_start_on_mount_summary));\n        } else {\n            imagepathEditText.setSummary(NativeHelper.image_path);\n            startAutomatically\n                    .setSummary(getString(R.string.pref_start_on_mount_summary));\n        }\n        if (NativeHelper.postStartScript\n                .equals(getString(R.string.default_post_start_script))) {\n            postStartEditText\n                    .setSummary(getString(R.string.pref_post_start_summary));\n        } else {\n            postStartEditText.setSummary(NativeHelper.postStartScript);\n        }\n        if (NativeHelper.preStopScript\n                .equals(getString(R.string.default_pre_stop_script))) {\n            preStopEditText\n                    .setSummary(getString(R.string.pref_pre_stop_summary));\n        } else {\n            preStopEditText.setSummary(NativeHelper.preStopScript);\n        }\n    }\n\n    private void showCompleteToast() {\n        Toast.makeText(this, R.string.checksum_complete, Toast.LENGTH_LONG).show();\n    }\n\n    private class ShellAsyncTask extends AsyncTask<Boolean, Void, Void> {\n\n        @Override\n        protected Void doInBackground(Boolean... values) {\n            String app_bin = NativeHelper.app_bin.getAbsolutePath();\n            File sha1file = new File(app_bin + \"/../\" + new File(NativeHelper.image_path + \".sha1\").getName());\n            String command;\n            try {\n                if (values[0]) {\n                    if (NativeHelper.isStarted()) {\n                        // if mounted, just make a blank file, then\n                        // stop-debian.sh\n                        // will do the sha1sum\n                        sha1file.createNewFile();\n                        command = app_bin + \"/chmod 0600 \" + sha1file;\n                        Log.i(LilDebi.TAG, command);\n                        Runtime.getRuntime().exec(command);\n                    } else {\n                        command = app_bin + \"/sha1sum \" + NativeHelper.image_path;\n                        Log.i(LilDebi.TAG, command);\n                        LilDebiAction.log.append(command + \"\\n\");\n                        Process p = Runtime.getRuntime().exec(command);\n                        p.waitFor();\n                        InputStreamReader isr = new InputStreamReader(p.getInputStream());\n                        BufferedReader br = new BufferedReader(isr);\n                        FileWriter outFile = new FileWriter(sha1file);\n                        PrintWriter out = new PrintWriter(outFile);\n                        out.println(br.readLine());\n                        out.close();\n                        br.close();\n                    }\n                } else {\n                    sha1file.delete();\n                }\n            } catch (Exception e) {\n                String msg = e.getLocalizedMessage();\n                LilDebiAction.log.append(\"Error with checksum file: \" + msg);\n                Log.e(LilDebi.TAG, \"Error with checksum file: \" + msg);\n            }\n            return null;\n        }\n\n        @Override\n        protected void onPostExecute(Void result) {\n            showCompleteToast();\n        }\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/SelectArch.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.AdapterView;\nimport android.widget.ArrayAdapter;\nimport android.widget.ListView;\n\npublic class SelectArch extends Activity {\n    private ListView archList;\n    private String[] archs = new String[] { \"armhf\", \"armel\" };\n\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.select_arch);\n        archList = (ListView) findViewById(R.id.archList);\n        archList.setAdapter(new ArrayAdapter<String>(this,\n                android.R.layout.simple_list_item_1, archs));\n        archList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n                Intent result = new Intent();\n                String arch = ((ArrayAdapter<String>) archList.getAdapter())\n                        .getItem(i);\n                result.putExtra(InstallActivity.ARCH, arch);\n                setResult(RESULT_OK, result);\n                finish();\n            }\n        });\n    }\n\n    public static void callMe(Activity activity) {\n        Intent intent = new Intent(activity, SelectArch.class);\n        activity.startActivityForResult(intent, 123);\n    }\n}"
  },
  {
    "path": "src/info/guardianproject/lildebi/SelectMirror.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.AdapterView;\nimport android.widget.ArrayAdapter;\nimport android.widget.ListView;\n\npublic class SelectMirror extends Activity {\n    private ListView mirrorList;\n    private String[] mirrors = new String[] {\n            \"archive.mmu.edu.my\", \"be.mirror.eurid.eu\", \"deb-mirror.de\",\n            \"debian.bhs.mirrors.ovh.net\", \"debian.bjtu.edu.cn\", \"debian.bsnet.se\",\n            \"debian.cabletel.com.mk\", \"debian.ethz.ch\", \"debian.gnu.gen.tr\",\n            \"debian.ignum.cz\", \"debian.lcs.mit.edu\", \"debian.lth.se\",\n            \"debian.mirror.dkm.cz\", \"debian.mirror.vu.lt\", \"debian.mirrors.ovh.net\",\n            \"debian.nautile.nc\", \"debian.netcologne.de\", \"debian.nsu.ru\",\n            \"debian.pop-sc.rnp.br\", \"debian.simnet.is\", \"debian.sth.sze.hu\",\n            \"debian.stream.uz\", \"debian.ues.edu.sv\", \"debian.ustc.edu.cn\",\n            \"ftp-stud.hs-esslingen.de\", \"ftp.acc.umu.se\", \"ftp.antik.sk\",\n            \"ftp.au.debian.org\", \"ftp.availo.se\", \"ftp.caliu.cat\",\n            \"ftp.ch.debian.org\", \"ftp.citylink.co.nz\", \"ftp.cn.debian.org\",\n            \"ftp.crihan.fr\", \"ftp.cvut.cz\", \"ftp.df.lth.se\",\n            \"ftp.dk.debian.org\", \"ftp.ds.karen.hj.se\", \"ftp.fi.debian.org\",\n            \"ftp.gr.debian.org\", \"ftp.halifax.rwth-aachen.de\", \"ftp.iitm.ac.in\",\n            \"ftp.informatik.uni-frankfurt.de\", \"ftp.is.debian.org\", \"ftp.iut-bm.univ-fcomte.fr\",\n            \"ftp.jaist.ac.jp\", \"ftp.linux.org.tr\", \"ftp.litnet.lt\",\n            \"ftp.lt.debian.org\", \"ftp.lug.ro\", \"ftp.nc.debian.org\",\n            \"ftp.no.debian.org\", \"ftp.nz.debian.org\", \"ftp.pwr.wroc.pl\",\n            \"ftp.rhnet.is\", \"ftp.se.debian.org\", \"ftp.stw-bonn.de\",\n            \"ftp.task.gda.pl\", \"ftp.tiscali.nl\", \"ftp.tku.edu.tw\",\n            \"ftp.tr.debian.org\", \"ftp.tw.debian.org\", \"ftp.uni-kl.de\",\n            \"ftp.utexas.edu\", \"ftp.vectranet.pl\", \"ftp2.de.debian.org\",\n            \"ftp2.fr.debian.org\", \"giano.com.dist.unige.it\", \"kambing.ui.ac.id\",\n            \"kartolo.sby.datautama.net.id\", \"kebo.vlsm.org\", \"linorg.usp.br\",\n            \"lug.mtu.edu\", \"mirror.0x.sg\", \"mirror.1000mbps.com\",\n            \"mirror.anl.gov\", \"mirror.ayous.org\", \"mirror.bytemark.co.uk\",\n            \"mirror.csclub.uwaterloo.ca\", \"mirror.cse.iitk.ac.in\", \"mirror.datacenter.by\",\n            \"mirror.de.leaseweb.net\", \"mirror.debian.ikoula.com\", \"mirror.fdcservers.net\",\n            \"mirror.hmc.edu\", \"mirror.i3d.net\", \"mirror.its.dal.ca\",\n            \"mirror.kku.ac.th\", \"mirror.mirohost.net\", \"mirror.neolabs.kz\",\n            \"mirror.nl.leaseweb.net\", \"mirror.nttu.edu.tw\", \"mirror.optus.net\",\n            \"mirror.overthewire.com.au\", \"mirror.peer1.net\", \"mirror.picosecond.org\",\n            \"mirror.pregi.net\", \"mirror.rit.edu\", \"mirror.steadfast.net\",\n            \"mirror.stshosting.co.uk\", \"mirror.thelinuxfix.com\", \"mirror.unej.ac.id\",\n            \"mirror.unitedcolo.de\", \"mirror.units.it\", \"mirror.us.leaseweb.net\",\n            \"mirror.waia.asn.au\", \"mirror.yandex.ru\", \"mirror2.corbina.ru\",\n            \"mirrors.163.com\", \"mirrors.accretive-networks.net\", \"mirrors.acm.jhu.edu\",\n            \"mirrors.advancedhosters.com\", \"mirrors.bloomu.edu\", \"mirrors.dotsrc.org\",\n            \"mirrors.ece.ubc.ca\", \"mirrors.fe.up.pt\", \"mirrors.ispros.com.bd\",\n            \"mirrors.kernel.org\", \"mirrors.melbourne.co.uk\", \"mirrors.nfsi.pt\",\n            \"mirrors.sohu.com\", \"mirrors.tecnoera.com\", \"mirrors.telianet.dk\",\n            \"mirrors.tummy.com\", \"mirrors.ucr.ac.cr\", \"mirrors.xmission.com\",\n            \"nl.mirror.eurid.eu\", \"opensource.nchc.org.tw\", \"repository.linux.pf\",\n            \"sft.if.usp.br\", \"shadow.ind.ntou.edu.tw\", \"www.anheng.com.cn\",\n    };\n\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.select_mirror);\n        mirrorList = (ListView) findViewById(R.id.mirrorList);\n        mirrorList.setAdapter(new ArrayAdapter<String>(this,\n                android.R.layout.simple_list_item_1, mirrors));\n        mirrorList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n                Intent result = new Intent();\n                String mirror = ((ArrayAdapter<String>) mirrorList.getAdapter())\n                        .getItem(i);\n                result.putExtra(InstallActivity.MIRROR, mirror);\n                setResult(RESULT_OK, result);\n                finish();\n            }\n        });\n    }\n\n    public static void callMe(Activity activity) {\n        Intent intent = new Intent(activity, SelectMirror.class);\n        activity.startActivityForResult(intent, 123);\n    }\n}"
  },
  {
    "path": "src/info/guardianproject/lildebi/SelectRelease.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.AdapterView;\nimport android.widget.ArrayAdapter;\nimport android.widget.ListView;\n\npublic class SelectRelease extends Activity {\n    private ListView releaseList;\n    private String[] releases =\n        new String[] { \"oldstable\", \"stable\", \"testing\", \"unstable\",\n            \"squeeze\", \"wheezy\", \"jessie\", \"sid\" };\n\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.select_release);\n        releaseList = (ListView) findViewById(R.id.releaseList);\n        releaseList.setAdapter(new ArrayAdapter<String>(this,\n                android.R.layout.simple_list_item_1, releases));\n        releaseList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n                Intent result = new Intent();\n                String release = ((ArrayAdapter<String>) releaseList.getAdapter())\n                        .getItem(i);\n                result.putExtra(InstallActivity.RELEASE, release);\n                setResult(RESULT_OK, result);\n                finish();\n            }\n        });\n    }\n\n    public static void callMe(Activity activity) {\n        Intent intent = new Intent(activity, SelectRelease.class);\n        activity.startActivityForResult(intent, 123);\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/StreamDisplay.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport android.os.Handler;\nimport android.util.Log;\nimport android.widget.ScrollView;\nimport android.widget.TextView;\n\npublic class StreamDisplay extends Thread {\n    InputStream i;\n    TextView display;\n    ScrollView scrollView;\n    Handler handler;\n\n    StreamDisplay(InputStream i, TextView display, ScrollView scrollView, Handler handler) {\n        this.i = i;\n        this.display = display;\n        this.scrollView = scrollView;\n        this.handler = handler;\n    }\n\n    @Override\n    public void run() {\n        try {\n            byte[] readBuffer = new byte[512];\n            int readCount = -1;\n            while ((readCount = i.read(readBuffer)) > 0) {\n                final String readString = new String(readBuffer, 0, readCount);\n                handler.post(new Runnable() {\n                    public void run() {\n                        CharSequence currentText = display.getText();\n                        display.setText(currentText + readString);\n                        scrollView.scrollTo(0, display.getHeight() + 100);\n                    }\n                });\n                handler.postDelayed(new Runnable() {\n                    public void run() {\n                        scrollView.scrollTo(0, display.getHeight());\n                    }\n                }, 300);\n            }\n        } catch (IOException e) {\n            Log.e(LilDebi.TAG, \"\", e);\n        }\n    }\n}\n"
  },
  {
    "path": "src/info/guardianproject/lildebi/StreamThread.java",
    "content": "package info.guardianproject.lildebi;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport android.util.Log;\n\npublic class StreamThread extends Thread {\n    InputStream i;\n    StreamUpdate update;\n\n    StreamThread(InputStream i) {\n        this.i = i;\n    }\n\n    StreamThread(InputStream i, StreamUpdate update) {\n        this.i = i;\n        this.update = update;\n    }\n\n    @Override\n    public void run() {\n        try {\n            byte[] readBuffer = new byte[512];\n            int readCount = -1;\n            while ((readCount = i.read(readBuffer)) > 0) {\n                String readString = new String(readBuffer, 0, readCount);\n                update.update(readString);\n            }\n        } catch (IOException e) {\n            Log.e(LilDebi.TAG, \"\", e);\n        }\n    }\n\n    public String dump() {\n        if (update instanceof StringBufferStreamUpdate) {\n            return ((StringBufferStreamUpdate) update).dump();\n        }\n\n        return null;\n    }\n\n    public static abstract class StreamUpdate {\n        public abstract void update(String val);\n    }\n\n    public class StringBufferStreamUpdate extends StreamUpdate {\n        StringBuilder sb = new StringBuilder();\n\n        @Override\n        public void update(String val) {\n            sb.append(val);\n        }\n\n        public String dump() {\n            return sb.toString();\n        }\n    }\n}"
  },
  {
    "path": "src/info/guardianproject/lildebi/UnsupportedDeviceActivity.java",
    "content": "package info.guardianproject.lildebi;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\n\npublic class UnsupportedDeviceActivity extends Activity {\n\n    Button uninstallButton;\n\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.unsupported_device);\n        uninstallButton = (Button) findViewById(R.id.uninstallButton);\n    }\n\n    @Override\n    protected void onResume() {\n        super.onResume();\n        uninstallButton.setOnClickListener(new View.OnClickListener() {\n            public void onClick(View view) {\n            }\n        });\n    }\n\n    @Override\n    protected void onPause() {\n        super.onPause();\n    }\n\n    public static void callMe(Activity activity) {\n        Intent intent = new Intent(activity, UnsupportedDeviceActivity.class);\n        activity.startActivity(intent);\n    }\n}\n"
  },
  {
    "path": "src/org/torproject/android/service/TorServiceConstants.java",
    "content": "/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - http://openideals.com/guardian */\n/* See LICENSE for licensing information */\npackage org.torproject.android.service;\n\npublic interface TorServiceConstants {\n\n    public final static String TAG = \"ORBOT\";\n\n    public final static String TOR_APP_USERNAME = \"org.torproject.android\";\n\n    public final static String ASSETS_BASE = \"assets/\";\n\n    //home directory of Android application\n\n    //name of the tor C binary\n    public final static String TOR_BINARY_ASSET_KEY = \"tor\";\n\n    //torrc (tor config file)\n    public final static String TORRC_ASSET_KEY = \"torrc\";\n    public final static String TOR_CONTROL_COOKIE = \"control_auth_cookie\";\n\n    //how to launch tor\n//    public final static String TOR_COMMAND_LINE_ARGS = \"-f \" + TORRC_INSTALL_PATH  + \" || exit\\n\";\n\n    //privoxy\n    public final static String PRIVOXY_ASSET_KEY = \"privoxy\";\n\n    //privoxy.config\n    public final static String PRIVOXYCONFIG_ASSET_KEY = \"privoxy.config\";\n\n    //various console cmds\n    public final static String SHELL_CMD_CHMOD = \"chmod\";\n    public final static String SHELL_CMD_KILL = \"kill -9\";\n    public final static String SHELL_CMD_RM = \"rm\";\n    public final static String SHELL_CMD_PS = \"ps\";\n    public final static String SHELL_CMD_PIDOF = \"pidof\";\n\n    public final static String CHMOD_EXE_VALUE = \"777\";\n\n    //path of the installed APK file\n    //public final static String APK_PATH = \"/data/app/org.torproject.android.apk\";\n    //public final static String APK_PATH_BASE = \"/data/app\";\n\n\n\n    public final static int FILE_WRITE_BUFFER_SIZE = 2048;\n\n    //HTTP Proxy server port\n    public final static int PORT_HTTP = 8118; //just like Privoxy!\n\n    //Socks port client connects to, server is the Tor binary\n    public final static int PORT_SOCKS = 9050;\n\n    //what is says!\n    public final static String IP_LOCALHOST = \"127.0.0.1\";\n    public final static int TOR_CONTROL_PORT = 9051;\n    public final static int UPDATE_TIMEOUT = 1000;\n    public final static int TOR_TRANSPROXY_PORT = 9040;\n    public final static int STANDARD_DNS_PORT = 53;\n    public final static int TOR_DNS_PORT = 5400;\n\n    //path to check Tor against\n    public final static String URL_TOR_CHECK = \"https://check.torproject.org\";\n\n    //IPTABLES\n//    public final static String CMD_IPTABLES_PREROUTING = \"iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to 127.0.0.1:8118 || exit\\n\";\n    //public final static String CMD_IPTABLES_PREROUTING_FLUSH = \"iptables -t nat -F || exit\\n\";\n\n    //control port\n    public final static String TOR_CONTROL_PORT_MSG_BOOTSTRAP_DONE = \"Bootstrapped 100%\";\n\n    public final static int STATUS_OFF = 0;\n //   public final static int STATUS_READY = 0;\n    public final static int STATUS_ON = 1;\n    public final static int STATUS_CONNECTING = 2;\n\n    public final static int PROFILE_OFF = -1;\n    public final static int PROFILE_ON = 1;\n\n    public static final int STATUS_MSG = 1;\n    public static final int ENABLE_TOR_MSG = 2;\n    public static final int DISABLE_TOR_MSG = 3;\n    public static final int LOG_MSG = 4;\n}\n"
  },
  {
    "path": "src/org/torproject/android/service/TorServiceUtils.java",
    "content": "/* Copyright (c) 2009, Nathan Freitas, Orbot / The Guardian Project - http://openideals.com/guardian */\n/* See LICENSE for licensing information */\npackage org.torproject.android.service;\n\nimport info.guardianproject.lildebi.LilDebi;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.util.StringTokenizer;\n\nimport android.util.Log;\n\npublic class TorServiceUtils implements TorServiceConstants {\n\n    /**\n     * Check if we have root access\n     * @return boolean true if we have root\n     */\n    public static boolean checkRootAccess() {\n\n\n        StringBuilder log = new StringBuilder();\n\n        try {\n\n            // Run an empty script just to check root access\n            String[] cmd = {\"exit 0\"};\n            int exitCode = TorServiceUtils.doShellCommand(cmd, log, true, true);\n            if (exitCode == 0) {\n\n                return true;\n            }\n\n        } catch (IOException e) {\n            //this means that there is no root to be had (normally) so we won't log anything\n            Log.e(LilDebi.TAG, \"Error checking for root access\", e);\n\n        }\n        catch (Exception e) {\n            Log.e(LilDebi.TAG, \"Error checking for root access\", e);\n            //this means that there is no root to be had (normally)\n        }\n\n        Log.i(LilDebi.TAG, \"Could not acquire root permissions\");\n        return false;\n    }\n\n\n\n    public static int findProcessId(String command)\n    {\n        int procId = -1;\n\n        try\n        {\n            procId = findProcessIdWithPidOf(command);\n\n            if (procId == -1)\n                procId = findProcessIdWithPS(command);\n        }\n        catch (Exception e)\n        {\n            try\n            {\n                procId = findProcessIdWithPS(command);\n            }\n            catch (Exception e2)\n            {\n                Log.w(TAG,\"Unable to get proc id for: \" + command,e2);\n            }\n        }\n\n        return procId;\n    }\n\n    //use 'pidof' command\n    public static int findProcessIdWithPidOf(String command) throws Exception\n    {\n\n        int procId = -1;\n\n        Runtime r = Runtime.getRuntime();\n\n        Process procPs = null;\n\n        String baseName = new File(command).getName();\n        //fix contributed my mikos on 2010.12.10\n        procPs = r.exec(new String[] {SHELL_CMD_PIDOF, baseName});\n        //procPs = r.exec(SHELL_CMD_PIDOF);\n\n        BufferedReader reader = new BufferedReader(new InputStreamReader(procPs.getInputStream()));\n        String line = null;\n\n        while ((line = reader.readLine())!=null)\n        {\n\n            try\n            {\n                //this line should just be the process id\n                procId = Integer.parseInt(line.trim());\n                break;\n            }\n            catch (NumberFormatException e)\n            {\n                Log.e(LilDebi.TAG, \"unable to parse process pid: \" + line, e);\n            }\n        }\n\n\n        return procId;\n\n    }\n\n    //use 'ps' command\n    public static int findProcessIdWithPS(String command) throws Exception\n    {\n\n        int procId = -1;\n\n        Runtime r = Runtime.getRuntime();\n\n        Process procPs = null;\n\n        procPs = r.exec(SHELL_CMD_PS);\n\n        BufferedReader reader = new BufferedReader(new InputStreamReader(procPs.getInputStream()));\n        String line = null;\n\n        while ((line = reader.readLine())!=null)\n        {\n            if (line.indexOf(' ' + command)!=-1)\n            {\n\n                StringTokenizer st = new StringTokenizer(line,\" \");\n                st.nextToken(); //proc owner\n\n                procId = Integer.parseInt(st.nextToken().trim());\n\n                break;\n            }\n        }\n\n\n\n        return procId;\n\n    }\n\n\n    public static int doShellCommand(String[] cmds, StringBuilder log, boolean runAsRoot, boolean waitFor) throws Exception\n    {\n        Log.i(LilDebi.TAG, \"executing shell cmds: \" + cmds[0] + \"; runAsRoot=\" + runAsRoot);\n\n\n        Process proc = null;\n        int exitCode = -1;\n\n\n            if (runAsRoot)\n                proc = Runtime.getRuntime().exec(\"su\");\n            else\n                proc = Runtime.getRuntime().exec(\"sh\");\n\n\n            OutputStreamWriter out = new OutputStreamWriter(proc.getOutputStream());\n\n            for (int i = 0; i < cmds.length; i++)\n            {\n                out.write(cmds[i]);\n                out.write(\"\\n\");\n            }\n\n            out.flush();\n            out.write(\"exit\\n\");\n            out.flush();\n\n            if (waitFor)\n            {\n\n                final char buf[] = new char[10];\n\n                // Consume the \"stdout\"\n                InputStreamReader reader = new InputStreamReader(proc.getInputStream());\n                int read=0;\n                while ((read=reader.read(buf)) != -1) {\n                    if (log != null) log.append(buf, 0, read);\n                }\n\n                // Consume the \"stderr\"\n                reader = new InputStreamReader(proc.getErrorStream());\n                read=0;\n                while ((read=reader.read(buf)) != -1) {\n                    if (log != null) log.append(buf, 0, read);\n                }\n\n                exitCode = proc.waitFor();\n                log.append(\"process exit code: \");\n                log.append(exitCode);\n                log.append(\"\\n\");\n\n                Log.i(LilDebi.TAG, \"command process exit value: \" + exitCode);\n            }\n\n\n        return exitCode;\n\n    }\n}\n"
  },
  {
    "path": "supporting_files/fix-ellipsis.sh",
    "content": "#!/bin/bash -x\n\n# Fix TypographyEllipsis programmatically\n\nsed -i 's/\\.\\.\\./…/g' res/values*/*.xml\n"
  },
  {
    "path": "supporting_files/generate-mirror-list.py",
    "content": "#!/usr/bin/python\n\nimport re\nimport sys\nimport urllib2\n\n# mirrors = (\"ftp.at.debian.org\", \"ftp.au.debian.org\",\n#            \"ftp.ba.debian.org\", \"ftp.be.debian.org\", \"ftp.bg.debian.org\",\n#            \"ftp.br.debian.org\", \"ftp.by.debian.org\", \"ftp.ca.debian.org\",\n#            \"ftp.ch.debian.org\", \"ftp.cl.debian.org\", \"ftp.cn.debian.org\",\n#            \"ftp.cz.debian.org\", \"ftp.de.debian.org\", \"ftp.dk.debian.org\",\n#            \"ftp.ee.debian.org\", \"ftp.es.debian.org\", \"ftp.fi.debian.org\",\n#            \"ftp.fr.debian.org\", \"ftp.gr.debian.org\", \"ftp.hk.debian.org\",\n#            \"ftp.hr.debian.org\", \"ftp.hu.debian.org\", \"ftp.ie.debian.org\",\n#            \"ftp.is.debian.org\", \"ftp.it.debian.org\", \"ftp.jp.debian.org\",\n#            \"ftp.kr.debian.org\", \"ftp.lt.debian.org\", \"ftp.mx.debian.org\",\n#            \"ftp.nc.debian.org\", \"ftp.nl.debian.org\", \"ftp.no.debian.org\",\n#            \"ftp.nz.debian.org\", \"ftp.pl.debian.org\", \"ftp.pt.debian.org\",\n#            \"ftp.ro.debian.org\", \"ftp.ru.debian.org\", \"ftp.se.debian.org\",\n#            \"ftp.si.debian.org\", \"ftp.sk.debian.org\", \"ftp.th.debian.org\",\n#            \"ftp.tr.debian.org\", \"ftp.tw.debian.org\", \"ftp.ua.debian.org\",\n#            \"ftp.uk.debian.org\", \"ftp.us.debian.org\", \"mirror.cc.columbia.edu\",\n#            \"ftp.gtlib.gatech.edu\", \"mirrors.ece.ubc.ca\")\n\n\nkeep = []\nmirrors = urllib2.urlopen('http://www.debian.org/mirror/list')\nfor line in mirrors.readlines():\n    m = re.match('.*<td valign=\"top\"><a rel=\"nofollow\" href=\"http://([^/]*).*\">.*', line)\n    if m:\n        mirror = m.group(1)\n        debianurl = 'http://' + mirror + '/debian/dists/jessie'\n        ubuntuurl = 'http://' + mirror + '/ubuntu/dists/raring'\n        print 'trying: ',\n        print mirror,\n        print '...',\n        sys.stdout.flush()\n        try:\n            response=urllib2.urlopen(debianurl, timeout=5)\n            response=urllib2.urlopen(ubuntuurl, timeout=5)\n            keep.append(mirror)\n            print 'success!'\n        except:\n            print 'fail!'\n\nprint keep\n\ni = 0\nfor m in sorted(keep):\n    print '\"' + m + '\", ',\n    i += 1\n    if i % 3 == 0:\n        print \"\"\n"
  },
  {
    "path": "tests/run-tests",
    "content": "#!/bin/bash\n\nprojectdir=`cd $(dirname $0) && pwd`/..\nassets=$projectdir/assets\n\nexitstatus=0\n# use bash to check that the syntax is correct\nfor f in $assets/*.sh $assets/lildebi-common $assets/shell; do\n    echo \"Checking syntax in $f:\"\n    if bash -n $f; then\n        : # success! do nothing\n    else\n        echo \"FAILED!\"\n        exitstatus=1\n    fi\ndone\n\nexit $exitstatus\n"
  }
]