Share your repls and programming experiences

← Back to all posts
Basic Phone Emulator v1.0
h
len4 (14)

This is a simple phone emulator. This emulator runs .cap files which is a app format used in smart phones like huawei or onePlus. I was able to make this project a reality because all .cap files have a main.py and a index.html file. This project extracts those files and runs them. Currently the following apps have been tested:
-Youtube(slow)
-Minecraft(slow)
-Bejewal(Fast)
All of these apps above were on the huawei app store which I extracted and put into this emulator. Due to legal purposes I can't give you the .cap files for those apps, but I did put a example app in this that I made myself. If you upvote this I will make a post on how to develop .cap apps for huawei or onePlus. Thank you for checking this out. Ps: if you find your own .cap files just replace the cap file in this repl with it and it should work perfectly

Update:You no longer need to press enter for emulation to start

Comments
hotnewtop
ob24 (2)

Also for people who are having troubles, press enter in the console. It took me a bit to find that out.

HuckleberryGin (1)

@ob24 Thank you.I could not tell what to do once it started to load.

JermeralBlevins (3)

Of course it is going to be slow try to use hacker plan

angrydoge (481)

How do you run the other files. It just runs the example app after you press enter

len4 (14)

@angrydoge In the file system there is a main.cap file . You need to get another cap file and name it main.cap, then you replace the original

angrydoge (481)

ok @len4. Do you have a source or anything for the minecraft .cap file or for the link on the store you were using

len4 (14)

@angrydoge https://appgallery.huawei.com/#/Featured is what I used but you need to have their phone to get the .cap files. As for minecraft I will see if they have a version that I can get for you.

len4 (14)

@angrydoge I have managed to find a minecraft clone on the store that is compatible with this emulator. You can find that at https://cap-server.len4.repl.co . For this rom though you need to download the texture.png from the site and upload it next to the cap file. After that click run the rom and it should work.

angrydoge (481)

Pretty broken but cool. @len4

len4 (14)

@angrydoge Thanks. Pretty soon, I will release dev tools, and a website where you can get .cap files

PointerBots (1)

The emulator doesn't work when I click the button.

ob24 (2)

@PointerBots After you press run go to the bottom right console, click on it, then press enter. Send me a screenshot if you get any errors.

HuckleberryGin (1)

its pretty slow . I tried emulating the youtube app and it barely could play a video. Other then that I guess it is ok.

ob24 (2)

Nice. I have a tuner.cap file that I tried on this. The UI Works!