Question Getting Android to Use Linux-USB Ethernet/RNDIS Gadget - Samsung Galaxy S22

Hello All,
I'm new to this forum, so I'm not really sure if this should be general, dev, or just a technical question. Also I'm a software dev, but am not too familiar with android other than lightly using Android Studio for app dev.
Basically my problem comes down to this. I use a custom OpenWrt device as an ethernet dongle for my laptops by loading the g_ether driver. I would like to do this for an android phone as well. Right now I'm trying the s20 and s22 (pretty sure whatever solution I come to will work for both); however, when I plug my dongle in, the phone will see the dongle with all the correct device descriptors and all that, but will not connect and attempt to get an IP.
My current guess is that the phone just doesn't have the right drivers on there (cdc_ether or cdc_subset), or that it is not loading them.
Thus far I've tried poking around with termux, but have not gotten too far. I was hoping this community may be able to help me figure out how to get the phone to use the dongle.
Lastly, would really rather not root the phone unless completely necessary.
Thank you all for any advice!

Related

[Q] connecting SMT210R Bluetooth SPP to rfcomm (and that to a virtual W95 machine)

I've been around Linux for a few years now, and have had my Galaxy Tab 3 7.0 for about a year. I've run into a bit of a problem that maybe someone knows how to get around. I have some knowledge of android because of the relationship to Linux... but still rather a newbie.
I'm trying to get my Tab 3 to communicate with a Bolutek BLK-MD-BC04-B serial to bluetooth adapter. I have no problems pairing it with my tablet, but once paired only certain software packages will connect with it... and I have no use for a bluetooth communications terminal (the usual software). I can get everything to work on my main computer (running Ubuntu 12.04LTS) the way I want, but I can't find /dev/rfcomm0 on my tablet. I've tried several software packages from the Google store, but to no avail (so far).
What I'm trying to accomplish overall is getting a piece of equipment I have to work with an android tablet, that at present only works with Windows software. I've got W95 working on a virtual machine in my tablet (a tiny tad slow, but it works well enough) using the no-longer-maintained program "Limbo" and the only thing stopping me now is getting the signal from the serial port (on the equipment) to the virtual machine in my tablet. The adapter works as it should, the only problem is the android bluetooth.
Does anyone know how to get the tablet to connect to the Bluetooth adapter (it's already paired), and then assign the communications to rfcomm0 (or maybe put a virtual link to ttyS0/ttyS1)?
Better yet, is there also anyone with experience working with this Limbo software who could give suggestions how to get a serial port working in it? (It should be easy to do once I figure it out - I've got the whole thing working fine on my main system using Virtualbox, and it was easy.)
I'm on an extremely tight budget (dirt poor actually - typical graduate student) and need to work with what I have, so please no suggestions of buying a new tablet or anything like that.
Thanks!

Solved: Joying - Mirrorlink Stopped Working After Flash

Hey guys, I have searched high and low for a solution to this problem but have come up empty so far. I just got a joying head unit and everything, including the easy connected app, seemed to work without issue. I decided well since I had the headunit running next to my pc that I would flash Malaysk's custom rom before installing it. After that, I reinstalled the app from various sources including the oem app but none of them seem to allow me to connect my same exact devices anymore.
Why is this important for me? I had planned on controlling a tablet in the back seat for my son who is still to young to put on show without trouble. Essentially, this would allow me to never have to reach back there to help him out.
I have read, from joying, that it would no longer work after flashing new firmware but that seemed to not be the case from some things I had read here (please correct me if I am wrong on that). Tried different cables and ports but no luck. I did read that a license might need to be carried over but not sure what that entails as I can find ZERO info on this easy connected app/problem. I hope that this is a very simple fix and that I did not jump the gun again for the chance to flash a new device (its addicting and I blame XDA for my problems...).
I did try and find some other apps that might allow me to do the same thing. RemoDroid seemed promising but didn't function. Most other ones are meant for controlling from a pc or browser and just weren't useful for the task at hand. I am open to solid suggestions. I use all Android devices and avoid the Apple juice. Any insight you guys can offer will help a tired Dad out. Thanks!
Edit: Solved-ish
The easy connect app seems to function now intermittently. Not sure there was a specific thing that I did to fix it. Seems to work when I launch easy connect app right after booting up and nothing else. Messing with other apps seems to cause a problem for my devices. Also, switching between my devices(phone and tablet) may also have been causing a problem, not sure yet. I suppose I'll just keep trying to make it work reliably until I break it again.
On the previous version of the easy connect app, you were able to disable Drive Mode from launching. Not so on the newer version with Android WiFi. If anyone has a solution to that I would appreciate it as the Drive Mode app is useless for my needs.
Note 4 - USB - works great. I have yet to try over wifi
Note 10.1 N8013(lollipop rom) - USB/Wifi - works great (disable smooth mode, remote device screen cannot be turned on with easy connect "Home" button)
http://forum.xda-developers.com/and...1024x600-rk3188-joying-try-uploading-t3262030
I tried several different apk's but they all have similar results and end with a connection failure.
I haven't yet tried going back to stock firmware so that might be worth trying. I installed the headunit in my car so I'm not as willing to keep flashin it as I have to park down the street from my house.
So not sure what magic I used but I was able to get it working for a moment and then it stopped again. USB and Wifi android mirroring were working so I know my current firmware/setup is functional!! Once I got it working I started configuring some other apps and when I went to run it again it wasn't connecting. I guess I'll just keep messing with it until I can figure out what got it working again.
With the newer version of the easy connected app, I can no longer disable launching of drive mode on connect. Is there a way to disable that option with the 1.4 version?
Hi.
Is it possible mirror in wifi with android?
Can you explain the way?
Inviato dal mio SM-G920F utilizzando Tapatalk

Use ethernet port on Fire TV to bring wireless access to non-wifi device?

I have a 1st generation XBox that only has an Ethernet port. Is there a way to connect it to the Fire TV to get it access to my network through WiFi?
When Ethernet port is plugged in it disables wifi connectivity. after that a bunch more work making wifi the default gateway with routing... if it is possible. . prolly worth your time to just spend the $30 on an adapter for it or install dd-wrt on an old router you have laying around. . I had a similar request where I wanted to know if my firetv can double as a coffee maker but no-one has solved where to put the k-cup.
Its not so much the device in this case that is unfit for the purpose (well - unless it is, as described above.. ) - it is, that the minds that are interested in and forming around solving those problems are working on much better (reputation) and wider known projects - AND the devices they support cost anywhere from 10-30 bucks used already. So dont tell them why you bought a Fire TV instead.
I know that current "technophiles" see the world as app based solutions that will come to them if they ask around often enough - but really, we already are at the minimal knowledge and minimal cost stage - and they are in essence complaining about convenience.
I have a problem - and see the solution in this one ethernet port another device I bought already has. Let the internet work out the rest, I am waiting for my app - its already rooted, how hard could it be.
And thats not how this works.
First of - why should they be working on an app based solution? A functionality layer if you will - if they dont have control over the entire ecosystem and networking, I heard has something to do with security. Sometimes. And with devices that have to work longterm - quite unlike the little plastic box that currently sits under your TV. And that today is rooted but tomorrow might not be - because, well its not yours to decide. Entirely.
dd-wrt and openwrt are what you are looking for - but that was already mentioned by the person posting before me.
I'm just here to explain why the "asking for a service" mindset ultimately breaks, when it comes to open source movements. Especially when your demands get more and more specific. ("I have bought a...")
I can say all this, because I currently use ddwrt to service some of my needs and it works perfectly well, creating all kinds of synergies I actually actively use - many of which actually are real enablers for owners of Android based Kodi boxes.
Well - then again, it might actually work already... (Turn off WLAN in the gui, then enable it via the shell (maybe that way both can be set active at the same time) and start configuring iptables).
http://forum.xda-developers.com/showthread.php?t=444004
But understand that this would be very much a hack. So usability, interfaces, security concerns are not on the forefront of peoples minds. Also - have fun configuring ports that way (ftp mostly I suppose.. ) - if you dont want everything to be open.
Google and 2 minutes - btw.
When you read through the thread you start to recognize - that what you are actually looking for is implementation and support (Hence dd-wrt or openwrt). Also - it becomes very clear why this probably never will become an app (needs root, needs to install a new library (think of stuff only busybox does as a core function on android - this has to be vetted not to cause unexpected problems), still only circumvents Androids core functions (either ethernet OR wlan), isnt fully featured, and most of all - most technically inclined people who actually need the functionality simply buy into the dd-wrt or openwrt ecosystem and its all there already).
So to break it down to a few sentences - if you get a person willing to establish a very specific function for his/her own purpose against prior design on an open source OS, you are golden. But, you wont get them by randomly asking around for help on an internet forum. And dont expect to get entire featuresets or usability options alongside it. If you want those - and you do - go with the communities that are known for solving those problems and buy into the devices/ecosystems they use. 10-30 USD should be well worth it.
But if you are in a hacking state of mind - go for it and make those devices work like you want them to.

FireTV Stick Developer Options?

So friend gave me a FireTV Stick, brand new (Fire OS 5.2.6.3 (606754020), Fire TV Home Version 6.0.0.6-127).
Little desire to deal with Amazon, need to enable USB Debugging & ADB. Gotten as far as Fire App on Phone to bypass Registration to get to Settings-Device-Options, held Center/Down to Enable X-Ray, Developer Options Hidden Menu etc, but can not find any way to Access USB Debugging or ADB to enable them. When you enable Developer Options, only thing it does is give option clear Recorded Metrics whatever. Enabled it, rebooted, disabled it rebooted, re-enabled etc etc, only option I get is to clear recorded metrics.
Tried several diff ways, nothing can recognize it ADB as I can't enable it, tried USB to PC, it recognizes FireTV Stick, can see whats on the Drive or SD Card, but again, can't send files to it without USB Debugging. Rooted every Android Toy I own, not new to this, but has me stumped.
How do you enable USB Debugging or ADB to a FireTV Stick with latest OS without ever Registering it? As far as Normal stuff, it hooks to Network fine (behind Firewall & VPN), but won't Update, why if you go with the Fire App on phone, you can "pair" and get as far as Option to Access Hidden Developer Options etc, but no USB Debugging or ADB Enable Option is there.
Never messed with one, was more a sort of Gag Gift for a favor he owed me, so said why not, lets see what all the fuss over these things is, I wanna tinker with it.
You can always de-register the device from your Amazon dashboard after setting it up for the first time.
I remember reading in another post, someone describing the exact same situation.
Using the app to skip registration and discovering there was no option to enable adb debugging.
Sounds like they may have fixed that.
I noticed in 5.2.6.3 the same security feature Amazon has implemented to detour people from buying and selling blacklisted devices. I have spent more time than I would like to admit trying to find a loophole, but without the ability to enable abd and unknown sources it seems impossible. I hate to say this but Amazon has it locked down and if anyone could figure it out they would have to someone on xda but no one I know has jad a clue. I don't condone theft one bit, but love a challenge and this one has me stumped.
Well, part of the fun, lol. Voice in my head keeps saying the Fire App, has to be a way, but not seeing it as yet. Did read where someone built a special HDMI setup and over loaded the OS, prompting a a "bootloader" screen and got in that way somehow, but far beyond me and said the parts to build it were like $150, let alone knowing what to solder to what etc, beyond my capabilities.
matafact said:
Well, part of the fun, lol. Voice in my head keeps saying the Fire App, has to be a way, but not seeing it as yet. Did read where someone built a special HDMI setup and over loaded the OS, prompting a a "bootloader" screen and got in that way somehow, but far beyond me and said the parts to build it were like $150, let alone knowing what to solder to what etc, beyond my capabilities.
Click to expand...
Click to collapse
Honestly its fun and has also become consuming trying to find any way to get past each screen lol. I heard the same voice in the past and it worked lol. Now with these 5.2.6.3 2nd gen firesticks I have no way to get to Dev options and with the 4k firesticks it says my login is incorrect to Amazon, and as I previously mentioned I am pretty much out of ideas. Overload HDMI huh? Sounds interesting. Well back to the drawing board for now and If I learn anything I will let you know.
Well, Fire App in my head, dont know why, just keeps coming back to me. Not a programmer, not a Droid, Hacker type, but thinking this way, feel free to tell me Nope, won't work and this is why.
How does it pair with FTV Stick etc? Not Bluetooth etc, so how does it connect? Possible to take Fire App and tinker with code, add some/modify code or a script etc to modify it and get further into FTV OS 5?
Or thinking again, don't know, but seems with a Laptop on say WiFi Network, just like Droid, Iphone, with a Virtual Machine, know Virtual Box you can set up about any Android setup ya want.
So setup a Virtual Machine, tinker with Fire App in some way, and if Laptop can connect to FTV , well, just idea in my head that must be away to get around it, or at least with a Laptop would open many more options to try & beat it. Havent tried this yet, just keeps floating around in my head, may not even connect to a Virtual Machine, maybe over weekend I'll tinker with that a bit.
Somebody who programs etc would know far more on topic, but same idea keeps bouncing around in my mind. Could be dead wrong, maybe they have that locked down to, but guys here, well, how many "can't hack" toys have they already beat, lol.
matafact said:
Well, Fire App in my head, dont know why, just keeps coming back to me. Not a programmer, not a Droid, Hacker type, but thinking this way, feel free to tell me Nope, won't work and this is why.
How does it pair with FTV Stick etc? Not Bluetooth etc, so how does it connect? Possible to take Fire App and tinker with code, add some/modify code or a script etc to modify it and get further into FTV OS 5?
Or thinking again, don't know, but seems with a Laptop on say WiFi Network, just like Droid, Iphone, with a Virtual Machine, know Virtual Box you can set up about any Android setup ya want.
So setup a Virtual Machine, tinker with Fire App in some way, and if Laptop can connect to FTV , well, just idea in my head that must be away to get around it, or at least with a Laptop would open many more options to try & beat it. Havent tried this yet, just keeps floating around in my head, may not even connect to a Virtual Machine, maybe over weekend I'll tinker with that a bit.
Somebody who programs etc would know far more on topic, but same idea keeps bouncing around in my mind. Could be dead wrong, maybe they have that locked down to, but guys here, well, how many "can't hack" toys have they already beat, lol.[/QUOTE=matafact;78395384]
I wish I knew how to use tasker. Im a newbie but your ideas are great and have me thinking the remote app is the key, but it is a task I do not know how to execute.
Click to expand...
Click to collapse

Brookstone mp300a projector

Hello all! I would like to ask you guys for some help. I just bought mentioned projector (see subject), and it seems its running some android tv system. I would like to get the latest system possible but i fail to get anything...it seems that projector is no longer supported and i cant find anything literally in the internet. I even wrote to brookstone company but they are not knowing anything either...
Things i was able to find is that current compilation number/build is:
KOT49H.20170626_163421_V1.1.3
I tried to tap multiple times multiple options in the projector to get into developper mode - no effect. Update through system fails as it cant connect to the server (i guess its off due to no further support).
The only thing i managed to find is that its the same projector as ioChow i04 and similar to miroir m220. Unfortunately for these two i also fail to get any info...
Is there anyway to "read" projectors spec through any app, or programme from PC perspective?
I also can disassemble the whole projector to check chip or whatever is on motherboard if this would help anyhow.
In general it works greats connecting with HDMi but i also would like to try make it work as standalone (if possible).
Any suggestions or help you can offer - i would appreciate!! . Thank you!
Hey! I just dug up my projector and decided to do some research on it and found your thread through google.
Unfortunately, I do not think you can do anything further than what is on the projector itself. The build of android used is naturally stripped down, and I don't think its possible to "push it" past it's limits (at least on the software side of things ). But who knows? Maybe someday we'll see someone smarter than me exploit some vulnerability, for now I can only hope.
Sorry that this reply wasn't very helpful. I just mainly wanted to let you know that you aren't the only one wanting to get the most out of this thing

Categories

Resources