Skip to content

Original privacy and security research, news and free tools since 2018, cited by the FBI, CISA and the World Economic Forum See our research

Cited by the FBI, CISA and the World Economic Forum

News

Android Setup Flaw Lets Apps Be Planted on Phones Before First Use

Published

Laura Bede

By Laura Bede

Journalist

Miklos Zoltan

Fact-Checked this

An Android phone that greets you with its “Welcome” screen may already have apps on it.

A security researcher has published three ways to leave the setup screen of a new or factory-reset phone, install software and put the phone back as it was. He publishes as Major Johnson IV, and his write-up went up on GitHub on 1 December. A notice appeared on the Full Disclosure mailing list that evening. He lists Pixel, Samsung, Motorola, TCL, OnePlus, Sony, Nothing and Oppo phones among the devices he tested, on Android 14 through 17. The first of his routes still worked in November, he says, on a retail Pixel 11 Pro Fold and a Galaxy Z Fold 8.

Johnson reported it to Google on 29 July 2025. Sixteen months later, by his account, Google rated the issue Moderate, closed the ticket and gave no date for a fix.

Three Ways Out of the Setup Screen

Until somebody completes setup, Android treats a phone as unfinished. The home screen is hidden and ADB, the developer connection, is blocked. The whole arrangement, the write-up argues, assumes that nobody leaves the Setup Wizard without completing it.

Each of Johnson’s routes starts from an ordinary part of the setup flow.

  • A company enrolment QR code. Tapping the welcome screen six times opens a QR scanner meant for IT departments, a method Google documents. A code with an invalid token ends on an error page. From its help menu an article can be shared to Chrome, and Chrome then opens with browsing and downloads working. This route needs an internet connection.
  • “Set up using another device”. Pairing with a second Android phone can leave a lock screen on the new one although setup was never finished. Quick Settings is reachable from that lock screen, and through it the Files app.
  • A PUK-locked SIM card. A SIM blocked after too many wrong PINs also brings up the lock screen. It works without any network, which makes it the hardest of the three to notice.

Whichever route is used, the person holding the phone can then install apps from a download or a USB stick and run them. Root access, an unlocked bootloader and developer options aren’t needed. After a restart the phone shows “Welcome” again, with no warning for whoever picks it up next.

The QR route is the one Johnson retested in November. His latest evidence for the two lock-screen routes is older, a test from October 2025 and a video from June 2026.

We decoded the two QR codes in his repository. Both carry the standard enrolment data for Google’s own Android Device Policy app, the same values as the example in Google’s developer documentation, plus a made-up token. Nothing in them is harmful. Enrolment fails, and the error page does the rest.

What Has Been Shown and What Hasn't

Phone malware normally has to talk its victim into installing it, and then into granting it permissions. Johnson’s point is that this hurdle disappears when the attacker handles the phone before its owner does. Whoever has it first is the one tapping “Install” and “Allow”.

To show it, he built an app that does nothing except contact a server. He installed it through the SIM route with no network connection, opened it once and switched the phone off. At the next start the phone showed the usual welcome screen. As soon as it joined Wi-Fi during setup, before anyone had signed in, the app began calling his server every 10 to 40 seconds. In a separate test, apps he placed in a Private Space with his own password stayed hidden after setup was completed.

The demonstrations end there, and he says so himself. He hasn’t built or tested an app that steals anything. A recording of the procedure on a sealed retail phone is announced, not published. The videos he sent to Google and the test app’s code aren’t in the repository.

Who could use this? People who handle phones before or between owners: warehouse and shop staff, marketplace sellers, refurbishers, repair and trade-in desks, a company’s IT stock room. A phone handed over as a present belongs on that list as well, although nothing in the write-up involves a tracking app.

Boxed phones add one more problem. A phone can’t install security updates until setup is done, Johnson notes, so an app that runs before setup meets the patch level the phone left the factory with. Johnson points to two Linux kernel flaws for which he says exploit code is public, and which Google patched in November. He hasn’t tried combining them with his finding and says he won’t publish such a chain.

What Google Says

Google’s replies sit in bug tickets that aren’t public. What follows is Johnson’s account of them, in a text he says Google reviewed for technical accuracy before it went back online.

On 25 November Google closed his main ticket with the status “Won’t Fix (Infeasible)”. A day later, after he announced he would publish, it explained that the label doesn’t mean the report was rejected. The report had been accepted as Moderate severity and passed to engineering for a possible future release, and tickets of that grade are closed without a timeline. Google’s own tests confirmed the escape to Chrome, the app installation and access to Repair Mode, the walled-off mode meant for handing a phone to a repair shop. Google justified the grade by noting that the attack needs physical access before setup and “only allows running standard apps”.

Google also traced the QR route to the help-and-feedback sharing function, which would explain why it works on certified Android phones from different makers. That function is assigned to its engineers for a future update, with no public date. The other two routes went unmentioned in the reply. Johnson writes that further routes exist and that he’ll publish them later.

On carrier locks the two sides disagree. Johnson reports getting past the SIM lock that carriers put on financed phones. Google answered that the lock held in its test, which it ran on a Pixel 8, a model he never reported on. The difference matters for the rating, because Android’s published severity guidelines place a bypass of carrier restrictions or of factory reset protection in the High category. His report of partial access to a phone locked by factory reset protection was closed in August 2025 for not showing a full bypass.

One part of the paper trail can be checked from outside. Google closed his second report as a duplicate of bug 427469428, which it said came from another researcher. That number is in the Pixel Update Bulletin for March 2026 as CVE-2026-0118, a high-severity flaw in oobconfig, the Device Setup component on Pixel phones. A neighbouring bug got its fix. Johnson says the entry he reported stayed open, and that he sent Google a video in June showing Quick Settings still reachable before setup on a newer build.

His own findings have no CVE.

What to Do With a New or Used Android Phone

Johnson’s advice fits in a sentence: factory-reset a new, used or refurbished Android phone yourself before you start using it, even if it came sealed. By his account an app installed before setup survives a restart but not a factory reset.

In practice you go through setup once, quickly, and then reset from the Settings app. On a Pixel the path is Settings, System, Reset options, Erase all data (factory reset). Other makers file it under a similar name. Because his test app woke up the moment the phone joined Wi-Fi, it makes sense to do that first pass offline where the phone lets you skip the network step, and to sign in to your Google account only after the reset. A phone that says it belongs to an organisation, or that refuses the reset, should go back to the seller.

Once the phone is set up for real, he suggests looking in three places for anything you didn’t add: the full app list with system apps shown, Private space under Security & privacy, and the accounts and work profile settings. Then install every system update on offer. The software in a sealed box is as old as the box.

Shops, refurbishers and IT departments get a blunter message. A device sitting at the welcome screen proves nothing. Reset stock when it arrives and again before it is handed out.

How we report

We check claims against primary sources, ask the companies involved for comment and never publish personal data from a leak.

Our reporting has been cited by the FBI and CISA, Tom’s Hardware, PC Gamer, TechRepublic and the Financial Post.

Spotted an error or have a tip? Email [email protected] — we reply within one working day.

Who cites us