The title says it all, this is not a permanent solution. Just a workaround until Chainfire fixes the SuperSU to work with these newer China devices. If your device is stable and all, please don't proceed. Though this is for DOptima2 A130, it could work on other rooted L5.1/22 devices. If your Optima2 isn't rooted yet,
get it rooted.
Till SuperSU is fixed, we'll use ToggleSU, a little apk I made to toggle "suability". It doesn't offer any advanced features you get from SuperSU or any other superuser apk. It doesn't even prompt you if an app asks for permission. To toggle su is all ToggleSU can do. Before proceeding any further make a full backup of your device. Just backing up /system/xbin/su would be enough, but I can't guarantee anything.
Unzip
this archive to /sdcard/togglesu
This is NOT a flashable zip, it just contains some files that we'll be using to install ToggleSU.
Then connect your device to an adb configured computer. Avoid trouble, use Linux. :)
Open an adb shell, then issue the following.
su
and ONLY IF this succeeded and you got a root shell like the image below, continue. Otherwise, you have either denied SuperSU or your root is broken. Get it fixed first.
Disable SuperSU using Settings > Apps > All > SuperSU > Disable
(Yes disable it, we won't be needing it anymore)
Now in the root shell, issue the following.
cd /sdcard/togglesu
chmod 751 installsu
./installsu
If it returned nothing, you're ok. Otherwise, something went wrong. Restore from backup if necessary.
Now exit the root shell, and disconnect the device from the computer.
Open your file manager, install the apk in /sdcard/togglesu/
If everything went alright your suability should toggle when you press the Toggle button. Test it a few times using the adb shell, or terminal emulator.
Unlike SuperSU this cannot prompt you when an app asks for root access. Instead you'll have to toggle the lock before running that app.
It's still a beta, so... tell me if anything goes wrong. Such simple app can't go wrong but you know.. :D
PS: A root app should be opensource, so does everything else. Here's the
source.
PPS: Delete the /sdcard/togglesu folder if you don't need it anymore.