Skip to content

Commit

Permalink
Fix: Google Login problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
asLody committed Aug 9, 2016
1 parent 644c488 commit a9efea1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void fixComponentInfo(AppInfo appInfo, ComponentInfo info) {
}

public static void fixUid(ApplicationInfo applicationInfo) {
if (VClientImpl.getClient().isBound() && applicationInfo != null) {
if (false && VClientImpl.getClient().isBound() && applicationInfo != null) {
String packageName = applicationInfo.packageName;
if (packageName.equals(VClientImpl.getClient().geCurrentPackage())
|| ComponentUtils.isSharedPackage(packageName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
import com.lody.virtual.client.hook.base.ReplaceLastPkgHook;
import com.lody.virtual.client.hook.base.StaticHook;
import com.lody.virtual.client.hook.binders.HookAppOpsBinder;
import com.lody.virtual.helper.utils.VLog;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
* @author Lody
Expand Down Expand Up @@ -69,17 +67,13 @@ public BaseHook(String name, int uidIndex, int pkgIndex) {

@Override
public boolean beforeHook(Object who, Method method, Object... args) {
VLog.d("######", "%s (%s)", method.getName(), Arrays.toString(args));
if (pkgIndex != -1 && args.length > pkgIndex && args[pkgIndex] instanceof String) {
VLog.d("######", "%s 1", method.getName());
String pkg = (String) args[pkgIndex];
if (isAppPkg(pkg)) {
VLog.d("######", "%s 2", method.getName());
args[pkgIndex] = getHostPkg();
}
}
if (uidIndex != -1 && args.length > uidIndex && args[uidIndex] instanceof Integer) {
VLog.d("######", "%s 3", method.getName());
args[uidIndex] = Process.myUid();
}
return true;
Expand Down

0 comments on commit a9efea1

Please sign in to comment.