This thread is about on how to connect your OnePlus7 to an USB Serial device in order to use it headless.
Disclaimer
I am not responsible for any damage that may occure by following any instruction from here.
Dependencies:
Root. On OOS11 we don't lose anything by doing so... here is my guide
Kernel with version msm-4.14.190 (OOS 11.0.1.1 and older 11 OOS) (You can get your version in Settings -> Status -> Kernel-Version or type uname -r into a terminal emu)
Download
msm-4.14.190 serial module
Install and use
Install a custom kernel using 4.14.190. I've used blue_spark and installed it with franco kernel manager cause TWRP is not there yet. I paid it with the money i did not spend on Coffe2Go during the pandemic (Why? Because the modules compiled by me are not signed and the default kernel compiled by OnePlus does not allow them to be loaded)
Install Busybox for Android NDK in Magisk
Install Termux from F-Droid (Highly recommend F-Droid cause i had problems with the PlayStore version because the releases there are behind)
Load the drivers in Termux with su
insmod /sdcard/usbserial.ko
insmod /sdcard/ftdi_sio.ko or insmod /sdcard/ch341.ko depending on your serial converter chip
(After a reboot this needs to be done again)
(Unload: Currently only a reboot unloads the drivers. There is however no need for it)
Connect with microcom -s 115200 /dev/ttyUSB0
Replace 115200 with the speed you need
Fixing the terminal size
When connected, your terminal will be too small. We need to tell which size we need. So outside your serial type stty size. First number are the rows, secondly the columns. Then in your serial adopt them with stty rows * columns *. You could of course create a script that reads this value and sends the command automatic when connecting.
Baud speed
Support up to 1 Mbp/s (1000000 as baud argument) *as far as i know. I had problems using more. At baud speeds higher than 4 Mbp/s (4000000) also Microcom does not accept it.
Also great
You could now connect a bluetooth keyboard or make a hotspot (Internet access not needed) and / or start an ssh server. Then you could connect to it with another device like an iPad or any ssh capable device.
Raspberry + Serial connection example
On Raspberry boot/config add enable_uart=1
Make sure the jumper is set to 3.3V
Connect:
GND (Raspi) -> GNU (FTDI)
Tx (Raspi) -> Rx (FTDI)
Rx (Raspi) -> Tx (FTDI)
Connect the Serial converter to your phone (using USB-C adapter)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Source
https://github.com/trueToastedCode/android_kernel_oneplus7_sm8150
Related
I bought usb network adapter and I want to plug it to my samsung i9100. I found drivers for this usb network adapter (For Android 1.x/2.x/3.0, Linux kernel 2.6.14 and later) but I don't know how to install it to my device. Help me please!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What are you aiming to do with your device??? I'm trying to understand why you would want to attach a network adapter to your phone, when wifi is included.
he might not have access to a wifi router or AP. either way i think i'd be much easier to buy a wifi ap than the route you're taking.
I need this for my work. Check link signal. I do not like to carry my unhandy laptop. Network tester can not always help because it can't show ip in cable.
You are going to need to cross compile the kernel module.
Then from a terminal editor
su
insmod /path/to/module.ko
You also might need to write a udev rule in order for the phone to see it.
anonymous572 said:
I bought usb network adapter and I want to plug it to my samsung i9100. I found drivers for this usb network adapter (For Android 1.x/2.x/3.0, Linux kernel 2.6.14 and later) but I don't know how to install it to my device. Help me please!
Click to expand...
Click to collapse
"CONFIG_USB_USBNET" in ".config" this will also compile "./drivers/net/usb/asix.c" ... but need testing.
./drivers/net/usb/Kconfig ->
[...]config USB_NET_AX8817X[...]
This driver should work with at least the following devices:
* Aten UC210T
* ASIX AX88172
* Billionton Systems, USB2AR
* Buffalo LUA-U2-KTX
* Corega FEther USB2-TX
* D-Link DUB-E100
* Hawking UF200
* Linksys USB200M
* Netgear FA120
* Sitecom LN-029
* Intellinet USB 2.0 Ethernet
* ST Lab USB 2.0 Ethernet
* TrendNet TU2-ET100
[...]
Click to expand...
Click to collapse
did anyone find out if this works ?
I would like to get my SG2 to run of a USB SMC nic same as the one the nexus likes to use.
when i connect the usb nic now it connects on the top it says USB DETECTED but thats it nothing more.
if anyone knows please post
Hi, I have a problem, I keep receiving subscription ads requests, it seems that it is from my cellphone company, since you can see the sim image in there but I am not sure. This are some examples:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Background info: (running Android 6.01, 26.3.B.0.131)
So I used to be on a cell phone company which had this subcription ads request (Movistar), but I changed to another one which they say they do not have any of that (Tuenti), with the same number, and they are both owned by the same company (Otecel), so maybe some settings from the old operator were kept in the new ones, I have talk and talk and talk with them, and i just keep receiving this ads.
Is Root the solution?
Maybe if root my device, I can disable the sim services app, or I do not know something else, and I would not receive this ads again, or what do you guys recommend me.
Hello, have you tried to 'adb hide' or 'adb disable' the STK apk? No root required AFAIK
Pixelado said:
Hello, have you tried to 'adb hide' or 'adb disable' the STK apk? No root required AFAIK
Click to expand...
Click to collapse
No, I have not tried not, because I do not know how to do it, could you please teach me , please noob steps
Sorry for being so late haha.
I'll assume you're using Windows 7 or newer.
Steps:
- Get ADB and proper drivers for your devices (Flashtool ships with all of this)
- Enable dev settings on your phone
- Enable USB debugging. Disregard all warnings
- Connect your Xperia to your PC via USB cable
- Wait for drivers to install
- Open a terminal/command prompt on your PC, point it to a directory where you have an ADB executable (adb.exe) (you can do this by opening the flashtool libs folder, eg: c:\flashtool\x10flasherlib, and right-clicking anywhere on the window while keeping the SHIFT key pressed)
- Issue the following command:
-- adb devices
Your phone should ask for authorization now. Grant it
- Issue the following command(s):
-- adb shell (this gives you access to your device's terminal from your PC)
-- pm disable com.android.stk
If the above command fails, try:
-- pm hide com.android.stk
- You're done
You can avoid using a PC by using a terminal emulator on your device AFAIK. I might be wrong though.
What's the difference between Windows/Android adb "connect" versus adb "pair" when mirroring Android 12 over Wi-Fi onto a Windows PC?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The background technical stuff is that both Windows vysor & scrcpy freeware mirror Android 12 using the PC display, mouse, keyboard & clipboard...
Vysor freeware
Scrcpy freeware
You can connect Android 12 to Windows 10 adb over Wi-Fi using either...
adb connect, or
adb pair
Where the syntax for each of those two commands is the following...
adb connect 192.168.0.2:5555
adb pair 192.168.0.2:12345 123456
Where in those examples...
192.168.0.2 is the Android LAN IP address
and 5555 is the default adb port (adb tcpip 5555)
and 12345 is a random android12-assigned port
and 123456 is an android12-assigned wifi pairing code
The main difference between the two commands (AFAICT) is simply that the latter "pair" is newer than the older "connect", where the "pair" command is only available in Android 12 and up (as far as I'm aware anyway).
However, that means we have a choice, right?
What's the difference in practical use between adb connect vs adb pair?
I mainly ask because both work; and yet both are seemingly different in some ways (e.g., the port 5555 seems to work independently of Android 12 settings while the WiFi pairing code requires specific but randomly assigned Android settings, which change whenever they're cleared).
Nobody seems to know the answer where I suspect that the answer may be as simple as this (but I'm not sure of this as a fact)...
adb connect (is not encrypted)
adb pair (is encrypted)
Does anyone know for sure what the answer is?
Hi all,
On Android 13, Google enabled KVM support for Tensor Chips model(Pixel 6 / 6pro / 6a). So we can run a Virtual machine at full speed, but there is no APP to utilize this feature.
I modified the Limbo Emulator (QEMU), so it can enable the KVM on Pixel 6 Phones. Due to the limitation of the kernel, the APP needs ROOT permission to access the KVM service(/dev/kvm)
Currently, only VNC is working on this APP, and you can only boot directly using the Linux kernel. UEFI did not work on KVM.
Network functions worked, but you may need to set the DNS inside the Guest OS.
Arch Linux for arm64 runs pretty well on Limbo. It runs even faster than Raspi 4. You can download it from ArchLinuxARM-aarch64-latest.tar.gz
Other Linux can also run on the Limbo, but you may need to recompile the kernel to enable virto-related functions.
Download link:
Releases · wasdwasd0105/limbo_tensor
Limbo for Tensor is a QEMU-based Hypervisor for Tensor-based Google Pixel devices such as Pixel 6 & 7 series. - wasdwasd0105/limbo_tensor
github.com
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi, can't install the app, says invalid package
Invalid package
ne0ns4l4m4nder said:
Invalid package
Click to expand...
Click to collapse
marynius said:
Hi, can't install the app, says invalid package
Click to expand...
Click to collapse
You can install an apk package as a test package via adb (command adb install -t limbo~.apk). You can also use LADB to install (tested)
Simple installation of the apk is not possible due to the included test build in the application manifest
Awesome! This will come in handy.
Does anyone know if it would be possible to use the simulate secondary display dev option with a display link device or Chromecast?
A while back I discovered that the second screen will actually automatically tie to the (separate from main phone gui) mouse/ keyboard connected. The start menu of that virtual display opens apps in desktop resizeable mode.
It's just not practical to run a desktop as an overlay. If someone can figure out how to feed it to an external display we'd have a solid makeshift DeX with much more flexibility and potential.
Anyone managed to get a working internet connection on the guest?
Can you please tell us how to run windows arm using your latest update there are many trying to attempt this even by installing native qemu and all trying to create a different version of your app with more commands and also how to run other operating systems besides your provided one
[BETA] Windows All-In-One Tool Batch File
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A good tool based on Windows batch commands. It has a few commands for now, (already 200 lines, but alright ...) but I will keep updating it and make a good release. It works for now, but not everything is correctly yet.
DownloadSource #1: GitHub
How to useOpening programAll tools/options1. DISM and SFC Repair - Use this option if you want to check your computer of corrupted Windows files, and recover them if needed.
2. Create Restore Point - Creates a restore point with the name 'Restore Point'. (I might update the name in the future to use something like the date, need to look into that...)
3. Windows IP Configuration - Checks the network settings and show information about the network adapters using the IPCONFIG command.
4. User List - Shows a list of all users that exist on the PC.
5. Check Windows Version - Opens WINVER.exe, from where you can check information about the version of Windows.
6. Ping Tool - Allows you to ping a website.
NOTE: don't add ping before the command! So 'ping -t google.com' becomes '-t google.com' here.
7. N/A yet.
8. Open Terminal - Allows you to open a Windows Command Prompt. (Still need to fix something there).
9. Credits - Shows all the credits for the program (Currently me and Microsoft. Microsoft for developing the possibility to make those easily-to-develop programs)
10. Tool Information - Shows information about the batch file/tool.
11. Exit - Closes the tool.