use of ro.factorytest

397 views
Skip to first unread message

twebb

unread,
Sep 2, 2010, 7:37:52 PM9/2/10
to android-platform
I brought this over from android-developers; hopefully this is an
appropriate group.

The original question asked by another poster was essentially, "How do
you boot android into factory test mode?"

Diane answered ...
> It is controlled with this sytem property: ro.factorytest
> Possible values:
> public static final int FACTORY_TEST_OFF = 0;
> public static final int FACTORY_TEST_LOW_LEVEL = 1;
> public static final int FACTORY_TEST_HIGH_LEVEL = 2;

> You'll need to look in the code to SystemServer and elsewhere to see
> what all it does

My question is, once the factory testing is complete how can the
ro.factorytest property be changed/removed such that the device boots
into normal operation?

Thanks,
twebb

Dianne Hackborn

unread,
Sep 5, 2010, 1:51:31 AM9/5/10
to android-...@googlegroups.com
Since this is an "ro" property (read-only), I don't think you can avoid rebooting the system.  Anyway, you are going to have to in the current implementation because various things like activity manager initialize themselves in a special state when in factory test mode, which you can't get out of without restarting them.  (And there is a good chance factory test code isn't going to leave the system in a good state anyway so it is good to restart.)

The low-level factory test is even worse since it brings the system up in a very minimal state with many core services just not running.


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Reply all
Reply to author
Forward
0 new messages