欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

android在root模式下接聽來電的方法

 更新時(shí)間:2014年03月16日 10:23:40   作者:  
這篇文章主要介紹了android在root模式下接聽來電的方法,需要的朋友可以參考下

使用了Root Tools 來招待命令。https://code.google.com/p/roottools/

復(fù)制代碼 代碼如下:

/**
 * 接聽來電
 */
private void answerRingingCall()
{
    try
    {
        Command command = new Command(0, "input keyevent 5")
        {
            @Override
            public void output(int id, String line)
            {
                Log.d(Tag, line);
            }
        };
        RootTools.getShell(true).add(command).waitForFinish();
    }
    catch (InterruptedException e)
    {
        e.printStackTrace();
    }
    catch (IOException e)
    {
        e.printStackTrace();
    }
    catch (TimeoutException e)
    {
        e.printStackTrace();
    }
    catch (RootDeniedException e)
    {
        e.printStackTrace();
    }
}

相關(guān)文章

最新評(píng)論