JanOS: Turn your phone into an IoT board (2015)
janos.io
janos.io
Edit: JanOS project looks to be zombied. The "Read more on our blog" link on the front page returns "Server Not Found".
[1] https://groups.google.com/g/mozilla.dev.fxos/c/FoAwifahNPY/m...
(When I built it for a few of those devices, it was layered atop Android, and IIRC the process involved fetching components from various places.)
https://www.ifixit.com/News/50450/samsung-galaxy-upcycling-u...
To be honest, it sort of makes sense, why would they want to open themselves upto unlimited brand damage liability from battery fires, while spending untold amount of man hours porting mainline linux onto obsolete platforms they'll never see a cent from anymore - whether it be in other products or through services revenue.
I've repurposed an old Galaxy S7 to run as a remote development server, via this method. I have it set up so it's just like logging into any other Linux box.
https://forum.xda-developers.com/t/patched-odin-3-13-1.37625...
do note, the patched out safety checks will definitely allow you to shoot yourself in the foot if you flash the wrong images
Sounds like the US would benefit from some EU style legislation.
I wanted to do this with an older phone that just two wires going to its battery, so I thought I'd measure the voltage and then just use a step-down converter to supply that same voltage to those two pins. Unfortunately no dice, device can't be fooled to think this is a battery and doesn't even turn on.
I also tried just connecting a huge cap instead of a battery, but realized that if it runs empty the board night just assume the battery discharged too much and will refuse charging it. Also it still didn't work when I tried.
Depend on the phone, what battery charging and monitoring IC it uses, but the older ones from the Samsung S2 generation, the ones that still had removable battery, could easily be fooled by adding a resistor to the third BSI/BTEMP terminal (the one in the middle).
The one I had was some Noname device from China that really only had two wires going to the battery pack, which I've never seen on any other Android device yet, so I was quite positive given the cheapness that my simple trick would work, but alas.
Jan, who so modestly (ahem) named this bonsai'd Firefox OS after himself, has since done a lot of interesting things with LoRa and now machine learning. You can find him at http://janjongboom.com/.
Also can I use Ethernet with an external usb-c adapter?
this could be a promising project but device support looks very lacking at this moment.
I also considered postmarketos but AFAIR for my particular phone it didn't support the camera, so I stuck with rooted android with some hacks to slow/pause battery charging (it is holding about 5min anyways)
Also I'm looking for breakout boards that make it easy to interface with GPIO pins, I've found a few that can do USB to GPIO on sites like Adafruit, but few review of what is available currently and if it works with recent versions of Android, etc.