Malicious Virus/Trojan on my phone, hard to remove


Question

I have been recently concerned about a malicious software on my phone, basically - the trojan/virus acts silently in the background, it increases battery drain, gives regular (and system apps) overpowered permissions and installs 'icon' programs that are a link shortcut to a possibly malicious website which I would rather not like to open.



The built-in browser is like an infected zone in which I do not go because its filled with ads, fake 'virus' warnings for every site I open.



Some of the recent 'icons' that have been downloaded are named 'loopscoop' and a what seems to me - possibly named Japanese or Chinese game, can't really tell by the letters. Here are the images.



INFO: Factory resets did not work, nor did Malwarebytes or any other antivirus detect it. It's a VIVAX FLY 3 phone.


Answer

Those malwares install as system apps and cannot be removed by uninstalling as regular apps, even hard resetting won't get rid of them.
The only solution is either to flash the whole phone or manually remove the aps with ADB shell but root privileges is a must. You need also to know the package name of the app.




  • Root your device


  • Install USB drivers for your device


  • Install BusyBox (adds extra commands that help with sticky malwares that even root can't uninstall, such as those with immutable attribute...)


  • Install Minimal ADB and Fastboot


  • Enable USB debugging (Settings > About > Hit 7 times on build number > Back in settings > Developer Options > USB debugging)


  • Connect the device with USB cable then open minimal ADB and Fastboot.


  • A Windows terminal should comes up.
    type adb devices : Displays some serial numbers which means the phone is detected.


  • Type su : To get root privileges. Check on the phone screen for any prompt.


  • Now mount the file system as read-write: mount -o remount /system rw


  • Now go to the app folder: cd /system/app then list all installed apps: ls


  • Now simply delete any suspicious app with rm malwareName.apk




Note: You may encounter with malwares that refuse to be unistalled. This is where BusyBox comes to the rescue.




  • First check for their attribute: lsattr


  • Those which can't be removed should have the immutable attribute, therefore even root cant delete such file.


  • Clear the immutable attribute : chattr -i *.* or specifically chattr -i malwareName.apk


  • Now you should be able to remove that malware.




Hope this helps you.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes