安卓AIDL跨进程间通信

android接口定义语言


IGeneralControl.aidl文件

是当初写的一个,应用场景是让第三方应用可以调用当前用的一些方法,来帮助三方实现一些功能。


 interface IGeneralControl {
    void setPhoneReceive(boolean operation);
    void setPhoneCall(boolean operation);
    void setMessageReceive(boolean operation);
    void setMessageSend(boolean operation);
    
    void setRecorderEnable(boolean operation);
    String[] getSystemInfo();
    void clearUserData(String packageName);
    void clearAllUserData();
    void setCameraAvailable(boolean operation);
    
    void setWifiAvailable(boolean operation);
    void setWifiEnable(boolean operation);
    void setBtAvailable(boolean operation);
    void setBtEnable(boolean operation);
    String takeScreenshot();
    
    void restoreFactory();
    void storgeFormat();
    void setScreenLock(String lockNumber);
    void cancleScreenLock();
    void shutdown();
    
    void reboot();
    void silenceInstall(String filePath);
    void silenceUninstall(String packageName);
    void setGpsAvailable(boolean operation);
    void setGpsEnable(boolean operation);
    void setSystemTime(long time);
}

 

 

你可能感兴趣的:(Android,eclipse)