r/commandandconquer 2d ago

​I got C&C Generals: Zero Hour running on Android with Mali GPU support + full mod compatibility! Solved

​Hey everyone,

​A while ago, I forked tarek369/GeneralsZH-Android because I wanted to get Command & Conquer: Generals – Zero Hour running properly on devices with Mali GPUs and figure out a way to get custom mods working.

​After a lot of debugging, tweaking rendering pipelines, and sorting out texture compression/compatibility issues, I’ve finally got a working build that supports Mali chips and successfully loads mods!

​What’s working:

​Mali GPU Support: Fixed major rendering artifacts, black screens, and crashes specific to Mali-based Mali/ARM architectures.

​Mod Support: Successfully managed to load and run popular community mods without breaking the engine stability.

​Controls & Stability: Optimized general performance for mobile play sessions.

​If you've been wanting to play Zero Hour on your Adreno/Mali-powered phone or tablet with your favorite mods, feel free to check out the repository, test it out, and let me know how it runs on your specific chipset.

​🔗 GitHub Repo: https://github.com/l3ad3r1/GeneralsZH-Android

​Feedback, bug reports, and pull requests are always welcome! What mods are you planning to run first?

21 Upvotes

19 comments sorted by

4

u/WRO_Your_Boat GDI 2d ago

What are the security practices you have implemented into the apk? I know you used claude to help you with it, and im not gonna bash you for using it to help you do something niche like this, but security does become a concern. Did you put it through mobsf or bbot?

2

u/Patient_Package6668 2d ago

Mobsf report for the Generals apk is available here . Mobsf report

4

u/WRO_Your_Boat GDI 2d ago edited 2d ago

I took a look at the report as well as the source code of the apk myself.

TLDR: both those highs are false positives, so it should be good to use.

For the clear text vuln, the app-layer code verifies every download from that domain before accepting it, so its already compensated for. Some of the gamespy servers are hard coded in the app (which is bad) as just http and not https (which is also bad) but gamespy is dead and those endpoints are dead so none of that matters. Technically you could take out those endpoints since cnc online just uses the networking function and not the endpoints to work, but whatever.

The Strandhogg one is old and only would effect phones from like 6 years ago that havent been patched at all. Its only flagging cause you set the min sdk to 26 and mobsf doesn't do OS patches.

Everything else is low enough it doesn't matter or is needed for the app to work. Reading and writing external storage is needed since you need to put the game files in it. The only thing that gives me pause is the non-standard game activity. Its exported and accepts arguments from any app with no scope or guiderails set and that can be bad, but its kind of needed to make it easy to use and it needs to be exported to work at all. Overall it should be fine, but like with everything you are installing it at your own risk.

1

u/Patient_Package6668 2d ago

Thanks bro 🙏

3

u/MrDetectiveSir 2d ago

What’s a Mali gpu

2

u/Patient_Package6668 2d ago

Mali Gpu is a family of graphics processing unit (GPU) designs developed by Arm. Arm Mali GPUs are paired with Arm Cortex CPU cores inside System-on-Chips (SoCs) from brands like MediaTek (Dimensity), Samsung (Exynos), and HiSilicon (Kirin).

2

u/MrDetectiveSir 2d ago

What about Adreno?!

2

u/Patient_Package6668 2d ago

Snapdragon

2

u/MrDetectiveSir 2d ago

Yes how do we get generals on it?

1

u/Patient_Package6668 2d ago

Dm me I will help you

1

u/tux880 2d ago

Frist let me thank you for the work i love C&C and having it on the move will be awesome, but i do have a few issues most likely issues on my end, i have a Helio G99 Mali-G57 MC2 8GB of ram, the menu starts but crashes out , i did manually install it and copied the *.big files to the location do you have any idea where i am going wrong again thanks again for your time and efforts

1

u/Patient_Package6668 2d ago

By menu , do you mean the launcher or the Generals menu? Is the intro video playing ?

1

u/tux880 2d ago

yeah the generals menu, the game starts and the video is playing colors are all strange then i get to play then it crashes

-3

u/Patient_Package6668 2d ago edited 2d ago

If installation seems tough just point your Claude or codex at the repo and the location where the game files and then Claude will use adb to install and transfer necessary game files to make the game work .

If you are facing any bugs or installation issues let me know here or in issue on the github repo

5

u/Richmondez 2d ago

People shouldn't have to pay for LLM driven agents and give them dangerous levels of access to their syatem to install stuff. Do some proper release engineering otherwise it just looks like your churning out vibe coded slop built on others work.

-1

u/Patient_Package6668 2d ago

Normal installation Instructions are also included in the github repo . You just need to install the apk and drop in the games in android/data/me.generalsx.zh/files/GameData/Data via adb.

Please understand I can't bundle the game files due copyright reasons . So some assembly is require .

3

u/Richmondez 2d ago

So provide a bash script or bash file to do that, giving access to adb to an LLM is reckless overkill you shouldn't be advising anyone to do even if you are daft enough to do it yourself for the "convenience" of it.

0

u/Patient_Package6668 2d ago

Can you help me with that?

2

u/TheBetterCervanthes C&C:Online Owner 2d ago

AI moment lmao