Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
screenfreeze committed Jan 11, 2014
0 parents commit 4994d76
Show file tree
Hide file tree
Showing 136 changed files with 3,853 additions and 0 deletions.
98 changes: 98 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.screenfreeze.deskcon"
android:versionCode="1"
android:versionName="0.1" >

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

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<application
android:allowBackup="true"
android:icon="@drawable/connector_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="net.screenfreeze.deskcon.MainActivity"
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=".ShareActivity"
android:label="Desktop" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="video/*" />
<data android:mimeType="application/*" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<activity
android:name=".DesktopHostsActivity"
android:label="Hosts" >
</activity>
<activity
android:name=".NotificationWhitelistActivity"
android:label="Whitelist" >
</activity>

<service android:name=".StatusUpdateService" />
<service android:name=".SendFilesService" />
<service android:name=".ControlService" />
<service android:name=".NotificationUpdateService"
android:enabled="@bool/has18"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<service android:name=".NotificationUpdateServiceOld"
android:enabled="@bool/pre18"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
</service>

<receiver android:name=".EventBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.POWER_DISCONNECTED" />
<action android:name="android.intent.action.POWER_CONNECTED" />
<action android:name="android.intent.action.BATTERY_LOW" />
<action android:name="android.intent.action.BATTERY_OKAY" />
<action android:name="android.intent.action.PHONE_STATE" />
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
<intent-filter android:priority="999" >
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
<receiver android:name=".BootCompleteBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>

</manifest>
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
DeskCon
-------

integrates your Android Device in the Desktop. Receive Notifications, Files
and Commands from your mobile Device on your Desktop PC. The Data is send via a
secure TLS Connection. The Connection is encrypted and authenticated with
self-signed Certificates (RSA-2048 PK).

Warning: This Project is still in development (beta) and may contain some Bugs or
Security Holes. If you find any, please report them ^^

This Project uses Libraries from Spongy Castle.


Information:
------------
- Project Website http://www.screenfreeze.net/deskcon
- Source https://github.com/screenfreeze/deskcon-desktop
- Google Play Store https://play.google.com/store/apps/details?id=net.screenfreeze.deskcon

Requirements (Android):
------------------------------
- Version >= 2.3.3


Install:
--------
- compile this Source and sideload
- or buy in Google Play Store and support the Developer


Usage:
------
- start the DeskCon Desktop Server
- (optional) change config File in ~/.deskcon
- start DeskCon App on your Android Device
- select Network > Desktop Hosts
- click the + Button and enter the IP of your Desktop PC
- check whether the Fingerprints match
98 changes: 98 additions & 0 deletions bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.screenfreeze.deskcon"
android:versionCode="1"
android:versionName="0.1" >

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

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<application
android:allowBackup="true"
android:icon="@drawable/connector_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="net.screenfreeze.deskcon.MainActivity"
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=".ShareActivity"
android:label="Desktop" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="video/*" />
<data android:mimeType="application/*" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<activity
android:name=".DesktopHostsActivity"
android:label="Hosts" >
</activity>
<activity
android:name=".NotificationWhitelistActivity"
android:label="Whitelist" >
</activity>

<service android:name=".StatusUpdateService" />
<service android:name=".SendFilesService" />
<service android:name=".ControlService" />
<service android:name=".NotificationUpdateService"
android:enabled="@bool/has18"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<service android:name=".NotificationUpdateServiceOld"
android:enabled="@bool/pre18"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
</service>

<receiver android:name=".EventBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.POWER_DISCONNECTED" />
<action android:name="android.intent.action.POWER_CONNECTED" />
<action android:name="android.intent.action.BATTERY_LOW" />
<action android:name="android.intent.action.BATTERY_OKAY" />
<action android:name="android.intent.action.PHONE_STATE" />
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
<intent-filter android:priority="999" >
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
<receiver android:name=".BootCompleteBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>

</manifest>
Binary file added bin/DeskCon.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$attr.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$bool.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$dimen.class
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$id.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$layout.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$menu.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$raw.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$string.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$style.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R$xml.class
Binary file not shown.
Binary file added bin/classes/net/screenfreeze/deskcon/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jarlist.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
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 bin/res/crunch/drawable-mdpi/connector_launcher.png
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.
Binary file added bin/resources.ap_
Binary file not shown.
Binary file added connector_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions gen/net/screenfreeze/deskcon/BuildConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package net.screenfreeze.deskcon;

public final class BuildConfig {
public final static boolean DEBUG = true;
}
122 changes: 122 additions & 0 deletions gen/net/screenfreeze/deskcon/R.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package net.screenfreeze.deskcon;

public final class R {
public static final class attr {
}
public static final class bool {
public static final int has18=0x7f060000;
public static final int pre18=0x7f060001;
}
public static final class dimen {
/** Default screen margins, per the Android Design guidelines.
Customize dimensions originally defined in res/values/dimens.xml (such as
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
*/
public static final int activity_horizontal_margin=0x7f070000;
public static final int activity_vertical_margin=0x7f070001;
}
public static final class drawable {
public static final int connector_launcher=0x7f020000;
}
public static final class id {
public static final int action_settings=0x7f0b0022;
public static final int app_icon=0x7f0b0009;
public static final int app_name=0x7f0b000a;
public static final int app_package=0x7f0b000b;
public static final int applistview=0x7f0b001d;
public static final int changelogView=0x7f0b0002;
public static final int checkBox=0x7f0b000c;
public static final int deletehostimageView=0x7f0b0016;
public static final int hostidtextView=0x7f0b0015;
public static final int hostiptextView=0x7f0b0011;
public static final int hostmactextView=0x7f0b0003;
public static final int hostnametextView=0x7f0b0001;
public static final int hosts_cancel_button=0x7f0b001b;
public static final int hosts_editText=0x7f0b0019;
public static final int hosts_save_button=0x7f0b001c;
public static final int hostsaddimageView=0x7f0b000e;
public static final int hostslistView=0x7f0b000f;
public static final int layout_root=0x7f0b0000;
public static final int linearLayout1=0x7f0b0010;
public static final int linearLayout2=0x7f0b0012;
public static final int linearLayout3=0x7f0b0013;
public static final int myfptextView=0x7f0b0014;
public static final int newipeditText=0x7f0b0005;
public static final int newporteditText=0x7f0b0007;
public static final int ping_button=0x7f0b001a;
public static final int scrollView1=0x7f0b000d;
public static final int serverfptextView=0x7f0b0020;
public static final int sharehostslistView=0x7f0b001e;
public static final int ssid_spinner=0x7f0b0018;
public static final int textView1=0x7f0b0004;
public static final int textView2=0x7f0b0006;
public static final int textView3=0x7f0b001f;
public static final int textView4=0x7f0b0021;
public static final int wifilockcheckBox=0x7f0b0008;
public static final int wifitextView=0x7f0b0017;
}
public static final class layout {
public static final int about=0x7f030000;
public static final int add_host_dialog=0x7f030001;
public static final int app_list_row=0x7f030002;
public static final int changelog=0x7f030003;
public static final int desktop_hosts=0x7f030004;
public static final int edit_host_dialog=0x7f030005;
public static final int host_list_row=0x7f030006;
public static final int network_conf_layout=0x7f030007;
public static final int notification_whitelist=0x7f030008;
public static final int share_desktop_hosts=0x7f030009;
public static final int verify_fingerprint_dialog=0x7f03000a;
}
public static final class menu {
public static final int main=0x7f0a0000;
}
public static final class raw {
public static final int defaultkeystore=0x7f050000;
public static final int defaultnotificationwl=0x7f050001;
}
public static final class string {
public static final int action_settings=0x7f080001;
public static final int app_name=0x7f080000;
}
public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f090000;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f090001;
}
public static final class xml {
public static final int preferences=0x7f040000;
}
}
Binary file added libs/android-support-v4.jar
Binary file not shown.
Binary file added libs/sc-light-jdk15on-1.47.0.3.jar
Binary file not shown.
Binary file added libs/scprov-jdk15on-1.47.0.3.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions proguard-project.txt
Original file line number Diff line number Diff line change
@@ -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 *;
#}
Loading

0 comments on commit 4994d76

Please sign in to comment.