Building kernel with CONFIG_BRIDGE=y - Galaxy S6 Q&A, Help & Troubleshooting

I use my galaxy s6 phone as a wifi hotspot for my desktop (I know, im too cheap to buy an adapter, but bear with me), my phone connects to the internet with wifi and my desktop is tethered to my phone.
Recently I wanted for my PC to apear as if it was directly connected in my lan and not be behind the NAT of my phone.
So what I wanted was to bridge the wlan0 and rndis0 network interfaces. Unfortunantly, I came to discover that the stock S6 kernel doesn't support 802.1 bridges. So I went and compiled a custom kernel. I compiled the stock kernel updated it in my boot.img to see if I was doing everything right and yes, it all went dendy. But when I recompiled the kernel with the CONFIG_BRIDGE=y, the phone goes into a boot loop. Also, a msg apear saying SElinux is not enforced, which is odd.
The question is: wtf? Is it the case that the hardware doesn't support this option? How changing just this option interferes with SElinux. Is there anyone who tried to do this and got it to work? I was able to change some options, like CONFIG_IKCONFIG/IKCONFIG_PROC.. So I'm sure the process of compiling and flashing it is been done correctly.
Additional info:
I'm using G920IDVU4FRD3 samsung stock kernel, which is version 3.10.61
Mine is a sm-g920i.
My current .config file is attached.

Related

[Q] Wireless with Ubuntu

Hello,
I recently installed Ubuntu in a dual-boot, and most things are working well. However, one of the biggest problems is with wireless. I have injected the firmware from the android kernel, and am able to connect using wpa_supplicant or a basic 'sudo iwconfig essid [network ssid]'. However, I have read on the Dev forum that some users have been able to flash a kernel onto their device that provides wifi via a GUI. I have not been able to, and am wondering if anyone would be able to help me out.
The links to the patches are here http://forum.xda-developers.com/showthread.php?t=1191141&page=76. Post #753. Dev posted on building the patches. Does anyone know how to build these patches and get a GUI for network manager working?
Thanks,
kiambogo

[Q] USB WWAN - How To On Wifi Xoom?

Hello, I Know there are correct wifi usb dongles drivers in Tiamat Kernels, i have tried everything possible to get the Mobile Settings option in the Wireless setting of android with no luck, Can anybody point me to the correct procedures on how to do it? btw i have tried the methods of doing that on Acer and Asus and it didn't work, i had to flash new kernels to boot again in some cases. Thanks
Why those drivers are present but nobody want to write dialer script and instruction?
Launchpad kernel for Xoom!
Alright, Forget about Tiamat kernel, i have Team Tiamat Moray Rom on my Wifi only Xoom with the launchpad kernel from this post :
http://www.xoomforums.com/forum/lau...nel-launchpad-1-2-2-new-6-11-11-3-1-only.html
you will find in the addons (WWAN USB Addon) which is used on the launchpad to show the Mobile Menu and enable tethering as the kernel should have everything required, so why when i use it on the Xoom it doesn't work? BTW i have also disabled the Zero-CD option on the USB stick to make sure it reads as a modem when connected to usb port, i made sure that my 3g stick is compatible with the operation.
Its really interesting when i see 153 views and only one reply
You can try this http://forum.xda-developers.com/showthread.php?t=1118639
And I will try with CDMA modem I found one non-english article.
But just yesterday I got trouble with OTG connections, all devices are with error:
usb 2-1: new low speed USB device using tegra-ehci and address 6
usb 2-1: device not accepting address 6, error -71
hub 2-1: unable to enumerate device on port 1
It was working last night. Wtf? Do you know how to fix this? I tried to restart tablet with no luck, otg cable not working anymore.
Update 1: Nevermind, cable was broken. Fixed.
Update 2: I tried that method on link I gave you - zore result, reflashed.
P.S: Just tried your launchpad kernel - too bad that 3.1 only. I'm using Rogue now. By the way usb_wwan can be installed everywhere.
I found also this universal installer for Huawei modems attached below.
Dunno how to "dance" with this. After installing just nothing happend or I doing wrong.
thanks for you effort, OTG cables are horrible, most of the time when you get failures its caused by cables or adapters anyway,
i downloaded the attached archive and pushed all modules to my Xoom with MORAY Rom and Odachi Kernel, rebooted and nothing happened too no Mobile Settings menu, will keep trying and keep you posted
Actually I'm not sure if there should appear some menu. After this you have to see in dmesg you modem to be recognized like GSM converter but I don't. So it looks like option.ko isn't loaded. Maybe this file has to be in defferent place instead of /system/lib on Xoom? I also tried to put it in /system/lib/modules/ , also nothing happend after.
Maybe it works on older versions of ROMs? I'm using 3.2.2 stock rooted with rogue kernel + usb_wwan
Maybe, i have tried it with many roms, even the 3.1 but no luck, i think Team Tiamat would be the right ppl who would clarify everything to us, i have tried setting the kernel to launch all the modules on boot but nothing happened,we need somebody experienced in those things to help us out
Hmm... as you see there is nobody who want to help with this. Because they have 3G models or expencive portable hotspots and nobody need this.
Anyway. Did you try to put option.ko and usb_wwan.ko in system/library/modules folder and right after that set up "modules on boot"? Restart tablet, connect modem and see in dmesg. I don't have this option in my rom, so try to do that.
:s
I've tried placing the modules and loading them on boot, but it didn't work too, its not about money, actually i have 3G portable wifi router and my other android devices have the built-in wifi hotspot ,but its about doing the thing...its about the concept, why it's not working while we have everything in place, thats the weird thing, i think we will have to wait until somebody feels sorry for us then decide to help us! :s
Problem definitely in /system/build.prop it should be edited somehow, according to manual for A500 tablet.
Neolo said:
I found also this universal installer for Huawei modems attached below.
Dunno how to "dance" with this. After installing just nothing happend or I doing wrong.
Click to expand...
Click to collapse
hi, where to put this module pack? i mean how to install?
How to connect manually using Huawei 3G dongle:
You need:
- rooted xoom with Tiamat kernel (or any other which has usb_wwan.ko and option.ko attached)
- 3g dongle
1. Backup files from /etc/ppp in case when this solution don't work
2. Download attached zip and extract to /etc/ppp
3. edit /etc/ppp/gprs-connect-chat in line
Code:
'' AT+CGDCONT=1,"IP","internet"
replace 'internet' with APN name for your network
4. Now run terminal (Terminal Emulator) and type
Code:
su
stop ril-daemon
insmod /system/lib/modules/usb_wwan.ko
insmod /system/lib/modules/option.ko
pppd call gprs
Now you should have working connection (Xoom doesn't show this, but if you run browser it should work).
For me it works on Verizon Xoom with Huawei e1750, but i'm living in area where only edge is avaliable, so this is very slow connection - i need to check connection speed in other location this weekend.
For Xoom Wifi owners: this should also work for you, but with small change - after inserting modules you should check on dmesg which port(s) is using your dongle and change port number in first line of /etc/ppp/peers/gprs . It's probably /dev/ttyUSB0 but you must check.
Porzeczek said:
How to connect manually using Huawei 3G dongle:
You need:
- rooted xoom with Tiamat kernel (or any other which has usb_wwan.ko and option.ko attached)
- 3g dongle
1. Backup files from /etc/ppp in case when this solution don't work
2. Download attached zip and extract to /etc/ppp
3. edit /etc/ppp/gprs-connect-chat in line
Code:
'' AT+CGDCONT=1,"IP","internet"
replace 'internet' with APN name for your network
4. Now run terminal (Terminal Emulator) and type
Code:
su
stop ril-daemon
insmod /system/lib/modules/usb_wwan.ko
insmod /system/lib/modules/option.ko
pppd call gprs
Now you should have working connection (Xoom doesn't show this, but if you run browser it should work).
For me it works on Verizon Xoom with Huawei e1750, but i'm living in area where only edge is avaliable, so this is very slow connection - i need to check connection speed in other location this weekend.
For Xoom Wifi owners: this should also work for you, but with small change - after inserting modules you should check on dmesg which port(s) is using your dongle and change port number in first line of /etc/ppp/peers/gprs . It's probably /dev/ttyUSB0 but you must check.
Click to expand...
Click to collapse
bro,
how can we connect any other company's usb modem? it is same as huawei modem or new driver files to be downloaded?
raihankabir_1 said:
bro,
how can we connect any other company's usb modem? it is same as huawei modem or new driver files to be downloaded?
Click to expand...
Click to collapse
What modem you have?
Porzeczek said:
What modem you have?
Click to expand...
Click to collapse
i was successful with huawei 3g modem according to the tutorial. i have an wimax usb modem and i didnt find any tutorial related to wimax usb modem on xoom
raihankabir_1 said:
i was successful with huawei 3g modem according to the tutorial. i have an wimax usb modem and i didnt find any tutorial related to wimax usb modem on xoom
Click to expand...
Click to collapse
Ask google for linux support for this wimax modem. If it works on linux it also should work in android. And most of linux tutorials are saying which driver is needed.
I also have different modem need to use, because gprs is slow and expencive.
I have Cmotech U300 (Dual mode - WiMax + CDMA Rev.A) branded for Sprint. Have no idea where to get a driver for xoom.
Looks like my modem is working under Linux, http://jebus.nu/tech-corner/sprint-u300 Dut generally I have no idea how to make it for Xoom.
My Huawei is recognized well. I set APN name, but what about APN username and password. Where are setted?
Are there any updated ppp files for the xoom on jelly bean as it does not seem to work with my one....... Also try something called "ppp widget" which seems to be easier to do but still its not worked for me on my xoom...... HELP

[REQ] USB ext WIFI Dongles driver modules into 4.3/4.4 kernel

Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
Sent from my GT-I9300 using xda app-developers app
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
nebular said:
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
You must boot from a linux distrubiton such as backtrack. But there is no native way that i know for doing that. Although there is one solution that you run linux background and connect to it by vnc viewer. Take a look at this
Click to expand...
Click to collapse
I built a few kernels for 4.3 and 4.4 with these modules, but the problem is once I built the kernel I lost the ability to mount the ext4 SD to be available within android. Only adb can see it.
What do you see in lsusb, or dmesg when you plug it in?
simply nothing. my rt3070 device is not even recognized by phone (i9300 with 4.4.4 Slimkat) after inserting specific .ko modules

Working MAC spoofer solution for recent Android 6 marshmallow smartphones?

I've been looking for a working MAC spoofer solution (app/mod/patch) for a test phone running Android Marshmallow but I didn't find anything that works.
currently the test device is a LG G3 running fulmics ROM 5.0 (based on Android marshmallow / LG 30F), but it seems the matter is rather android 6.x related.
The Aim is to change/spoof temporarily or permanently the hardware MAC address of the internal network adapter (eth0, but mainly wlan0).
So there are a lot of apps out there in the market which claim to do exactly that. I tried many of them, but nothing works as intended.
To name a few of them:
- Wifi Mac Changer
- ChameleMAC
- Mac Address Ghost
- MacChanger
- MacSpoofer
- many more tested
- Phone ID Changer / Device ID Changer app/module for xposed
even the most promising one:
- Pry-Fi by chainfire
does not work, it just crashes while trying to spoof.
all of them claim to change the mac, but it's not working on this device or general on an android 6.x version.
either they crash or they fail in spoofing.
so I tried to spoof the MAC manually in a Terminal with BusyBox installed and a command like:
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55, checked if it worked with iplink cmd and it did. But when I try to connect to my access point, I can't join the wifi network it always neglects my pw. when I turn wifi on/off, the MAC gets reset to original hardware MAC and I can again connect to my wifi AP.
So even when trying to spoof the MAC manually it doesn't work.
And I don't know if it is a problem with Android 6.x, the device itself or the ROM i used.
Does anybody else have a working mac spoofer solution for an Android 6.x version smartphone or have an idea how to this working?
Did you also try connecting to an open network after the busybox method ? I read somewhere the pw issue was only when connecting to secured networks.
Other than that ... I'm also looking for a reliable solution. No luck so far.
Also , you might want to try / read http://forum.xda-developers.com/android/apps-games/app-network-ghost-mac-hostname-spoofer-t3145866
Is explains why the busybox method fails with WPA networks.
thanx for the link. It was interesting.
unfortunately the app doesn't work either. so we still have no working solution or app that does spoof the mac on marshmallow devices.

Rooted Galaxy Note 3 (running Lineage 18.1) refuses to connect to WiFi after installing Nexmon/Bcmon (bcmdhd_sta.bin)

So I installed Kali NetHunter to use the Wifite command. Long story short, I find out that I need an external wifi card for programs like Wifite to ACTUALLY run, so I find a tutorial to use Wifite WITHOUT a WiFi card. I installed Hijacker and went through the initial setup process (installing Nexmon). But then, I realised that I can no longer connect to any WiFi networks, despite my phone detecting them. I figured it had to do something with my management utility path for the Nexmon installation not existing at all (the default was /product/bin, which does not exist for my phone). So I reinstalled it, only this time setting the path as /system/bin). Still, it didn’t work. I fugured it has to do something with the bcmdhd_sta.bin file inside of the WiFi folder (/system/vendor/etc/wifi). No luck deleting it (I used amaze file manager). Can anyone pls help me, I just want my phone back, preferably without a hard reset. The device chipset that the Nexmon installation window is showing is 4339a0.
Details of my phone:
Samsung Galaxy Note 3 SM-9005
Android 11, running LineageOS 18.1

Categories

Resources