Galaxy Note 4 (SM-N910T) w/ LineagOS 15.1/NetHunter - Alfa AWUS036NEH not detected - Galaxy Note 4 Q&A, Help & Troubleshooting

First time posting, but I've read through dozens of threads and have used the site extensively. I cannot seem to find an answer to the issue I'm having. I had an old Galaxy Note 4 lying around and wanted to see if I could install NetHunter. After tons of trial and error, I was successful in flashing LineageOS 15.1, addonsu -15.1 arm, nethunter-generic-armhf-kalifs-full-rolling-2017.10-20171013-0449, and kernel-nethunter-generic-armhf-3.15.4-20170211-0304 (too new to post link of the NH builds). I have full chroot, updated busybox (v1.25-0-NetHunter) and SuperuserSU to manage root privileges. I had to install all of the tools (e.g., cspolit, DriveDroid, OpenVPN, etc.) individually, but they seem to be in working order.
My issue: I bought an external wifi adapter (Alfa AWUS036NEH) with a chipset (Ralink Technology Wifi Adapter RT2780) that supports monitor mode. The Wifi card appears to work flawlessly on my macbook with Kali distro, but I can't seem to find a way for the NH kernel on the Note 4 to recognize the adapter. In the kernel I flashed, I can see the rt2870.bin firmware required in the /system/etc/firmware folder, but for some reason Nethunter does not recognize the adapter. On most Nexus/NH builds, the wifi adapter is found to be compatible and is usually plug and play.
When I run:
-Kali terminal
-ifconfig
There is no wlan1. Only wlan0.
Same thing if I run iwconfig.
When I run:
-kali terminal
-airmon-ng
I receive a prompt that states:
Found phy0 with no interface assigned, would you like to assign one to it [y/n]?
-y
ERROR adding monitor mode interface: command failed: Operation not supported (-95)
No surprise, the above is indicating the embedded chipset does not support a monitor mode interface, but it doesn't even list the external adapter.
when I run: lsusb
Output shows the Ralink wifi adapter on bus 3:2.
I understand NetHunter was not built for LineageOS 15.1, but there has to be some way to maybe push the firmware or modify the firmware (I have the original firmware from the manufacture) to be compatible with my current build? Do I need to compile my own Kernel for this to work properly? Why doesn't the generic NH kernel, with the rt2870.bin file work?
Thanks ahead of time.

Have you tried using Magisk and flashing the Kali Nethunter module with that? It also includes multiple wireless firmware and I believe the correct one for your Alfa dongle. I too just bought that exact WIFI dongle and I'm still in the process of setting up Kali on my Note 4.
I had a similar issue as you on my OnePlus 5T even with the Magisk module for Nethunter. I'm going to try and find a different kernel because I think that's my issue on that phone.
My Note 4 is N910P but I'll let you know if I find something that works and maybe it'll help you find a way on your variant.

Related

[Q] USB Audio on ubuntu?

Has anyone manage to install an usb audio board or usb headphones to ubuntu on hd2? Is it possible? I'm trying to update alsa drivers but haven't managed to solve this problem.
Is there a known way?
Yes, worked fine with new kernel update and modules. It detected as soon as i inserted the sound card even through usb hub.
However audio does not work for phone calls still. Exploring out still...
can you please direct me on where or how these updates could be make. Even external audio would be ok.
I've tried downloading any update i could get, but don't know how to enable sound as my external usb audio adapters are not yet recognised.
Yes... external audio is fine. I tried with a Microsoft USB Headphones and also with cheap usb sound card both are working fine...
Search with the string zImage-htcleo-usbhost-latest and download both zImage-htcleo-usbhost-latest and modules-htcleo-usbhost-latest.tgz
Search [Discussion]Linux and Android on the HD2 and you will get information about updating the kernel.
Cheers!
hello, i did by the following guide
Installing the latest Linux kernel image (zImage)
1) Download the latest Linux kernel image (right click, save file as)
1a)for Google Android
1b) for classical GNU/Linux based distros (Ubuntu, openemebdded, meego, maemo etc)
Be aware these build links are dynamic and will be updated once the Linux kernel source code is updated. See here for static links
2) Rename the file to zImage
3) Overwrite your old zImage file with the newly obtained zImage file
Installing the matching Linux kernel modules (.ko files)
1) Download the latest Linux kernel modules to match your kernel image
1a) for classical GNU/Linux based distros (Ubuntu...)
1b) for Google Android
2) Install the modules...
2a) in GNU/Linux
As root run
cd /
tar xvf /path/to/modules-htcleo-usbhost-latest.tgz
downloaded both zImage-htcleo-usbhost-latestt and modules-htcleo-usbhost-latest.tgz then renamed first one like the older one in the linux folder, then use the tar command in root console to copy files from the archive to /lib folder (or wherever they were put). After a restart i get some fatal errors during text load up of linux, something involving mod probe complaining about not finding something in /lib folder, modules.dep if i remember, then at GUI load i get another error "cannot update ICEautorithy file. When i click ok, i get the desktop loaded but still no sound plus now, no wifi or some other drivers.
I guess i did it wrong
diwa_sen said:
Yes, worked fine with new kernel update and modules. It detected as soon as i inserted the sound card even through usb hub.
However audio does not work for phone calls still. Exploring out still...
Click to expand...
Click to collapse
can you please tell me in detail what I have to do to get usb audio working
in sound settings it shows me that there is no hardware????
i didn't manage to solve that problem.
i still have problems replacing the old kernel and modules, after reboot the phone displays some errors involving modprobe then iceauthority files. If someone could upload a newer version using this kernel or a guide to enable sound, it would be excellent.
ok, managed to change to a new kernel and modules with no problems but still.. no audio. By default (no other modifications) i have no audio devices in the hardware tab of "audio" in preferences. When booting up i can see the usb-audio driver loading up and my audio card is recognised as "usb headphones" or something like that, but when the graphical part of ubuntu loads up i can't see nothing related to audio.
Tried with both cheap sound card and logitech usb headphones, same result, no sound.
USB audio works on my Allwinner A10 tablet witn "Unofficial CyanogenMod 9 for many AllWinner A10 tablets" firmware from Christian Troy

ADVICE/SUPPORT : UVC Camera on Samsung Galaxy Tab 10.1- No device Node??

HI,
I am trying to interface the UVC Camera to the Samsung Galaxy Tab 10.1(GT-7510) , but I am not able to see the device node getting created in the shell( I have installed the Linux terminal Shell Application) and rooted the device using this Video .Can somebody plz tell/advice how I can achieve it and access the device Node or at-least get it created.
Following is the log on dmesg :
usb 1-1 new high speed USB device using tegra-ehci and address 97
hub 1-0:1.0 unable to enumerate USB device on port 1 ,
usb 1-1:device v0ac8 p3420 is not supported
On My Laptop I get this output on Dmesg :
[12307.364237] uvcvideo: Found UVC 1.00 device Venus USB2.0 Camera (0ac8:3420)
[12307.366108] input: Venus USB2.0 Camera as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input14
[12308.537059] usbcore: registered new interface driver snd-usb-audio
also i can see the camera getting blinked on connection which proves that it is getting the power-supply and getting connected with the system.
I think there is a support for UVC USB devices in the kernel (not sure) otherwise I am ready with the Kernel For Samsung Tab 10.1 (GT-7500 (Higher Version: GT-7510)) from here .(GT-P7500_MEA_Opensource.zip (requires Login).
Plz assist.
Rgds,
Softy
You seem to know a bit about what you're doing. I'm not really familiar with this device. I did a search and did not find anyone who has don't this yet. The first priority is to get a Linux device in /dev/ folder. This is generally handled by a device driver and a udev rule. Try the newer kernel if you can. The android 4.0 ics has a Linux 3.x kernel. See if switching to ics helps. Try compiling a custom kernel with all modules. Once you have a device, try using SSH or sftp from your desktop under Linux to stream from that device with vlc or another media player.
Do you have any examples of this device in use on mobile Linux? It may require writing an entire kernel driver.
HI,
Yes that is the same line of thinking for us as well.We are trying to compile the kernel and load it .- Ongoing
I believe only the zImage is the one which is to be flashed.But I am little scared to do this.Couldn't find the instructions to loading the Zimage even though I can compile one.
Rgds,
Saurabh
softy007 said:
HI,
Yes that is the same line of thinking for us as well.We are trying to compile the kernel and load it .- Ongoing
I believe only the zImage is the one which is to be flashed.But I am little scared to do this.Couldn't find the instructions to loading the Zimage even though I can compile one.
Rgds,
Saurabh
Click to expand...
Click to collapse
Flash it with Heimdall, even if it won't work you will be still able to get into download mode of bootloader (which you aren't supposed to flash) and reflash the kernel with stock one.

[HOWTO] Enable Wired Ethernet on P5110

Dear Forum,
Wired Ethernet on a tablett HOWTO.
Tested on a P5110
Get ready to build CyanogenMod for Your Device
http : / wiki.cyanogenmod.org/w/Build_for_p5110
but before you build:
cd android/system/kernel/samsung/espresso10
make menuconfig
[Navigate using arrow keys and enter]
Load an Alternate Configuration File:
./arch/arm/configs/cyanogenmod_p5110_defconfig
then
Device Drivers ->
Network device support ->
USB Network Adapters ->
Multi-Purpose USB Networking Framework ->
[PRESS y so that the module will be built into the kernel]
[*] Multi-purpose USB Networking Framework
find the Chipset Your Adapter is using
[PRESS y]
[*] ASIX AX88xxx Based USB 2.0 Ethernet Adapters
or whatever Chipset your Adapter is using
exit and save
build the ROM
Flash it
open terminal
su
netcfg
Your eth0 should now show up to get an IP Address
netcfg eth0 dhcp
The grapevine says not all apps are supported as Android has a sketchy implementation apps written in c or c++ should work
martburg said:
Dear Forum,
Wired Ethernet on a tablett HOWTO.
Tested on a P5110
.....
The grapevine says not all apps are supported as Android has a sketchy implementation apps written in c or c++ should work
Click to expand...
Click to collapse
What would ./arch/arm/configs/cyanogenmod_p5110_defconfig be on a p3110?
Easier will be to flash Agni kernel and install this app from store. Is using a little hack so every app works with the wired connection https://play.google.com/store/apps/details?id=xda.usbhost.test
I"ve been scratching my head for a while on this one. Here's what I did to get ethernet access with the help from above. Thanks iamashwin and blueseeker.
1) From TWRP v2.8.4.0 in boot recovery, flash the following:
- Recent version of OmniRom 4.4.4 nightly. I used the 2/12/15 nightly.
- Flash PA Gapps Micro for 4.4.4
- Flash SuperUser
- Flash AGNi kernel for 4.4.4
- Reboot
2) Load this android app.
2) Make sure wifi is turned off.
3) Plug in your USB-OTG adapter with USB-Ethernet adapter. I bought this USB-OTG adapter and this USB-Ethernet adapter.
4) Run ethernet app that you downloaded from 2) above. Hit "Enable".
You should be good to go from here.....
Samsung Galaxy Tab 3 10.1" P5200.
Hello I want to get a similar configuration setup on my Samsung Galaxy Tab 3. Is there any way that modifications can be made to what's been used here to support it.

[solved] PS3 controller on OxygenOs 3 not working

I recently updated from OxygenOs 2 to 3.0.2 and lost the ability to use my Playstation 3 controller with my phone.
Previously it worked with the Sixaxis App and bluetooth, but now this app is unable to start the bluetooth driver.
When I connect it via USB it gets recognized as I can see in dmesg, but no key events are recognized. I read that I might need to compile my own kernel with the proper drivers, but I am new to this and would like to do that only as a last resort. From what I can tell this behaves like with OxygenOs 2, but I didn't investigate further because bluetooth worked back then.
Does anyone have experiences with my problem and are there any known solutions?
I looked into compiling kernel modules and have to say that it is easier than I thought.
I took the official kernel source for the OnePlus Two and compiled the hid_sony module.
After loading it with insmod the controller works fine via USB.
If you are interested in the module, it should be compatible with kernel 3.10.84-perf+ and I will give it to you, but I am not allowed to post links, so please write me a PM.
I hope your help was the Sixaxis Controller application running in version 7.1.1 but the application is not working now after updating to 8.0 Is there a way to solve the problem problem

Problems with WiFi & Recovery with rk3036 board used in Mega Drive Flashback Consol

Problems with WiFi & Recovery with rk3036 board used in Mega Drive Flashback Consol
Hi guys,
I am a (bad) developer who is trying to obtain the maximum from the recently released Mega Drive Flashback console.
It is an Android 4.4.4 unit with an rk3036 SoC. The problems I am facing are 2:
1 - WiFi module seems not to be laoded and all .ko modules present in /system/lib/modules give "invalid exec format" for the exception of the mali.ko (gpu) one (when instmod it says "already present"). I would like to know what I have to do to find/build a correct wifi module; reading on the web it seems to be a kernel-related problem so I need to recompile the .ko or find another kernel or find a precompiled .ko which "fits" with the used kernel. I found other kernel.img, system.img and boot.img from other Rockchip devices but I do not know which .ko file to "reuse" (wifi.ko ?). Which WiFi USB dongle do you suggest me for this "challenge" ?
2 - I "stole" a TWRP 3.1.1 from an Android TV firmware using another Rockchip SoC and it is booting fine (I cannot control it via touch screen because the Mega Drive Flashback has not a screen but it is controllable via mouse) but it seems not to recognize/mount any console partition and the mounted ones (the ones present inside the recovery) are 0 bytes and I cannot save options. Can someone help me in making this recovery in a working state ? If needed I can post the recovery.img file.
The device is correctly rooted with SuperSU and has Busybox installed. ADB and MTP drivers are working fine.
Sorry for all those noob questions but we are trying to describe how the console works; you can find what we found out here: https://mdfbrew.org.

Categories

Resources