Tutorial How to make a custom Virtual Android ROM for Virtual Android app

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,540
302,729
1,213
Modding World
I'm making a tutorial how I make a custom ROM for Virtual Android app

You need to know the basics of Android ROM modding and APK modding in general. You can refer to XDA for infomation about android ROM structure. Don't worry, you don't need much coding knowledge for this

Do not expect that you can make a ROM with other Android versions like Android 11, or use the ROM from other devices. You would need to build a specific kernel ONLY for Virtual Android. It's not easy than you think. Please do not be that dumb

Getting started:
You need
- CN version of Virtual Android https://www.wandoujia.com/apps/8111997. We can't edit url directly in Play store version
- Apktool to modify APK. You can use GUI tool called APK Tool GUI
- A server to host your ROM. You can use free one like 000webhost
- File manager or zip utility to modify ZIP file
- Original ROM and modding kits: 2.24 GB folder on MEGA

How to get the original ROM by myself?
If you like to know to get the original ROM by yourself
Play store version
After launching the app and downloading ROM for the first time, don't press start, let it stay on main screen

Screenshot_20220906-183651.png


Using file manager, we navigate to /data/data/com.pspace.vandroid/files. Here is the rom.png file we need.

Screenshot_20220906-183849.png


Rename it to rom.zip, then you can see its contents

Screenshot_20220906-183904.png


You need rooted device to see the content of appdata.

Chinese version:
Using any tool to capture traffic (e.g. HTTP Toolkit), you can grab the url while downloading ROM

2022-09-06 18 59 34.png


Put the url in the browser to download the ROM.

Modifying ROM
Ok, I have nothing much to say other than telling you to enjoy modding .zip file, it's so easy to do. Again, you need to be familiarity with Android, and a bit of Linux, in order to understand the ROM structure. You can always look up on XDA forum for info

If you are using CN version, you may want to delete chinese keyboard /system/app/SogouInput

Uploading ROM to server

After done modding ZIP file, we will upload the ROM file to the web server. Before we do, we need to edit data.php file I provided

Get file size of the ROM (NOT disk size)

2022-09-11 13 29 04.png


Get MD5

2022-09-11 13 29 17.png


Edit data.php like below

Also edit the url to yours

2022-09-11 13 29 42.png


Upload both ROM and data.php. We will need the url of data.php to use it later

I won't be covering how to use the server. There are lots of tutorials how to use the server

Modifying APK
Decompile the APK file. Once decompiled, we search the string
Code:
https://api.vtandroid.com/updateVersion/virtualPhone?versionCode=
through all files. You can use Notepad++ or similar. Once found, open the said smali file

1662897029911.png


Replace it to yours like
Code:
https://example.com/path/data.php?versionCode=
I'm pretty sure there is a better way, but we are just lazy to modify smali at this time

Save the smali file. Compile, zipalign and sign the APK

Testing
Now install the APK on your device and launch, start downloading your ROM

If it boots, congratulations. If it failed to boot, the ROM is broken.

This is my custom CN ROM, Playstore added, and SogouInput removed. See my mod APK: virtual android

Screenshot_20220911-135912.png