日本a√视频在线,久久青青亚洲国产,亚洲一区欧美二区,免费g片在线观看网站

        <style id="k3y6c"><u id="k3y6c"></u></style>
        <s id="k3y6c"></s>
        <mark id="k3y6c"></mark>
          
          

          <mark id="k3y6c"></mark>

          新聞中心

          Android常見錯誤匯總

          作者: 時間:2016-10-08 來源:網(wǎng)絡(luò) 收藏

          out.write(buffer, 0, read);

          }

          }

          24.判斷是否有root權(quán)限

          [java] view plaincopyprint?

          public static synchronized boolean getRootAhth()

          {

          Process process = null;

          DataOutputStream os = null;

          try

          {

          process = Runtime.getRuntime().exec(su);

          os = new DataOutputStream(process.getOutputStream());

          os.writeBytes(exitn);

          os.flush();

          int exitValue = process.waitFor();

          if (exitValue == 0)

          {

          return true;

          } else

          {

          return false;

          }

          } catch (Exception e)

          {

          Log.d(*** DEBUG ***, Unexpected error - Here is what I know:

          + e.getMessage());

          return false;

          } finally

          {

          try

          {

          if (os != null)

          {

          os.close();

          }

          process.destroy();

          } catch (Exception e)

          {

          e.printStackTrace();

          }

          }

          }

          25.最簡單的Root 模擬器的方法

          啟動一個模擬器,開始-運行-輸入cmd,打開dos,依次輸入

          adb shell

          mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

          cd /system/bin

          cat sh > su

          chmod 4755 su

          su

          即可獲得root權(quán)限


          上一頁 1 2 3 下一頁

          關(guān)鍵詞:

          評論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉