OPPC
One Phone Per Child. A free app that turns an old Android phone into a small Linux computer for learning to code.
First build. Version 0.1.0 has not been tested on real phones yet. Expect rough edges, and please report what you find on GitHub.
What it is
One Laptop Per Child tried to put a computer in every child's hands by building a cheap laptop. Old phones are already everywhere. OPPC tries the same idea with software: plug a keyboard into an old phone, and it works like a computer.
OPPC Desk is a text-mode desktop. Everything on screen is plain text in one typeface, and every action has a key. It has seven parts:
- Home: what to do next.
- Files: your own folder, with a Trash so deleting is not forever.
- Code: an editor for Python. Ctrl+R runs your program underneath, where it can ask questions and you can answer.
- Shell: a real Linux command line. Android runs on Linux, and this is that Linux.
- Learn: twelve lessons that start from nothing. They teach coding first, and the shell when a program needs it. Each lesson checks your own program.
- Help: keys, files, the shell, Python, and what errors mean.
- Setup: text size, colors, more than one learner on a phone, and the owner's controls.
When a Python program goes wrong, Python's own error message stays on screen, and the desk adds a short note underneath: what happened, and what to try.




What you need
- A phone with Android 7 or newer and a 64-bit processor. Old Google Pixels are a good fit. About 50 MB free.
- A keyboard, if you can. Pixels from the first one on have a USB-C port: a small USB-C OTG adapter or hub lets you plug in an ordinary USB keyboard and mouse. A hub with power pass-through lets the phone charge at the same time. Bluetooth keyboards work too.
- No internet. Nothing in the desk needs it.
Without a keyboard, the desk still works by touch, and shows a row of keys (Esc, Tab, Ctrl, arrows) above the bottom line.
Install
This puts the desk on the phone as an ordinary app. Nothing gets erased.
- On the phone, open this page and tap Download. Or copy
oppc-desk.apkto the phone another way. - Open the downloaded file. Android asks whether to allow installing apps from your browser or file app: allow it, then tap Install.
- Open OPPC Desk.
From a computer with Android's adb tool, you can install it in one step instead:
adb install oppc-desk.apk
First steps
- The desk asks for a name. That makes your home folder.
- Press C on the home screen (or tap the first line) to start the first lesson.
- Press O to open the lesson's program in Code. Change it, then press Ctrl+R to run it.
- Back in Learn, press K to check your work.
Keys that work everywhere
| Key | Does |
|---|---|
| F1 to F7 | Home, Files, Code, Shell, Learn, Help, Setup. Alt+1 to Alt+7 also work. |
| Ctrl+= Ctrl+- | bigger or smaller text |
| Esc | go back, close a box |
The bottom line of the screen always lists the keys that work right now. You can tap them too.
A few things to type in the Shell
help | what you can do here |
ls | what is in this folder |
edit game.py | open a file in Code |
run game.py | run a program |
python3 | talk to Python directly |
about | what is inside this phone |
Desk mode: hand the phone over
A phone that will be a learner's computer can belong to the desk completely. After a factory reset, the desk becomes the phone's device owner. The phone then starts straight into the desk, and the home and recent-apps buttons stay inside it.
This erases the phone. Only do it on a phone with nothing on it you want to keep, and never on a phone you use every day.
You need a computer with Android's platform-tools (for adb) and a USB cable.
- Back up anything you want from the phone.
- Factory reset: Settings, System, Reset options, Erase all data.
- Set the phone up without an account. Go through the setup screens but skip signing in to Google. Android only allows a device owner on a phone with no accounts.
- Turn on USB debugging: Settings, About phone, tap Build number seven times. Then Settings, System, Developer options, USB debugging.
- Plug the phone into the computer and accept the prompt on the phone.
- Run these two commands:
The project also has a script that does this and checks for accounts first:adb install oppc-desk.apk adb shell dpm set-device-owner org.oppc.desk/.AdminReceivertools/takeover.sh. - Open the desk once. From then on the phone starts into it.
Owner controls
In the desk, Setup (F7), then This phone:
- Desk mode on or off. Off lets other apps open, for Wi-Fi settings, say.
- Owner PIN protects these switches. With no PIN, anyone can change them, which suits a phone that belongs to the learner.
- Give the phone back ends desk mode for good. The desk and everyone's files stay, and the phone works like normal Android again.
Questions
- Which phones does it run on?
- Phones with Android 7 or newer and a 64-bit ARM processor. It was built with the first Google Pixel (2016) as the oldest target. Phones with Android 6 or older, and 32-bit-only phones, cannot run this version.
- Can I try it on the phone I use every day?
- Yes, with the ordinary install. It stays inside its own app and its own storage. Do not use desk mode on that phone: desk mode needs a factory reset.
- Does it need the internet?
- No. Python, the lessons and the help all live inside the app.
- Where do the files go?
- Inside the app's private storage, one home folder per learner. Uninstalling the app deletes them, so copy work off the phone first.
- Is it real Linux?
- Android is built on the Linux kernel. The Shell is the phone's own Linux shell and command-line tools, with Python 3.13 added. It is a small Linux, not a full distribution: there is no package manager yet.
- Why might Android warn me when I install it?
- Apps from outside the Play Store can get a warning or a scan from Google Play Protect, and the desk targets older app rules (the same ones Termux uses) so programs a learner writes can run from their own folders. The whole app is open source, so you can read exactly what it does before you choose to install it.
- Can several children share one phone?
- Yes. Each person gets their own home folder and their own lesson progress. Switch person in Setup.
- Is it free?
- Yes, and open source under the MIT license. You can read it, change it, translate it and share it.
Source
Code, build instructions and setup docs: github.com/rossgoodwin/oppc. The app is built from plain Android tools without Gradle, with a static Python compiled for phones.
Includes CPython (PSF license), ncurses, zlib, xterm.js and CodeMirror (MIT), and the Cousine typeface (Apache 2.0).