Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Stop Your Screen From Turning Off with KeepItOn

We all know the feeling of reading a news article orrather longdocument, when our screen … more

The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUTO] Dead screen, rooted phone, how to remote control

OP ploquets

2nd May 2014, 03:07 PM   |  #11  
Senior Member
Thanks Meter: 71
 
333 posts
Join Date:Joined: Nov 2010
My LCD is dead, managed to get the VNC server installed via Google Play on my desktop but this file does not exist on my device:
/data/data/org.onaips.vnc/files/androidvncserver

How do I start the VNC Server on my phone via ADB?
2nd May 2014, 03:49 PM   |  #12  
ploquets's Avatar
OP Member
Flag Uruguaiana, RS
Thanks Meter: 11
 
54 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by loonieryan

My LCD is dead, managed to get the VNC server installed via Google Play on my desktop but this file does not exist on my device:
/data/data/org.onaips.vnc/files/androidvncserver

How do I start the VNC Server on my phone via ADB?

I've said this on the instructions.

Go to: APK DOWNLOADER
Paste the URL

Code:
https://play.google.com/store/apps/details?id=org.onaips.vnc
And download the app.

Open a prompt command, go to your adb folder, type:

Code:
adb install "type your downloaded apk path"
Go to your notepad app, and create a script with the follow commands:


Code:
adb devices
adb forward tcp:5901 tcp:5901
adb forward tcp:5801 tcp:5801
adb shell /data/data/org.onaips.vnc/files/androidvncserver
Save inside your adb folder with a name like: VNC.bat
Note that I'm running Windows.
If you have another OS, then, run line by line or make your own script.

Now, you can click and run VNC.bat
It will appear a screen saying:

Code:
Waiting for a connection
2nd May 2014, 03:57 PM   |  #13  
Senior Member
Thanks Meter: 71
 
333 posts
Join Date:Joined: Nov 2010
I guess you didn't understand what I said the first time: it's already installed. The folder /data/data/org.onaips.vnc exists, but there's no files subfolder in there and no androidvncserver file anywhere on my device.

I'm on CM11...
2nd May 2014, 04:05 PM   |  #14  
ploquets's Avatar
OP Member
Flag Uruguaiana, RS
Thanks Meter: 11
 
54 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by loonieryan

I guess you didn't understand what I said the first time: it's already installed. The folder /data/data/org.onaips.vnc exists, but there's no files subfolder in there and no androidvncserver file anywhere on my device.

I'm on CM11...

try to do:
Code:
adb shell
cd /data/data/
ls
and see if there is any folder with org.onaips.vnc
8th May 2014, 11:52 PM   |  #15  
Senior Member
Thanks Meter: 71
 
333 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by ploquets

try to do:

Code:
adb shell
cd /data/data/
ls
and see if there is any folder with org.onaips.vnc

It's already installed through Google Play (remotely). When I run adb install it gives me an error that it is already installed:
Code:
3131 KB/s (2084419 bytes in 0.650s)
        pkg: /data/local/tmp/org.onaips.vnc.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
However, in /data/data/org.onaips.vnc all I see is this lib symbolic link and nothing else:
Code:
root@d2att:/data/data/org.onaips.vnc # ls -al
ls -al
lrwxrwxrwx install  install           1970-01-01 19:00 lib -> /data/app-lib/org.onaips.vnc-1
I also ran a find command to search for androidvncserver at the root level of my phone and did not find anything matching that name.

Any other ideas on how to run this on my phone through ADB? Otherwise I'm SOL...
9th May 2014, 02:13 AM   |  #16  
ploquets's Avatar
OP Member
Flag Uruguaiana, RS
Thanks Meter: 11
 
54 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Thumbs up
Quote:
Originally Posted by loonieryan

It's already installed through Google Play (remotely). When I run adb install it gives me an error that it is already installed:

Code:
3131 KB/s (2084419 bytes in 0.650s)
        pkg: /data/local/tmp/org.onaips.vnc.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
However, in /data/data/org.onaips.vnc all I see is this lib symbolic link and nothing else:
Code:
root@d2att:/data/data/org.onaips.vnc # ls -al
ls -al
lrwxrwxrwx install  install           1970-01-01 19:00 lib -> /data/app-lib/org.onaips.vnc-1
I also ran a find command to search for androidvncserver at the root level of my phone and did not find anything matching that name.

Any other ideas on how to run this on my phone through ADB? Otherwise I'm SOL...

Ok... i've tested this with my LG G2 and, for my surprise, you are right...
But, the folder org.onaips.vnc/files/ wasn't there.
So, I opened the app and after opening, it seems that the app creates everything.

So, after a successful opening, you will see the files folder and the androidvncserver file.

I guess you can try to start the app with:
Code:
adb shell am start -n  org.onaips.vnc/.MainActivity
After using this, then run all the instructions again from the main thread

Lucky!
The Following User Says Thank You to ploquets For This Useful Post: [ View ]
9th May 2014, 09:17 PM   |  #17  
Senior Member
Thanks Meter: 71
 
333 posts
Join Date:Joined: Nov 2010
Quote:
Originally Posted by ploquets

Ok... i've tested this with my LG G2 and, for my surprise, you are right...
But, the folder org.onaips.vnc/files/ wasn't there.
So, I opened the app and after opening, it seems that the app creates everything.

So, after a successful opening, you will see the files folder and the androidvncserver file.

I guess you can try to start the app with:

Code:
adb shell am start -n  org.onaips.vnc/.MainActivity
After using this, then run all the instructions again from the main thread

Lucky!

Thanks! I got the server running, but now when I connect with any VNC client all I see is a black screen. I bet it is because my screen is locked. Do you see your lock screen with VNC and are you able to enter a lock screen pattern? I can press the home button to "wake" my phone up but the VNC viewer still only shows a black screen.
10th May 2014, 04:13 AM   |  #18  
ploquets's Avatar
OP Member
Flag Uruguaiana, RS
Thanks Meter: 11
 
54 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by loonieryan

Thanks! I got the server running, but now when I connect with any VNC client all I see is a black screen. I bet it is because my screen is locked. Do you see your lock screen with VNC and are you able to enter a lock screen pattern? I can press the home button to "wake" my phone up but the VNC viewer still only shows a black screen.

Are you trying to use VNC connected to a wifi router or via USB?
I got this problem trying to use with and IP instead of localhost...

Try with USB exactly like I said on the main thread... It should work! That's why we forward those ports.
And, check if there is any application on your PC trying to use same ports 5901 and 5801

With me, I could see lock screen and could input my pattern to unlock... only thing that didn't work was PC keyboard, I had to insert manually any letter I would want with mouse, using "on screen keyboard"... like we are used to do with our fingers.

Hope it works for you !

Waiting your reply


Enviado do meu LG-G2
Last edited by ploquets; 11th May 2014 at 02:44 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes