Giter VIP home page Giter VIP logo

android_touch's People

Contributors

kunaldawn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_touch's Issues

Touch requires one argument.

When I try to execute the touch after pushing the precompiled file to the specified directory, I get a message saying that I need to provide one argument. After checking with --help it says that the argument should be a file. What kind of file do I need to run this?

Request Header content-length in lower first case makes server ignore requests!

The Content-Length Header in Requests must be UpperFirst-ed.
content-length will make the server parse an empty request body.
Content-Length in upper first, will work correctly.
The problem is that if you are using tools like Postman, the header regarding the length of the body, is automatically written by the tool (in my case Postman writes it in lower case).
I fixed it editing my local file httplib.h at line 511, in this way

auto len = get_header_value_int(x.headers, "Content-Length", 0);
if(!len)
    len = get_header_value_int(x.headers, "content-length", 0);

Logging on Device Console Fails

Into the function dispatchMessage of the file Logging.cpp there is the following directive

void android_touch::Logging::dispatchMessage(std::string message) {
#ifdef ANDROID
    __android_log_print(ANDROID_LOG_DEBUG, "android_touch", "%s", message.c_str());
#else
    std::cout << "[android_touch] : " << message << std::endl;
#endif
}

This doesen't work on my device. I compiled on the platform android-23 and my abi is armeabi-v7a.

I solved the problem commenting the directive and using just the following:

std::cout << "[android_touch] : " << message << std::endl;

can we set move speed ?

hello there sorry to open this as issue but i dont know hot to ask a quesionon githup
my question can we set the move command speed ? like to to let it move slowly or move faster
is this possible ? and if yes is there any explantion please ?
thank you

android_touch does not work

Hello, we are using your project on GitHub: https://github.com/BobbleKeyboard/android_touch,
I have encountered a problem on some Android devices when I run: adb shell /data/local/tmp/android_touch At the time, a warning appears: WARNING: linker: /data/local/tmp/android_touch: unsupported flags DT_FLAGS_1=0x8000001,
how can I solve this? Thank you, expect a reply

Start the touch gives Error

C:\Users\hamma\Desktop\Emulator>adb shell /data/local/tmp/touch
WARNING: linker: /data/local/tmp/touch: unused DT entry: type 0x6ffffffe arg 0x1908
WARNING: linker: /data/local/tmp/touch: unused DT entry: type 0x6fffffff arg 0x3

How to use for android apps ?

An example android project or a well documented how to use instructions for android apps would be nice , instead of showing python script and curl commands.

Curl error when sending the command

i am using curl 7.68.0 on windows x64 latest to send the command to Touch server
here is the command from your documentation
curl -d '[{"type":"down", "contact":0, "x": 100, "y": 100, "pressure": 50}, {"type": "commit"}, {"type": "up", "contact": 0}, {"type": "commit"}]' http://localhost:9889

and i am getting this error

curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host: x
curl: (6) Could not resolve host: 100,
curl: (6) Could not resolve host: y
curl: (6) Could not resolve host: 100,
curl: (6) Could not resolve host: pressure
curl: (3) unmatched close brace/bracket in URL position 3:
50}]'
^

curl: (56) Recv failure: Connection was aborted

When i send the command to my samsung s10plus the command

curl --header "Content-Type: application/json" --trace-ascii dump.txt -d '[{"type":"down","contact":0,"x":10,"y":10,"pressure":50},{"type":"commit"},{"type":"up","contact":0},{"type":"commit"}]' http://localhost:9889

i get the following error
curl: (56) Recv failure: Connection was aborted

here is the dump log

== Info: Trying ::1:9889...
== Info: TCP_NODELAY set
== Info: Trying 127.0.0.1:9889...
== Info: TCP_NODELAY set
== Info: Connected to localhost (127.0.0.1) port 9889 (#0)
=> Send header, 148 bytes (0x94)
0000: POST / HTTP/1.1
0011: Host: localhost:9889
0027: User-Agent: curl/7.68.0
0040: Accept: /
004d: Content-Length: 95
0061: Content-Type: application/x-www-form-urlencoded
0092:
=> Send data, 95 bytes (0x5f)
0000: '[{type:down,contact:0,x:10,y:10,pressure:50},{type:commit},{typ
0040: e:up,contact:0},{type:commit}]'
== Info: upload completely sent off: 95 out of 95 bytes
== Info: Recv failure: Connection was aborted
== Info: Closing connection 0

I have problem

i found a problem, the touch lags on the screen, i can't disappear the touch unless reboot the device, how to fix

Permission denied in android side

Hey guys, great project and thanks for sharing!

I'm having a problem, I get "Permission denied" when I try to shell the script:

adb shell /data/local/tmp/android_touch
/system/bin/sh: /data/local/tmp/android_touch: can't execute: Permission denied

If it doesn't require root, is this normal?

Thank you in advance

Stop the Touch Server

How can we stop the touch server
is there a adb command to stop the touch server?

Closes immediately after start

Greetings,

I've used the precompiled x86 version from the libs folder, followed the instructions.
But when i start it closes immediately.

Could you please guide me to the right direction?

Thank you in advance.

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.