GithubHelp home page GithubHelp logo

blnk2007 / synergy-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from symless/synergy-android-cyanogen

0.0 2.0 0.0 191 KB

Android client for Synergy, requires a modded Android with access to /dev/uinput (e.g. Cyanogen).

License: GNU General Public License v2.0

Shell 0.07% Java 81.59% Makefile 0.43% C 17.91%

synergy-android's Introduction

APK download: http://sourceforge.net/projects/synergyandroid/files/

Introduction
-----------------------------------------------------------------------
SynergyAndroid is a port of the synergy client to the Android platform. 
See http://synergy-project.org for detail. Currently in the planning stage.
New developers are very welcome to join in.

Pre-requirements
-----------------------------------------------------------------------
We use the uinput module for user space input driver, so you must have
a modded Android with access to /dev/uinput (Like Cyanogen). That means
your android must have /dev/uinput module and this file can be RW by app.

You can follow blow steps to set a custom android emulator for testing:

    1. Clone the android kernel source from android.git.kernel.org
        #git clone git://android.git.kernel.org/kernel/common.git
    2. Check out the emulator branch
        #git checkout -t origin/android-goldfish-2.6.29 -b goldfish
    3. Generate the kernel configuration for emulator
        #make ARCH=arm goldfish_defconfig
    or get a config copy from a exist emulator rom.
        #adb pull /proc/config.gz
    4. Edit the .config file, make sure 
        CONFIG_INPUT_UINPUT=y
    5. Compile the kernel using cross toolchain (you can get prebuilt 
       cross toolchain from android source repo or just
        #git clone git://android.git.kernel.org/platform/prebuilt.git
       all platform cross chain are there.)
        #make ARCH=arm CROSS_COMPILE=prebuilt/YOUR_PLATFORM/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
        
    6. Now, the kernel built is in the arch/arm/boot/ folder. 
       You can start the emulator with this kernel
        #emulator -avd YOUR_AVD -kernel ANDROID_KERNEL_PATH/arch/arm/boot/zImage 
       
    7. At last, you should make sure your app can read and write /dev/uinput
        #adb shell chmod 660 /dev/uinput
       
    8. Now, you can build the project and test it.
 
Building the project
-----------------------------------------------------------------------
SynergyAndroid use the jni to access the /dev/uinput module, so you must
compile the jni source by NDK firstly. And then you can directly build 
and debug the project in eclipse.
   
    #./build_jni.sh <NDK Base>

then just build the whole project in eclipse.

Running 
-------------------------------------------------------------------------
Reminder: you should build the jni source first and chmod 666 /dev/uinput

Then you can:
1. just run the project in eclipse or 
2. install the PROJECT_PATH/bin/Synergy.apk to emulator/device. 
      #adb install PROJECT_PATH/bin/Synergy.apk

TODOs
----------------------------------------------------------------------
Client reconnect
Proper handling of shift, alt, caps lock... etc.  

Options to Implement
-------------------------
Logging level
Port number
Retry interval ?

Key Translation
------------------------

synergy-android's People

Watchers

James Cloos avatar  avatar

synergy-android's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.