In the previous post, we discussed how to install Linux (PostmarketOS) on an Android phone and use Docker on it. Now, we’ll take it a step further and convert your Android phone into a batteryless home server. This setup ensures you never have to worry about charging it regularly or leaving it plugged in with the battery which is dangerous due to potential battery swelling or overheating.

Why Go Batteryless?

We learned in the last post how to run docker on the phone with the battery in it and use it as a home server. However, keeping a lithium battery connected to a constant charge is not ideal and can reduce battery life or even pose safety risks. By removing the battery and powering the device directly via USB, you can safely run your home server 24/7 without these concerns.

What You’ll Need:

  1. Android phone: The OnePlus 6T is highly recommended for this project due to its performance and compatibility with PostmarketOS.
  2. PostmarketOS installed: Refer to our previous blog post for a step-by-step installation guide.
  3. Soldering tools: For connecting wires and components.
  4. MUR460 diode: Essential for power regulation.
  5. A USB-C cable: To connect the power source.
  6. Hot glue gun: For securing components in place.
  7. Mobile opening tools: Such as screwdrivers and other precision tools.

Safety Warning

Working with lithium batteries is risky. If mishandled, they can explode or catch fire. Before starting this project, keep these safety precautions in mind:

  1. Ensure the battery is fully discharged to 0% before removal to minimize risks.
  2. Handle the battery carefully to avoid punctures or damage.
  3. Attempt this modification only if you are confident in your technical skills.
  4. Proceed at your own risk. We strongly discourage tampering with batteries without professional knowledge and safety measures.
    back_oneplus6t-min
    I am not responsible for any damage that may happen to you, anyone nearby, or any material. I am simply sharing my experience. Please do your research and gather information before doing anything potentially dangerous with batteries, your phone, or anything involved.

Steps to Create a Batteryless Home Server:

Remove the Battery

The first step is to carefully remove the battery from your OnePlus 6T. Use mobile opening tools to access the internal components. The battery has a small circuit board on top, known as the Battery Management System (BMS). Do not discard this circuit! It is critical for simulating a functional battery to the phone.

  • Carefully separate the BMS from the battery.
  • Ensure no damage to the circuit board during removal.
    battery_oneplus6t-min

Prepare the Power Circuit

To power the phone without a battery, you’ll need to solder a simple circuit using the MUR460 diode and the USB-C cable. Credit for the battery removal and power circuit method goes to the brilliant GreatScott YouTube channel

  • Cut the USB-C cable and strip the wires.
  • Follow the circuit diagram below to connect the USB-C wires to the BMS via the diode. The diode ensures current flows in the correct direction, protecting the device from power surges.
    oneplus6t_batteryless
    circuit_oneplus6t-min

Secure the Components

Connect the circuit, which already has the wires attached, to the phone, and then connect the USB-C cable to the phone. Once the connections are complete, test the setup by powering on the phone. If everything works, use the hot glue gun to glue the components securely in place. This step is optional but recommended to prevent wires from disconnecting or components from shifting during use. I opted to attach all the components neatly to the back of the phone, keeping it compact and efficient for a server setup.

secure_oneplus6t-min

Install Your Server Software

With PostmarketOS running, you can now configure the phone as a home server. Install Docker and deploy any server applications you need, such as a web server, a book media server, or even a personal cloud solution (like Nextcloud).

linux_oneplus6t-min

Final Thoughts

This batteryless home server is an excellent way to repurpose an old Android phone. The OnePlus 6T, with its robust hardware and compatibility with PostmarketOS, is ideal for this project. Remember, safety is paramount when working with batteries, and you should always proceed cautiously. Have fun experimenting!