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

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

How to get the original ROM by myself?
If you like to know to get the original ROM by yourself

SPOILER: GET ORIGINAL ROM

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

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

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

Popular Posts

[TOOL] Unity Assets Bundle Extractor

Il2CppDumper GUI Android App