資源簡介
一款商用的,穩定可靠的加密即時通訊IM。
實現了文字,音視頻,語音留言,短視頻,文件溝通等IM功能。支持在線、離線方式通訊。
基于RSA2048位點對點加密密鑰協商,AES256位加密,信息全程加密不可破解。
代碼片段和文件信息
package?com.android.process;
import?android.app.Service;
import?android.content.ComponentName;
import?android.content.Context;
import?android.content.Intent;
import?android.content.ServiceConnection;
import?android.os.IBinder;
import?android.os.RemoteException;
import?android.support.annotation.Nullable;
import?android.text.TextUtils;
import?android.util.Log;
import?com.android.process.aidl.IProcessService;
import?java.io.File;
import?xechwic.android.XWServices;
import?xechwic.android.act.MainApplication;
import?xechwic.android.util.FileUtil;
import?xechwic.android.util.JRSConstants;
import?xechwic.android.util.TaskExecutor;
/**
?*?Author:?river
?*?Date:?2016/6/1?17:36
?*?Description:?本地服務
?*/
public?class?RemoteService?extends?Service?{
????String?TAG?=?“RemoteService“;
????private?ServiceBinder?mServiceBinder;
????private?LocalServiceConnection?mLocalServiceConn;
????private?Context?mContext;
????@Override
????public?void?onCreate()?{
????????super.onCreate();
????????mContext=this;
????????mServiceBinder?=?new?ServiceBinder();
????????Log.i(TAG?TAG?+?“?onCreate“);
????????startXWServiceTask();
????}
????@Override
????public?int?onstartCommand(Intent?intent?int?flags?int?startId)?{
????????super.onstartCommand(intent?flags?startId);
????????Log.e(TAG?“RemoteService?onstartCommand“);
????????//////////綁定XWService
????????????????startUpXWServices();
????????if(intent!=null&&!TextUtils.isEmpty(intent.getAction()))?{
????????????String?action?=?intent.getAction();
????????????//////生成應用通知圖標
????????????if?(JRSConstants.CMD_ACTION_NOTIFICATION_OFF.equals(action))?{
????????????????Log.e(TAG?“CMD_ACTION_START_REMOTE“);
????????????????//////綁定通知
????????????????//////取消由XWService產生的通知
//????????????????PowerManager?pm?=?(PowerManager)?MainApplication.getInstance().getSystemService(Context.POWER_SERVICE);
//????????????????if(pm.isScreenOn())?{
//????????????????????startForeground(MainApplication.APP_ICON_ID?MainApplication.getInstance().initNotification());
//????????????????????stopForeground(true);
//????????????????}
????????????????return?Service.START_STICKY;
????????????}
????????}
????????return?START_STICKY;
????}
????private?void?startXWServiceTask(){
????????TaskExecutor.executeTask(new?Runnable()?{
????????????@Override
????????????public?void?run()?{
????????????????try{
????????????????????while?(FileUtil.isGuardFileExist()){
????????????????????????Thread.sleep(JRSConstants.LONG_TIME*2);
????????????????????????if(FileUtil.isGuardFileExist()){
????????????????????????????TaskExecutor.runOnUIThread(new?Runnable()?{
????????????????????????????????@Override
????????????????????????????????public?void?run()?{
????????????????????????????????????Log.e(TAG“startXWServiceTask?start?XWServices“);
????????????????????????????????????if(System.currentTimeMillis()-XWServices.lLastDoCheck>=JRSConstants.LONG_TIME)
????????????????????????????????????try?{
????????????????????????????????????????Intent?intentservice=new?Int
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-04-17?09:06??SmallVideoLib\
?????目錄???????????0??2019-04-17?09:06??SmallVideoLib\build\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\assets\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\assets\shaders\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\assets\shaders\androidTest\
?????目錄???????????0??2017-05-08?15:20??SmallVideoLib\build\generated\assets\shaders\androidTest\debug\
?????目錄???????????0??2017-05-08?15:18??SmallVideoLib\build\generated\assets\shaders\debug\
?????目錄???????????0??2017-05-08?15:18??SmallVideoLib\build\generated\assets\shaders\release\
?????文件?????2443754??2018-03-14?12:17??SmallVideoLib\build\generated\mockable-android-22.v3.jar
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\pngs\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\pngs\androidTest\
?????目錄???????????0??2018-05-03?18:38??SmallVideoLib\build\generated\res\pngs\androidTest\debug\
?????目錄???????????0??2018-05-03?18:38??SmallVideoLib\build\generated\res\pngs\debug\
?????目錄???????????0??2018-05-03?18:41??SmallVideoLib\build\generated\res\pngs\release\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\resValues\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\resValues\androidTest\
?????目錄???????????0??2018-05-03?18:38??SmallVideoLib\build\generated\res\resValues\androidTest\debug\
?????目錄???????????0??2018-05-03?18:38??SmallVideoLib\build\generated\res\resValues\debug\
?????目錄???????????0??2018-05-03?18:41??SmallVideoLib\build\generated\res\resValues\release\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\rs\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\res\rs\androidTest\
?????目錄???????????0??2017-05-08?15:20??SmallVideoLib\build\generated\res\rs\androidTest\debug\
?????目錄???????????0??2017-05-08?15:18??SmallVideoLib\build\generated\res\rs\debug\
?????目錄???????????0??2017-05-08?15:18??SmallVideoLib\build\generated\res\rs\release\
?????目錄???????????0??2019-04-17?09:06??SmallVideoLib\build\generated\source\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\source\aidl\
?????目錄???????????0??2019-04-17?09:05??SmallVideoLib\build\generated\source\aidl\androidTest\
?????目錄???????????0??2017-05-08?15:19??SmallVideoLib\build\generated\source\aidl\androidTest\debug\
?????目錄???????????0??2017-05-08?15:18??SmallVideoLib\build\generated\source\aidl\debug\
............此處省略6094個文件信息
評論
共有 條評論