• 大小: 97.43MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2022-12-09
  • 语言: 其他
  • 标签: IM  即时通讯  加密  

资源简介

一款商用的,稳定可靠的加密即时通讯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个文件信息

评论

共有 条评论