Uses for an old Android device
computerworld.com
computerworld.com
I've done this before with an old LG phone, and it seems that leaving the battery in the phone for camera purposes is a bad idea. It turns in to a spicy pillow within a year. I believe it's the heat - from getting cooked in the sun through the window, from the CPU working hard to encode MJPEG stream, and from the wireless radio constantly transmitting that stream, all while being held near maximum SOC..
So what I did this time around was remove the battery completely! I found an old 5V USB phone charger, say 1000mA output, and used a diode to drop the voltage to ~4.2V or so. Nothing out of the usual for a phone to see soldered on it's battery terminals.
Now this worked, but I found that certain high-load situations would cause the phone to power off. Solution was to add say 5000uF of electrolytic capacitors to the output of my new power supply.
With that added, setting Android to sync automatically via my NTP server with a command through the ADB shell, setting it to always connect to my IoT VLAN WiFi, and setting IP Webcam to start after boot, this solution has been working perfectly for quite some time!
It was a fun project too, and I got to reuse an old phone, and old charger I never would have used again, and some random capacitors that have been rolling around in a parts box for years. :)
Bonus: I control the camera's "night vision" mode via Home Assistant automations (turn on/off around sunset/rise) through the JSON API the app provides. This also provides some sensors like temperature, etc. The video stream is fed to ZoneMinder, which HA streams from. Motion detection in ZM triggers object detection via HA, and I get reliable notifications while I'm away!
I'm curious, is it possible to create fake 'batteries' for devices that pass the current directly from the charger into the device? I'm imagining something that looks like a battery, but doesn't hold any charge so people can use their old phones exactly as you do and never have to worry about it pillowing.
I can see a market for something like that, albeit a very small one since it would be device specific. I'd buy one if it existed.
Still, though, a correctly set voltage regulator with a normal USB plug and a few easy solder joints to attach the device's battery connectors to would already make the process quite a lot easier.
For example, want to mains-power your Panasonic digital camera? [1] provides mains power in a battery form-factor. Just what you need for long term time-lapse photography.
Does it just give some buffer for the PSU in those high load situations?
I forgot to mention this, but the phone has also been loaded with LineageOS to get rid of a lot of the default crap that was on there. It boots way faster and IP Webcam seems to run more reliably this way!
I will give this a try. Will be a great experience to experiment with building simple circuit again.
Have a look if you want https://phonk.app
Also I wonder if something like https://bun.sh/ could be used to get modern JS/TS support?
(Also your Discord invite is expired)
2) I never heard of bun.sh, I'll have a look!
3) I did not notice about the Discord link. Probably it has been like that for ages :/ I will replace it in the site. Meanwhile here you have a new up-to-date one https://discord.gg/Rt2mkWp
Thanks!
2) Sadly you cannot use node libs. The JS engine I use is pretty dated (Mozilla Rhino) and I dont have time these days to do big changes.
3) Yes, you can interface with Arduino compatible hardware via USB serial or Bluetooth / Bluetooth LE.
4) If you want to do something screen less, you can run a script as a service (background). A bunch of years ago, when the ESP modules were not common I used an Android device as a network interface for my Arduino :)
LineageOS helps ( if the phone is supported by it: https://lineageos.org )
But I haven't been able to find good info on what exactly the implications are. If I'm not worried about targeted attacks, does a device that is just a passive node pose a significant risk?
In other words, how much do security updates address targeted attacks (not my threat model) vs widespread attacks of non-updated phones?
Perhaps the most famous one on Android was the Stagefright attack, which could take over your phone by sending you a malicious MMS (which you didn't even have to open), or by getting the system media player to play a malicious MP3/MP4.
That was a while ago and I haven't kept current on similar attacks. Running an unpatched system is a gamble that nothing like that is still waiting to be discovered.
Which I would assume is not an issue if I'm using an old Android phone without a SIM card, so there's no way to receive any type of sms/mms message
Interesting, I've never thought of using an Android phone as a Syncthing node.
Is there a way for an Android phone to connect to Wifi, but not the internet?
I use Syncthing with local discovery only, which only needs the devices to be on the same Wifi network. Not having internet access and also not having a SIM card to get calls/sms/mms message should greatly reduce the risk of attack to the point where I wouldn't feel worried about it.
If you can manually set the IP address on it instead of letting the WiFi AP give it one, then you can just leave out the default gateway entry - The device will then have no idea how to route network data outside of your local LAN.
Alternatively, set up a different WiFi SSID that gives out IP addresses, but again without a default gateway address, and have your device(s) connect to that instead.
Or finally, if your router supports it, set a rule to block your device(s) (via it's MAC address) from accessing the internet.
I think the first option might be the easiest because it doesn't involve having to change anything on the router.
It does seem possible on Android to set a static IP and remove the Gateway (or maybe set it to 127.0.0.1 if I can't leave it blank?)
https://service.uoregon.edu/TDClient/2030/Portal/KB/ArticleD...
Lineage will try to scavenge firmware updates from other devices to upgrade what they can, but there might be problems with the wifi, bluetooth, or other firmware that can compromise the device.
This is less of a concern if your wifi connectivity is behind a NAT router, and Google is gone.
That can be mitigated somewhat by it being a local-only device with firewalls between it and the wider Internet (so it can call out as needed but nothing out can call in). There is still a risk of another device on your WAN, temporarily or otherwise being infected and passing on the problem - you could have an extra AP and keep such devices on their own leg of the network to reduce that risk. You'd still be prone to something that can attack an old unpatched device just by being in range of it, of course, so perhaps use some sort of exfiltration monitoring at your network edge (or the edge of that walled-off WAN) to hopefully detect an infection trying to propagate from the device.
Aren't most LOS roms based on ancient kernels (albeit mostly patched-up with security updates), that use ancient modules, with opaque BLOBS/Firmwares, that only sometimes get updated, if ever?
You could run "HighSecurityOS WhatEv" on your phone, as long as e.g. the Wireless-Interface runs something entirely independent of you with DMA rights, and probably faulty firmware, can you really trust your device? Or have I missed recent advancements in this problem space?
PostMarketOS aims to mainline more devices/phones, so maybe, even if your final OS of choice is Lineage (or derivative), I would check their HWCDB before checking, if Lineage works on a phone.
Asus/Google did, the Nexus 7 would brick itself after a 2-4 years from failing/worn out eMMC flash.
My Nexus 5, which is sitting in a drawer nowadays, also becomes ever slower. Even my HP Veer, keeping the Nexus 5 company, isn’t getting any faster either—even though it never saw real use.
So yeah, basically all manufacturers “do it”. It’s not even about heavy use or anything.
I have an S8 and although I am a Dev, I am really a Luddite on my phone. I have some random apps, a Google account and things like WhatsApp and Telegram but otherwise not really anything of note.
However, I find things like the share photo button sometimes taking 5 seconds for the list of who to share with to come up. How? Sometimes I click an app and it sits there for as much as 10 seconds before something comes up, tbf, that might be the app but I fail to see how compiled apps can become slower and slower over time by this much.
I suspect the enemy at the gate is tracking/metrics type apps that are sending a constant stream of drissle to the internet to try and get "actionable data" for their Lords and Masters but just make everything appear crap. I also loathe the need to fiddle all the time. Google Authenticator, absolutely fine until they decide that we need to press something to reveal the code, now it's 2 clicks instead of 1 50% reduction in productivity! I think they have reverted it but honestly, leave things alone!
https://play.google.com/store/apps/details?id=com.dev47apps....
I use this and it's fantastic.
I suspect it will end up as a 3D printer display, but the browser on it is hilariously slow by today’s standards, and pretty much every 3D printer front-end brings along enough JavaScript to choke it…
- for their original purpose with either an AOSP-derived distribution (LineageOS et al) or a debloated/pared-down factory distribution
- as a portable media player
- as a remote-controlled media player using MPD for Android
- as a trailer camera with its own Wifi network, no cables needed between trailer and car, better camera than commercial trailer cameras
- as IP camera
- as a mobile sensor platform for whatever you may come up with
- as a satellite navigator platform
- as a GPS tracker
. ... and much more
Also, the article doesn't mention Remote Mouse, which is the only non-game app I ever paid money for, because it is so good
There is value in testing with the old device as you still want your website to work regardless of what device someone has, within reason.
My problem with repurposing an old Android device is the security issues. Firmware doesn't get updated anymore. An alternative OS like LineageOS or PostmarketOS takes care of most of the software issues, but not the firmware itself.
Another issue is that the battery is going to be years old, and on 'recent old' Android devices its much more difficult to remove the battery.
But many/most of these older devices discuss, do not - and my personal anecdote is that of the tens of phones+laptops I have owned myself and managed for family through the years - there were 4 cases of bulging: 3 were constantly-charging devices (as in, 3-5 years with hardly any time not charging), and one that was dropped from height and bulged immediately.
This is probably really niche for hn. Personally I use an ipad mini w/a Garmin GLONASS GPS receiver.
I want to start using them as an always on display for kitchen/home assistant but I would need a browser for example, kiosk mode preferably.
Alternatively you could roll-your-own basic full screen browser via Android Studio and about 20 lines of Java.
I use their app instead of the Play Store and I have no complaints. Once in a blue moon it's missing an app, but never one I couldn't live without.
Having said that, why is APKPure? Who is funding them? Are they to be trusted? Have they stolen my passwords? Does anyone know?
[1] Is APKPure safe to use? https://nordvpn.com/blog/is-apkpure-safe/
[2] "APKPure is not safe, distributes Trojans" (2021) https://www.kaspersky.com/blog/infected-apkpure/39273/
[3] Claims that APKPure is now owned by Blizzard Entertainment https://chimgadar.blogspot.com/
[4] Shows their 2014 seed round https://www.crunchbase.com/organization/glance-app/company_f...
[5] https://www.avg.com/en/signal/is-apkpure-safe
Short answer? I am not sure but then I use F-Droid which has the same pros and cons as APKPure so [shrug]
i have tried to find old versions of apps but they almost always require andrdoid 5+ at least.
no, i have not rolled out own browser because i don't know how... maybe there is a need to build or maintain apps for old devices using old sdks and tools?
https://www.reddit.com/r/termux/comments/mkzoyd/showcase_ful...
It isn't that well supported in PostmarketOS (charging and OTG), but that sounds fairly fixable. Ideally you'd want both, then connect to a charger/ethernet combo.
You might be able to use the downstream kernel for that, or Termux on Android.
https://liliputing.com/this-dirt-cheap-4g-lte-modem-on-a-usb...
In the age post-bluepwn and broadpwn, I'd assume otherwise. Especially considering that most OEM images come with admob, which even has ultrasonic RCEs that can be delivered by your TV's or radio's audio signal.
Opsec kinda mandates to destroy all broadcom chips :D
Also do not use an old phone with a battery with screen turned on, capturing photos on repeat. The battery WILL swell up. It may take a few months but it will happen. Don't risk it.
I appreciate the laugh at
> I tried acetone, because I had a bottle next to the alcohol, which went well.
Haha
can you please expand on this part though?
> Unfortunately, the micro-USB connector charges the battery, it doesn't power the device. This can be fixed by connecting a random 5V power supply to the battery connector instead.
Do I need a soldering iron for this? Thanks in advance.
Edit: do you know how we could get open camera or any camera app on Android to take pictures with the screen turned off? It really doesn't need the screen on all the time.