Skip to content

Commit

Permalink
push the sources
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Feb 10, 2014
1 parent 74e915c commit 1151074
Show file tree
Hide file tree
Showing 145 changed files with 10,508 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Expand Up @@ -213,3 +213,10 @@ pip-log.txt

#Mr Developer
.mr.developer.cfg

#Idea
*.iml
.idea/

#gradle
.gradle/
4 changes: 4 additions & 0 deletions project/.gitignore
@@ -0,0 +1,4 @@
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store
1 change: 1 addition & 0 deletions project/ActiveDisplay/.gitignore
@@ -0,0 +1 @@
/build
67 changes: 67 additions & 0 deletions project/ActiveDisplay/build.gradle
@@ -0,0 +1,67 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
apply plugin: 'android'

repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.1"

defaultConfig {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

final Console console = System.console();
if (console != null) {
signingConfigs {
release {
storeFile file(console.readLine("Enter keystore path: ")
storePassword console.readLine("Enter keystore password: ")
keyAlias console.readLine("Enter alias key: ")
keyPassword console.readLine("Enter key password: ")
}
}
} else {
signingConfigs {
release {
}
}
}

buildTypes {
debug {
zipAlign true
buildConfigField "boolean", "MY_DEBUG", "true"
packageNameSuffix '.debug'
versionNameSuffix '-debug'
}
release {
zipAlign true
runProguard true
proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
signingConfig signingConfigs.release
buildConfigField "boolean", "MY_DEBUG", "false"
}
}
productFlavors {
defaultFlavor {
proguardFile 'proguard-rules.txt'
}
}
}

dependencies {
}
17 changes: 17 additions & 0 deletions project/ActiveDisplay/proguard-rules.txt
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in F:/Android/android-studio/sdk/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 *;
#}
98 changes: 98 additions & 0 deletions project/ActiveDisplay/src/main/AndroidManifest.xml
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013-2014 AChep@xda <artemchep@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.achep.activedisplay"
android:versionCode="4"
android:versionName="1.1">

<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

<permission android:name="android.permission.STATUS_BAR_SERVICE" />

<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme">
<activity
android:name=".activities.MainActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:uiOptions="splitActionBarWhenNarrow">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".activities.SettingsActivity"
android:label="@string/settings"
android:launchMode="singleInstance" />

<activity
android:name=".activities.ActiveDisplayActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:screenOrientation="nosensor"
android:configChanges="keyboardHidden"
android:excludeFromRecents="true"
android:theme="@style/ActiveDisplayTheme"/>

<!-- Notification listener service -->
<service
android:name=".notifications.NotificationHandleService"
android:label="@string/app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>

<!-- Sensor listener service -->
<service
android:name=".sensor.SensorMonitorService"
android:label="@string/app_name">
</service>

<!-- Device admin rights -->
<receiver
android:name=".admin.AdminReceiver"
android:label="@string/device_admin"
android:description="@string/device_admin_description"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>

</application>

</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1151074

Please sign in to comment.