Supporting Longevity via Sooner Diagnostics
Posted by Rachel S, Android Product Supervisor
Commerce-in mode: sooner evaluation of a factory-reset telephone or pill, bypassing setup wizard, a brand new function on Android 16 and above.
Supporting machine longevity
Android is dedicated to creating gadgets last more. With machine longevity comes machine circularity: telephones and tablets traded-in and resold. GSMA reported that secondhand telephones have round 80-90% decrease carbon emissions than new telephones. The secondhand machine market has grown considerably each in quantity and worth, a development projected to proceed.
Android 16 and above affords a straightforward approach to entry machine info on any manufacturing unit reset telephone or pill through the brand new tradeinmode parameter, accessed through adb instructions. This implies you’ll be able to view high quality indicators of a telephone or pill, skipping every setup wizard step. Merely join a telephone or pill with adb, and use tradeinmode instructions to get details about the machine.
Commerce-in mode: What took minutes, now takes seconds
Sooner trade-in processing – By bypassing setup wizard, trade-in mode improves machine commerce ins. The mode permits instant entry to grasp the ‘well being’ of a tool, serving to everybody alongside the secondhand worth chain examine the standard of gadgets which can be wiped. We’ve already seen vital will increase in processing secondhand Android gadgets!
Safe analysis – To make sure the machine info is just accessed in safe conditions, the machine should 1) be manufacturing unit reset, 2) not have mobile service, 3) not have connectivity or a related account, and 4) be working a non-debuggable construct.
Get machine well being info with one command – You’ll be able to view all of the under machine info with adb command out of your workstation adb shell tradeinmode getstatus, skipping setup wizard:
Gadget info
Gadget IMEI(s)
Gadget serial quantity
Model
Mannequin
Producer
Gadget mannequin, e.g., Pixel 9
Gadget model, e.g., Google
Gadget producer, e.g., Google
Gadget identify, e.g., tokay
API degree to make sure appropriate OS model, e.g., launch_level : 34
Battery heath
Cycle rely
Well being
State, e.g., unknown, good, overheat, useless, over_voltage, unspecified_failure, chilly, truthful, not_available, inconsistent
Battery manufacturing date
Date first used
Serial quantity (to assist present indication of real components, if OEM supported)
Half standing, e.g., changed, authentic, unsupported
Storage
Display Half standing, e.g., changed, authentic, unsupported
Foldables (variety of occasions gadgets has been folded and complete fold lifespan)
Moisture intrusion
UICCS info i.e., Indication if there may be an e-SIM or detachable SIM and the microchip ID for the SIM slot
Digital camera rely and site, e.g., 3 cameras on entrance and a couple of on again
Lock detection for choose machine locks
And the checklist retains rising! Keep updated right here.
Run your personal assessments – Commerce-in mode allows you to run your personal diagnostic instructions or purposes by coming into the analysis move utilizing tradeinmode consider. The machine will mechanically manufacturing unit reset on reboot after analysis mode to make sure nothing stays on the machine.
Make sure the machine is working an authorized construct – Additional, when related to the web, with a single command tradeinmode getstatus –challenge CHALLENGE you’ll be able to take a look at the machine’s working system (OS) authenticity, to make sure the machine is working a trusted construct. If the construct passes the take a look at, you will be certain the diagnostics outcomes are coming from a trusted OS.
There’s extra – You need to use instructions to manufacturing unit reset, energy off, reboot, reboot immediately into trade-in mode, examine if trade-in mode is lively, revert to the earlier mode, and pause assessments till system companies are prepared.
Wish to attempt it? Be taught extra concerning the developer steps and instructions.

