OPPC

One Phone Per Child. A free app that turns an old Android phone into a small Linux computer for learning to code.

Download OPPC Desk 0.1.0
Android app (APK), 10.7 MB. Needs Android 7 or newer on a 64-bit phone (Google Pixel from 2016 on, and most Android phones from the last several years).
SHA-256 d4b9650b02c1d59a7bb754e2bbbd52f9de57b2d1c74cf35da0b1369f32ab1baa

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.

The desk's home screen: a dark text-mode screen with a menu that starts with the first lesson, then new program, files, shell, lessons and help.
The home screen on a phone held sideways, with a keyboard plugged in.

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:

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.

The code editor with a Python program, and the program running in a pane underneath, asking for a name.
Code, running a program.
The Learn app: a list of twelve lessons on the left, and the first lesson's text on the right.
Learn.
The shell, showing the ls command listing folders and files.
Shell.
The Files app on a phone held upright.
Files, with the phone held upright.

What you need

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.

  1. On the phone, open this page and tap Download. Or copy oppc-desk.apk to the phone another way.
  2. Open the downloaded file. Android asks whether to allow installing apps from your browser or file app: allow it, then tap Install.
  3. 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

  1. The desk asks for a name. That makes your home folder.
  2. Press C on the home screen (or tap the first line) to start the first lesson.
  3. Press O to open the lesson's program in Code. Change it, then press Ctrl+R to run it.
  4. Back in Learn, press K to check your work.

Keys that work everywhere

KeyDoes
F1 to F7Home, Files, Code, Shell, Learn, Help, Setup. Alt+1 to Alt+7 also work.
Ctrl+= Ctrl+-bigger or smaller text
Escgo 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

helpwhat you can do here
lswhat is in this folder
edit game.pyopen a file in Code
run game.pyrun a program
python3talk to Python directly
aboutwhat 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.

  1. Back up anything you want from the phone.
  2. Factory reset: Settings, System, Reset options, Erase all data.
  3. 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.
  4. Turn on USB debugging: Settings, About phone, tap Build number seven times. Then Settings, System, Developer options, USB debugging.
  5. Plug the phone into the computer and accept the prompt on the phone.
  6. Run these two commands:
    adb install oppc-desk.apk
    adb shell dpm set-device-owner org.oppc.desk/.AdminReceiver
    The project also has a script that does this and checks for accounts first: tools/takeover.sh.
  7. Open the desk once. From then on the phone starts into it.

Owner controls

In the desk, Setup (F7), then This phone:

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).