PC/WI: surviving Malacca Sultanate

Is it possible to have the Malacca Sultanate, which controlled the Malacca Strait, survive up until at least the end of the modern age without splintering into feuding successors or being conquered by an european power?
 
A surviving Malacca sultanate would also butterflied the Spanish colonization of the Philippines..that would be good.
 
By Portuguese conquest in 1511 the sultan of Demak in Java was already planning his own conquest of Melaka, and Demak's resources were far greater than anything Melaka could field.

If Melaka miraculously survives Demak's attack, then it has to contend with the rise of Aceh, which was much better positioned to take advantage of the dramatic increase in Indian Ocean trade as well as Ottoman military advances.
 
Top