• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root TWRP - Spectrum

Neph81

Android Expert
Mar 3, 2012
1,399
823
Wisconsin
I got bored and did more reading. Thanks to TDM and D2A, I'm actually able to compile stuff on my own. Here is the fruit of that info.

*Link removed. Use .zip updater as it contains the corrected graphics version.*

The graphics colors are off and I'm still working on fixing that part, but everything else appears to work. Once I have a functional copy with the correct colors, I will post an update.zip file for people to use.

If any brave souls want to test it out and give me feed back, please feel free to do so.

EDIT:

The file is now in a .zip format that you can flash from CWM. As stated elsewhere in the thread, once you get into TWRP, go to Settings -> and put a check on "Use rm -rf instead of formating". This is just a safety precaution until I can do more testing on formatting.

As it stands, ADB fully works, but "mount USB" does not. Changing the init settings did not fix this problem, so I am going to assume what D2A is true about the lun and this will not be a problem I can fix.

If anyone runs into issues, please let me know, and I will see what I can come up with.

Http://androidfiles.massivefilehost.com/twrp/Spectrum_TWRP.zip
 
I got bored and did more reading. Thanks to TDM and D2A, I'm actually able to compile stuff on my own. Here is the fruit of that info.

http://androidfiles.massivefilehost.com/twrp/spec_twrp_adb_badgfx.img

The graphics colors are off and I'm still working on fixing that part, but everything else appears to work. Once I have a functional copy with the correct colors, I will post an update.zip file for people to use.

If any brave souls want to test it out and give me feed back, please feel free to do so.

Including USB mass storage? Not a huge deal but it's really convenient. :D
 
Upvote 0
Including USB mass storage? Not a huge deal but it's really convenient. :D
USB Mass storage does not seem to work at this point. This is most likely just an init script issue. Once I tackle the color issue, I will look into the mass storage issue. TWRP does allow for charging while in it, which is a major plus for anyone doing work with backups/recovering.
 
Upvote 0
+1

That's why it'd be a great change for the better, at least for me, if it was working in this recovery. :)
I've had this issue on other phones that I maintained recovery images for. When a device has multiple USB modes available, and are switchable, at least on LG devices, it seems the lun file which is what the recovery uses for USB Mass Storage is only present when the device is in USB Mass Storage mode, and then rebooted into recovery. I never found a fix. I'm not sure if there is one.
 
Upvote 0
I f***ing love twrp. Being able to name backups before you start and being able to stack flash zips is awesome.

fwiw, you could do this through ROM Manager premium as well. Been an option for ages, you just need to enable "advanced options" in settings for the app.

...but yeah, TWRP made it a heck of a lot easier and I suppose the "free" bit is attractive to many. I'll likely switch to it myself once the issues are ironed out. I do like that it can be themed...just wish there were more themes available.
 
Upvote 0
Ok, so, I've done the impossible and gotten mass storage to work in TWRP. The problem is that you need adb and to access "setprop" on the /system partition to get it to work. I tried moving toolbox and setprop to the recovery partition, but they still come up as file not found. If any devs want to give me a hand here, it would be appreciated. I need a way to change "persist.sys.usb.config=" from adb to mass_storage,adb and I don't want to set it in build.prop as that would auto mount the device any time you went into recovery and could potentially lead to SDcard corruption. Any thoughts would be appreciated.
 
Upvote 0
I'm going to be gone for most of the weekend, so I'm leaving this hear in case someone wants to work on it.

http://androidfiles.massivefilehost.com/twrp/spec_twrp_mswip.img

Flash this to your phone, boot into twrp and do the following two adb command from your computer:

adb shell mount system
adb shell "/system/bin/setprop persist.sys.usb.config mass_storage,adb"

This will mount your phone as a USB drive. There is no good way to turn it off without rebooting. Remember to eject the drive in windows BEFORE rebooting your phone or even attempting to do a backup/restore. Two things writing/reading your sdcard at the same time could lead to corruption of the card. You have been warned.
 
Upvote 0
I'm going to be gone for most of the weekend, so I'm leaving this hear in case someone wants to work on it.

http://androidfiles.massivefilehost.com/twrp/spec_twrp_mswip.img

Flash this to your phone, boot into twrp and do the following two adb command from your computer:

adb shell mount system
adb shell "/system/bin/setprop persist.sys.usb.config mass_storage,adb"

This will mount your phone as a USB drive. There is no good way to turn it off without rebooting. Remember to eject the drive in windows BEFORE rebooting your phone or even attempting to do a backup/restore. Two things writing/reading your sdcard at the same time could lead to corruption of the card. You have been warned.
I'll try to take a look at the code later see if I can get something working with the gui
 
  • Like
Reactions: brianmaedche
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones