在Android中以编程方式切换到开发人员模式

问题描述:

我想创建一个工具,该工具可以在Android版本低于4.2的Android设备上切换到开发人员模式.我想创建一个apk来激活和停用开发人员模式.这可能吗?怎么样?

I want to create a tool that allows to switch to developer mode on Android devices with an Android version less than 4.2. I want to create an apk to activate and deactivate the developer mode. Is this possible? How?

开发人员"模式是系统设置,因此只能从系统应用程序进行修改(即用制造商的密钥签名).您无法创建会修改此设置的应用.

"Developer" mode is a system setting and therefore can only be modified from a system application (i.e. signed with a manufacturer's key). You cannot create an app that would modify this setting.