如题,比如删除:com.android.settings,使用什么命令啊?

解决方案 »

  1.   

    按下面步骤操作:
    1、开始-->运行-->cmd
    2、adb root
    3、adb remount
    4、cd system/app
    5、rm com.android.settings
      

  2.   

    1.通过getRuntime.exec
    2.通过调用system 命令rm system/app/##.apk
      

  3.   

    楼主,这个是不是前提是系统已经是root?能详细一下调用system 命令 是?
      

  4.   

    Process proc = null;
    try
    {
    proc = Runtime.getRuntime().exec("/system/bin/sh", null,
    new File("/system/bin"));
    } catch (IOException e)
    {
    return false;
    }
    if (proc != null)
    {
    BufferedReader in = new BufferedReader(new InputStreamReader(
    proc.getInputStream()));
    PrintWriter out = new PrintWriter(new BufferedWriter(
    new OutputStreamWriter(proc.getOutputStream())), true);
    try
    {
    out.println("su root \n");
    out.println("busybox mount -o remount rw  system  \n");
    out.println("busybox chmod 777 system \n");
    out.println("cd system \n");
    out.println("busybox chmod 777 app \n");
    out.println("cd app \n");
    out.println("busybox chmod 777 tvsettinghotkey.apk \n");
    out.println("busybox rm myhotkey.apk;\n");
    } catch (Exception e)
    {
    dealCopyError();
    return false;
    }
    out.println("exit");
    try
    {
    String line;
    while ((line = in.readLine()) != null)
    {
    Log.e("command", line);
    }
    // proc.waitFor();
    in.close();
    out.close();
    // proc.destroy();
    return true;
    } catch (Exception e)
    {
    return false;
    }
    } else
    {
    return false;
    }
    我的方法还是没能把这个 apk删除