I want to know is there any kind of solution so that we cannot be hacked from trust wallet?
The only solution is to stop using it. It has 10 million downloads, but check their WalletScrutiny results:
NO SOURCE FOR CURRENT RELEASE FOUNDA wallet that claims to not give the provider the means to steal the users’ funds might actually be lying. In the spirit of “Don’t trust - verify!” you don’t want to take the provider at his word, but trust that people hunting for fame and bug bounties could actually find flaws and back-doors in the wallet so the provider doesn’t dare to put these in.
Back-doors and flaws are frequently found in closed source products but some remain hidden for years. And even in open source security software there might be catastrophic flaws undiscovered for years.
An evil wallet provider would certainly prefer not to publish the code, as hiding it makes audits orders of magnitude harder.
For your security, you thus want the code to be available for review.
If the wallet provider doesn’t share up to date code, our analysis stops there as the wallet could steal your funds at any time, and there is no protection except the provider’s word. [emphasis mine]
I think it's unintended, but the reason you probably don't want to use it is in their name:
'trust'.
You have to
trust the provider, instead of being able to verify that its codebase is even secure in the first place.