How to close open network ports on Android phone...?

Hello there, after I installed a suspicious app and after my router was hacked locally, my android device is also being hacked and after using fing I have found there are many open ports and after tracing my ip address I have found there are some routers and devices connected to my device and the data is routed to them so please can you tell how to resolve this and to close open network ports here and remove the hidden connected routers and other devices...!?

Tagged:

Answers