Making external wifi adapter work? - Samsung Galaxy S10+ Questions & Answers

I am having a problem understanding what options I have to use my external wifi adapter, TL WN722N, on my Android Phone. I am using a galaxy s10+, rooted with magisk, no custom recovery/kernel. My questions are:
I need to install the driver for this wifi adapter into my Android kernel right?
Do I need to rebuild the kernel for this? I.e. install the driver into the kernel and then flash the kernel, or is there a way where I can load a kernel module which contains the driver without flashing a custom kernel which contains this driver?
What options do I have to install this driver on my Android phone? I am having a hard time finding out how to install this driver into my android phone.

Related

Driver suggestion for Tiamat kernel

I normally would post this in the Tiamat thread, but I don't have enough posts to do that (maybe someone else could if they think this is a good idea). I have read that since 1.4.4 Tiamat has supported Realtek 8150 USB Ethernet adapters, simply by building the kernel driver module. This is a wonderful feature, however, that adapter is not readily available for everyone. I myself am able to purchase a dm9601 based device for around $10 at a local store. I would normally build the driver/kernel myself, but setting up a cross-build environment in Linux is a bit tricky (maybe I'm missing something). I haven't yet had a successful build (so close!).
So, to the suggestion: it would be nice to have some modules pre-built so users could download and install drivers that they need. Any monkey can copy a file and run a script to install a driver, but it takes a Linux programmer to be able to cross-build.

[Q] Adding USB Touch Driver to Nexus 7 Kernel

Hello!,
I try to control my Nexus 7 tablet with a external touchscreen [3] connected via USB on the go. The tablet recognizes the usb touchscreen as a input device. I can read the OutputStream from /dev/input/event, but the touch does not really work. No matter where i touch / tap the external touchscreen, the tablet recognizes it only in the middle of the screen. I think the standart driver in the kernel does not know how to handle the events correctly from the usb touchscreen.
I have found the linux device driver for the touchscreen [1]. There is a manual in the downloaded *.zip, what to change in the kernel to apply the driver. Adding the driver to the kernel is the only thing i need to do.
My tablet is rooted and i found the factory image for my nexus device and i flashed my device with this file.[2]
Is it possible to add the touch driver to the factory image kernel and flash my device with it? I downloaded some custom kernel and tried to modify like its said in the manual. (open files, change and save) but i never know how to finish the kernel and "run" it on my device. I know how to use linux, github and basic c programming.
The perfect solution: normal nexus 7 kernel, little modification to add the driver and flash it onto my device.
Can u please help me? How is the easiest way to do this? I'm overwhelmed by the amount of (misleading?) information about modding, kernel hacking, custom roms, ... to solve my little problem.
Thx,
Sebastian
[1] DUS Linux driver 21.03.2013 1.2 Megabyte
Code:
Google:data display group treiber
[2] Factory Images "nakasi" for Nexus 7 (Wi-Fi): Android 4.3 (JWR66Y)
[3]
Code:
Google DUS-057B060A (5.7, PCAP)

[G900T] Kali + ath9k_htc + Linux Deploy

Has anyone successfully compiled a kernel that has these specific drivers implemented into them? I try to compile the kernel myself (The ones directly from samsung themselves for 5.0 Lollipop) and it always tell's me to make clean. Once done then it wipes out my driver setting I had set to compile the kernel with and pushes the kernel back to stock settings. I am attempting to get my TP-LINK W722N working with Kali (Linux Deploy) via USB OTG.

Any S7 Edge kernel with Updated Xpad Linux Kernel Driver for the Xbox One Controller?

After looking for a while how to use the newer X1 controller on Android, I came across this thread and this guy says the xpad.c should get replaced by this https://github.com/paroj/xpad
Example for if the page gets removed:
It is possible to use the controller via USB OTG, but your device MUST be rooted and it may be difficult.
First of all check your X1 controller DeviceId, on Windows you can do it through Device Manager: Device Manager -> Xbox Controller -> Properties -> Details -> Hardware Ids
VID should be 0x45e
PID will be either 0x2d1 or 0x2dd
Easy method for older controllers (0x2d1)
If you are running a ROM based on Linux kernel 3.18, then the controller will work out of the box! So you might want to flash a new ROM/Kernel if it's very important to you... This is probably the easiest solution.
Otherwise, You can probably make the controller work with the "USBBT Joystick Center GOLD" application which you can get here. Just follow this Youtube video and it SHOULD work if you're lucky
Hard method for newer controllers (0x2dd)
If the above didn't work or you have the new controller, and you're not shy about recompiling the Android kernel, you can:
A. Download the Android kernel sources for you device (see instructions h-ttps://source.android.com/source/building-kernels.html)
B. In the kernel sources, replace the file xpad.c under /drivers/input/joystick/ with the newest sources from here: h-ttps://github.com/paroj/xpad
C. Rebuild the whole kernel and replace your boot image, or just build xpad as a kernel module and load it using insmod from the adb shell
GOOD LUCK!
Click to expand...
Click to collapse
Anyone who could help me with this? I'm using the latest Jesse Kernel and have no experience building a kernel: http://forum.xda-developers.com/s7-edge/development/kernel-jesse-kernel-s7-edge-t3389528

[Help] I need install Wireless Dongle driver on Huawei nove 2i with [RTL88x2BU]

Ask for help I want to install Wireless Dongle driver on android device. I have a driver file. But I can't install it. I want a simple guide step by step on linux
I have a picture preview. Have driver file Please check it for me About how I can install as easily as possible. Thank you very much
My devices
huawei nova 2i android 8.0 (Oreo)
android box CS918 Rockchip android 4.4 (KitKat)
Equipment is not the same But I think the driver installation method should be the same.
Driver Link + Guide [RTL88x2BU_WiFi_linux_v5.2.4.4]
https://www.mediafire.com/file/94b5wkvj41g1bla/RTL88x2BU_WiFi_linux_v5.2.4.4.rar/file
surathus said:
Ask for help I want to install Wireless Dongle driver on android device. I have a driver file. But I can't install it. I want a simple guide step by step on linux
I have a picture preview. Have driver file Please check it for me About how I can install as easily as possible. Thank you very much
My devices
huawei nova 2i android 8.0 (Oreo)
android box CS918 Rockchip android 4.4 (KitKat)
Equipment is not the same But I think the driver installation method should be the same.
Driver Link + Guide [RTL88x2BU_WiFi_linux_v5.2.4.4]
https://www.mediafire.com/file/94b5wkvj41g1bla/RTL88x2BU_WiFi_linux_v5.2.4.4.rar/file
Click to expand...
Click to collapse
You'd need to add support to kernel if you want to use the dongle on your phone over OTG.
There is a experimental entry in Kconfig for Realtek devices which have not been tested, enabling that might work. Else you will have to add support yourself.
Either way you'll need to compile your own kernel for it.
Have you tested by simply inserting OTG and dongle and see what happens?
Since phone has wifi already (I guess) it might not work if internal is interfering with external.
ante0 said:
You'd need to add support to kernel if you want to use the dongle on your phone over OTG.
There is a experimental entry in Kconfig for Realtek devices which have not been tested, enabling that might work. Else you will have to add support yourself.
Either way you'll need to compile your own kernel for it.
Have you tested by simply inserting OTG and dongle and see what happens?
Since phone has wifi already (I guess) it might not work if internal is interfering with external.
Click to expand...
Click to collapse
Thanks for the info
repeatedly
Who can get the files that I posted? Can be created as a driver Thank you very much
surathus said:
Who can get the files that I posted? Can be created as a driver Thank you very much
Click to expand...
Click to collapse
I had to add that driver to several linux kernels that i use on my machines (Ubuntu and OpenElec).
Never tested on my Mate 10 Pro, or any other Android device.
However, adding that to the kernel would require some work and i'm not even sure it works fine on android.
Here's a link to my github - > https://github.com/pretoriano80/RTL8822BU
Pretoriano80 said:
I had to add that driver to several linux kernels that i use on my machines (Ubuntu and OpenElec).
Never tested on my Mate 10 Pro, or any other Android device.
However, adding that to the kernel would require some work and i'm not even sure it works fine on android.
Here's a link to my github - > https://github.com/pretoriano80/RTL8822BU
Click to expand...
Click to collapse
thank alot for your help..
...Oh, I forgot to say that My device The model name really is named Realtek 8811CU Wireless Lan 802.11ac USB NIC.
I use the 8811CU driver installed on linux. It can connect and use normally. But the driver that came with the device The name is back. This model is RTL88x2BU. Will it work as well with the links you recommend?
surathus said:
thank alot for your help..
...Oh, I forgot to say that My device The model name really is named Realtek 8811CU Wireless Lan 802.11ac USB NIC.
I use the 8811CU driver installed on linux. It can connect and use normally. But the driver that came with the device The name is back. This model is RTL88x2BU. Will it work as well with the links you recommend?
Click to expand...
Click to collapse
Then probably this - > https://github.com/brektrou/rtl8821CU <- should work for your device.
Pretoriano80 said:
Then probably this - > https://github.com/brektrou/rtl8821CU <- should work for your device.
Click to expand...
Click to collapse
What do I have to do? help guide step-by-step That can help teach me
Right now it works great on linux & windows 10 but can not running on adroid devices.
surathus said:
What do I have to do? help guide step-by-step That can help teach me
Right now it works great on linux & windows 10 but can not running on adroid devices.
Click to expand...
Click to collapse
There is no easy way to do that. First you will have to check if your kernel has support for that Realtek driver and it it does, enable it (as ante0 said).
If it doesn't have support for that driver, then first compile the kernel from sources (without any modification to the source) and check if your device will boot, if it doesn't, then you can stop here and forget about adding that driver to the kernel.
If it does boot with the compiled kernel, then you will have to add the driver to the source code and here, again, there's no guarantee it will work. (compilation might fail or simply, the kernel builds just fine but the driver won't work... like i said, there's no easy way for this).
In my opinion, you better start searching on GitHub for an android kernel that already has support for that driver, but you will also have to check the kernel version (if it matches yours, then you have higher chances to port it for your device's kernel).
Best option : Buy a Wi-Fi adapter that have in-kernel support already.
Pretoriano80 said:
There is no easy way to do that. First you will have to check if your kernel has support for that Realtek driver and it it does, enable it (as ante0 said).
If it doesn't have support for that driver, then first compile the kernel from sources (without any modification to the source) and check if your device will boot, if it doesn't, then you can stop here and forget about adding that driver to the kernel.
If it does boot with the compiled kernel, then you will have to add the driver to the source code and here, again, there's no guarantee it will work. (compilation might fail or simply, the kernel builds just fine but the driver won't work... like i said, there's no easy way for this).
In my opinion, you better start searching on GitHub for an android kernel that already has support for that driver, but you will also have to check the kernel version (if it matches yours, then you have higher chances to port it for your device's kernel).
Best option : Buy a Wi-Fi adapter that have in-kernel support already.
Click to expand...
Click to collapse
Thanks again

Resources