forked from PAC-ROM/packages_apps_ROMControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5963ea9
Showing
24 changed files
with
733 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?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="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>ROMControl</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
|
||
LOCAL_SRC_FILES := $(call all-subdir-java-files) | ||
|
||
LOCAL_PACKAGE_NAME := ROMControl | ||
LOCAL_CERTIFICATE := platform | ||
|
||
include $(BUILD_PACKAGE) | ||
|
||
# Use the folloing include to make our test apk. | ||
include $(call all-makefiles-under,$(LOCAL_PATH)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
coreApp="true" | ||
package="com.roman.romcontrol" | ||
android:sharedUserId="android.uid.system" | ||
android:versionCode="1" | ||
android:versionName="1.0" > | ||
|
||
<original-package android:name="com.roman.romcontrol" /> | ||
|
||
<uses-permission android:name="android.permission.WRITE_SETTINGS" /> | ||
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> | ||
|
||
<application | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" > | ||
<activity | ||
android:label="@string/app_name" | ||
android:name=".ROMControlActivity" > | ||
<intent-filter > | ||
<action android:name="android.intent.action.MAIN" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:label="Navigation Bar Settings" | ||
android:name=".activities.NavigationBar" > | ||
<intent-filter > | ||
<action android:name="android.intent.action.MAIN" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:label="Lockscreen Settings" | ||
android:name=".activities.Lockscreens" > | ||
<intent-filter > | ||
<action android:name="android.intent.action.MAIN" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:label="Power Saver Settings" | ||
android:name=".activities.PowerSaver" > | ||
<intent-filter > | ||
<action android:name="android.intent.action.MAIN" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-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>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers class * extends android.app.Activity { | ||
public void *(android.view.View); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
# "ant.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Project target. | ||
target=android-14 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string-array | ||
name="pref_navigation_menu_entries"> | ||
<item>Right</item> | ||
<item>Left</item> | ||
<item>Both</item> | ||
</string-array> | ||
|
||
<!-- right is the default, easier to keep 0 as first index --> | ||
<string-array | ||
name="pref_navigation_menu_values" | ||
translatable="false"> | ||
<item>0</item> | ||
<item>1</item> | ||
<item>2</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_data_screen_off_entries"> | ||
<item>Do nothing</item> | ||
<item>Turn data off</item> | ||
<item>Switch to 2G mode</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_data_screen_off_values"> | ||
<item>20</item> | ||
<item>22</item> | ||
<item>21</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_data_screen_off_delay_entries"> | ||
<item>Don\'t wait (immediate)</item> | ||
<item>10 seconds</item> | ||
<item>30 seconds</item> | ||
<item>45 seconds</item> | ||
<item>1 minute</item> | ||
<item>5 minutes</item> | ||
<item>10 minutes</item> | ||
<item>15 minutes</item> | ||
<item>30 minutes</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_data_screen_off_delay_values"> | ||
<item>0</item> | ||
<item>10</item> | ||
<item>30</item> | ||
<item>45</item> | ||
<item>60</item> | ||
<item>300</item> | ||
<item>600</item> | ||
<item>900</item> | ||
<item>1800</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_sync_screen_off_interval_entries"> | ||
<item>5 minutes</item> | ||
<item>30 minutes</item> | ||
<item>1 hour</item> | ||
<item>2 hours</item> | ||
<item>3 hours</item> | ||
<item>4 hours</item> | ||
<item>5 hours</item> | ||
<item>6 hours</item> | ||
<item>8 hours</item> | ||
<item>12 hours</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_sync_screen_off_interval_values"> | ||
<item>300</item> | ||
<item>1800</item> | ||
<item>3600</item> | ||
<item>7200</item> | ||
<item>10800</item> | ||
<item>14400</item> | ||
<item>18000</item> | ||
<item>21600</item> | ||
<item>28800</item> | ||
<item>43200</item> | ||
</string-array> | ||
|
||
|
||
<string-array | ||
name="pref_powersaving_sync_screen_off_entries"> | ||
<item>Do nothing</item> | ||
<item>Turn autosync off</item> | ||
<item>Turn autosync off with delay</item> | ||
</string-array> | ||
|
||
<string-array | ||
name="pref_powersaving_sync_screen_off_values"> | ||
<item>35</item> | ||
<item>33</item> | ||
<item>34</item> | ||
</string-array> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="app_name">ROM Control</string> | ||
|
||
<!-- Main --> | ||
|
||
<!-- Navigation Bar --> | ||
<string name="title_pref_menu_display">Menu Settings</string> | ||
<string name="summary_pref_menu_display">Position of legacy menu button</string> | ||
|
||
<!-- Lockscreens --> | ||
<string name="title_pref_lockscreen_menu_unlock">Menu unlock</string> | ||
<string name="summary_pref_lockscreen_menu_unlock">Legacy menu icon unlocks screen</string> | ||
|
||
<!-- Power Saving --> | ||
<string name="title_pref_powersaving_pref_mode">Enable power saver</string> | ||
<string name="summary_pref_powersaving_pref_mode"></string> | ||
|
||
<string name="title_pref_powersaving_data_screen_off">Screen off data action</string> | ||
<string name="summary_pref_powersaving_data_screen_off">What to do with the data when the screen turns off</string> | ||
|
||
<string name="title_pref_powersaving_data_screen_off_delay">Data action delay</string> | ||
<string name="summary_pref_powersaving_data_screen_off_delay">How long to wait before applying data action?</string> | ||
|
||
<string name="title_pref_powersaving_sync_screen_off">Sync action</string> | ||
<string name="summary_pref_powersaving_sync_screen_off">What to do with your syncage?!</string> | ||
|
||
<string name="title_pref_powersaving_sync_screen_off_delay">Sync time interval</string> | ||
<string name="summary_pref_powersaving_sync_screen_off_delay">How long to wait between each forced sync</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<CheckBoxPreference | ||
android:key="pref_lockscreen_menu_unlock" | ||
android:title="@string/title_pref_lockscreen_menu_unlock" | ||
android:summary="@string/summary_pref_lockscreen_menu_unlock" /> | ||
|
||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<PreferenceCategory | ||
android:key="rom_ui" | ||
android:title="ROM UI"> | ||
|
||
<Preference | ||
android:key="menu_pref" | ||
android:title="Navigation Menu"> | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.romcontrol.activities.NavigationBar" | ||
android:targetPackage="com.roman.romcontrol" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="lockscreen_pref" | ||
android:title="Lockscreen Options"> | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.romcontrol.activities.Lockscreens" | ||
android:targetPackage="com.roman.romcontrol" /> | ||
</Preference> | ||
|
||
<Preference | ||
android:key="powersaver_pref" | ||
android:title="Power Saving Options"> | ||
|
||
<intent | ||
android:action="android.intent.action.MAIN" | ||
android:targetClass="com.roman.romcontrol.activities.PowerSaver" | ||
android:targetPackage="com.roman.romcontrol" /> | ||
</Preference> | ||
</PreferenceCategory> | ||
|
||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<ListPreference | ||
android:entries="@array/pref_navigation_menu_entries" | ||
android:entryValues="@array/pref_navigation_menu_values" | ||
android:key="pref_menu_display" | ||
android:title="@string/title_pref_menu_display" | ||
android:summary="@string/summary_pref_menu_display" /> | ||
|
||
</PreferenceScreen> |
Oops, something went wrong.