cy1992s / androidscreencast

Automatically exported from code.google.com/p/androidscreencast
0 stars 0 forks source link

No mouse/keyboard control? #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When I use the new 0.2 release I no longer get the permission denied, and 
I get the "device" on my screen - but I cannot control it. Mouse and keys 
doesn't work. When I control the device on my Magic it displayes fine on 
the monitor...

What version of the product are you using? On what operating system?
Windows Vista Home Premium - service pack 1
Java 6 version 16
HTC Magic - firmware 1,5 Build 2.16.401.5 (No Root)
Android-sdk-windows-1.6_r1.zip

Original issue reported on code.google.com by kochhansen on 16 Oct 2009 at 7:56

GoogleCodeExporter commented 9 years ago
i've made some test to a non-rooted device, looks the error is :
10-16 13:36:30.556: ERROR/dalvikvm(2112): Can't open dex cache
'/data/dalvik-cache/data@local@tmp@InjectAgent.jar@classes.dex': No such file or
directory

Original comment by thiel.al...@gmail.com on 16 Oct 2009 at 12:26

GoogleCodeExporter commented 9 years ago
Like kochansen, I tried the new 0.2 release - this time, no permission denied 
message
and can see the device!  Excellent- Thanks!  I can right mouse click to rotate 
the
device and view the device directory structure.  

However, I just cannot use the mouse nor the keyboard to control it.  I have to
control it on the actual device and I can see the effect in the remote control 
software.

Usual unrooted 2.73 UK htc hero, 1.5 android sdk, jdk 6.

Original comment by darrentw...@gmail.com on 16 Oct 2009 at 1:34

GoogleCodeExporter commented 9 years ago
Same issue here.

Java 1.6
HTC Magic, Firmware 1.5, Kernel 2.6.27 (No root)
SDK 1.6

Original comment by js.stoe...@gmail.com on 16 Oct 2009 at 1:40

GoogleCodeExporter commented 9 years ago
You must have a rooted device for now because it require write permission in
/data/dalvik-cache/.
I'm looking for another way to inject mouse and keyboard events for non-rooted 
devices.

Original comment by thiel.al...@gmail.com on 16 Oct 2009 at 3:13

GoogleCodeExporter commented 9 years ago
Issue 14 has been merged into this issue.

Original comment by thiel.al...@gmail.com on 24 Oct 2009 at 3:23

GoogleCodeExporter commented 9 years ago
any news on this issue... or has it been "abandoned" to the non-root users :)

Original comment by medici...@gmail.com on 8 Nov 2009 at 6:28

GoogleCodeExporter commented 9 years ago
Java 1.6
HTC Magic, Firmware 1.6, ROOT
Mouse OK
Keyboard NOTHING

What permissions are required to operate the keyboard?
I have write permissions in /data/dalvik-cache/

GOOD JOB

Original comment by 2040p...@gmail.com on 9 Nov 2009 at 9:39

GoogleCodeExporter commented 9 years ago
same problem here, real shame for us non-rooters.

Java 1.6
HTC Magic, Firmware 1.6 (no root)
SDK 1.6

Original comment by lukenu...@gmail.com on 16 Nov 2009 at 11:00

GoogleCodeExporter commented 9 years ago
I have a rooted Sprint Hero. I still cannot control my device with the keyboard 
or
mouse. I can see it just fine. Right click works.

Using Win7 x86
Java 6.1
SDK 1.5
HTC Hero CDMA w/root

Original comment by Jeremiah...@gmail.com on 16 Nov 2009 at 5:15

GoogleCodeExporter commented 9 years ago
I have a Sprint Hero w/Google.  I have same issue, I can see the screen and it
refreshed when I physically mess with the phone...but no keyboard or mouse 
control of
the phone.  

WinXP Pro
Java 6.1
SDK 1.5 

Original comment by vander...@gmail.com on 18 Nov 2009 at 1:05

GoogleCodeExporter commented 9 years ago
I have run "adb shell chmod 777 /data/dalvik-cache", but I am still unable to 
control
my G1 with my keyboard.

Windows XP Pro SP3
Java 6 v 17
SDK 1.6
HTC Dream\G1 Cyanogen v 4.2.5 rooted

Original comment by fast2...@gmail.com on 18 Nov 2009 at 5:24

GoogleCodeExporter commented 9 years ago
Mouse is fine here, no keyboard though. Running a rooted Magic with CM 4.0.4

Original comment by sop...@gmail.com on 20 Nov 2009 at 10:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same issue here.  Mine is rooted and right-click flips orientation but nothing 
else
works.

Windows XP SP3
Jave 6 v 17
SDK 1.6
HTC Hero\G2 Modaco Core ROM rooted

Original comment by Killian1...@gmail.com on 26 Nov 2009 at 11:26

GoogleCodeExporter commented 9 years ago
I get full control of the device with the mouse, just not accepting any 
Keyboard Input.

Device info:

DEVICE: Merlot MyTouch 3G
STATUS: Rooted - Cyanogen Recovery 1.4 +JF
ROM: Cyanogen v4.2.7.1 (12/02)

PC is running Windows XP Pro SP3

Original comment by dchristi...@gmail.com on 7 Dec 2009 at 11:09

GoogleCodeExporter commented 9 years ago
Same in my case

Original comment by serge...@gmail.com on 14 Dec 2009 at 5:28

GoogleCodeExporter commented 9 years ago
no mouse, no keyboard. only right clicks work.

DEVICE: G1
STATUS: non-rooted
Java 1.6
SDK 1.6

Original comment by m.a.pat...@gmail.com on 15 Dec 2009 at 8:57

GoogleCodeExporter commented 9 years ago
same here...rooted G1. not able to mouse, keyboard. only right clicks works.
DEVICE: G1
STATUS: rooted
Java 1.6 v 17
SDK 2.0
vista ultimate

Original comment by 123o...@gmail.com on 25 Dec 2009 at 9:55

GoogleCodeExporter commented 9 years ago
I got it working on a rooted Motorola Droid with many trials/tribulations.

Here were steps I took:

1.  Start an emulator and get ScreenCast app running against it
2.  adb pull /data/dalvik-cache/data@local@tmp@InjectAgent.jar@classes.dex from 
the 
emulator to local file on my pc
3.  Take emulator down
4.  Connect my rooted droid
5.  adb push the file to /data/local/data@local@tmp@InjectAgent.jar@classes.dex
6.  adb shell
7.  su
8.  mv /data/local/data@local@tmp@InjectAgent.jar@classes.dex /data/dalvik-
cache/data@local@tmp@InjectAgent.jar@classes.dex

Not quite the consumer approach, but definitely works.

For some reason my right click is throwing an error at the moment, but it's 
probably 
due to code changes I experimented with.

This is going to save me so much time from having to stop working to pick up my 
phone  
to respond to texts, etc.

Original comment by tjcsm...@gmail.com on 26 Dec 2009 at 12:32

GoogleCodeExporter commented 9 years ago
Thank you for your detailled feedback, it really helps. Looks like dalvik-cache 
is
not writable from shell without "su" on your droid... interesting

If you have usefull code changes, you can contact me for SVN write access.

Original comment by thiel.al...@gmail.com on 28 Dec 2009 at 9:13

GoogleCodeExporter commented 9 years ago
i confirm tjcSmith's behavior. I can use my PC keyboard and the mouse to type 
onto my
droid device. 

I do get the right click error, but i noticed one behavior, if i clicked on the 
top
left corner (right below the edge), i was able to rotate the screen. I realized 
the
error had something to do with coordinates so maybe clicking in different areas 
might
not produce the error.

In a nutshell, I can use my keyboard and mouse from my PC to control the droid. 
I AM
REALLY REALLY HAPPY. 

Keep up the good work.

Thanks a lot. Let me know if you wish me to do some testing with the droid. I 
would
be glad to do it. I am new with android so might be a bit slow, but i'll get 
there.

Original comment by gurpreet...@gmail.com on 5 Jan 2010 at 7:30

GoogleCodeExporter commented 9 years ago
Is it possible to work around write permissions for non-rooted users in the 
same way
as PDANET has worked around it for tethering? Maybe with a more robust PC-side
program to be installed?

Original comment by jonsby@gmail.com on 11 Jan 2010 at 10:10

GoogleCodeExporter commented 9 years ago
I also had to do the same procedure tjcSmith noted for my Rooted Sprint HTC 
Hero.
After that it seems to be working pretty well! 

Original comment by nateniu@gmail.com on 11 Jan 2010 at 10:37

GoogleCodeExporter commented 9 years ago
TJ:

My apologies.  I completely understand what you are doing but I'm getting stuck 
on #2.

Can you please give me a more detailed (complete) command I can type into my 
command
window to "pull" this file?

Also, while you're at it....a complete "push" command would be wonderful too.

Thanks,
Matt

1.  Start an emulator and get ScreenCast app running against it
2.  adb pull /data/dalvik-cache/data@local@tmp@InjectAgent.jar@classes.dex from 
the 
emulator to local file on my pc
3.  Take emulator down
4.  Connect my rooted droid
5.  adb push the file to /data/local/data@local@tmp@InjectAgent.jar@classes.dex
6.  adb shell
7.  su
8.  mv /data/local/data@local@tmp@InjectAgent.jar@classes.dex /data/dalvik-
cache/data@local@tmp@InjectAgent.jar@classes.dex

Original comment by suderm...@gmail.com on 19 Jan 2010 at 7:37

GoogleCodeExporter commented 9 years ago
I was able to perform TJ's 8 steps....I now have mouse control...of course, 
there's a
3 second delay between click and action...but you get what you pay for ;-)

Typing control is much more responsive..I find it quick useable for txting

Original comment by suderm...@gmail.com on 20 Jan 2010 at 11:26

GoogleCodeExporter commented 9 years ago
Here is an updated more literal set of steps as requested by sudermatt

1.  Start an emulator and get ScreenCast app running against it (DO NOT HAVE 
YOUR 
PHONE CONNECTED YET)
2.  adb pull /data/dalvik-cache/data@local@tmp@InjectAgent.jar@classes.dex 
/TEMPclasses.dex
  This copies a file from the emulator to local file on my pc
3.  Take emulator down
4.  Connect my rooted droid
5.  adb push /TEMPclasses.dex 
/data/local/data@local@tmp@InjectAgent.jar@classes.dex
  This copies from from local pc to a temporary location on the phone
6.  adb shell
7.  su
8.  mv /data/local/data@local@tmp@InjectAgent.jar@classes.dex /data/dalvik-
cache/data@local@tmp@InjectAgent.jar@classes.dex
  This moves file from the temporary location on the phone, to the permanent location 
it needs to be for dalvik-cache to use it.

Original comment by tjcsm...@gmail.com on 21 Jan 2010 at 6:51

GoogleCodeExporter commented 9 years ago
Confirmed that the instructions in Comment 26 work to the letter.  No 
right-click
crash or error for me.  Droid running 2.0.1, OS X 10.5.8.

Original comment by jwhardca...@gmail.com on 22 Jan 2010 at 6:20

GoogleCodeExporter commented 9 years ago
I'm not running droid I am running 1.6 rooted I tried this last week and it 
worked
but I flashed a new rom and not I can't get it set up it says tempclasses.dex 
doesn't
exist and clues.

Original comment by fori...@gmail.com on 25 Jan 2010 at 6:59

GoogleCodeExporter commented 9 years ago
Issue 23 has been merged into this issue.

Original comment by thiel.al...@gmail.com on 26 Jan 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Sorry, not go for my rooted droid (stock 2.0.1 ROM)... Tried the 8 steps 
outlined
above, the .dex file IS showing in the proper folder on the device but there is 
still
NO keyboard OR MOUSE control for my Moto Droid... Looking forward to future 
versions.
I SOOOO miss MyMobiler on my old WM phone.

Original comment by mcalabr...@gmail.com on 1 Feb 2010 at 5:17

GoogleCodeExporter commented 9 years ago
Try looking at adb logcat output (from desktop shell prompt, type adb logcat) 
when you 
initally start the .jnlp file.  It should give some indication of why your 
droid is 
having difficulty starting the injector application.   May be something like 
can't find  
InjectAgent.jar or may reveal a mis-type in the name of the file or something.

Original comment by tjcsm...@gmail.com on 1 Feb 2010 at 3:25

GoogleCodeExporter commented 9 years ago
Also, check in Settings - Applications - Development that the "USB Debugging" 
checkbox 
is enabled.

Original comment by tjcsm...@gmail.com on 1 Feb 2010 at 3:27

GoogleCodeExporter commented 9 years ago
For my rooted android on Galaxy.
adb shell
su
chmod 777 /data/dalvik-cache
cd /data/dalvik-cache
chmod 777 ./*

And no, reload screencast and it's ok
Hope that help

Original comment by osmoze.linux on 4 Feb 2010 at 10:54

GoogleCodeExporter commented 9 years ago
You can do the chmod to make /data/dalvik-cache writeable, however that does 
open an 
opportunity for some other application to have more access than is desired - 
which is 
why the Android team made it not writable.   That's why I chose to just get 
this 
particular code in place, since I've been able to review the source and know 
what it is 
doing.

Original comment by tjcsm...@gmail.com on 4 Feb 2010 at 3:06

GoogleCodeExporter commented 9 years ago
damn keep up the good work! I was hopin to find a way to work this but I'm a 
little
of a newb , i do not know what you are referring to when you talk about 
"emulator" 
or any of those 8 steps really... But damn proud of what you got working so 
far. Side
note may help, On the PDANET app theres a feature to send and receive text 
messages
on my desktop.

Original comment by italianb...@gmail.com on 14 Feb 2010 at 11:26

GoogleCodeExporter commented 9 years ago
awwh man!! Got it working and then read that it droid has to be rooted for 
mouse and
keyboard use. Doh! Would love to get them working.
Keep up the good work.

Original comment by 123glasn...@gmail.com on 15 Feb 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Awesome app! Both mouse and keyboard work on the Nexus One with the CyanogenMod 
5.0.2!

Original comment by ddascale...@gmail.com on 19 Feb 2010 at 11:06

GoogleCodeExporter commented 9 years ago
Here is full-proof instructions if you can't get ScreenCast Mouse and Keyboard 
to
work. Thanks to tjcsm

1.  Start an emulator and run ScreenCast
2.  adb pull /data/dalvik-cache/data@local@tmp@InjectAgent.jar@classes.dex 
/TEMPclasses.dex
3.  Quit emulator down
4.  Connect your rooted droid
5.  adb push /TEMPclasses.dex 
/data/local/data@local@tmp@InjectAgent.jar@classes.dex
  This copies from from local pc to a temporary location on the phone
6.  adb shell
7.  su
8.  mv /data/local/data@local@tmp@InjectAgent.jar@classes.dex /data/dalvik-
cache/data@local@tmp@InjectAgent.jar@classes.dex
9.  chmod 777 /data/dalvik-
cache/data@local@tmp@InjectAgent.jar@classes.dex

Original comment by parks...@gmail.com on 12 Mar 2010 at 12:42

GoogleCodeExporter commented 9 years ago
First and foremost thanks for the great piece of software.  When the bugs get 
sorted
out this will easily be one of the best (if not the best) app for the android 
OS.

I'm unable to control my Droid eris using my laptop or desktop.  I am able to 
use
right click in order to change screen orientation, but that is it.  

Laptop is running Arch Linux 86_64 with the latest kernel and updates.  Desktop 
is
running Windows 7 x64 with all of the latest updates.  

My Droid Eris is rooted with 2.1 using a custom image (flashed via recover
partition).  Permissions on /data/dalvik-cache are as follows:
drwxrwx--x    1 1000     1000         2048 Apr 24 02:32 /data/dalvik-cache

Original comment by victor.n...@gmail.com on 25 Apr 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Can we upgrade android htc hero 1.5v to 1.6v???

Original comment by prathib...@gmail.com on 27 Apr 2010 at 6:44

GoogleCodeExporter commented 9 years ago
Great!!!

Works fine with WinXP and Gentoo/Linux 2.6.33 for my Rooted Milestone :D

Original comment by tbarba...@gmail.com on 6 May 2010 at 6:25

GoogleCodeExporter commented 9 years ago
Tried screencast On Android G1, was able to get the display, but the mouse and
keyevents were not working. Even tried the procedure for moving classes.dex as
explained above, but I am not able to move the dex file to the dalvik_cache 
folder.
It gives me a permission denied error. Even "su" returns me permission denied

Original comment by abhishek...@gmail.com on 11 May 2010 at 10:20

GoogleCodeExporter commented 9 years ago
I have a rooted Nexus One running Cyanogenmod and I can't get the mouse or 
keyboard
to work, either. Right click is the only thing that works. When I physically 
pick up
my phone and open something androidscreencast does show what I'm doing.

Original comment by kylebeve...@gmail.com on 13 May 2010 at 12:52

GoogleCodeExporter commented 9 years ago
I have no Mouse/Keyboard control beyond screen rotation, however, i have my 
Dalvik-
Cache moved to the cache partition, so thats why /Data/Dalvik-cache isnt being 
used 
correctly

Original comment by Jont...@gmail.com on 16 May 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Mouse and keyboard does not work on mine rooted HTC Tattoo as well.

Original comment by jama...@gmail.com on 1 Jun 2010 at 2:08

GoogleCodeExporter commented 9 years ago
No keyboard or left mouse button (not even the buttons at the bottom left of the
window work) support on my rooted Milestone either. :(

Original comment by simonbro...@gmail.com on 6 Jun 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I went with Comment 33 by osmoze.linux using the chmod command and works 
without a 
hitch including right click. 
Samsung Moment 2.1 DE03 rooted
Thank you!

Original comment by advantag...@gmail.com on 7 Jun 2010 at 2:27

GoogleCodeExporter commented 9 years ago
Step 33 worked for me.

Motorola Milestone 2.1 rooted.

Original comment by mat.john...@gmail.com on 8 Jun 2010 at 8:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can also confirm that tjcSmith's procedure (Comments 19 and 26) works on the 
HTC Evo. 

I am able to use my PC keyboard and the mouse to type and click onto the 
device. Recently coming from WinMo, where I had been using the excellent SOTI 
Pocket Controller Pro software for years, the ability to control my new Android 
phone from the PC is a godsend.  Thanks!

Original comment by myste...@gmail.com on 13 Jun 2010 at 3:31