Re: android x86 input raw sensor data

222 views
Skip to first unread message
Message has been deleted
Message has been deleted

Chih-Wei Huang

unread,
Dec 1, 2015, 8:01:39 PM12/1/15
to Android-x86
2015-12-01 23:33 GMT+08:00 Vel Asta <pavel.as...@gmail.com>:
> Dear folks, any small pointer would be greatly appriciated and is be happy to provide all the code and guide once it's done so anyone in the community can use it :)

Don't understand what you want to do exactly.

If you want a tutorial of uinput programming,
read the code in
hardware/libsensors/kbdsensor.cpp

It uses the built-in keyboard to emulate
the sensors events.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Message has been deleted
Message has been deleted

Chih-Wei Huang

unread,
Dec 7, 2015, 8:24:03 PM12/7/15
to Android-x86
2015-12-08 9:08 GMT+08:00 Vel Asta <pavel.as...@gmail.com>:
> Dear Chih-Wei Huang,
>
> I'm sorry for not being clear. I'm trying to test my apps and input the
> Accelerometer and Gyroscope readings from my Samsung device into my Android
> x86.
> On google emulator I used the SDKController application that read the
> sensors and inputed them into the Emulator via ADB port forwarding.
> But I'm not too sure how to do that with the Android x86 while running on
> Virtualbox :/ thank you very for any comments in advance :)

Just use adb to connect to the ip of the virtual box:

adb connect $IP

(you'd better to set the network to bridge mode insteadof nat mode)
Then it will work like the emulator.
Message has been deleted

Mke

unread,
Dec 7, 2015, 8:41:25 PM12/7/15
to andro...@googlegroups.com
+1 that's how I got 4.4RC2 to work. My big mess up was I had my phone
hooked to the computer charging. Which confused ADB... Was a week to CW
got me to understand exactly what was going on. Even though he didn't know
about the extra connection...



Sent with AquaMail for Android
http://www.aqua-mail.com
> --
> You received this message because you are subscribed to the Google Groups
> "Android-x86" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-x86...@googlegroups.com.
> To post to this group, send email to andro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-x86.
> For more options, visit https://groups.google.com/d/optout.


Message has been deleted

mike...@android-x86.net

unread,
Dec 8, 2015, 3:15:39 PM12/8/15
to andro...@googlegroups.com

When I was ADB it was picking up the phone instead of the build. So everything I was trying to do in ADB, like connect, install, was being redirected. When I disconnected the phone. Then tried the ADB connect it worked....

Sent with AquaMail for Android
http://www.aqua-mail.com

On December 7, 2015 7:47:03 PM Pavel Astakhov <pavel.as...@gmail.com> wrote:

Hello Miker, just to make sure I understood so you did exaclly what I mentioned above in that order and you said it worked for you? 

But you said your phone was connected to the computer but that confused ADB? Isn't the phone supposed to be connected for the SDkController application to work? :) 



--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/x88IR2pfWnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

mike...@android-x86.net

unread,
Dec 8, 2015, 3:15:46 PM12/8/15
to andro...@googlegroups.com

Oh that I was in the build terminal.

Sent with AquaMail for Android
http://www.aqua-mail.com

On December 7, 2015 7:47:03 PM Pavel Astakhov <pavel.as...@gmail.com> wrote:

Hello Miker, just to make sure I understood so you did exaclly what I mentioned above in that order and you said it worked for you? 

But you said your phone was connected to the computer but that confused ADB? Isn't the phone supposed to be connected for the SDkController application to work? :) 
On Mon, Dec 7, 2015 at 5:41 PM, Mke <mike...@android-x86.net> wrote:


--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/x88IR2pfWnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Miker R

unread,
Dec 8, 2015, 5:11:37 PM12/8/15
to Android-x86
Ok, I see what Happened, I was Replying to the Connecting statement, I have no clue on raw data....

Sry Replies by E-mail can tend (for me) to get confusing, just re-read your last one and decided to come over and see what's up....

Mike

On Monday, November 30, 2015 at 11:38:54 AM UTC-6, Vel Asta wrote:
Hey guys, I want to input the sensor readings from my old garbage android device into the Android x86 when I'm testing apps. I know I should use the uinput approach but not too familiar with it. I know how to do this with the Google SDK Emulator (using ADB and the SdkControllerSensor application) but not too sure how to connect and insert the sensor data into the Android x86 5.1 or 4.3.

Any pointer would be greatly appreciated. 
Message has been deleted

Chih-Wei Huang

unread,
Dec 10, 2015, 8:33:13 PM12/10/15
to Android-x86
2015-12-11 8:35 GMT+08:00 Vel Asta <pavel.as...@gmail.com>:
> Hey folks does anyone else know how to input sensor readings into the
> Android x86???? :)
>
> What I need to do to get it connected and sent over (would be happy to
> provide source code afterwards to anyone)
>
> It'd be great to test apps that way so I can input acceleroemter and
> gyroscope :)

Haven't you tried the way I told you?

What you need is just read the ADB manual...

http://developer.android.com/tools/help/adb.html
Reply all
Reply to author
Forward
Message has been deleted
0 new messages