Skip to content

Commit

Permalink
Fix conflicts with 32bit app.
Browse files Browse the repository at this point in the history
Signed-off-by: tiann <twsxtd@gmail.com>
  • Loading branch information
tiann committed Dec 15, 2020
1 parent 62b1d7d commit 212db8e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
6 changes: 3 additions & 3 deletions VirtualApp/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
android:excludeFromRecents="true"
android:label="@string/shared_to_vxp"
android:screenOrientation="portrait"
android:taskAffinity="io.va.exposed.share"
android:taskAffinity="${applicationId}.share"
android:theme="@style/Theme.AppCompat.Light.Dialog">
<intent-filter>
<action android:name="android.intent.action.SEND" />
Expand All @@ -105,7 +105,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_installer_label"
android:noHistory="true"
android:taskAffinity="io.va.exposed.installer"
android:taskAffinity="${applicationId}.installer"
android:theme="@style/Theme.AppCompat.Light" />

<activity-alias
Expand Down Expand Up @@ -157,7 +157,7 @@
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="io.va.exposed.CMD" />
<action android:name="${applicationId}.CMD" />
</intent-filter>
</receiver>
</application>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.remote.InstallResult;

import io.virtualapp.BuildConfig;
import io.virtualapp.home.LoadingActivity;

/**
Expand All @@ -20,7 +21,7 @@

public class CmdReceiver extends BroadcastReceiver {

private static final String ACTION = "io.va.exposed.CMD";
private static final String ACTION = BuildConfig.APPLICATION_ID + ".CMD";
private static final String KEY_CMD = "cmd";
private static final String KEY_PKG = "pkg";
private static final String KEY_UID = "uid";
Expand Down
2 changes: 1 addition & 1 deletion VirtualApp/launcher
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ protected void onBindMethods() {
addMethodProxy(new renameAccount());
addMethodProxy(new getPreviousName());
addMethodProxy(new renameSharedAccountAsUser());

addMethodProxy(new setAccountVisibility());
}

private static class getPassword extends MethodProxy {
Expand Down Expand Up @@ -594,4 +596,17 @@ public Object call(Object who, Method method, Object... args) throws Throwable {
return method.invoke(who, args);
}
}

private static class setAccountVisibility extends MethodProxy {

@Override
public String getMethodName() {
return "setAccountVisibility";
}

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
return true;
}
}
}

1 comment on commit 212db8e

@AureliusPatiens
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我认为此部分代码有问题,甚至我也无法登录并在MICROG上激活Google设备注册
(不确定我还是Java语言的新手)

是可能的另一部分代码是错误的,还有一些应用程序不会永远打开以永久打开一个应用程序,
还有一些应用程序会立即崩溃,但是idk

@田恩

此致
NST_Adventure

Some applications crash in multiple versions and need to be started multiple times before they can be used, which is a difficult issue to deal with.

Please sign in to comment.