Using Tencent Mobile Game Assistant as a solution for developing and testing simulators---and solutions to some problems-1

Table of contents

Foreword:

1. Directory structure

2. Registry research

1.HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tencent\MobileGamePC

2.HKEY_CURRENT_USER\Software\Tencent\MobileGamePC

3. Simulator quick start

1. Quick start command:

2. How to put the startup command on the desktop:

3. adb port, currently available for testing:


Foreword:

This article mainly introduces the use of a third-party simulator (Tencent Mobile Game Assistant is used here) as a development tool. This simulator is divided into two engines. One is based on the standard engine of virtualbox like other simulators, but the optimization is not very good. The other is The AOW engine they mainly promote is this engine. There is not much technical information about aow. At present, we can only know that this engine can run in an environment without vt. It will be updated continuously in the future. Mainly includes: directory structure analysis, registry analysis, quick startup instructions, and problem solving.

1. Directory structure

The first one should be the data folder of the aow engine. This emulator virtualizes the Android path. In the folder, you can see that the internal system image is directly stored in the bin format file. Data other than the image is directly allocated according to the Linux iNode file.

The second is the market for Tencent mobile game assistant. It is estimated to be for configuring the assistant and pulling the simulator.

The third cloudgame should be the folder of the cloud game. This has nothing to do with the emulator.

The fourth UI is the UI of the simulator, as well as other configuration tools such as key positions.

The fifth vdi_100_x64: Needless to say, it must be the data folder of the standard engine based on vbox. When you open the file, you can see the vdi file containing system.sdcard,data in the folder.

Tinst.exe contained in each folder is presumed to be an update file for Tencent Mobile Game Assistant.


2. Registry research

The registry path where this software is currently found is:

1.HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tencent\MobileGamePC

You can see the folder directory as follows:

You can see the value displayed on the right: supplyid. The value of the installed channel ID is stored here. It is estimated to be used to determine whether to download the beta version and obtain the beta version channel. Version must be referring to the version number.

Then look at the directory on the left:

The first Aegine: It stores the scores of the CPU and GPU tests. It is speculated that it is running at startup. The purpose is for them to develop and troubleshoot whether the hardware is too low.

The third Appmarket: stores the last crash time, installation time, and autostart attribute name. Changing the value to 0 will prevent Tencent Assistant from starting automatically at boot.

The fifth UI: stores the installation time, the time of the last run and successful run, and the set rendering mode. Not much introduction

Not to mention the second, fourth and last ones, which contain the version number and other less important information.

2.HKEY_CURRENT_USER\Software\Tencent\MobileGamePC

This path is also some configuration and settings. I don’t know why it is divided into two. I will talk about some important parts.

GraphicsCardEnabled: Whether to enable independent graphics, it will be enabled when it is 1

GpsLocation: It must store gps positioning information. It is speculated that it will be dynamically updated.

Region:Language

syzs_emulator_hwnd: emulator

UserLanguage: The language set by the user

sf: shared directory, probably where temporary files and pull server configurations and downloaded apks are stored.

TempPath: Temporary file directory, which is actually the superior directory of the shared directory


3. Simulator quick start

By grabbing the command line, I found out how to force the use of a certain rendering mode in this simulator and simulate their market to quickly start the Ao engine/standard engine, as well as the way to start the engine in the engine.


1. Quick start command:

  Tencent Mobile Game Assistant has two built-in Android x86 versions, one is 4.4 and the other is 7.1. When starting the installation directory \ui\AndroidEmulatorEx.exe without adding any parameters, the 4.4 engine will be automatically started. The startup parameters are only available after the engine is installed. The engine will not be installed by default. You can first go to the market to download the games or applications of these engines (such as qq), and then install the engine before using it.

其他引擎启动可以参考这里:


强制以某一引擎启动:
-engine aow  解释:傲引擎
-engine vdi  解释:标准引擎

-vm 0 解释:4.4引擎
-vm 100 解释:7.1引擎
例如启动7.1的傲引擎版本命令:安装目录\ui\AndroidEmulatorEx.exe -engine aow 


强制使用某一渲染模式:
前面在windows使用virtualbox搭建安卓x86环境说过大部分模拟器使用google的angle库将安卓内的opengles请求转换成opengl desktop和directx来运行,腾讯手游助手也不例外,但是,部分应用会被市场配置到指定渲染模式运行,若需要强制以一个渲染模式运行可以在启动时加入以下参数:

-force-directx -glesv3 1 解释:强制以opengl启动
-force-opengl -glesv3 1  解释:强制以directx启动

例如强制以opengl启动标准引擎7.1命令:安装目录\ui\AndroidEmulatorEx.exe -engine aow 

模拟启动内部应用(注意:启动的应用一定要是安装好的):

-cmd StartApk -startpkg 包名

以使用傲引擎7.1强制启动和平精英为例

安装目录\ui\AndroidEmulator.exe -cmd StartApk -startpkg com.tencent.tmgp.pubgmhd -engine aow -vm 100 

2. How to put the startup command on the desktop:

plan 1:

Find the UI folder (right-click Tencent Mobile Game Assistant on the desktop), return to the previous level TxGameAssistant directory, there is a UI directory inside, find AndroidEmulatorEx.exe after entering, and select the shortcut to send to desktop by right-clicking. You can see the shortcut of this file on the desktop, right-click - Properties, add startup parameters after the target, for example, as shown below

Then apply enable

Option 2: Write bat. The specific logic and code implementation are as follows. The following is a case of starting Ao Engine 7.1 Peace Elite. You can refer to the above parameter description to modify it for other games.

rem 先查询注册表HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\TENCENT\MobileGamePC\UI的InstallPath,获取UI的安装位置,然后cd到那个目录。启动就好了

@echo off
cd /d %~dp0
for /f "tokens=2* delims=Z" %%a in ('Reg Query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\TENCENT\MobileGamePC\UI" /v "InstallPath" ') do set UI=%%a   
cd /d %UI%
start AndroidEmulator.exe -engine aow -vm 100 -force-opengl -glesv3 1 -cmd StartApk -startpkg com.tencent.tmgp.pubgmhd
exit

3. adb port, currently available for testing:

傲引擎:5555
标准引擎:5655
adb connect 127.0.0.1:5555
adb connect 127.0.0.1:5655


Developed by Fuzhou Mechanical and Electrical Engineering Vocational and Technical School wh

Email contact information: [email protected]

QQ contact information: 2151335401, 3135144152

Guess you like

Origin blog.csdn.net/m0_60277871/article/details/131134821