bobblekeyboard / android_touch Goto Github PK
View Code? Open in Web Editor NEWLow latency high speed android multitouch event server
License: GNU General Public License v3.0
Low latency high speed android multitouch event server
License: GNU General Public License v3.0
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?
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);
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;
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
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
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
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.
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}]'
^
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 found a problem, the touch lags on the screen, i can't disappear the touch unless reboot the device, how to fix
when run example the httpserver print 'LargestInt out of Int rang'
when i exec the android touch in android device , no process running.
I have tried the precompiled build as well as building on my own - the app fails when it tries to open /dev/input/* with permission denied. I am running Android 11 on a oneplus 8 phone.
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
How can we stop the touch server
is there a adb command to stop the touch server?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.