Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tungstwenty committed Dec 19, 2012
1 parent 9967896 commit 10bd4d8
Show file tree
Hide file tree
Showing 27 changed files with 2,214 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="/XposedAppSettings/lib/XposedBridgeApi-2.0rc2.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
*.class

# Package Files #
*.jar
*.war
*.ear
/bin
/gen
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>XposedAppSettings</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>
291 changes: 291 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .settings/org.eclipse.jdt.ui.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
formatter_profile=_Xposed
formatter_settings_version=12
45 changes: 45 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.robv.android.xposed.mods.appsettings"
android:versionCode="5"
android:versionName="0.0.5" >

<uses-sdk android:minSdkVersion="15" />
<permission-tree android:name="de.robv.android.xposed.mods.appsettings"/>
<uses-permission android:name="de.robv.android.xposed.mods.appsettings.BROADCAST_PERMISSION"/>
<permission android:name="de.robv.android.xposed.mods.appsettings.BROADCAST_PERMISSION" android:protectionLevel="dangerous"></permission>

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".XposedModActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".settings.ApplicationSettings"
android:label="Application Settings"
android:configChanges="orientation|screenSize">
</activity>

<meta-data
android:name="xposedmodule"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="Ability to set configurations on a per-app basis:
\n- Language
\n- Screen size and DPI
\n- Revoke permissions
\n- Stay in memory" />
<meta-data
android:name="xposedminversion"
android:value="2.0rc1.*" />
</application>

</manifest>
1 change: 1 addition & 0 deletions assets/xposed_init
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de.robv.android.xposed.mods.appsettings.XposedMod
Binary file added lib/XposedBridgeApi-2.0rc2.jar
Binary file not shown.
14 changes: 14 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -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-15
Binary file added res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_menu_save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/ic_menu_save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_menu_save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_menu_save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions res/layout/app_list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left|center" >
<ImageView
android:id="@+id/app_icon"
android:layout_width="36dp"
android:layout_height="36dp" />
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="10sp"
android:paddingRight="10sp" >
<TextView
android:id="@+id/app_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left" />
<TextView
android:id="@+id/app_package"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:textColor="#0099CC" />
</LinearLayout>
</LinearLayout>
29 changes: 29 additions & 0 deletions res/layout/app_permission_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left|center"
>
<TextView
android:id="@+id/perm_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@+id/chkPermDisabled"
android:gravity="left" />
<TextView
android:id="@+id/perm_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/perm_name"
android:layout_alignRight="@id/perm_name"
android:layout_below="@id/perm_name"
android:gravity="left"
android:textColor="#0099CC" />
<CheckBox
android:id="@+id/chkPermDisabled"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true" />
</RelativeLayout>
128 changes: 128 additions & 0 deletions res/layout/app_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/app_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/app_icon"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/package_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/app_label"
android:layout_toLeftOf="@id/app_icon"
android:textColor="#0099CC" />
<Switch
android:id="@+id/switchAppTweaked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:paddingLeft="8dp" />
<ImageView
android:id="@+id/app_icon"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_toLeftOf="@id/switchAppTweaked"
android:layout_gravity="right" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/viewTweaks"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/lblDPI"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:layout_alignParentLeft="true"
android:text="DPI:" >
<requestFocus />
</TextView>
<EditText
android:id="@+id/txtDPI"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/lblDPI"
android:layout_toRightOf="@id/lblDPI"
android:ems="3"
android:inputType="number"
android:imeOptions="actionDone|flagNavigateNext" >
</EditText>
<Spinner
android:id="@+id/spnScreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/lblDPI"
android:layout_toRightOf="@id/txtDPI" />
<CheckBox
android:id="@+id/chkTablet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/spnScreen"
android:layout_alignParentRight="true"
android:layout_alignTop="@id/lblDPI"
android:text="Tablet" />
<TextView
android:id="@+id/lblLanguage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:layout_alignParentLeft="true"
android:layout_below="@id/spnScreen"
android:text="Language: " />
<Button
android:id="@+id/btnListRes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/lblLanguage"
android:layout_alignParentRight="true"
android:text="List Res" />
<Spinner
android:id="@+id/spnLanguage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/lblLanguage"
android:layout_toLeftOf="@id/btnListRes"
android:layout_toRightOf="@id/lblLanguage" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/spnLanguage"
android:background="@android:color/darker_gray" />
<CheckBox
android:id="@+id/chkRevokePerms"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/spnLanguage"
android:text="Revoke Perms." />
<CheckBox
android:id="@+id/chkResident"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/spnLanguage"
android:enabled="false"
android:text="Resident" />
<ListView
android:id="@+id/lstPermissions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/chkRevokePerms"
android:fadingEdge="vertical"
android:fastScrollEnabled="false"
android:textFilterEnabled="false" />
</RelativeLayout>
</LinearLayout>
Loading

0 comments on commit 10bd4d8

Please sign in to comment.