You could play the first two levels. But then, a cruel screen appeared: "Full version locked. Enter Unlock Code."
Many users type random numbers like #1234# or *#7098# out of desperation. Those are for unlocking the phone’s network (SIM lock), not the game. Castle of Magic uses a DRM system that generates a unique challenge key based on your phone’s IMEI. When you launch Castle of Magic on the Samsung B313E Top and select "Buy" or "Unlock," the game displays an 8-to-16 digit alphanumeric string. This is the Device ID or Challenge Code . unlocking code for castle of magic for samsung b313e top
The algorithm to convert this into the correct is a proprietary checksum known only to Gameloft's old activation servers (which have been offline since 2014). You could play the first two levels