Rooting Stock Wileyfox Spark CM13 OS


Question

Has anybody in this world ever succeeded rooting this device? Tried, all One Click apps, Desktop Tools, Recovery Flash:




  1. Kingroot says Not Adaptable

  2. Kingoroot says Error code 0x00...

  3. Others say try Desktop version after fail

  4. TWRP SuperSU.zip package says exiting process after judging a lot of options

  5. All desktop apps fail same way or the other



What do a person do after all these attempts?



While closely inspecting the file system in /data I found out three files: a .gz archive of stock boot.img named by the md5sum of its content .img 16MB, SuperSU.img 99MB, and SuperSU.apk 6MB. Why the hell could the developer put the files here and device never seems to use any of these files at all?



@Izzy, your suggestion about trying was a good one but i have tried all the SuperSU zips by Chainfire and all the phone ends up in this state: In fact, the phone is unlocked, TWRP says this no matter which file I use trying to root (first screenshot); additional suggestions about a special CMSuperSU also ends up with this (second screenshot; click images for larger variants):



installation progress progress CM SU



And Magisk install completes well from recovery. On boot up Magisk app shows but as a user installed app. And prompts this which becomes unsuccessful too:



Magisk install Magisk app prompt store item not found


Answer

Rooting can be accomplished using Magisk (make sure not to use an old version, but that from the linked XDA thread: v14 at the time of this writing). Flashing Magisk will not modify the /system partition but rather create a modified boot image. So at boot time, Magisk gets initialized, creating an Overlay File System on top of the system structures. That way the relevant files get (re)placed transparently, the checksum of the partitions are kept (thus OTAs will not complain), while still applying the needed modifications (including MagiskSU). Another added plus is the capability of Magisk to hide root from apps which otherwise would refuse their work.



As you've learned: Do not flash another superuser package on top of that. Magisk already includes root, called MagiskSu.



I'm using Magisk on my Wilefox Swift with CyanogenOS 13 without issues – same manufacturer and OS as your Spark. As we figured, it works on both.



Magisk comes with an app called MagiskManager (which is also available separately e.g. via my F-Droid repo. This is the frontend to work with the framework, including settings for MagiskSU (i.e. where you maintain which app may use root powers) and more. So there are several Magisk modules available, similar to what you might know from Xposed – even a "systemless Xposed" can be used that way (again, I'm using this and it works fine).



For instructions, please see the linked Magisk thread at XDA. It's quite simple. To include the basics: You need a custom recovery (TWRP is recommended, and available for our Wileyfox devices). With that, and an unrooted ROM, simply flash Magisk, reboot, and you're done. You probably need to repeat this after applying OTAs. As the MagiskManager is installed as an user app, its data are kept unless you perform a factory reset.


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