因为在工作中需要用到微信,而又不想用生活中的微信用来工作上,就想微信双开多好..
经过对android的一些熟悉,发现都是以包名存放,心想,如果我把包名改掉,是否就可以双开了呢?
说干就干....找了一些反编译工具,最终锁定apkdb(http://code.google.com/p/android-apkdb/). 直接右键使用..挺给力...
因为机器上装的是5.0测试版,反复折腾了N多次..都是反编译成功,回编译失败..
提示:error: Found tag reference-array where item is expected
放弃...
使用4.5版本..反编译成功.回编译也成功...
就拿这个版本开刀.....
用python写了一个函数,用来对文件中的字符串进行替换...
我们把com.tencent修改为com.mytencent(其中还有com/tencent和com_tencent,都做同样修改)..这个包里有15410多个文件...全部做了替换...
回编译....成功....安装到手机..........喔```安装成功..运行..没有任何反应...查看log.发现一个警告,未找到setClientPackVersion,发现lib里有几个so,这个里面还没有修改..
相同思路,直接替换so中的tencent为mytencent..不知道这样替换so还能不能用...
回编译....成功....安装到手机..........喔```安装成功..运行..还是没有任何反应..而且这次也没有警告和错误...
08-08 15:47:48.780: I/ActivityManager(477): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mytencent.mm/.ui.LauncherUI bnds=[25,581][115,671] u=0} from pid 809 08-08 15:47:48.820: I/ActivityManager(477): Start proc com.mytencent.mm for activity com.mytencent.mm/.ui.LauncherUI: pid=24977 uid=10054 gids={1006, 3003, 1015, 3002, 3001, 1028} 08-08 15:47:49.140: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.NearBy: com.mytencent.mm.plugin.ext.provider.ExtControlProviderNearBy 08-08 15:47:49.140: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.ExtContentProviderBase: com.mytencent.mm.plugin.ext.provider.ExtContentProviderBase 08-08 15:47:49.140: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.message: com.mytencent.mm.plugin.ext.provider.ExtControlProviderMsg 08-08 15:47:49.140: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.SearchContact: com.mytencent.mm.plugin.ext.provider.ExtControlProviderSearchContact 08-08 15:47:49.150: I/ActivityThread(24977): Pub com.mytencent.mm.sdk.plugin.provider: com.mytencent.mm.plugin.base.stub.MMPluginProvider 08-08 15:47:49.150: I/ActivityThread(24977): Pub com.mytencent.mm.sdk.msginfo.provider: com.mytencent.mm.plugin.base.stub.RMsgInfoDBProvider 08-08 15:47:49.160: I/ActivityThread(24977): Pub com.mytencent.mm.sdk.conversation.provider: com.mytencent.mm.plugin.base.stub.RConversationDBProvider 08-08 15:47:49.160: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.AccountSync: com.mytencent.mm.plugin.ext.provider.ExtControlProviderAccountSync 08-08 15:47:49.160: I/ActivityThread(24977): Pub com.mytencent.mm.sdk.contact.provider: com.mytencent.mm.plugin.base.stub.RContactDBProvider 08-08 15:47:49.160: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.entry: com.mytencent.mm.plugin.ext.provider.ExtControlProviderEntry 08-08 15:47:49.160: I/ActivityThread(24977): Pub com.mytencent.mm.plugin.ext.SNS: com.mytencent.mm.plugin.ext.provider.ExtControlProviderSNS 08-08 15:47:49.290: I/ActivityManager(477): Start proc com.mytencent.mm:sandbox for service com.mytencent.mm/.sandbox.monitor.ExceptionMonitorService: pid=24993 uid=10054 gids={1006, 3003, 1015, 3002, 3001, 1028} 08-08 15:47:49.300: I/ActivityManager(477): Process com.mytencent.mm (pid 24977) has died. 08-08 15:47:49.300: W/ActivityManager(477): Force removing ActivityRecord{42c63a30 com.mytencent.mm/.ui.LauncherUI}: app died, no saved state 08-08 15:47:49.670: I/ActivityManager(477): Process com.mytencent.mm:sandbox (pid 24993) has died. 08-08 15:47:49.670: W/ActivityManager(477): Scheduling restart of crashed service com.mytencent.mm/.sandbox.monitor.ExceptionMonitorService in 5000ms 08-08 15:47:54.700: I/ActivityManager(477): Start proc com.mytencent.mm:sandbox for service com.mytencent.mm/.sandbox.monitor.ExceptionMonitorService: pid=25015 uid=10054 gids={1006, 3003, 1015, 3002, 3001, 1028} 08-08 15:47:55.120: I/ActivityManager(477): Process com.mytencent.mm:sandbox (pid 25015) has died. 08-08 15:47:55.120: W/ActivityManager(477): Scheduling restart of crashed service com.mytencent.mm/.sandbox.monitor.ExceptionMonitorService in 5000ms
这个是apk包, http://dl.vmall.com/c09nvxajik
不知原因是为何```难道他有检测是否双开? 正常运行微信,会有很多tencent的服务..或许是这些东西引起的...不明白..
失败告终........................
有知道解决办法的gg求指教....或许有更简单的双开办法................