[Solved] Remote Control (Remote Desktop) for LineageOS ? - LineageOS Questions & Answers

I would like to support my elderly mother when she is using an Android tablet running LineageOS 18.1. Unfortunately most solutions e.g. TeamViewer, require Knox. Knox is of course tripped as soon as a phone is rooted or has a Custom ROM installed. ScrCpy apparently doesn't need Knox but does requires a connection via either USB or TCP/IP on a local network - since my mother lives on the other side of the city neither of these is an option.
A recent thread concerning the difficulty with TeamViewer can be found at https://forum.xda-developers.com/t/teamviewer-quicksupport-on-lineageos.3592889/#post-83850663
Does anyone have any suggestions for Remote Control of LineageOS?

I found a solution. AndroidVNC-NG can be installed on the remote Android host which enables remote control e.g. from Linux Mint, using a client such as Remmina with a VNC plug-in. (Windows, MacOS, et al will also have suitable VNC clients.) The necessary IP and port information is available from AndroidVNC-NG on the Android machine.
If remote access is required at a remote location e.g. from motel to home, then a VPN-like solution would be sensible and quite possibly necessary to create a connection e.g. ZeroTier One perhaps.

Related

How to get internet on your phone via USB

You may also call this reversed USB tether.
This might come in handy if you're near a computer (Win XP/Win7) and there's no Wifi to connect to etc..
So after some research and trying I've found some information on how to do this.
Requirements:
* Android 2.2 (or an older version with a root tethering app)
* ADB from Android SDK, or a rooted Android 2.2 with terminal in root mode
STEP 1:
Install USB drivers from Android SDK.
STEP 2:
Connect USB cable and activate USB Tethering.
You should see a new network interface. (On XP you might need to install the RNDIS driver manually, see below)
If you're also missing RNDIS driver on Win7, look here.
Win XP manual driver install Android USB Ethernet/RNDIS: (You can skip this if you're on Win 7)
1. Download the following configuration file inside the *.zip attached to this post (tetherxp.inf) to your Windows XP computer.
2. Use the USB cable that came with your phone to connect your phone to your computer.
3. On the Android phone, press Home > Menu > Settings to open the Settings application.
4. Press Wireless & networks > Tethering & portable hotspot.
5. Check USB tethering.
6. When Windows XP’s New Hardware Wizard opens, select No, not at this time and click Next.
7. Select Install from a list or specific location and click Next.
8. Click Browse to browse to the directory where you installed the configuration file you downloaded in Step 1 and click Next. Windows XP uses the configuration file to configure itself to support USB tethering with the Android phone. (This might take a while)
9. When Windows XP finishes installing the software for Android USB Ethernet/RNDIS, click Finish.
STEP 3:
Bridge the 2 network interfaces.
STEP 4:
Setup usb0 interface of your phone. You have to options:
1. From your computer, execute:
./adb shell netcfg usb0 dhcp
2. Or in a root terminal on your phone, type:
su
netcfg usb0 dhcp
You should now be able to connect to Internet on your phone using your computer's Internet connection.
Try to do a ping www.google.com to be sure.
STEP 5:
To shut down the reverse-tethering, first unbridge interfaces on your computer:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0
Then on your phone, uncheck the USB Tethering option.
Quote...
It is working now. After setting up ICS type in console emulator on your phone:
ifconfig usb1 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb0
iptables -F
iptables -F -t nat
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
Click to expand...
Click to collapse
Hope this helps some one who wants this to the right direction.
And maybe we're able to create an app to do this all automated.
Known issues but does not apply to all users:
1. Internet in browser application does not work.
2. Can't ping domain name.
For a little more info check out the sources, this includes the Linux version too.
Sources: Google android, Mycila
Nice info
Going to post a link on the hero forum where someone was wanting to do this. I wonder if this will work on a froyo hero too...
it would be cool if one of the devs could write a small app to switch this on n off great find tho shoemeistah
Thank you for the guide, It worked fine. There are several things not working though:
- can't download apps from market, they stuck on "downloading"
- my google account don't sync
- other apps don't update themselves. For example my twitter app won't show any new tweets until I open it and manually press "refresh"
I searched for this long time ago, even created a thread about it awhile back, didnt have luck like you did though
I gave up on it eventually, it would be nice to make an app out of it.
mind asking how did you confirm the net to be working on browser? by pinging google.com?
since i saw the last line you put "Internet in browser application does not work."
You can do that in the terminal
[U][B] Internet connection on your Android phone via your PC [/B][/U]
I think I found the best solution. Check it out connectify.me
I wanted to use my PC wired internet & I was astonished that this wasn't available in my HTC Desire & 1st Android device!. I looked over the net, I found many options but most asked for a rooted device! I didn't want to root my brand new Desire.
Connectify is an easy to use software router for Windows 7 computers. After downloading and installing the lightweight application, Connectify utilizes your computers' built in Wi-Fi card to wirelessly share any available Internet connection: a cable modem, a cellular card, or even another Wi-Fi network. Other Wi-Fi enabled devices including laptops, smart phones, music players, and gaming systems can see and join your Connectify hotspot just like any other Wi-Fi access point and are kept safe and secure by password-protected WPA2 Encryption.
I tried it & it's working perfectly for me .. It's a free app.
-----------
Phone: HTC Desire (SIM Free)
Type: Desire
Build: HTC Desire 2.2, 2.10 (kernel: htc 2.6.32.15)
Baseband: 5.09.05.30
Network: UMTS auto (EGY)
By me it didn't work. Using OpenDesire with Froyo 2.2
So I made it work, by edititng the .inf file.
Here the file for USB\VID_0BB4&PID_0C02.
For all which still have a problem(USB TETHERING ON DEVICE MUST BE ACTIVE, ALSO THE IDs DIFFERS BETWEEN CONNECTED WITH ADB OR NOT), go into the device manager -> open the device -> goto tab details -> choose device id
look at it, you see somewhere vid_XXXX and further pid_XXXX
open my file -> goto line 31 -> change vid_YYYY and pid_YYYY with what you see in your device dialog. the same you do on line 35. be careful with 0 or o.
Regards
Ralph
I am also using connectify, easy to install, set it up, connect with Desire, anything works fine.
Thanks GhostOfTheNet.
chrismast said:
I am also using connectify, easy to install, set it up, connect with Desire, anything works fine.
Click to expand...
Click to collapse
I appreciate the recommendations for other solutions.
But as you can see this thread is for a internet solution at places where is no Wifi available.
So please keep it on topic, thanks!
browser & webviews
Any idea why browser won't work?
I'm interested in testing against internal sites (of course no WAP here.. cuz they be scared i guess).. both Browser and embedded webviews.
connectify great program.works fine
its a default feature in hd roms but that doesnt work in all programs
Connectify doesn't work correctly with my Galaxy 5. It keeps connected for a short time then disconnects and then, connects again, connect, disconnect...
Does anyone know how to fix it?
Thanks Man
plz make a video tutroial of this
its difficult to under stand
does it actualy work?? anyone tried this and actualy worked??? just a simple yes or no.
thanks
small proble plz solve it
hi
I have a small problem in it when my device is not in usb tethering mode
i can see it in my adb devices
as soon as is start usbtethering it say no device found
plz help me
thanks a lot !!!
realy nice guide! Thanks!

[Q] OpenVPN on CM9?

Does anybody here use OpenVPN with CM9? What OpenVPN settings and/or kernel are you using with success? I've tried it with the stock CM9 kernel, but no good. It connects and everything indicates it should be working, but nothing gets through.
Hi,
I'm trying to configure it at the moment with my Nexus One using the new 7.2 CM, but I didn't fully succeed for the moment. I can connect, ping the lan machines, ping everything on the web through the vpn, but I couldn't surf or use any web services. Server is on a Win7 x64 pc, I suspect a server bad configuration (first try).
Android 2.3.7
kernel 2.6.37.6-cyanogenmod-g0799e00
last openvpn server version
I tried with the openvpn software supplied with CM, but it seems better and faster with OpenVpn Installer + OpenVpn Settings android packages. Plus it provides ovpn client logs, DNS settings, auto reconnect, .conf/ovpn files and a simplified certificates system.
Hope this helps...
I used the openvpn installer and openvpn settings apps, but couldn't get it to work. I'm still investigating. It's strange because I've tried using different roms and kernels already.
Sent from my Galaxy Nexus using XDA

[Q] I9195 - Unable to connect to WIFI network (Authentication error occurred);

So, here it goes.
My goal is to connect to a network using certain MAC address. Wanted network is marked with "open" and I know that it allows access only to certain devices (according to MAC) on which the administrator have gave a permission to. Once your MAC passes the verification, device gets connected to the network and then I'm asked to enter username and password through WEB browser (well known for me, because it is a procedure that I do on my other device, as well as all my colleagues do).
For example, I was allowed to provide one personal MAC address to administrator to connect to this network. I would like to set the MAC address of my other personal device and set it on my I9195 so that I can access the same network.
So, what have I done so far: I9195 is rooted, it has Android 4.2.2 on it and Busybox installed. I have changed MAC on it using following apps: MacChanger (blue WIFI logo), MAC Address Ghost (green ghost logo), using Android Terminal Emulator commands and via MAC Spoofer (black circle with green text logo). What can I conclude: As soon as superuser has granted the access to these apps, all of them manage to change the MAC. I've done the verification using Terminal Emulator. I also have to add that the MAC remains original if viewed from WIFI advanced menu BUT this shouldn't be an issue because:
1.) Colleague of mine is using his S4 (rooted etc.), while using MAC Address Ghost that does not change the original address (viewed from WIFI advanced menu) but he manages to make a spoof (verified from the Android Terminal Emulator, as all of this apps actually do) and he manages to connect without any problems in the same way as I connect with another device that I have!
2.) I had time to make a small test at home which put a light on the idea that the problem should be focused on the Samsung (and not on the router, especially because I am unable to modify anything on the router on this facility, not even restarting it). My home network works in a similar way as the network that we are discussing about. My S4 Mini has been included in it with his original MAC and it connects to the network without any problems. My other device is also included to the network using its MAC (the one that I am using for spoofing). My other device is turned OFF, router has been reset and I am normally accessing the network with S4 Mini. Then I run the MAC Address Ghost to spoof the MAC on my S4 Mini. In that moment, I have lost the connection that I had which means that the MAC spoofer actually did something. I tried to reconnect to the network but then I am asked to enter the password for my network. I have checked and re-checked it many times, tried to forget the network and doing it all over again but it does not accept the CORRECT password. Changing my MAC back to the original one connects S4 Mini back to the network, while accepting the password immediately.
Problem is represented in a way that it either says “saved” and does not connect to the network or every few times displays a message “Authentication error occurred”.
I have tried I would say every possibility that I’ve seen over the internet. That includes:
1.) Installing WiFi Connection Manager (it provided some info regarding the network that I wish to connect to: IEEE 802.11g standard, 54 Mb link and CH:11). I’ve used its function to fix the WIFI (advanced fix (root required)) but it didn’t help.
2.) All sorts of staying close to the rooter, while enabling and disabling the Power save mode (accessed via *#0011# command) or while having GSM signal.
3.) Browsing through system, data etc. folders to try to find the file that contains the MAC address information (like it did on older android versions in the nvram file). I’ve been unable to find this file or any sort of file that displays my MAC for the purpose to modify it.
I have a plan to upgrade Android to version 4.4.2 later today and make a test.
Please, feel free to suggest anything else! If I do not succeed, I will have to replace my S4 Mini with something else.
Kind regards,
QUICK REPLY: After installing CyanoGEN MOD 4.4.2, the problem remains!
I think there could be a shorter solution! On Sony Xperia Acro S with 4.1.2 Android it was just a matter of changing the MAC address within the file data/etc/wifi/fw! One minute modification...
So, please, if somebody knows the path to the file that contains MAC on CyanoGEN MOD 4.4.2 or on Android 4.2.2, PLEASE HELP!
Kind regards!

[Q] Sideloaded LANMote to ouya, now controllers/keyboards don't function

Hi, I have a rooted ouya running the latest stock fw. I am loving the device but had been looking for a way to control my ouya over the network if (which commonly happens) the ouya remote desyncs, and I don't have a spare usb keyboard mouse lying around to resync it.
I tried sideloading lanmote but I got an error with the license so removed it and rebooted the ouya. Since then the ouya contoller buttons won't respond and neither will a USB keyboard. I still have root ftp access (ftpdroidpro), and the touchpad on the ouya mostly works for navigating the menus.
I gather I have damaged some controller setting somewhere when installing lanmote as it had root access. What are my options to get it up and running again. Is there a file I can ftp over to fix this, I have full root access over ftp.
Thanks
bm
bootmonster said:
Hi, I have a rooted ouya running the latest stock fw. I am loving the device but had been looking for a way to control my ouya over the network if (which commonly happens) the ouya remote desyncs, and I don't have a spare usb keyboard mouse lying around to resync it.
I tried sideloading lanmote but I got an error with the license so removed it and rebooted the ouya. Since then the ouya contoller buttons won't respond and neither will a USB keyboard. I still have root ftp access (ftpdroidpro), and the touchpad on the ouya mostly works for navigating the menus.
I gather I have damaged some controller setting somewhere when installing lanmote as it had root access. What are my options to get it up and running again. Is there a file I can ftp over to fix this, I have full root access over ftp.
Thanks
bm
Click to expand...
Click to collapse
Try and make sure all the keymap files LANmote installed into your system partition are removed.
You can find the list at this link
http://lanmote.idea.informer.com/proj/?ia=63302
LANmote doesn't do anything else to your device other than install those keymap files.
If you are going to install the paid version of LANmote, you need to make sure your device is running the same Google Play/market account you have purchased LANmote or it will not work.

[Q] WiFi Disk Systec PX-4709 software problems

Hello Guys.
I bought a WiFi Disk-Case Systec PX-4709 or Powson PX-4709. Because its very small.
For this disk exists a app named "AirStor" (Power7 Technology).
A test is in androidpit. this device is shown in the app, but i cannot move anything or create folders on the device.
The software is very too basic. Oter software like "WiDisk" and so on is not working too.
So i tried with "Total Commander" and FTP or LAN plugin. But with LAN (port 80) and FTP (port 21) i get no access.
A try with "ES Datei Explorer" and the LAN, WEB and FTP options but the device will not be found.
The procedure to have access to the drive is:
- Connect to accesspoint / Server of the drive over WiFi-Network
- Start the app AirStor: the device is shown now as empty
- It is possible to change the drive parameter like SSID and IP, but this was not function. So i take the default
- Select a file and copy it to the disk, but this is not going
With which software can i get a access on the device? I see the mac and the IP address, but i not know the ports for communication.
Can i find out which communication-protocols are running and on which port? Or which protocol is using by AirStor?
Unfortunately in Windows i cannot have access too. I cannot ping and see the device.
Over USB i have with Windows 7 pro 64Bit also no access. Its only possible to connect with AirStor?
Can anybody help me?
Kind regards
robitobi

Categories

Resources