2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 05:07:40 +00:00

206 Commits

Author SHA1 Message Date
Albert Vaca
18fcf79c79 Changed package name to kdeconnect_tp for releasing
tp stands for technology preview :P
2013-09-05 01:35:12 +02:00
Albert Vaca
83bfcfc7c3 Refresh button actually refreshes computer list 2013-09-05 01:34:27 +02:00
Albert Vaca
093350a175 Moved string to xml for i18n 2013-09-05 01:33:54 +02:00
Albert Vaca
950f684a05 Try to disconnect unused tcp connections 2013-09-05 01:03:40 +02:00
Albert Vaca
b4a359d81a Optimized imports 2013-09-05 00:23:15 +02:00
Albert Vaca
858bc30a4a Removed Avahi classes 2013-09-05 00:21:39 +02:00
Albert Vaca
d5bc6ebcfa Catch up with the KDE client
Implemented symmetric pairing
Implemented public key exchange
Implemented encryption
Implemented NetworkPackage protocol version 3
New GUI, less dependant on Android 3.0+ features
Plugins can now place a button in the user interface
Fixed not clickable plugins preferences page
Some refactoring
2013-09-03 22:13:51 +02:00
Albert Vaca
6b978f334b Fixed a crash in notificationsplugin 2013-08-28 19:38:00 +02:00
Albert Vaca
a7c06eb149 Reenabled ClipboardPlugin for Android 4.3
An official fix for the bug has been released
2013-08-27 17:19:31 +02:00
Albert Vaca
72b25f2b7d Mark request answers as so, to not show the notifications as new 2013-08-22 04:38:04 +02:00
Albert Vaca
1d09358075 Oops 2013-08-21 22:21:24 +02:00
Albert Vaca
9f13d577a4 Added a mutex to BackgroundService to prevent a ConcurrentModificationException
The same should be done for NotificationReceiver

+Added a TODO for the future GUI to plugins
2013-08-21 21:30:25 +02:00
Albert Vaca
32ac65bf8f Reverting last change to PingPlugin 2013-08-20 13:45:02 +02:00
Albert Vaca
b52d447093 Fully working notifications sync
Changed notifications sync protocol
Fixed unserialization of NotificationId
Fixed a bug on Device.addPlugin introduced in commit 76c9def95b85cb0e336b89c3f1bdfd2042465f04, because onCreate was not executed in the main thread
2013-08-20 13:41:13 +02:00
Albert Vaca
7c4a50cf35 Added the "add new connection before removing old one" optimization, as was done in Qt. 2013-08-20 09:58:25 +02:00
Albert Vaca
d3989d54e1 Removing connectionReceivers of MainActivity and MprisActivity to prevent leaking the activities memory 2013-08-20 09:58:17 +02:00
Albert Vaca
099839565f Begun to bring back 2.3 compatibility
Removed use of SharedPreferences.getStringSet
2013-08-20 00:37:08 +02:00
Albert Vaca
13b4f27f31 Added some possible todos 2013-08-20 00:09:00 +02:00
Albert Vaca
76c9def95b Fixed a race condition where onConnectionLost was called before onConnectionAccepted
+ MprisActivity now tries to reconnect to the plugin when there is a new connection,
just in case the new connection replaced the old one (the plugin would have been reloaded)
2013-08-19 23:59:13 +02:00
Albert Vaca
b22d753410 Implemented notifications plugin (Android 4.3 required)
Now plugins are almost self-contained (PluginFactory still needs to know about them)
Regression: Plugins settings page does not work
Now plugins that fail to load can display a message to the user explaining the problem
Clipboard plugin now compares if content has changed before sending it
2013-08-19 19:57:29 +02:00
Albert Vaca
92cbf99891 Major refactor matching KDED's (Android 4.0+ only again!)
Plugins:
Moved plugins from BackgroundService to Device and adapted as needed
Plugins now implement their own broadcast receivers, instead of using a global one
Renamed ServiceLauncher to KdeConnectBroadcastReceiver
Implemented PluginFactory
Merged SmsNotifications and CallNotifications into TelephonyPlugin

Interface:
Started new GUI (uses ActionBar and other Android 4.0+ widgets)
Mpris and Plugin Settings activities are now per-device
Removed SettingsFragment in favor of SettingsActivity (for now)
Removed CompatClibpoard
Added a class to convert internal phone name to human-readable names.

Persistence:
BackgroundService now stores a list of know (paired) devices
Device now stores its name, trusted state and plugin list
Added setTrusted and trust/untrust logic to Device
The Settings activity now reads/writes the plugin settings from/to Device

(Sorry for this huge commit)
2013-08-16 10:31:01 +02:00
Albert Vaca
b3ca862ba8 Answer battery status requests 2013-08-14 00:02:31 +02:00
Albert Vaca
53f8af551d Improved MPRIS controls. Added reconnect on screen on event. Fixed a missing calls that caused old links to be stored forever 2013-08-10 05:16:59 +02:00
Albert Vaca
3ad2d3a384 Compatibility with android 2.3 2013-08-09 22:33:12 +02:00
Albert Vaca
4d6c741bf1 Using Settings.Secure.ANDROID_ID instead of TelephonyManager.getDeviceId as deviceId because id didn't work on devices without SIM card 2013-08-08 18:45:55 +02:00
Albert Vaca
93288e9e54 Ooops, undefined variable 2013-08-08 18:04:43 +02:00
Albert Vaca
9fc4ad7c30 Android Lint issues 2013-08-08 04:26:06 +02:00
Albert Vaca
27f7e54c7f Dynamic tcp port change when bind fails 2013-08-08 04:12:28 +02:00
Albert Vaca
ec7333dc9a Don't connect to myself 2013-08-07 19:14:17 +02:00
Albert Vaca
a9c137cf98 Bugfixing (end of line was missing in package serialization) 2013-08-07 18:26:03 +02:00
Albert Vaca
a3c9893afd BroadcastTcpLinkProvider now only uses NioSessionComputerLinks 2013-08-07 12:23:52 +02:00
Albert Vaca
158d57153a Added BroadcastTcpLinkProvider 2013-08-07 10:44:52 +02:00
Albert Vaca
0c7cedc7aa Small reconnection bug
Branding
2013-08-05 01:11:28 +02:00
Albert Vaca
603cc62ef0 Added sms notifications
Added contact name lookup for sms and call notifications
2013-08-01 02:30:58 +02:00
Albert Vaca
b9c013630b Management for device disconnection and initial implementation of the device list 2013-07-31 19:10:51 +02:00
Albert Vaca
4930a019d4 Added preferences and the ability to enable and disable plugins from there 2013-07-31 18:02:22 +02:00
Albert Vaca
cc947902f3 Added player list and current track to mpris control
Added onDeviceConnected event in PackageInterface
2013-07-30 20:18:30 +02:00
Albert Vaca
fc3f3fc86e Added a packageinterface and activity to send basic mpris commands 2013-07-29 18:42:12 +02:00
Albert Vaca
4176d9b15e Added battery reporting interface 2013-07-26 16:23:26 +02:00
Albert Vaca
96f913ba79 Do not report empty numbers 2013-07-25 18:17:02 +02:00
Albert Vaca
61990fec50 PauseMusicPackageInterface now supports MPRIS
Other small improvements
2013-07-24 23:51:06 +02:00
Albert Vaca
91e99806ee Android: Uses Apache Mina to abstract socket management
KDE: Housekeeping
2013-07-24 18:42:33 +02:00
Albert Vaca
43059d0230 Some bugs fixed and sockets keepalive enabled 2013-07-23 20:22:38 +02:00
Albert Vaca
91ebceb5ca Added clipboard sync
Merged "package emitters" and "package receivers" in "package interfaces"
2013-07-23 17:50:09 +02:00
Albert Vaca
c7557f0dc6 Implemented bi-directional communication using tcp. 2013-07-23 16:11:54 +02:00
Albert Vaca
8347c760f5 Rewritten old package emitters and receivers using the new package format
Splitted up ping receiver from notification receiver in KDE
Improved pausemusic receiver
Fixed same computer being discovered multiple times
Fixed some other minor bugs and compilation warnings
2013-07-04 19:17:22 +02:00
Albert Vaca
79d530e3c4 Package version checks 2013-07-04 14:31:47 +02:00
Albert Vaca
de858175b7 Implemented new package format on the Android app 2013-07-04 14:24:46 +02:00
Albert Vaca
42cd517fb7 Yet another refactor, mostly moving code from from daemon class to device class
Device now has a public dbus interface
Removed wizard from kcm: now the main list shows all the devices and you can pair/unpair using a checkbox
Both Kde and Android now use unique device ids
2013-07-03 03:52:44 +02:00
Albert Vaca
edf991e884 Fixed android app bug 2013-07-02 15:22:05 +02:00