ardnezar / androidscreencast

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

Permission denied #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
L'application ne demarre pas :

java.lang.RuntimeException: code = 2 message= Permission denied
    at 
net.srcz.android.screencast.injector.Injector.uploadAgent(Injector.java:84)
    at 
net.srcz.android.screencast.injector.Injector.<init>(Injector.java:31)
    at net.srcz.android.screencast.Main.initialize(Main.java:92)
    at net.srcz.android.screencast.Main.<init>(Main.java:73)
    at net.srcz.android.screencast.Main.main(Main.java:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by didier.g...@gmail.com on 10 Sep 2009 at 8:17

GoogleCodeExporter commented 8 years ago
I had this error when I ran wtih 'java androidscreencast.jnlp' where it doesnt 
give
it with 'javaws androidscreencast.jnlp' 

Original comment by npe...@gmail.com on 12 Sep 2009 at 10:59

GoogleCodeExporter commented 8 years ago
I had nearly the same error... :-/ What can I do?

----------------------

java.lang.RuntimeException: code = 2 message= Permission denied
    at net.srcz.android.screencast.injector.Injector.uploadAgent(Injector.java:84)
    at net.srcz.android.screencast.injector.Injector.<init>(Injector.java:31)
    at net.srcz.android.screencast.Main.initialize(Main.java:92)
    at net.srcz.android.screencast.Main.<init>(Main.java:73)
    at net.srcz.android.screencast.Main.main(Main.java:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1359)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1297)
    at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1096)
    at com.sun.javaws.Launcher.run(Launcher.java:116)
    at java.lang.Thread.run(Thread.java:613)

Original comment by account....@flaskaemper.de on 16 Sep 2009 at 8:50

GoogleCodeExporter commented 8 years ago
got the same permission denied (as per above comments) on my htc hero.  Tried 
"java
androidscreencast.jnlp" and it doesn't even run (complains about main class).  
Using
Java 6.

Original comment by darrentw...@gmail.com on 22 Sep 2009 at 9:29

GoogleCodeExporter commented 8 years ago
Please read my comment #1

Original comment by npe...@gmail.com on 22 Sep 2009 at 11:23

GoogleCodeExporter commented 8 years ago
Hello nperry.  Sorry, I forgot to also mention that I did try "javaws
androidscreencast.jnlp" and that gave me the same permission denied on
uploadAgent(Injector.java:84).

Additional info, turned off firewall and using window xp sp3.  Downloaded both 
jar's
and jnlp.  tried running jnlp from the link on the home page (step 4) as well as
running it from my pc.

ADB is running fine and can see the device.

Original comment by darrentw...@gmail.com on 22 Sep 2009 at 2:10

GoogleCodeExporter commented 8 years ago
Hi. 
I have the same problem as darrentweedale. I done the exact same things, but 
haven't
been able to get it to work. 

My Error code:
java.lang.RuntimeException: code = 2 message= Permission denied
    at net.srcz.android.screencast.injector.Injector.uploadAgent(Injector.java:84)
    at net.srcz.android.screencast.injector.Injector.<init>(Injector.java:31)
    at net.srcz.android.screencast.Main.initialize(Main.java:92)
    at net.srcz.android.screencast.Main.<init>(Main.java:73)
    at net.srcz.android.screencast.Main.main(Main.java:114)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original comment by kochhansen on 22 Sep 2009 at 2:19

GoogleCodeExporter commented 8 years ago
I'm using the HTC Magic. (device found by adb)

Original comment by kochhansen on 22 Sep 2009 at 2:21

GoogleCodeExporter commented 8 years ago
Need to do some narrowing down, to see what's happening.

If you are having these issues please answer the following

What OS are you running?
What version of java have you got installed?
What phone?
What SDK you running?

Original comment by npe...@gmail.com on 22 Sep 2009 at 2:45

GoogleCodeExporter commented 8 years ago
Windows Vista
Java 6 version 16
HTC Magic
Sdk 1.6

Original comment by medici...@gmail.com on 22 Sep 2009 at 2:56

GoogleCodeExporter commented 8 years ago
In my case it's

1.) Mac OS X 10.5

2.) java version "1.5.0_20"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
    Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)

3.) Google G1, Firmware 1.5

4.) android-sdk-mac_x86-1.5_r3

Original comment by account....@flaskaemper.de on 22 Sep 2009 at 3:03

GoogleCodeExporter commented 8 years ago
1) Windows Vista Home Premium - service pack 1

2) Java 6 version 16

3) HTC Magic - firmware 1,5 Build 2.16.401.5

4) android-sdk-windows-1.6_r1.zip

Original comment by kochhansen on 22 Sep 2009 at 3:49

GoogleCodeExporter commented 8 years ago
For me, its
1. Windows XP (sp3, 32bit)
2. Sun Java SE Runtime 1.6.0_11-b03
3. HTC Hero (NOT rooted, firmware 1.5,  build 2.73.405.5)
4. sdk 1.5 r1

Original comment by darrentw...@gmail.com on 22 Sep 2009 at 3:57

GoogleCodeExporter commented 8 years ago
1. Windows 7
2. Java 6 version 16
3. Rooted 2.73. Hero with Busybox 
4. SDK 1.5 R3

Original comment by ChristianHolmChristiansen on 23 Sep 2009 at 6:31

GoogleCodeExporter commented 8 years ago
Issue 4 has been merged into this issue.

Original comment by thiel.al...@gmail.com on 23 Sep 2009 at 12:06

GoogleCodeExporter commented 8 years ago
I suspect you need a rooted phone. Does anyone know if stock firmware as write 
acces
to /data/ from adb ?
Can you try "adb push somefile.txt /data/" ?

I need a temporary file location, is /sdcard/ maybe better ?

Original comment by thiel.al...@gmail.com on 23 Sep 2009 at 12:10

GoogleCodeExporter commented 8 years ago
Tried "adb push text.txt /data" (and /data/) but got permission denied.

however, with /sdcard/ it appears to work ok.

I noticed that the injector.java is trying to upload MyInjectEventapp.jar - 
(wasn't
sure if that should be apk file because the structure looks like apk format), 
but
anyway, can we not install that apk/jar ourselves onto the phone without the 
code
uploading anything to the phone?

Original comment by darrentw...@gmail.com on 23 Sep 2009 at 1:19

GoogleCodeExporter commented 8 years ago
Thank you for your quick answer, i'll make appropriate changes. i'll try to 
upload it
in multiple location if i can't find an read/write universal temporary location.

1) Why should we do this manually since adb allow us to upload it automatically 
? I
think that most users would like a most simple way.
2) It's more likely the jar will change nearly at each versions of the desktop 
part.
So it need to be up to date.

I'll add a dialog box with a list of connection methods (only usb for now, maybe
remotely through network in the future...), a devices list and a box (checked by
default) to enable agent auto-installation. I've opened [issue:8]

Original comment by thiel.al...@gmail.com on 23 Sep 2009 at 1:48

GoogleCodeExporter commented 8 years ago
Thanks thiel.alexandre. Look forward to seeing this working on my htc hero as I 
have
missed it for something similar for the WinMo device that I previously had.

As for "adb allowing to upload automatically" - yes, you are right, it would be 
a
simpler way to do it automatically and for each time its updated, rather then
installing it manually and getting all mixed up with different versions.  good 
thinking.

As for a list of connection methods - usb is probably what I most likely be 
using,
but having a possible option to connect via wifi would be good (a bit like 
desktopSMS
allowing either connection options to connect)

Look forward to any updates.  Feel free to include me into any beta testing!

Original comment by darrentw...@gmail.com on 23 Sep 2009 at 3:08

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

Original comment by thiel.al...@gmail.com on 27 Sep 2009 at 2:57

GoogleCodeExporter commented 8 years ago
Hi, I get this permission denied error - I'm running Windows XP SP3, Rooted 
T-Mobile 
G2/Hero with a stock ROM. I cannot push any files in to the /data/ folder, but 
I do 
have superuser access.

Original comment by simon.ha...@gmail.com on 28 Sep 2009 at 2:40

GoogleCodeExporter commented 8 years ago
Can you try :
adb push some_text.txt /data/local/tmp/

and

adb push some_text.txt /cache/

???
I'm looking for a good temporary location with write acces on all devices.

Original comment by thiel.al...@gmail.com on 28 Sep 2009 at 2:57

GoogleCodeExporter commented 8 years ago
adb push test.txt /data/local/tmp/
file transferred ok.

adb push test.txt /cache/
permission denied

Original comment by darrentw...@gmail.com on 28 Sep 2009 at 3:49

GoogleCodeExporter commented 8 years ago

Original comment by thiel.al...@gmail.com on 28 Sep 2009 at 4:25

GoogleCodeExporter commented 8 years ago
I got the same as Darren - pushed okay to /data/local/tmp/ but not to /cache/

Original comment by simon.ha...@gmail.com on 29 Sep 2009 at 8:06

GoogleCodeExporter commented 8 years ago
Ok thank you guys, i'm gonna use /data/local/tmp
Stay tuned, new release soon !

Original comment by thiel.al...@gmail.com on 29 Sep 2009 at 8:58

GoogleCodeExporter commented 8 years ago
Hi,

I also have the same issue  pushed okay to /data/local/tmp/ but not to /cache/.
Please let me know the update happens. Very eager to see this app working.

Thanks

Original comment by chaithan...@googlemail.com on 6 Oct 2009 at 12:22

GoogleCodeExporter commented 8 years ago
Same issue here with permission denied. Running stock software from Rogers on 
HTC 
Magic. Not rooted, firmware version 1.5, Build number 2.17.631.2).

Original comment by js.stoe...@gmail.com on 8 Oct 2009 at 1:00

GoogleCodeExporter commented 8 years ago
This is an issue with all the phones used. The /data directory is a privileged
directory that normal users and programs are not supposed to use. Either add a 
drop
down box that allows the users to select the upload location (including adding 
their
own preference) or use the /sdcard like all other android applications. The 
change
required for this is very minor as the variable is in a single line of code. Is 
there
any other reason why this directory is being used other than it is located on 
the device?

Original comment by mudd1...@gmail.com on 15 Oct 2009 at 3:13

GoogleCodeExporter commented 8 years ago
The location issue has been fixed in the repository but i'm not closing this bug
because i suspect this will only partially solve the problem. Please wait for 
next
release (currently blocked because of adb instability issues) !

Original comment by thiel.al...@gmail.com on 15 Oct 2009 at 4:39

GoogleCodeExporter commented 8 years ago
Version 0.2 available ! Fixed !

Original comment by thiel.al...@gmail.com on 15 Oct 2009 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by thiel.al...@gmail.com on 15 Oct 2009 at 9:48

GoogleCodeExporter commented 8 years ago
Hi,

I've tried this today, but still get the same error 2 - permission denied. Not 
sure
if it is relevant, but since upgrading to ROM version 2.73 - I've no longer 
been able
to get Root access. DesktopSMS however still works fine - not sure how they do 
things
differently to you, but thought it might help somehow.

Original comment by simon.ha...@gmail.com on 16 Oct 2009 at 12:49