作家
登录

Android Study之跳转自启动管理页

作者: 来源: 2017-06-23 16:37:46 阅读 我要评论

static String getMobileType() {        return Build.MANUFACTURER; 
  •     }    /** 
  •      * GoTo Open Self Setting Layout 
  •      * Compatible Mainstream Models 兼容市情主流机型 
  •      * 
  •      * @param context 
  •      */ 
  •     public static void jumpStartInterface(Context context) { 
  •         Intent intent = new Intent();        try { 
  •             intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
  •             Log.e("HLQ_Struggle""******************当前手机型号为:" + getMobileType()); 
  •             ComponentName componentName = null;            if (getMobileType().equals("Xiaomi")) { // 红米Note4测试经由过程 
  •                 componentName = new ComponentName("com.miui.securitycenter""com.miui.permcenter.autostart.AutoStartManagementActivity"); 
  •             } else if (getMobileType().equals("Letv")) { // 乐视2测试经由过程 
  •                 intent.setAction("com.letv.android.permissionautoboot"); 
  •             } else if (getMobileType().equals("samsung")) { // 三星Note5测试经由过程 
  •                 componentName = new ComponentName("com.samsung.android.sm_cn""com.samsung.android.sm.ui.ram.AutoRunActivity"); 
  •             } else if (getMobileType().equals("HUAWEI")) { // 华为测试经由过程 
  •                 componentName = new ComponentName("com.huawei.systemmanager""com.huawei.systemmanager.optimize.process.ProtectActivity"); 
  •             } else if (getMobileType().equals("vivo")) { // VIVO测试经由过程 
  •                 componentName = ComponentName.unflattenFromString("com.iqoo.secure/.safeguard.PurviewTabActivity"); 

      推荐阅读

      首次参加MWC,亚信软件有新招儿?

    亚信软件物联网营业负责人 徐健 【51CTO.com原创稿件】平日来说,企业选择参加哪些对外晃荡很大年夜程度上取决于当下的营业策略以及计谋导向。据懂得,亚信作为一个相对传统的软件厂商大年>>>详细阅读


    本文标题:Android Study之跳转自启动管理页

    地址:http://www.17bianji.com/lsqh/35887.html

  • 关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)