openSettings() {
var main = plus.android.runtimeMainActivity();
// var pkName = main.getPackageName();//获取包名
// var uid = main.getApplicationInfo().plusGetAttribute("uid");
var Intent = plus.android.importClass('android.content.Intent');//导入插件
var Settings = plus.android.importClass('android.provider.Settings');//导入插件
// var Uri = plus.android.importClass('android.net.Uri');
// var packageUri = Uri.parse("package:" + pkName);
// var intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, packageUri);//打开应用信息
var intent = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY);//打开耗电详情
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
main.startActivity(intent);//执行
},