Kali for Magisk question - Google Pixel 2 Questions & Answers

Hey folks,
I was just wondering if any kernel exists for the Pixel 2 that allows packet injection with a compatible WiFi dongle. I had one for my Nexus 6. Just can't find one for this phone. Thanks!

After more research I realize how stupid that post sounded. I now realize I just need to figure out how to rebuild my kernel with the TP-LINK WN722N V1. Drivers baked in.
The lsusb command in Kali shows the adaptor when it's connected to the phone via OTG, so I assume this is all I have to do now.
I found a really great thread that explains how to do it for an older CyanogenMod kernel and a different WiFi chipset.
https://forum.xda-developers.com/showthread.php?t=2338179
On my next day off I'll play around with it.
If anyone has any input or advice I'd really appreciate it.
I may be a noob but I love to learn.

Edit:

Related

[MOD][On Hold] USB 3G Dongle Support

This is a very much work in progress. And is on hold until a breakthrough happens or DerArtem responds to my PM with some info.
First off, credits:
ejhart - All of the development is basically from him. He compiled the sierra.ko for Android which was the big step. Took me through all the steps and has been the main force behind this.
Pershoot - Thank you so much for your kernel and your hard work. Your inclusion of pppd and usbserial helped so much.
Sierra Wireless - Your USB dongle started this? No, but seriously, the Linux support of their modems helped get the device accessible from terminal and may get it to work fully eventually.
DerArtem - Your Folio work on this same thing helped. http://forum.xda-developers.com/showthread.php?t=914350 (UMTS/3G Support on Toshiba Folio)
(Random thanks)
Cyanogen - For CM and all he's done for ROMs in general.
Speed Software - Root Explorer is the most useful app.
Jack Palevich - Terminal Emulator makes this work.
PinkVenture - GScript Lite makes my boot easier.
Current Status
Dongle can be accessed from Android.
pppd functions do not throw errors.
lsmod reveals Sierra device as live.
dmesg shows it loading from ttyUSB0, ttyUSB1, ttyUSB2, and ttyUSB3.
All work is using CM7.
How to get your tablet here
1. Download and install Pershoot's kernel from here.
2. Download the attached files: sierra.ko.zip and ppp.zip
3. Extract sierra.ko and the ppp folder and then copy them to sdcard or internal storage.
4. Download Root Explorer (paid app), Terminal Emulator (free), and GScript Lite (free).
5. Use Root Explorer to copy sierra.ko to /system/lib/modules/ (needs to be mounted R/W). Then copy all the files within ppp (ip-up.local, ip-down.local, and peers folder) to /etc/ppp/
6. Open Terminal Emulator, execute "su" (allow it to use Super User), execute "insmod /system/lib/modules/sierra.ko" (no quotes on any command)
7. If no error is thrown you are where you should be. In Teminal Emulator, execute "lsmod" (no quotes). It should display something like "sierra 11378 0 - Live 0xbf000000"
8. This step is optional: Open GScript Lite, press Menu, Add Script, in the Name field put whatever you want, in the Script field type the same command as above, "insmod /system/lib/modules/sierra.ko" (no quotes)
9. In Terminal Emulator, (as su) execute "pppd call cdma". If no errors, it should be at the same point I am. Congratulations!
Current Issues
1. Modem doesn't act as data connection.
2. No software support for modem.
3. Needs device specific ril library to work (may be possible to build, has been done for Huawei modems).
4. No idea if this works for non-Sierra modems, obviously has to be adapted for other manufacturers. If you build the .ko for other devices, feel free to post it and I will add it to this post, it will help other people.
5. Probably tons of other issues that are lower level stuff.
Feel free to ask questions or give suggestions, we are in need of all the help with the Android part of this as we can get! You can also join us on #tegratab, I am Winnah9000 and ejhart is on there as well.
Updates:
Tried to use the parts from the Folio Update.zip, but they didn't fix anything.
You guys never cease to amaze me. Excellent work and great news for us to wake up to. As far as working, do I need to purchase an air card from Verizon(my phone carrier) or can I get one of the pay-as-you-go 3G air cards from Walmart to work with this? Also, I see you're using CM7, but what other roms does this work on? I'm using the GAdam alpha5 rom, do I need to switch back to TNT OEM rom to test this out? Thanks again for your feedback and your work.
kxs783kms said:
You guys never cease to amaze me. Excellent work and great news for us to wake up to. As far as working, do I need to purchase an air card from Verizon(my phone carrier) or can I get one of the pay-as-you-go 3G air cards from Walmart to work with this? Also, I see you're using CM7, but what other roms does this work on? I'm using the GAdam alpha5 rom, do I need to switch back to TNT OEM rom to test this out? Thanks again for your feedback and your work.
Click to expand...
Click to collapse
Glad someone else was excited about this
I wouldn't purchase the air card as of yet since we aren't fully sure this will ever work. However, you do present an interesting idea. If we could use the pay-as-you-go cards and find a way around the data throttling like they did on the G2 this would be an extremely cheap way for a 3G Tegra 2 tablet.
To your ROM question. I'm using CM7 because the other ROMs (TnT Lite, VEGAn-Tab, etc.) lack the necessary telephony and communication apks that we would need for calling the data. Also, not sure which ROMs the pershoot kernel doesn't work on (I think it works on TnT Lite, CM7, and VEGAn when compiled correctly). You are welcome to test it on those when we get further along
TheJesus said:
Glad someone else was excited about this
I wouldn't purchase the air card as of yet since we aren't fully sure this will ever work. However, you do present an interesting idea. If we could use the pay-as-you-go cards and find a way around the data throttling like they did on the G2 this would be an extremely cheap way for a 3G Tegra 2 tablet.
To your ROM question. I'm using CM7 because the other ROMs (TnT Lite, VEGAn-Tab, etc.) lack the necessary telephony and communication apks that we would need for calling the data. Also, not sure which ROMs the pershoot kernel doesn't work on (I think it works on TnT Lite, CM7, and VEGAn when compiled correctly). You are welcome to test it on those when we get further along
Click to expand...
Click to collapse
Hi
This is great news, i definately would like to help/test this.
Keep up the good work
Ian
Ianmrr said:
Hi
This is great news, i definately would like to help/test this.
Keep up the good work
Ian
Click to expand...
Click to collapse
If you have a Sierra Wireless modem you are welcome to try your own ideas. If its something else, then wait until ejhart explains to me how to compile a .ko against Android for whichever dongle it is.
Thanks for your support!
Is this a particularmodel and chipset? I'm not familiar with Sierra Wireless. Can you post the source code for the driver?
muqali said:
Is this a particularmodel and chipset? I'm not familiar with Sierra Wireless. Can you post the source code for the driver?
Click to expand...
Click to collapse
Yeah, its the AirCard 250U sold by Sprint. Its 3G/4G, but the driver Sierra developed only does 3G cause they're lazy asses.
Here's the driver source and pppd dialing scripts: http://sierrawireless.custhelp.com/...-on-a-linux-operating-system-(-ac-850/860,-ac
Also, all development on this has stopped until further notice. We are hoping DerArtem releases the ril source and that the ril library will help it to work. Thanks for all your support!
Hi
as the Advent Vega has similar hardware (same oem part number i think?) then this might be of some help. Look at post 12 onwards. I have succesfully got this working with a Huawei E169 usb dongle.
http://android.modaco.com/content/advent-vega-vega-modaco-com/329229/mobile-broadband-dongles/
You have this working on the Viewsonic G tablet? Because I have tried to load the rom through Clockwork and the screen goes black. I need to know the secret.
OK, I discovered the ROM is loaded through ADB after extracting the files. Get a permission issue towards the end of the installation. Did you have that same issue? If so how did you overcome it?
Deleted double posting
kostyamat said:
Look here android.modaco.com/content/advent-vega-vega-modaco-com/329229/mobile-broadband-dongles/#
Owners Advent Vega can already use a 3G-dongls. Why we can't do it? We have a firmware which is based on the firmware for Advent Vega. Why till now isn't present?
Good luck!
Click to expand...
Click to collapse
roebeet said:
I can't speak for all the devs / modders, but for me it's very simple. I don't have a 3G modem to even test with. My suggestion, in all seriousness, is to contact Viewsonic and ask them to add support into their firmware. And maybe ask for USB mouse support as well if you call them, I've already put in a ticket for that myself. The more people who call, the more likely that they might add it.
I have a aircard that the day job supplies, but the darn thing won't even work in MacOS or Linux, let along Android. I'm actually considering a MiFi device as it seems to be a fairly easy way to get around these issues.
Click to expand...
Click to collapse
Perhaps you could talk to Roebeet
http://forum.xda-developers.com/showthread.php?t=884103&page=134
huwwatkins said:
Hi
as the Advent Vega has similar hardware (same oem part number i think?) then this might be of some help. Look at post 12 onwards. I have succesfully got this working with a Huawei E169 usb dongle.
http://android.modaco.com/content/advent-vega-vega-modaco-com/329229/mobile-broadband-dongles/
Click to expand...
Click to collapse
I've reviewed this with ejhart but we didn't see much that they did which we didn't. The main issue is that most of the people who have it working are using Huawei brand 3G dongles which aren't used by carriers here, so they have different software pieces to make it work.
rapcon said:
You have this working on the Viewsonic G tablet? Because I have tried to load the rom through Clockwork and the screen goes black. I need to know the secret.
OK, I discovered the ROM is loaded through ADB after extracting the files. Get a permission issue towards the end of the installation. Did you have that same issue? If so how did you overcome it?
Click to expand...
Click to collapse
I'm not sure what you're asking... If its about CM7, don't use bittrix's build. Use GoJimi's build (Beta 2 I think).
coffecup said:
Perhaps you could talk to Roebeet
http://forum.xda-developers.com/showthread.php?t=884103&page=134
Click to expand...
Click to collapse
Roebeet has been in the IRC while we worked on it but he didn't have anything to contribute. The main issue is that none of them have a 3G dongle to work on it with, which also means its not a big deal for them to get it working (don't get me wrong, they still would like it to work, but they have more important things to work on).
Here are the sources for ril:
https://github.com/DerArtem/huaweigeneric-ril
Regards, Artem
DerArtem said:
Here are the sources for ril:
https://github.com/DerArtem/huaweigeneric-ril
Regards, Artem
Click to expand...
Click to collapse
Thank you for this
However, we still have an issue. The RIL is pretty much coded for GSM only, there are some CDMA bits, but they look incomplete. I personally don't know enough programming to get it to work and ejhart already has other projects, so if someone wants to take it on, go for it!
That being said, this should probably work for GSM companies like T-Mobile, AT&T, etc. Feel free to try it if you know what you're doing
O please work.
I have been trying to get a 3G usb working since i got this thing. Im not computer programing savy enough to figure any of this out. I mean i know what your talking about, i understand it all, just cant program, so I hope you guys can work this out, would be in debt to you guys forever.
I will be calling viewsonic everyday as a differnet person say I want 3G mondem support and hopefully they will just build it in for us all.
Thanks again for all your work guys.
KushyMansbridge said:
I have been trying to get a 3G usb working since i got this thing. Im not computer programing savy enough to figure any of this out. I mean i know what your talking about, i understand it all, just cant program, so I hope you guys can work this out, would be in debt to you guys forever.
I will be calling viewsonic everyday as a differnet person say I want 3G mondem support and hopefully they will just build it in for us all.
Thanks again for all your work guys.
Click to expand...
Click to collapse
It almost seems to me that is why they gave it a standard USB port, as well as a mini port. It could be for stick drives, but then why was there a spot for a micro SD? Perhaps, the TNT people at VS were in such a rush to get the product to market, that they simply skipped this feature?
Frrrrrrunkis said:
It almost seems to me that is why they gave it a standard USB port, as well as a mini port. It could be for stick drives, but then why was there a spot for a micro SD? Perhaps, the TNT people at VS were in such a rush to get the product to market, that they simply skipped this feature?
Click to expand...
Click to collapse
Because Micro SD cards are limited to 32GB, while USB thumb drives are at 256GB or you can use an external hard drive with power for 2 or 3 TB. They didn't put in the 3G support because they could've just sold the zPad (or w/e its called) with a 3G module slot. They sold this because its cheap and they didn't have to write extra drivers for 3G modem support.
EDIT: Also, the reference board for Tegra 2 has the USB port, so they probably threw it in for kicks.
this a workable solution:
http://forum.xda-developers.com/showthread.php?t=991342
Just saw this on Newegg for sale...I was wondering if anyone has ever used this model and whether or not it's decent quality? At $15 shipped I'm kinda wanting to buy it, lol...
http://www.newegg.com/Product/Produ...-Index-_-CellPhoneAccessories-_-75994452-L06C
flipovich said:
Just saw this on Newegg for sale...I was wondering if anyone has ever used this model and whether or not it's decent quality? At $15 shipped I'm kinda wanting to buy it, lol...
http://www.newegg.com/Product/Produ...-Index-_-CellPhoneAccessories-_-75994452-L06C
Click to expand...
Click to collapse
Never seen it, but for $15, I don't expect much. If you are hoping for support on the G Tab, you should pick up a Huawei modem.

3G Usb modem on the Xoom?

Hello
I know this has been asked before, but no conclusion was presented.
I have an Huawei E173 3G usb modem i primarily use for my car stereo(Parrot Asteroid, this runs Android 1.5/1.6 this has support for a lot of usb dongles)
I want to to use this with my Wifi Xoom via an usb OTG cable.
As of now i doesn't work.
This because the lack of drivers and APN settings on the Xoom.
I have read the thread over at the XDA acer iconica tab forum about this, and they got it to work. ( http://forum.xda-developers.com/showthread.php?p=14603952 )
The android drivers for a lot of usb dongles exist, but how to get them to work on the xoom?
Tiamat kernel has the needed modules (usb_wwan.ko), so, you need just the script to set up connection. You can try with this one, maybe you need to change something...
http://forum.xda-developers.com/showthread.php?t=1058846
I dont have, the otg cable, but as soon as i can get one i'm trying to get this work...
I'll check it out.
For the moment i don't have an OTG cable either. Waiting for a new one from ebay.
lhurtado said:
Tiamat kernel has the needed modules (usb_wwan.ko), so, you need just the script to set up connection. You can try with this one, maybe you need to change something...
http://forum.xda-developers.com/showthread.php?t=1058846
I dont have, the otg cable, but as soon as i can get one i'm trying to get this work...
Click to expand...
Click to collapse
Hi, I have got a Tiamat 2.1 rom, and I have a uk wifi only version XOOM. However, I can not find any setting about APN. How can I make a 3G USB model work on my wifi only XOOM?
Thank you
I'm totally curious too. I have a WIFI XOOM and I just got a nice USB HSPA+ stick from Videotron and I wanna see if I can get it to work via OTG - I checked OS Monitor (Tiamat ROM) and it seems the stick is detected, with a dead IP 169.254 etc...
so I just need a dialer! Any news at all?
Thanks in advance!
any solution yet?i have tried everything possible, bricked my device couple of time, its teasing me :'(
I also wanna to try. But two problems here:
(1)"/etc/ppp/peers" is Read Only file system, so it is impossible to put dialing scripts there.
(2)I don't have proper drivers.
Can anyone help?
About the question (1) above, I've got done with it from http://forum.xda-developers.com/showthread.php?t=1341585.
Any solution with dialers yet? Really need this to work

[Q]Internet via iPhone cable?

Hi all,
I know that Asus Transformer can work with iPhone (file sharing and etc.) via its USB cable...
Though, is it possible to connect the Asus TF to the internet via iPhone USB cable & Hotspot feature?
Thanks in advance.
If your service provider allows it, you can use the personal hotspot feature on the iphone to share the connection over bluetooth
No cable required
Re:
Hi Mr. Carlvk,
I know this feature already.
I know that iPhone can provide Internet even through the device's WiFi abilities...
But I'm wondering about a way to provide network communication via the iPhone cable - which take less battery from both devices.
Best regards,
it is possible http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver on my gentoo linux it work fine with my iphone3gs .. its possible to compile this for android too
Re:
Z!L0G80 said:
it is possible http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver on my gentoo linux it work fine with my iphone3gs .. its possible to compile this for android too
Click to expand...
Click to collapse
Thans sir.
Now would have to learn how to compile source code to Android...
I'm not so familliar with compiling methods yet.
Thanks though!!
I was wondering about this a while back and worked out that the TF charges the phone anyway so no battery savings are made on the TF.
I had a look around and picked up a second hand galaxy android phone (cheaP)and use that when I need more data/battery. I generaly have several bits of kit around with me anyway so one more is no biggie.
I'm sure you have also come to the conclusion that most tethering software is for connecting android mobiles to windows/PC.
I was unable to find a solution may your search be more fruitful.

[Q] Tethering with USB add-on

Is it possible to usb tether a droid phone to the usb kit/dongle add-on that recently came out for the Transformer?
Wow!
I actually logged on to this thread with the same basic question in mind. I have a SGS 4G and would like to be able to USB tether it through the dock.
Maybe read the 3G dongle stuff and fiddle around? If you setup your phone as tether does the kernel see the device?
Sent from my Transformer TF101 using Tapatalk
Spidey01 said:
Maybe read the 3G dongle stuff and fiddle around? If you setup your phone as tether does the kernel see the device?
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
I haven't purchased the usb dongle yet so I wanted to see if anyone had any luck. Would be interested to know if anyone has any luck usb tethering through the keyboard dock.
Answered my own question: IT DOES NOT. I borrowed the keyboard dock from a friend and attempted to USB tether with the phone's built-in app plus other apps including pda net. It does not work. They all say you have to have Windows, Linux or Mac OS on your computer.
Having Linux (kernel) on our TF's I would assume that it's a driver issue that could be solved with an Loadable Kernel Module (LKM) or built into a custom kernel. I wouldn't expect whatever that is though, to be an integeral part of the stock kernel, nor necessarily however the docking port mates to USB at it's level.
I wonder how that works in relation to standard USB drivers.
Sent from my Transformer TF101 using Tapatalk
How does that process work? I have very general knowledge relating to Linux, but I wouldn't even know where to start trying to isolate the driver and trying to make it available for android to use. Know of any guides or starting points that would help me do it?
overkillthemighty said:
How does that process work? I have very general knowledge relating to Linux, but I wouldn't even know where to start trying to isolate the driver and trying to make it available for android to use. Know of any guides or starting points that would help me do it?
Click to expand...
Click to collapse
Google and the Linux source would but idk how the whole thing withthe docking port in between impacts it
Sent from my Transformer TF101 using Tapatalk

[Q] Adding a USB Ethernet adapter kernel module

I'm currently working to add support for the DM9620 USB network adapter to the Android 4 kernel, specifically for the Samsung GT-I9100 (Galaxy S2) running CyanogenMod 9.
The driver can be found here: code.google.com/p/dm962x/source/browse/dm9620.c
I have added and compiled the driver into the kernel, along with enabling USB host mode. However, plugging the adapter into the phone does not cause a new device to appear (both `lsusb` and `ip link` show nothing new, and dmesg has no relevant messages).
I'm guessing that I didn't actually enable USB host mode correctly. Or maybe it's something else. But I don't really know enough to debug this on my own. Any insight provided would be very helpful.
Hey, go into the General section of Samsung Galaxy Nexus, there is a thread for "aircrack-ng", the original post show a couple of links + on page 2 there is another post from the same guy explaining on how to compile for Android.
Hope it could help.
Sent from my Galaxy Nexus using xda premium
This turned out to be a pretty stupid hardware issue, unrelated to the kernel or the driver. I was lead to believe that the adapter was a 5 pin USB OTG cable, when it was actually a standard 4 pin. A quick hardware hack later and the device is recognized just fine.
Mind making a tutorial of this? Im interested in testing it out myself. Also, can you tell me how to add support for the Galaxy S III? Id be happy to, myself, but I dont know how right now. Thanks
CJJohnson said:
Mind making a tutorial of this? Im interested in testing it out myself. Also, can you tell me how to add support for the Galaxy S III? Id be happy to, myself, but I dont know how right now. Thanks
Click to expand...
Click to collapse
I second the request for a tutorial of how to do this. Thanks!

Categories

Resources