It is safe to play online when you have a mod installed on your device. Actually, you are protected from hacking by third-party programs or code injection by mods. On top of that, there is no way for someone else to detect that you are using a mod on your Android device or PC; if anyone asks why you are so great in Earn To Die 2 then just tell them you are a pro gamer instead.