Skip to content
Browse files

Added a bunch of build data and sh scripts

  • Loading branch information...
1 parent 0fd6a32 commit 5ce19999a732195a37549d96f86ed4940238b89d @kosborn committed Aug 17, 2012
View
130 AntiGuard/AndroidManifest.xml
@@ -543,6 +543,132 @@
</application>
- <uses-sdk android:minSdkVersion="7" />
- <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
+ <uses-sdk android:minSdkVersion="1" />
+ <uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
+ <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
+ <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER"/>
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
+ <uses-permission android:name="android.permission.ACCOUNT_MANAGER"/>
+ <uses-permission android:name="android.permission.ADD_VOICEMAIL"/>
+ <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
+ <uses-permission android:name="android.permission.BATTERY_STATS"/>
+ <uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE"/>
+ <uses-permission android:name="android.permission.BIND_APPWIDGET"/>
+ <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN"/>
+ <uses-permission android:name="android.permission.BIND_INPUT_METHOD"/>
+ <uses-permission android:name="android.permission.BIND_REMOTEVIEWS"/>
+ <uses-permission android:name="android.permission.BIND_TEXT_SERVICE"/>
+ <uses-permission android:name="android.permission.BIND_VPN_SERVICE"/>
+ <uses-permission android:name="android.permission.BIND_WALLPAPER"/>
+ <uses-permission android:name="android.permission.BLUETOOTH"/>
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
+ <uses-permission android:name="android.permission.BRICK"/>
+ <uses-permission android:name="android.permission.BROADCAST_PACKAGE_REMOVED"/>
+ <uses-permission android:name="android.permission.BROADCAST_SMS"/>
+ <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
+ <uses-permission android:name="android.permission.BROADCAST_WAP_PUSH"/>
+ <uses-permission android:name="android.permission.CALL_PHONE"/>
+ <uses-permission android:name="android.permission.CALL_PRIVILEGED"/>
+ <uses-permission android:name="android.permission.CAMERA"/>
+ <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
+ <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
+ <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
+ <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
+ <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
+ <uses-permission android:name="android.permission.CLEAR_APP_CACHE"/>
+ <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA"/>
+ <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>
+ <uses-permission android:name="android.permission.DELETE_CACHE_FILES"/>
+ <uses-permission android:name="android.permission.DELETE_PACKAGES"/>
+ <uses-permission android:name="android.permission.DEVICE_POWER"/>
+ <uses-permission android:name="android.permission.DIAGNOSTIC"/>
+ <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
+ <uses-permission android:name="android.permission.DUMP"/>
+ <uses-permission android:name="android.permission.FACTORY_TEST"/>
+ <uses-permission android:name="android.permission.FLASHLIGHT"/>
+ <uses-permission android:name="android.permission.FORCE_BACK"/>
+ <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
+ <uses-permission android:name="android.permission.GET_PACKAGE_SIZE"/>
+ <uses-permission android:name="android.permission.GET_TASKS"/>
+ <uses-permission android:name="android.permission.GLOBAL_SEARCH"/>
+ <uses-permission android:name="android.permission.HARDWARE_TEST"/>
+ <uses-permission android:name="android.permission.INJECT_EVENTS"/>
+ <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER"/>
+ <uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
+ <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
+ <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
+ <uses-permission android:name="android.permission.MANAGE_APP_TOKENS"/>
+ <uses-permission android:name="android.permission.MASTER_CLEAR"/>
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
+ <uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
+ <uses-permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS"/>
+ <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
+ <uses-permission android:name="android.permission.NFC"/>
+ <uses-permission android:name="android.permission.PERSISTENT_ACTIVITY"/>
+ <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
+ <uses-permission android:name="android.permission.READ_CALENDAR"/>
+ <uses-permission android:name="android.permission.READ_CALL_LOG"/>
+ <uses-permission android:name="android.permission.READ_CONTACTS"/>
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>
+ <uses-permission android:name="android.permission.READ_HISTORY_BOOKMARKS"/>
+ <uses-permission android:name="android.permission.READ_INPUT_STATE"/>
+ <uses-permission android:name="android.permission.READ_LOGS"/>
+ <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
+ <uses-permission android:name="android.permission.READ_PROFILE"/>
+ <uses-permission android:name="android.permission.READ_SMS"/>
+ <uses-permission android:name="android.permission.READ_SOCIAL_STREAM"/>
+ <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
+ <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
+ <uses-permission android:name="android.permission.READ_USER_DICTIONARY"/>
+ <uses-permission android:name="android.permission.REBOOT"/>
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
+ <uses-permission android:name="android.permission.RECEIVE_MMS"/>
+ <uses-permission android:name="android.permission.RECEIVE_SMS"/>
+ <uses-permission android:name="android.permission.RECEIVE_WAP_PUSH"/>
+ <uses-permission android:name="android.permission.RECORD_AUDIO"/>
+ <uses-permission android:name="android.permission.REORDER_TASKS"/>
+ <uses-permission android:name="android.permission.RESTART_PACKAGES"/>
+ <uses-permission android:name="android.permission.SEND_SMS"/>
+ <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER"/>
+ <uses-permission android:name="android.permission.SET_ALARM"/>
+ <uses-permission android:name="android.permission.SET_ALWAYS_FINISH"/>
+ <uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/>
+ <uses-permission android:name="android.permission.SET_DEBUG_APP"/>
+ <uses-permission android:name="android.permission.SET_ORIENTATION"/>
+ <uses-permission android:name="android.permission.SET_POINTER_SPEED"/>
+ <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS"/>
+ <uses-permission android:name="android.permission.SET_PROCESS_LIMIT"/>
+ <uses-permission android:name="android.permission.SET_TIME"/>
+ <uses-permission android:name="android.permission.SET_TIME_ZONE"/>
+ <uses-permission android:name="android.permission.SET_WALLPAPER"/>
+ <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS"/>
+ <uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES"/>
+ <uses-permission android:name="android.permission.STATUS_BAR"/>
+ <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_READ"/>
+ <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_WRITE"/>
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
+ <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/>
+ <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
+ <uses-permission android:name="android.permission.USE_SIP"/>
+ <uses-permission android:name="android.permission.VIBRATE"/>
+ <uses-permission android:name="android.permission.WAKE_LOCK"/>
+ <uses-permission android:name="android.permission.WRITE_APN_SETTINGS"/>
+ <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
+ <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
+ <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.WRITE_GSERVICES"/>
+ <uses-permission android:name="android.permission.WRITE_HISTORY_BOOKMARKS"/>
+ <uses-permission android:name="android.permission.WRITE_PROFILE"/>
+ <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
+ <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
+ <uses-permission android:name="android.permission.WRITE_SMS"/>
+ <uses-permission android:name="android.permission.WRITE_SOCIAL_STREAM"/>
</manifest>
View
BIN AntiGuard/AntiGuard.apk
Binary file not shown.
View
17 AntiGuard/ant.properties
@@ -0,0 +1,17 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked into Version Control Systems, as it is
+# integral to the build system of your project.
+
+# This file is only used by the Ant script.
+
+# You can use this to override default values such as
+# 'source.dir' for the location of your java source folder and
+# 'out.dir' for the location of your output folder.
+
+# You can also use it define how the release builds are signed by declaring
+# the following properties:
+# 'key.store' for the location of your keystore and
+# 'key.alias' for the name of the key to use.
+# The password will be asked during the build when you use the 'release' target.
+
View
10 AntiGuard/build.sh
@@ -0,0 +1,10 @@
+# You'll ahve to update the paths here...
+
+ant release
+jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore ~/Android/io.kos.keystore bin/AntiGuard-release-unsigned.apk io.kos
+~/Tools/android-sdk-linux/tools/zipalign -v 4 bin/AntiGuard-release-unsigned.apk bin/AntiGuard.apk
+
+
+mv bin/AntiGuard.apk .
+
+ant clean
View
83 AntiGuard/build.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="AntiGuard" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contains the path to the SDK. It should *NOT* be checked into
+ Version Control Systems. -->
+ <property file="local.properties" />
+
+ <!-- The ant.properties file can be created by you. It is only edited by the
+ 'android' tool to add properties to it.
+ This is the place to change some Ant specific build properties.
+ Here are some properties you may want to change/update:
+
+ source.dir
+ The name of the source directory. Default is 'src'.
+ out.dir
+ The name of the output directory. Default is 'bin'.
+
+ For other overridable properties, look at the beginning of the rules
+ files in the SDK, at tools/ant/build.xml
+
+ Properties related to the SDK location or the project target should
+ be updated using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems.
+
+ -->
+ <property file="ant.properties" />
+
+ <!-- The project.properties file is created and updated by the 'android'
+ tool, as well as ADT.
+
+ This contains project specific properties such as project target, and library
+ dependencies. Lower level build properties are stored in ant.properties
+ (or in .classpath for Eclipse projects).
+
+ This file is an integral part of the build system for your
+ application and should be checked into Version Control Systems. -->
+ <loadproperties srcFile="project.properties" />
+
+ <!-- quick check on sdk.dir -->
+ <fail
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
+ unless="sdk.dir"
+ />
+
+ <!--
+ Import per project custom build rules if present at the root of the project.
+ This is the place to put custom intermediary targets such as:
+ -pre-build
+ -pre-compile
+ -post-compile (This is typically used for code obfuscation.
+ Compiled code location: ${out.classes.absolute.dir}
+ If this is not done in place, override ${out.dex.input.absolute.dir})
+ -post-package
+ -post-build
+ -pre-clean
+ -->
+ <import file="custom_rules.xml" optional="true" />
+
+ <!-- Import the actual build file.
+
+ To customize existing targets, there are two options:
+ - Customize only one target:
+ - copy/paste the target into this file, *before* the
+ <import> task.
+ - customize it to your needs.
+ - Customize the whole content of build.xml
+ - copy/paste the content of the rules files (minus the top node)
+ into this file, replacing the <import> task.
+ - customize to your needs.
+
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
+ <!-- version-tag: 1 -->
+ <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
View
10 AntiGuard/local.properties
@@ -0,0 +1,10 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+
+# location of the SDK. This is only used by Ant
+# For customization when using a Version Control System, please read the
+# header note.
+sdk.dir=/home/kyle/Android/automator/android-sdk-linux
View
20 AntiGuard/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
View
14 AntiGuard/project.properties
@@ -0,0 +1,14 @@
+# 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 edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-7
View
27 AntiGuard/res/layout/main.xml
@@ -4,25 +4,10 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
-
-<Button android:text="Back"
- android:id="@+id/backButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></Button>
-
-<Button android:text="Launcher"
- android:id="@+id/launcherButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></Button>
-
-<Button android:text="Development Settings"
- android:id="@+id/developmentButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></Button>
-
-<Button android:text="Uninstall AntiGuard"
- android:id="@+id/uninstallButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></Button>
-
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Hello World, unlock"
+ />
</LinearLayout>
+
View
2 AntiGuard/res/values/strings.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="app_name">AntiGuard</string>
+ <string name="app_name">unlock</string>
</resources>
View
84 AntiGuard/src/io/kos/antiguard/unlock.java
@@ -2,88 +2,14 @@
import android.app.Activity;
import android.os.Bundle;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.widget.Button;
-import android.app.KeyguardManager;
-import android.app.KeyguardManager.KeyguardLock;
-import android.content.Intent;
-import android.content.Context;
-import android.content.ComponentName;
-import android.net.Uri;
-
-public class unlock extends Activity {
+public class unlock extends Activity
+{
+ /** Called when the activity is first created. */
@Override
- public void onCreate(Bundle savedInstanceState) {
-
- KeyguardManager keyguardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
- KeyguardLock mkeyguardLock = keyguardManager.newKeyguardLock("unlock");
- mkeyguardLock.disableKeyguard();
-
-
-
+ public void onCreate(Bundle savedInstanceState)
+ {
super.onCreate(savedInstanceState);
-
setContentView(R.layout.main);
-
- // Button to go to the page the user was last looking at
- Button backButton = (Button) findViewById(R.id.backButton);
- backButton.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- back();
- }
- });
-
- // Button to go directly to the default launcher
- Button launcherButton = (Button) findViewById(R.id.launcherButton);
- launcherButton.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- viewLauncher();
- }
- });
-
- // Button to go directly to the Development options
- Button developmentButton = (Button) findViewById(R.id.developmentButton);
- developmentButton.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- viewDevelopmentSettings();
- }
- });
-
- // Button to UNINSTALL app
- Button uninstallButton = (Button) findViewById(R.id.uninstallButton);
- uninstallButton.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- promptUninstall();
- }
- });
-
-
- }
-
- public void viewLauncher(){
- Intent intent = new Intent(Intent.ACTION_MAIN);
- intent.addCategory(Intent.CATEGORY_HOME);
- startActivity(intent);
}
-
- public void back(){
- finish();
- }
-
- public void viewDevelopmentSettings(){
- Intent intent = new Intent(Intent.ACTION_MAIN);
- intent.setComponent(ComponentName.unflattenFromString("com.android.settings/.DevelopmentSettings"));
- intent.addCategory("android.intent.category.LAUNCHER");
- startActivity(intent);
- }
-
- public void promptUninstall(){
- Uri packageUri = Uri.parse("package:io.kos.antiguard");
- Intent uninstallIntent = new Intent(Intent.ACTION_UNINSTALL_PACKAGE, packageUri);
- startActivity(uninstallIntent);
- }
-
-
}

0 comments on commit 5ce1999

Please sign in to comment.
Something went wrong with that request. Please try again.