Well, I think that the most difficult person to Brazil remain portuguese would be Pedro. If he had died still young the situation could be different. D. Miguel was an absolutist, and he, like his mother, didn't liked Brazil as his father or his brother. So, without the influence of Pedro, any movement for independence would be weaker. If even this way, there was people rising against any intention of Portugal to turn Brazil in a colony (assuming brazil had gotten the status of kingdom), they would probably had to fight a war of independence, because D. Miguel wouldn't freely give them Brazil.
Another way of Brazil remaining portuguese and still have the royal family in Brazil (withou killing D. Pedro), is to cut down on several laws. When the royal family and the court arrived in Brazil the only thing common to the various capitanias was the language, and even that was a weak link. The capitanias (I'm not certain if that status still existed at this time, but nonetheless the Brazil was "mentally divided") didn't had trade links, cultural and such. Many of them had more in common with Angola than wich other. So if D. João VI never approved the law wich allows the capitanias to trade between them, they never could start exchange cultural, linguistic and even economical links. The other act wich maintains the burgoise out of the independence fight is the one that opens the Brazilian ports to the international commerce. That way the only people with business in Brazil would be portuguese, we never would saw the appearance of a brazilian business class and international ideals such as liberalism and economical powers with interest in brazilian riches would never touch the colony.
Third cenerio to mantain Portugal and Brazil together but with a change in the status quo would be Pedro to never give the imperial crown to his son Pedro II of Brazil, win the Portuguese civil war and once afain don't abdicate in favor of his daughter. The liberals in Spain in 1826 asked Pedro become their King. This way Brazil would certainly belong to the same country as Portugal (Who doesn't want to belong to such great Empire?), but it wouldn't be his colony nor a kingdom joint with him. BTW, this would be a great TL.
Another way of Brazil remaining portuguese and still have the royal family in Brazil (withou killing D. Pedro), is to cut down on several laws. When the royal family and the court arrived in Brazil the only thing common to the various capitanias was the language, and even that was a weak link. The capitanias (I'm not certain if that status still existed at this time, but nonetheless the Brazil was "mentally divided") didn't had trade links, cultural and such. Many of them had more in common with Angola than wich other. So if D. João VI never approved the law wich allows the capitanias to trade between them, they never could start exchange cultural, linguistic and even economical links. The other act wich maintains the burgoise out of the independence fight is the one that opens the Brazilian ports to the international commerce. That way the only people with business in Brazil would be portuguese, we never would saw the appearance of a brazilian business class and international ideals such as liberalism and economical powers with interest in brazilian riches would never touch the colony.
Third cenerio to mantain Portugal and Brazil together but with a change in the status quo would be Pedro to never give the imperial crown to his son Pedro II of Brazil, win the Portuguese civil war and once afain don't abdicate in favor of his daughter. The liberals in Spain in 1826 asked Pedro become their King. This way Brazil would certainly belong to the same country as Portugal (Who doesn't want to belong to such great Empire?), but it wouldn't be his colony nor a kingdom joint with him. BTW, this would be a great TL.