Malicious hidden in root partition


Question

Hello everyone :) excuse me for creating a new thread but i couldnt find any info on this matter.



As a gift, my parents brought Samsung galaxy s4 from someone i dont trust who sells it. I factory reset the phone thinking its enough to clean everything.
After a while i feel unsafe because the person knows things out of nowhere and i found out many $py software are more advanced now that its installed via root and very stealth.



I read wiping the partition and flashing the rom could help. But limited to only boot, data, cache, system while other such as /misc, /recovery remain the same?



What if its hidden in there. i want to make sure just to be safe. On a side note the person is a techie and also know im careful and observant.



Whats your suggestion on this?



Please help. Any inputs will be very much appreciated. :(
Thank you in advance.


Answer

You'll need to "flash" the firmware on the phone to stock firmware to overwrite everything (including system files) that you had on it before.



Go to http://www.sammobile.com/ and enter your device model number. You'll be directed to a long list of each country variant of every Android version made for the device. If you have a preference for version, (AKA you hate 5.0 Lollipop), then download 4.4 Kitkat. This is a good 3 hour download, and you may have to download it multiple times before you get a perfect download (MD5 matching file). Also, sammobile requires you to sign up before you download. It's not a big deal, I used my real e-mail.



You will then download Odin v3 from XDA onto your computer as well as the Samsung USB Drivers (Official link) and install each.



Boot your phone to Download Mode (by pressing Power + Volume down) and hook it up to your computer. You'll then click on the PDA button in Odin and find your .tar file. If your download is a .zip you'll have to extract the zip. If you're below Windows 7, the zip extraction wizard will appear to have frozen for about 10 minutes. It takes much longer than usual with a single .tar file.



Make sure all the checked boxes are as so:



Odin screenshot



..And flash!



When finished, it may or may not boot right up! If not, go into stock recovery (by pressing Power + Volume up) and "Clear Dalvik Cache". Now, your phone should be up and running. If not, clear data as well.



Hope this helps!


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