资源简介

VirtualApp源码(完整工程),基于android studio (ndk,sdk)开发,实现安卓双开。

资源截图

代码片段和文件信息

package io.virtualapp;

import android.app.Application;
import android.content.Context;

import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.client.stub.StubManifest;

import io.virtualapp.delegate.MyAppRequestListener;
import io.virtualapp.delegate.MyComponentDelegate;
import io.virtualapp.delegate.MyPhoneInfoDelegate;
import io.virtualapp.delegate.MyTaskDescriptionDelegate;
import jonathanfinerty.once.Once;

/**
 * @author Lody
 */
public class VApp extends Application {


    private static VApp gApp;

    public static VApp getApp() {
        return gApp;
    }

    @Override
    protected void attachbaseContext(Context base) {
        super.attachbaseContext(base);
        StubManifest.ENABLE_IO_REDIRECT = true;
        StubManifest.ENABLE_INNER_SHORTCUT = false;
        try {
            VirtualCore.get().startup(base);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onCreate() {
        gApp = this;
        super.onCreate();
        VirtualCore virtualCore = VirtualCore.get();
        virtualCore.initialize(new VirtualCore.VirtualInitializer() {

            @Override
            public void onMainProcess() {
                Once.initialise(VApp.this);
            }

            @Override
            public void onVirtualProcess() {
                //listener components
                virtualCore.setComponentDelegate(new MyComponentDelegate());
                //fake phone imeimacAddressBluetoothAddress
                virtualCore.setPhoneInfoDelegate(new MyPhoneInfoDelegate());
                //fake task description‘s icon and title
                virtualCore.setTaskDescriptionDelegate(new MyTaskDescriptionDelegate());
            }

            @Override
            public void onServerProcess() {
                VirtualCore.get().setAppRequestListener(new MyAppRequestListener(VApp.this));
            }
        });
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        252  2017-03-18 16:11  VirtualApp\.git\config

     文件        477  2017-03-18 16:11  VirtualApp\.git\FETCH_HEAD

     文件         23  2017-03-18 16:11  VirtualApp\.git\HEAD

     文件     100384  2017-03-18 16:11  VirtualApp\.git\index

     文件        128  2017-03-18 16:11  VirtualApp\.git\logs\HEAD

     文件        128  2017-03-18 16:11  VirtualApp\.git\logs\refs\heads\master

     文件        142  2017-03-18 16:11  VirtualApp\.git\logs\refs\remotes\origin\master

     文件     461252  2017-03-18 16:11  VirtualApp\.git\objects\pack\pack-bb49da7d85dbd9c945161bf6e5430aa0a554a85f.idx

     文件   32685600  2017-03-18 16:11  VirtualApp\.git\objects\pack\pack-bb49da7d85dbd9c945161bf6e5430aa0a554a85f.pack

     文件         41  2017-03-18 16:11  VirtualApp\.git\refs\heads\master

     文件         41  2017-03-18 16:11  VirtualApp\.git\refs\remotes\origin\master

     文件         41  2017-03-18 16:11  VirtualApp\.git\refs\tags\Feature_IO_Hook

     文件         41  2017-03-18 16:11  VirtualApp\.git\refs\tags\LaunchMode

     文件         41  2017-03-18 16:11  VirtualApp\.git\refs\tags\Support_Google_Play

     文件        470  2017-03-18 16:11  VirtualApp\.gitignore

     文件       2166  2017-03-18 16:11  VirtualApp\CHINESE.md

     文件      35147  2017-03-18 16:11  VirtualApp\LICENSE.txt

     文件       6084  2017-03-18 16:11  VirtualApp\Logo.png

     文件       2356  2017-03-18 16:11  VirtualApp\README.md

     文件        103  2017-03-18 16:11  VirtualApp\VirtualApp\.gitignore

     文件          7  2017-03-18 16:11  VirtualApp\VirtualApp\app\.gitignore

     文件       1564  2017-03-18 16:11  VirtualApp\VirtualApp\app\build.gradle

     文件        662  2017-03-18 16:11  VirtualApp\VirtualApp\app\proguard-rules.pro

     文件       1197  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\AndroidManifest.xml

     文件     350037  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\assets\OaceOaT8w5Xda6wa

     文件        102  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\java\io\virtualapp\abs\basePresenter.java

     文件        234  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\java\io\virtualapp\abs\baseView.java

     文件        115  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\java\io\virtualapp\abs\Callback.java

     文件       3260  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\java\io\virtualapp\abs\nestedadapter\RecyclerViewAdapterWrapper.java

     文件       4502  2017-03-18 16:11  VirtualApp\VirtualApp\app\src\main\java\io\virtualapp\abs\nestedadapter\SmartRecyclerAdapter.java

............此处省略904个文件信息

评论

共有 条评论