• 大小: 8.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-02
  • 语言: 其他
  • 标签: 其他  

资源简介

csuliangbo_10974671.zip

资源截图

代码片段和文件信息

package com.hlsp.video;

import android.content.Context;
import android.graphics.Bitmap;
import android.support.multidex.MultiDex;

import com.apkfuns.logutils.LogLevel;
import com.apkfuns.logutils.LogUtils;
import com.baidu.mobstat.StatService;
import com.bumptech.glide.Glide;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.hlsp.video.model.HttpbaseUrl;
import com.hlsp.video.utils.CommonUtils;
import com.hlsp.video.utils.SpUtils;
import com.hlsp.video.utils.Utils;
import com.hlsp.video.utils.hookpms.ServiceManagerWraper;
import com.ss.android.common.applog.GlobalContext;
import com.ss.android.common.applog.UserInfo;

import cn.share.jack.cyghttp.app.CygApplication;
import cn.share.jack.cyghttp.app.HttpServletAddress;

/**
 * Created by jack on 2017/6/13
 */

public class App extends CygApplication {

    public static String IMEI;
    public static String PACKAGE_NAME;
    public static String VERSION_NAME;
    public static String CHANNEL_ID;
    public static String ANDROID_ID;
    public static String SERIAL_NO;

    @Override
    public void onCreate() {
        super.onCreate();
        ServiceManagerWraper.hookPMS(this.getApplicationContext());

        SpUtils.init(this);
        //缓存起来防止每次网络请求都去拿
        PACKAGE_NAME = CommonUtils.getProcessName();
        VERSION_NAME = Utils.getHasDotVersion(App.getInstance());
        CHANNEL_ID = CommonUtils.getmetaData(App.getInstance() “BaiduMobAd_CHANNEL“);
        IMEI = Utils.getDeviceIMEI(App.getInstance());
        ANDROID_ID = Utils.getDeviceAndroidId(App.getInstance());
        SERIAL_NO = Utils.getSerialNo();


        ImagePipelineConfig config = ImagePipelineConfig.newBuilder(getApplicationContext())
                .setDownsampleEnabled(true)   // 对图片进行自动缩放
                .setResizeAndRotateEnabledForNetwork(true)    // 对图片进行自动缩放
                .setBitmapsConfig(Bitmap.Config.RGB_565) //  //图片设置RGB_565,减小内存开销  fresco默认情况下是RGB_8888
                //other settings
                .build();
        Fresco.initialize(this config);


        if (BuildConfig.DEBUG) {
            HttpServletAddress.getInstance().setOfflineAddress(HttpbaseUrl.base_TEXT_URL);
        } else {
            HttpServletAddress.getInstance().setOnlineAddress(HttpbaseUrl.base_URL);
        }

        LogUtils.getLogConfig()
                .configAllowLog(BuildConfig.DEBUG)
                .configTagPrefix(this.getPackageName())
                .configShowBorders(true)
                .configFormatTag(“%d{HH:mm:ss:SSS} %t %c{-5}“)
                .configLevel(LogLevel.TYPE_VERBOSE);


        StatService.setDebugOn(BuildConfig.DEBUG);


        GlobalContext.setContext(getApplicationContext()); //Hook 抖音

        try {
            System.loadLibrary(“userinfo“);//抖音&火山
        } catch (Exception e) {
            e.printStackTrace();
        }

        UserInfo.setAppId(2);
        int result = UserInfo.initUser(“a3668f0afac72ca3f6c1697d29e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-25 08:13  douyin_demo\
     文件         238  2019-01-24 19:04  douyin_demo\.gitignore
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\fileChanges\
     文件           1  2019-02-25 01:03  douyin_demo\.gradle\4.6\fileChanges\last-build.bin
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\fileContent\
     文件       18743  2019-02-25 01:01  douyin_demo\.gradle\4.6\fileContent\annotation-processors.bin
     文件          17  2019-02-25 01:03  douyin_demo\.gradle\4.6\fileContent\fileContent.lock
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\fileHashes\
     文件      809149  2019-02-25 01:03  douyin_demo\.gradle\4.6\fileHashes\fileHashes.bin
     文件          17  2019-02-25 01:03  douyin_demo\.gradle\4.6\fileHashes\fileHashes.lock
     文件       23053  2019-02-25 01:01  douyin_demo\.gradle\4.6\fileHashes\resourceHashesCache.bin
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\javaCompile\
     文件     3336287  2019-02-25 01:01  douyin_demo\.gradle\4.6\javaCompile\classAnalysis.bin
     文件     1295015  2019-02-25 01:01  douyin_demo\.gradle\4.6\javaCompile\jarAnalysis.bin
     文件          17  2019-02-25 01:01  douyin_demo\.gradle\4.6\javaCompile\javaCompile.lock
     文件      361234  2019-02-25 01:01  douyin_demo\.gradle\4.6\javaCompile\taskHistory.bin
     文件       42790  2019-02-25 01:01  douyin_demo\.gradle\4.6\javaCompile\taskJars.bin
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\4.6\taskHistory\
     文件     4444328  2019-02-25 01:03  douyin_demo\.gradle\4.6\taskHistory\taskHistory.bin
     文件          17  2019-02-25 01:03  douyin_demo\.gradle\4.6\taskHistory\taskHistory.lock
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\buildOutputCleanup\
     文件          17  2019-02-25 01:03  douyin_demo\.gradle\buildOutputCleanup\buildOutputCleanup.lock
     文件          51  2019-02-25 00:56  douyin_demo\.gradle\buildOutputCleanup\cache.properties
     文件       57263  2019-02-25 01:03  douyin_demo\.gradle\buildOutputCleanup\outputFiles.bin
     目录           0  2019-02-25 08:13  douyin_demo\.gradle\vcsWorkingDirs\
     文件           0  2019-02-25 00:47  douyin_demo\.gradle\vcsWorkingDirs\gc.properties
     目录           0  2019-02-25 08:13  douyin_demo\.idea\
     目录           0  2019-02-25 08:13  douyin_demo\.idea\caches\
     文件         792  2019-02-25 01:00  douyin_demo\.idea\caches\build_file_checksums.ser
............此处省略1267个文件信息

评论

共有 条评论