Permalink
Browse files

Works for me, but it needs the shell scripts for other

  • Loading branch information...
0 parents commit 226fcf9481cd69c61d65bb2722480ea1aceeb226 @ghk committed Jul 3, 2011
@@ -0,0 +1,17 @@
+.metadata
+tmp/**
+.DS_Store
+*.tmp
+*.bak
+tmp/**/*
+*.swp
+*~.nib
+Thumbs.db
+Desktop.ini
+*~
+*.apk
+bin
+gen
+local.properties
+*.jar
+.classpath
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>debian</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.kaulahcintaku.debian"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <supports-screens android:anyDensity="true"
+ android:largeScreens="true" android:normalScreens="true"
+ android:resizeable="true" android:smallScreens="true"/>
+ <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.Light">
+ <activity android:name=".DebianManager"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <activity android:name=".HostedCommandActivity" android:configChanges="orientation|keyboard|keyboardHidden"/>
+
+ </application>
+</manifest>
@@ -0,0 +1,3 @@
+Mount/Unmount, initd runners, scripts runner for chrooted debian.
+
+see http://tungchingkai.blogspot.com/2010/12/how-to-install-debian-on-samsung-galaxy.html
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-8
@@ -0,0 +1,36 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclasseswithmembernames class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembernames class * {
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="fill_parent"
+ android:layout_weight="1"
+ android:gravity="center"
+ >
+ <TextView android:id="@+id/output"
+ android:layout_width="fill_parent"
+ android:typeface="monospace"
+ android:scrollbars="vertical"
+ android:layout_height="wrap_content"
+ >
+ </TextView>
+ </ScrollView>
+
+ <Button android:id="@+id/status" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Kill"
+ />
+</LinearLayout>
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+ <LinearLayout android:orientation="horizontal"
+ android:background="@android:drawable/bottom_bar" android:paddingLeft="4.0dip"
+ android:paddingTop="5.0dip" android:paddingRight="4.0dip"
+ android:paddingBottom="1.0dip" android:layout_width="fill_parent"
+ android:layout_height="wrap_content" android:layout_below="@+id/TextView01">
+ <Button android:id="@+id/mount" android:layout_width="0.0dip"
+ android:layout_height="fill_parent" android:text="Mount"
+ android:layout_weight="1.0" />
+ <Button android:id="@+id/umount" android:layout_width="0.0dip"
+ android:layout_height="fill_parent" android:text="Unmount"
+ android:layout_weight="1.0" />
+ </LinearLayout>
+ <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"
+ android:scrollbarStyle="insideOverlay" android:id="@+id/scroll"
+ >
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ >
+ <ImageView android:src="@android:drawable/divider_horizontal_dark"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:scaleType="fitXY" android:paddingLeft="5dp"
+ android:paddingRight="5dp" android:paddingBottom="2dp"
+ android:paddingTop="2dp" />
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="/etc/init.d"
+ android:textSize="18dip"
+ android:background="@android:drawable/divider_horizontal_bright"
+ android:padding="10dp"
+ />
+ <ImageView android:src="@android:drawable/divider_horizontal_dark"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:scaleType="fitXY" android:paddingLeft="5dp"
+ android:paddingRight="5dp" android:paddingBottom="2dp"
+ android:paddingTop="2dp" />
+ <ListView
+ android:id="@+id/initd_entry"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ />
+ <ImageView android:src="@android:drawable/divider_horizontal_dark"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:scaleType="fitXY" android:paddingLeft="5dp"
+ android:paddingRight="5dp" android:paddingBottom="2dp"
+ android:paddingTop="2dp" />
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="scripts"
+ android:textSize="18dip"
+ android:background="@android:drawable/divider_horizontal_bright"
+ android:padding="10dp"
+ />
+ <ImageView android:src="@android:drawable/divider_horizontal_dark"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:scaleType="fitXY" android:paddingLeft="5dp"
+ android:paddingRight="5dp" android:paddingBottom="2dp"
+ android:paddingTop="2dp" />
+ <ListView
+ android:id="@+id/scripts_entry"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ />
+ </LinearLayout>
+ </ScrollView>
+</LinearLayout>
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, DebianManager!</string>
+ <string name="app_name">Debian Manager</string>
+</resources>
@@ -0,0 +1,45 @@
+package com.kaulahcintaku.debian;
+
+public class Command {
+
+ public static String debianUserCommand(String command){
+ return "/system/bin/debian -u "+command;
+ }
+
+ public static String debianRootCommand(String command){
+ return "/system/bin/debian "+command;
+ }
+
+ public static String initdCommand(String initd, String command){
+ return debianRootCommand("/etc/init.d/"+initd+" "+command);
+ }
+
+ private String command;
+ private String caption;
+ private boolean needRoot;
+
+ public Command(String config) {
+ String[] splitted = config.split("#");
+ caption = splitted[0];
+ command = splitted[1];
+ needRoot = Boolean.parseBoolean(splitted[2]);
+ }
+
+ public String getCaption() {
+ return caption;
+ }
+
+ public String getCommand() {
+ return command;
+ }
+
+ public boolean isNeedRoot() {
+ return needRoot;
+ }
+
+ @Override
+ public String toString() {
+ return caption;
+ }
+
+}
Oops, something went wrong.

0 comments on commit 226fcf9

Please sign in to comment.