360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0

以下内容为反编译后的 aj.java 源代码,内容仅作参考


package com.qihoo360.mobilesafe.pcdaemon;

import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.text.TextUtils;
import com.qihoo360.mobilesafe.pcdaemon.data.ACSIITextPdu;

class aj extends com.qihoo360.mobilesafe.util.t {

    final com.qihoo360.mobilesafe.pcdaemon.service.a f5457a;

    final ai f5458b;

    public aj(ai aiVar, Context context, String str, String str2, com.qihoo360.mobilesafe.pcdaemon.service.a aVar) {
        super(context, str, str2);
        this.f5458b = aiVar;
        this.f5457a = aVar;
    }

    @Override
    public void onMediaScannerConnected() {
        super.onMediaScannerConnected();
    }

    @Override
    public void onScanCompleted(String str, Uri uri) {
        com.qihoo360.mobilesafe.businesscard.e.b bVar = null;
        super.onScanCompleted(str, uri);
        if (uri == null) {
            this.f5457a.a(new ACSIITextPdu("RET_SCAN_MEDIA_FILE:ERR_FAILED:"));
        }
        ContentResolver contentResolver = this.f5458b.f.getContentResolver();
        Cursor query = contentResolver.query(uri, null, null, null, null);
        if (query != null && query.moveToFirst()) {
            String path = uri.getPath();
            if (!TextUtils.isEmpty(path) && path.indexOf("images") >= 0) {
                bVar = com.qihoo360.mobilesafe.businesscard.d.a.c.a(query, contentResolver, false);
            } else if (!TextUtils.isEmpty(path) && path.indexOf("video") >= 0) {
                bVar = com.qihoo360.mobilesafe.businesscard.d.a.e.a(query, contentResolver, false);
            } else if (!TextUtils.isEmpty(path) && path.indexOf("audio") >= 0) {
                bVar = com.qihoo360.mobilesafe.businesscard.d.a.a.a(query);
            }
            if (bVar != null) {
                this.f5457a.a(ACSIITextPdu.a("RET_SCAN_MEDIA_FILE:OK:" + bVar.a()));
            } else {
                this.f5457a.a(new ACSIITextPdu("RET_SCAN_MEDIA_FILE:ERR_FAILED:"));
            }
        }
        if (query != null) {
            query.close();
        }
    }
}