360手机浏览器-com.qihoo.browser_APK内置配置数据方法

查看 110|回复 10
作者:syx594   
                               360手机浏览器-com.qihoo.browser_APK内置配置数据方法

准备工具
  • 360手机浏览器_v10.1.6.110.APK

  • MT管理器



    反编译后,搜索“code_cache”字符串


    Screenshot_2025-05-08-19-29-38-736_bin.mt.plus.jpg (160.67 KB, 下载次数: 0)
    下载附件
    2025-5-8 19:35 上传

    进入下图标志的位置:


    Screenshot_2025-05-08-19-29-42-700_bin.mt.plus-edit.jpg (160.06 KB, 下载次数: 0)
    下载附件
    2025-5-8 19:35 上传

    在该Smali文件代码中适当的位置添加新的方法:
    [Java] 纯文本查看 复制代码.method private static copyPrefsFromAssets(Landroid/content/Context;)V
        .registers 7
        .prologue
        const-string v3, "MultiDex"
        const-string v0, "shared_prefs"
       
        const/4 v1, 0x0
        invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
       
        new-instance v0, Ljava/io/File;
        invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
        move-result-object v1
        iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->dataDir:Ljava/lang/String;
        const-string v2, "shared_prefs"
        invoke-direct {v0, v1, v2}, Ljava/io/File;->(Ljava/lang/String;Ljava/lang/String;)V
       
        invoke-virtual {v0}, Ljava/io/File;->exists()Z
        move-result v1
        if-nez v1, :cond_1d
       
        :try_start_1a
        invoke-static {v0}, Landroid/support/multidex/MultiDex;->mkdirChecked(Ljava/io/File;)V
        :cond_1d
        :try_end_1d
        .catch Ljava/io/IOException; {:try_start_1a .. :try_end_1d} :catch_5a
       
        new-instance v1, Ljava/io/File;
        const-string v2, "com.qihoo.browser_preferences.xml"
        invoke-direct {v1, v0, v2}, Ljava/io/File;->(Ljava/io/File;Ljava/lang/String;)V
       
        invoke-virtual {v1}, Ljava/io/File;->exists()Z
        move-result v0
        if-eqz v0, :cond_30
       
        const-string v0, "MultiDex"
        const-string v1, "Prefs file already exists, skipping copy"
        invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
       
        :goto_2f
        return-void
       
        :cond_30
        :try_start_30
        invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
       
        move-result-object v0
       
        const-string v2, "com.qihoo.browser_preferences.xml"
       
        invoke-virtual {v0, v2}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
       
        move-result-object v0
       
        new-instance v2, Ljava/io/FileOutputStream;
       
        invoke-direct {v2, v1}, Ljava/io/FileOutputStream;->(Ljava/io/File;)V
       
        const/16 v1, 0x1000
       
        new-array v1, v1, [B
       
        :goto_43
        invoke-virtual {v0, v1}, Ljava/io/InputStream;->read([B)I
       
        move-result v4
       
        const/4 v5, -0x1
       
        if-eq v4, v5, :cond_4f
       
        const/4 v5, 0x0
       
        invoke-virtual {v2, v1, v5, v4}, Ljava/io/FileOutputStream;->write([BII)V
        :try_end_4e
        .catch Ljava/io/IOException; {:try_start_30 .. :try_end_4e} :catch_51
       
        goto :goto_43
       
        :cond_4f
        :try_start_4f
        invoke-virtual {v0}, Ljava/io/InputStream;->close()V
       
        invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
        :try_end_55
        .catch Ljava/io/IOException; {:try_start_4f .. :try_end_55} :catch_56
       
        goto :goto_2f
       
        :catch_56
        move-exception v0
       
        invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
       
        goto :goto_2f
       
        :catch_51
        move-exception v0
       
        const-string v1, "MultiDex"
       
        const-string v2, "Could not copy prefs file from assets"
       
        invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
       
        goto :goto_2f
       
        :catch_5a
        move-exception v0
       
        const-string v1, "MultiDex"
       
        const-string v2, "Could not create shared_prefs directory"
       
        invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
       
        goto :goto_2f
    .end method

    [color=]继续我们下面的操作,然后在install()方法的开始处调用这个方法。找到install()方法的smali代码,在开头添加:

    [Java] 纯文本查看 复制代码.method public static install(Landroid/content/Context;)V
        .registers 3
        .prologue
        const-string v0, "MultiDex"
       
        const-string v1, "Installing application"
       
        invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
       
        # 新增的调用
        invoke-static {p0}, Landroid/support/multidex/MultiDex;->copyPrefsFromAssets(Landroid/content/Context;)V


    [color=]最后重要一步,把附件
    [color=]配置数据
    [color=]解压出来,
    把"com.qihoo.browser_preferences.xml"文件复制到assets目录中!!!

    com.qihoo.browser_preferences.zip
    (2.14 KB, 下载次数: 36)
    2025-5-8 19:44 上传
    点击文件名下载附件
    下载积分: 吾爱币 -1 CB

    Svip的方法:
    搜索以下字符串:
    onMemberInfo, user is Vip =

    以上如果你都解决了,一个清爽的超级会员版本你就拥有了!

    方法, 下载次数

  • bfbzfbz   

    360浏览器和手机自带的浏览器在功能上有什么区别?
    schm168   

    Svip搜索出来后如何操作?
    caoxino   

    能否解释下,配置数据有什么用吗?谢谢
    MinaCN   

    感谢大佬的热心奉献
    doland   

    辛苦了,感谢,收下
    luzjhj   

    学一下  这个是解锁功能吗
    shuiba3939   

    非常不错!
    听雨客舟   

    谢谢分享!动手能力差的人希望有成品
    syx594
    OP
      


    caoxino 发表于 2025-5-8 20:32
    能否解释下,配置数据有什么用吗?谢谢

    所有无关紧要的设置选项就不需要手动一个一个关闭了,有的隐藏广告也会关闭!
    您需要登录后才可以回帖 登录 | 立即注册