Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,914 Members 50,201 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
loonieryan
Old
#11  
Senior Member
Thanks Meter 70
Posts: 333
Join Date: 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?
Google Asus Nexus 7: 4.4.2 Stock
Google Asus Nexus 7 (2013): 4.4.2 Stock
Samsung Galaxy S3 SGH-I747M: CM11 Nightly
Google LG Nexus 4: 4.4.2 Stock (wife's phone)
Samsung Galaxy S GT-I9000M: CM10 Nightly 2012-11-24
 
ploquets
Old
#12  
ploquets's Avatar
Member - OP
Thanks Meter 11
Posts: 51
Join Date: Dec 2011
Location: Uruguaiana, RS

 
DONATE TO ME
Quote:
Originally Posted by loonieryan View Post
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
 
loonieryan
Old
#13  
Senior Member
Thanks Meter 70
Posts: 333
Join Date: 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...
Google Asus Nexus 7: 4.4.2 Stock
Google Asus Nexus 7 (2013): 4.4.2 Stock
Samsung Galaxy S3 SGH-I747M: CM11 Nightly
Google LG Nexus 4: 4.4.2 Stock (wife's phone)
Samsung Galaxy S GT-I9000M: CM10 Nightly 2012-11-24
 
ploquets
Old
#14  
ploquets's Avatar
Member - OP
Thanks Meter 11
Posts: 51
Join Date: Dec 2011
Location: Uruguaiana, RS

 
DONATE TO ME
Quote:
Originally Posted by loonieryan View Post
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
 
loonieryan
Old
#15  
Senior Member
Thanks Meter 70
Posts: 333
Join Date: Nov 2010
Quote:
Originally Posted by ploquets View Post
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...
Google Asus Nexus 7: 4.4.2 Stock
Google Asus Nexus 7 (2013): 4.4.2 Stock
Samsung Galaxy S3 SGH-I747M: CM11 Nightly
Google LG Nexus 4: 4.4.2 Stock (wife's phone)
Samsung Galaxy S GT-I9000M: CM10 Nightly 2012-11-24
 
ploquets
Old
#16  
ploquets's Avatar
Member - OP
Thanks Meter 11
Posts: 51
Join Date: Dec 2011
Location: Uruguaiana, RS

 
DONATE TO ME
Quote:
Originally Posted by loonieryan View Post
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: [ Click to Expand ]
 
loonieryan
Old
#17  
Senior Member
Thanks Meter 70
Posts: 333
Join Date: Nov 2010
Quote:
Originally Posted by ploquets View Post
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.
Google Asus Nexus 7: 4.4.2 Stock
Google Asus Nexus 7 (2013): 4.4.2 Stock
Samsung Galaxy S3 SGH-I747M: CM11 Nightly
Google LG Nexus 4: 4.4.2 Stock (wife's phone)
Samsung Galaxy S GT-I9000M: CM10 Nightly 2012-11-24
 
ploquets
Old
(Last edited by ploquets; 11th May 2014 at 01:44 AM.)
#18  
ploquets's Avatar
Member - OP
Thanks Meter 11
Posts: 51
Join Date: Dec 2011
Location: Uruguaiana, RS

 
DONATE TO ME
Quote:
Originally Posted by loonieryan View Post
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Rir Yourself Charging Annoyances with No Wake on Charge Xposed Module

Almost every OEM has skinned and otherwise modifiedAndroid to suit its … more

Run, Jump, and Shoot in Tales of Ciaxia

There are certain types of games that have become paramount of the portable gaming world. As we have … more