Related
5.1.1 [DOK2] Setup [Debloated & Systemless Root] [Viper4Android][Bettery Battery]
I have seen a few people having issues with the DOK2 update and were looking for a step by step process of how to upgrade to the new firmware and optimize it to get goo performance. this thread will guide you through that process as well as link to the appropriate threads to download and get the needed files/add ons.
*****This process will wipe your phones internal storage and give you a clean install of the new firmware.
Step 1: Download the DOK2 firmware to your PC
There are a few places you can get this from:
Sammobile: N910T Firmware
Or XDA thread: Stock TW Firmware/Bootloader/Modem N910TUVU2DOK2 UNMODIFIED Mirror
(You will need the entire firmware not just the modem and baseband)
Step 2: Download ODIN to you computer
From ODIN DOWNLOAD: ODIN 3.10.7
Step 3: Odin Flash new firmware.
The download from Sammobile or Mega should be a .zip file. you will need to unzip that file to find the .tar file which is what you will use for ODIN flashing the firmware.
If you need help using Odin to flash the firmware check out this post on Android Central: Help Thread
After you have completed the Odin Flash the phone should reboot and come to the setup screen with your new firmware.
Step 4: Odin Flash TWRP
Download TWRP to your computer: TWRP Downloads
Specifically you want this file: twrp-2.8.7.0-trltetmo.img.tar
Use Odin to flash TWRP recovery onto your device.
If you get lost you can check this tutorial: ODIN Help
Step 5: Reboot your device and setup
Once you have rebooted go ahead and set up your device. we will worry abou debloating and getting root after your device is setup.
Step 6: make a backup in TWRP
Once your device is setup make a TWRP backup of your setting
Step 7: Getting Root
*****Update: New SuperSu 2.64 beta. Works even better with Samsung phones. *******
You will need the latest SuperSU beta from the below thread.
SuperSU Beta Systemless Root
Newest version is 2.64
You will then boot into TWRP and flash that zip in recovery. This will give you "Systemless Root"
Systemless root allows you to use the stock kernel with SE LINUX enforcing, but still be able to use root apps. However this is not complete root. Some root apps that need to modify the system will not work. this is just a BETA root and is not final yet. check back to that thread for updates as they come out.
Once you have flashed the SuperSU zip reboot your device and verify your root apps are working.
Step 8: DeBloating TW.
There are 2 options for debloating TW.
Option #1: V3.90 Debloater V3.90 DeBloater
This option works on both rooted and unrooted devices. It really is a program that uases ADB to allow you to FREEZE system apps. This will not allow you to completely delete the application with Systemless Root.
The OP has a TON of detail and walks through this process of how to uses his program.
Option #2: [Script]Touchwiz De-Bloating Script and Gapps ~ 222 Apps
http://forum.xda-developers.com/not...pt-touchwiz-bloating-script-222-apps-t3258537
This Option removes 222 applications. It is a simple download and flash in recovery process.
****HOWEVER This will remove some functionality of the device READ the list of application before you flash to make sure there are not any that you use. The OP also has instructions on how to modify the script if you want some application to not be removed.
Step 9 Viper4Android on Systemless root.
Download the Viper4 Andriod/Beat installer
Viper4Android w/ Beat Audio
Flash the installer zip in TWRP and reboot your device
Download BusyBox Installer
BusyBox by Stephen (Stericson)
Install BusyBox
Reboot
install Viper$Android Drivers
Reboot
Download both the Viper4Android SU policy fixes
1.) ViPER4Android-supolicy.zip
2.) XM_V4A_Fix_by_androidexpert35.zip
Reboot into TWRP and flahs both of these. you can flash them at the same time just to them in the order above. [1 then 2]
Reboot the device and enjoy V4a.
******Also the Beat portion of the zip is a bit wonky sometimes. I have not yet been able to get it to opperate effectively, so you may want to disable it or freeze it with Titanium backup.
Disclaimer: NONE of these zips are mine. I am posting download links from my mega, because I pulled these files from 3 different threads and only one was from an OP. the main Viper4Android /beats install zip comes from here : [SUPER MOD][4.3+/6.0][ v6.2 ] XTREMEMusic™ THE SOUND THAT YOU'VE NEVER HEARD!
*************************************************************************************************************************************************************************
With this setup I have easily gotten more than a days worth of usage. I average about 5.5 hours of SOT and 24 hrs between charges. Normally I plug in around 20 hours with about 40% battery left.
*****These are all items developed by other XDA USERS. Please provide the thanks on their respective threads as well.
Thanks for taking the time for this write up. I don't have much experience with the new systemless root. I was wondering since the steps you mentioned above doesn't require any pre-rooted steps if there is any way of getting root without triggering Knox. I know in the past you can do this with Android 4.x, however since I'm currently on the latest boatloader there is no going back. I understand many don't care about Knox, but since my replacement and having Knox intact, I'd thought it might be worth my while since systemless root seems to be the future for new Android releases. Also I've been running stock for the last few months and the experience has been pretty good, though I miss some of the conveniences of having root.
James62370 said:
Thanks for taking the time for this write up. I don't have much experience with the new systemless root. I was wondering since the steps you mentioned above doesn't require any pre-rooted steps if there is anyway off getting root without triggering Knox. I know in the past you can do this with Android 4.x, however since I'm currently on the latest boatloader there is no going back. I understand many don't care about Knox, but since my replacement and having Knox intact, I'd thought it might be worth my while since systemless root seems to be the future for new Android releases. Also I've been running stock for the last few months and the experience has been pretty good, though I miss some of the conveniences of having root.
Click to expand...
Click to collapse
This method is for root only. It requires installing TWRP which is a custom recovery. That means you will have to unlock the bootloader to be able to use this method. Once you unlock the bootloader (by Odin flashing TWRP) you have already tripped Knox. Knox is no big deal from what I have heard though. I have not heard of anyone getting denied a new phone because it was tripped.
The two main reasons to use this method are:
1.) It keeps the system intact, which allows you to use apps that check for root. (eg. Android Pay, Some Bank Apps etc)
2.) It allows you to use the stock kernel from 5.1.1. Currently the only way to get root on 5.1.1 and up is to install a custom kernel. Which is fine, and there are two really great option available with Emotion and Beast Mode, but I find the stock kernel gets me the best battery life and is the most stable.
ALSO this will be the way root is done going forward. 6.0.1 has a bunch of system file locks that prevent much of the system tinkering from happening. Chainfire (dev who built SuperSU) has a nice right up about the system partition on XDA right now explaining why some of the system tweaks we were used to will not be possible in the future. so at the very least this is good practice for getting ready for the Marshmallow update.
ShrekOpher said:
Step 8: DeBloating TW.
There are 2 options for debloating TW.
Option #1: V3.90 Debloater [http://forum.xda-developers.com/android/software/debloater-remove-carrier-bloat-t2998294]
This option works on both rooted and unrooted devices. It really is a program that uases ADB to allow you to FREEZE system apps. This will not allow you to completely delete the application with Systemless Root.
The OP has a TON of detail and walks through this process of how to uses his program.
Option #2: [Script]Touchwiz De-Bloating Script and Gapps ~ 222 Apps [http://forum.xda-developers.com/not...t-touchwiz-bloating-script-222-apps-t3258537]
This Option removes 222 applications. It is a simple download and flash in recoevery process.
****HOWEVER This will remove some functionality of the device READ the list of application before you flash to make sure there are not any that you use. The OP also has instructions on how to modify the script if you want some application to not be removed.
Click to expand...
Click to collapse
Witch option is the easier? :silly:
Avide said:
Witch option is the easier? :silly:
Click to expand...
Click to collapse
Option #2 is WAY easier as long as you don't want to modify the script. You just download it to you phone boot into recovery and flash it. Then reboot. Takes 5 min.
ShrekOpher said:
This method is for root only. It requires installing TWRP which is a custom recovery. That means you will have to unlock the bootloader to be able to use this method. Once you unlock the bootloader (by Odin flashing TWRP) you have already tripped Knox. Knox is no big deal from what I have heard though. I have not heard of anyone getting denied a new phone because it was tripped.
Click to expand...
Click to collapse
Appreciate your reply. I was under the impression that the boatloader is already unlocked which is why we can flash a recovery without jumping through too many hoops. I know that a custom recovery trips Knox, but if there's a way to install the latest supersu through a utility such as flashfire or mobile odin, Knox won't be tripped.
I'm not really worried about warranty, just curious to see if it's possible to retain the integrity. Unfortunately both those options I mention requires the device to already be rooted which defeats what I'm trying to accomplish.
Hopefully someone will be able to figure something out in the near future.
Is it possible to use xposed with this?
So Shrek you've made the total move over?
I am holding off, althoguh i dunno for how long , because i need darker theme colors. do you know of any options?
masri1987 said:
So Shrek you've made the total move over?
I am holding off, althoguh i dunno for how long , because i need darker theme colors. do you know of any options?
Click to expand...
Click to collapse
Unless there is a feature in 5.1.1 that you MUST have, I would wait. I don't find anything to be significantly better on 5.1.1 vs. 4.4.4, but the battery life is much worse.
chodaboy19 said:
Unless there is a feature in 5.1.1 that you MUST have, I would wait. I don't find anything to be significantly better on 5.1.1 vs. 4.4.4, but the battery life is much worse.
Click to expand...
Click to collapse
Well i'm on 5.0.1 right now pop rocks, so yeah i probably will wait since there isn't a particular feature... i'm using the DOK2 modem on COD6 rom right now.
Is there a list of apps you should disable via the debloater specific to the tmobile note4?
masri1987 said:
So Shrek you've made the total move over?
I am holding off, althoguh i dunno for how long , because i need darker theme colors. do you know of any options?
Click to expand...
Click to collapse
There is no dark theme option as of right now, really it's the only thing i miss.
Will Rickards said:
Is there a list of apps you should disable via the debloater specific to the tmobile note4?
Click to expand...
Click to collapse
The list of apps on the "Debloater Script" (Option #2) thread is a great reference.
I tried everything exactly as indicated by this great guide, but I am still getting very poor battery life. I give up, I don't know what else to do.
I have googled and tried all sorts of suggestions from others with the same problem to no avail. Google Play Services and 5.1.1 have made my phone a useless POS. I guess it's time for a new phone. LOL
chodaboy19 said:
I tried everything exactly as indicated by this great guide, but I am still getting very poor battery life. I give up, I don't know what else to do.
I have googled and tried all sorts of suggestions from others with the same problem to no avail. Google Play Services and 5.1.1 have made my phone a useless POS. I guess it's time for a new phone. LOL
Click to expand...
Click to collapse
Do you ever use power saving mode? If you are in the stock kernel it can help a bunch. The phone operates just fine on it, if you are going to play a game or something you just turn it back off, but while your phone is in your pocket or laying around idle it keeps those background running Google services in check.
I'm normally getting about 6 hrs of SOT and about 24 hrs between charges. Below is where I'm at so far today. With about 2.5 hrs of SOT.
ShrekOpher said:
Do you ever use power saving mode? If you are in the stock kernel it can help a bunch. The phone operates just fine on it, if you are going to play a game or something you just turn it back off, but while your phone is in your pocket or laying around idle it keeps those background running Google services in check.
I'm normally getting about 6 hrs of SOT and about 24 hrs between charges. Below is where I'm at so far today. With about 2.5 hrs of SOT.
Click to expand...
Click to collapse
I think I found the culprit after 2 days of googling and countless wasted hours. My specific problem was that Media process was running all the time which in turn was causing Google Play Services to run at all times.
The Media process includes 2 packages: Media Storage and Download Manager. Together they perform scanning and indexing of media files on the internal SD and external SD.
I came across this page:
http://geeknizer.com/fix-android-media-server-scanner-sdcard-cpu-battery-drain/
I did step #3 which states that having more than 1,000 files in a folder makes this process crap out. I reformatted my microSD card, then I copied back all the files to the microSD. Then finally I deleted most of the pictures so that no one folder had more than 400 images.
I rebooted my phone and it started to behave normally. The Media Process only ran for 5minutes and stopped. Google Play Services ran for 2min and stopped. I have been through 1 charge already and got 5hrs or so of screen time with heavy use, I was installing apps, configuring accounts, freezing apps with Titanium backup, etc.
Overall, it seems like I have a happy ending to my story, BUT I will post a followup if the phone craps out again.
EDIT:
How do you get it to show the time on battery?
Mine doesn't have that information:
Does anyone have any interest in me adding how to set up Viper4Android on Systemless root to this thread? Just curious if I should go through the trouble.
There is a new version of SuperSU 2.64:
http://forum.xda-developers.com/showpost.php?p=64161125&postcount=3
Changelog:
20.12.2015 - v2.64 - BETA
- (systemless) Detect more boot image partition names
- (systemless) Blank partitions before writing to them
- (systemless) Ask to restore boot and recovery images on full unroot
- (systemless) Implement "uninstall competing superuser apps"
- (systemless) Samsung: prevent "KERNEL IS NOT SEANDROID ENFORCING" warning
- (systemless) Cleanup system install properly if present, fixes a number of possible bootloops
- ZIP: 6.0+: Detect firmwares that can reload sepolicy from /data and use system-based root on these ("allow init kernel:security { load_policy }")
- supolicy: Additional SELinux patches for M (reduced logging only)
- Update translations
ShrekOpher said:
The list of apps on the "Debloater Script" (Option #2) thread is a great reference.
Click to expand...
Click to collapse
Link to script isn't working. ..have another?
Sent from my SM-N910T3 using Tapatalk
AlexanderBlaQ said:
Link to script isn't working. ..have another?
Sent from my SM-N910T3 using Tapatalk
Click to expand...
Click to collapse
Should be working now. Thanks for the heads up.
wondering if anyone here is using Magisk and SuperSU and was able to get their LGV20 to pass SafetyNet? for some reason using the same exact steps as others who have this combination working on different devices, I can't get it to pass on the LGV20 and I have a feeling it might be due to the stock kernel. I wasn't able to get this to work on the LGV10 either and neither did the "Device Unlock" app provided by T-Mobile to perform a SIM unlock until I reverted back to a stock boot image.
Would be super interested to know this as well. Been researching this on and off all day. I read somewhere that there are modifications to kernels that can be made to report things back to Safety Net and not sure if any of the custom V20 kernels have this or not.
Was also looking into suhide as an option as well
All credit goes to @ZachJohnson for this after seeing his posted here: https://forum.xda-developers.com/showpost.php?p=70426738&postcount=1131
I downloaded the rootswitch app and using only that, I was able to pass SafetyNet checks and register my credit card with Android Pay. It was very hit and miss though.....took a number of tries. I have yet to make a purchase.
I should note that I have not downloaded suhide yet and wonder if that will help make it more consistent.
For reference, I am using a VS995 unlocked via dirty santa on a stock verizon 11A rom + konverged kernel. I have made small tweaks to /system such as modifying some sounds and disabling some apks via renaming them apk.bak.
That's awesome! I'm glad to hear that helped! ?
To elaborate a little... I was only trying to play Pokémon Go, I've never tried using Android pay. As I mentioned in that post you linked to, I stumbled across the Root Switch app.
Prior to that, I had flashed suhide and installed the accompanying suhide gui from the play store and it didn't seem to do anything for me. With suhide already flashed, I found Root Switch to work perfectly.
And in case it's relevant for anybody looking into this, I rooted with Dirty Santa on my VS995, flashed the US996 rom and konverged kernel, and am now running the VS995 modded NotSoStock rom with its kernel and this worked for me on all three.
I just rooted my phone using Dirty Santa and I'm on the stockish rom thats provided off they're thread.
Basically trying to get access to Snapchat, but won't allow me, I downloaded rootswitch off Asus (user) 1.3.3.2 but upon install I'm getting it interferes with already installed applications.
Any help is appreciated, I'm getting different answers on other threads but they're pretty outdated.
I'd try Magdisk I have the T-Mobile variant and it works quite well with it.
I would suggest Magisk as well. Some roms will support root switch, but other roms will have more recent security patches. Anything past Nov/Dec will result in rootswitch causing you to bootloop until you pull your battery... Magisk is very nice and smooth on this phone. But just make sure you leave nop traces of supersu installed or magisk most likely will fail to flash.
Im guessing you have a sprint phone??
Biff627 said:
I would suggest Magisk as well. Some roms will support root switch, but other roms will have more recent security patches. Anything past Nov/Dec will result in rootswitch causing you to bootloop until you pull your battery... Magisk is very nice and smooth on this phone. But just make sure you leave nop traces of supersu installed or magisk most likely will fail to flash.
Im guessing you have a sprint phone??
Click to expand...
Click to collapse
Yeahi have Sprint. Sorry I'm such a noob now. The last time I had root was back with my LG G3. I stepped away from root with my G5 and came back with the V20, and everything's so different now lol. So I'll download an Rom then that supports Magisk.
I installed super su on my Galaxy On5, flashed super su and rooted it with Odin too. Today i hit full unroot on supersu then rebooted and snapchat worked which told me it's been unrooted. Then figuring I'd be safe with installing magisk (since super su said it reverted to the stock image or something like that) I flashed magisk 13.3 but after it finished succesfully i rebooted but can't find anything magisk related installed on my phone. Could someone point me in the right direction?
Mike_77712 said:
I installed super su on my Galaxy On5, flashed super su and rooted it with Odin too. Today i hit full unroot on supersu then rebooted and snapchat worked which told me it's been unrooted. Then figuring I'd be safe with installing magisk (since super su said it reverted to the stock image or something like that) I flashed magisk 13.3 but after it finished succesfully i rebooted but can't find anything magisk related installed on my phone. Could someone point me in the right direction?
Click to expand...
Click to collapse
I had one time where I got Magisk working with the Superstarz ROM on the SM-G550T1. I don't remember what I did tbh, but it took hours of rebooting, frustrating hanging, etc.. Upon one of the Magisk modules I flashed after it did work, of course to my sadness it stopped working. Nandroid backups are so crucial and I just stopped making so many changes before a backup these days. Sure you can't speed demon through and get all your wildest fantasies to come true overnight, but I find making incremental progress with backups to me more sustainable. Anyways, I tried many times, many setups, and ultimately wasted many hours trying to "win" with this phone. I'd honestly highly recommend sticking with SuperSu by Chainfire as it has always just worked. That means no Android Pay, no Pokemon Go, and prolly others I haven't considered. I too wanted to have my cake and eat it... For Safetynet to pass and la la la. Truth be told, it is a royal pain in the arse!!! If YOU STILL DARE, you would definitely want to make sure you start with a stock ROM boot image and BACK IT UP #1. If you are using a custom ROM it may not allow you to fully unroot and go back to a stock img because it doesn't find one to revert to. For Magisk to pass SafetyNet and work at full capacity, you must start there. If you go to the trouble of going all the way back to stock, please upload one for all of us and make sure to include your phone/os specs from about phone. From stock, flash custom recovery BEFORE ROOT, within recovery back up boot, upload for us and yourself. Now, you have a legit revertible img to go back to in case you can't from Magisk/SuperSu. Phh's Superuser was a nightmare btw, never worked correctly. There's no way to unroot and go back to a stock boot img that I found unless you first back up from TWRP or custom recovery. Long answer, more than you bargained for no doubt, but hopefully something to be gained from. Really though... if all you want is for Snapchat to work and can live without Android Pay/Pokemon Go. Here's an easier method: uninstall Xposed, unroot, log into Snapchat (let it save a login token), root, re-install Xposed, Titanium Backup Snapchat, it should hold up from there. Did it once, forget if that's entirely right, but search and ye will find exact threads. I just said to hell with Snapchat, Pokemon Go, and Android Pay. I'd rather settle for Chainfire's Superuser's stability, Xposed (more mods), & less overall B.S. Sorry if that isn't the best possible answer, or what exactly you were sought. I did however want to share some of my experience (many, many, many hours of tinkering). All in all, I finally decided to order a new digitizer/lcd to repair an old OnePlus One that I have had laying around. I plant to fix it and migrate because I'll tell ya right now... ppl just aren't gonna do much more for this model than what you see out there. Perhaps I'm being a pessimist, but also realist... I've been waiting around looking for something to come, too lazy to attempt re-compilation of code myself, and no one else has yet. Magisk can be a nightmare to the ninth gate's extreme degree. It is possible, not saying it can't be done. Have patience, or it won't that's for sure. Just really have to mess up... lots of times... over and over, and over and over and over again. Learn, read XDA, and be stubborn/patient as hell until you get there. Document your progress so you know what you did and maybe you can help someone else. Other times it's more advantageous pick what matters, settle, and focus on something else. :good:
From my understanding you need a clean install, unroot with SU (or install SU as systemless (?)),wipe internal, and follow instructions to install Magisk... I'm not totally sure though, also install the Magisk module.
Mike_77712 said:
I installed super su on my Galaxy On5, flashed super su and rooted it with Odin too. Today i hit full unroot on supersu then rebooted and snapchat worked which told me it's been unrooted. Then figuring I'd be safe with installing magisk (since super su said it reverted to the stock image or something like that) I flashed magisk 13.3 but after it finished succesfully i rebooted but can't find anything magisk related installed on my phone. Could someone point me in the right direction?
Click to expand...
Click to collapse
I just successfully rooted with Magisk & modded a few things out with it, only issue seemz to be systemless xposed but ill crack that shell when need be . Let me know if any1 is in need of help doing the same.
woahOppO999 said:
I just successfully rooted with Magisk & modded a few things out with it, only issue seemz to be systemless xposed but ill crack that shell when need be . Let me know if any1 is in need of help doing the same.
Click to expand...
Click to collapse
Can you please share the steps you followed to root ON5 pro using magisk.
Also if you can list the modules u have from magisk.
Hey guys,
I wanna reinstall a custom rom on my Mi9T, but I need one with no root or a way to banking apps don't know that I'm on a custom rom. I always used custom rom in all my smartphones with magisk to pass in Safetynet, but now some baking apps don't work anymore, like C6 bank (digital Brazilian bank), and other shows a message that in a few weeks my device won't be able to use the app because it's not safe and not use the original rom. All these apps are in the magisk hide, the magisk it's up to date too, I tried everything and nothing works.
What do you guys suggest? I don't want to go back to MIUI and for me, I don't need the root/magisk on my phone, but I wanna continue to use a custom rom.
Thanks
rafaelsian said:
Hey guys,
I wanna reinstall a custom rom on my Mi9T, but I need one with no root or a way to banking apps don't know that I'm on a custom rom. I always used custom rom in all my smartphones with magisk to pass in Safetynet, but now some baking apps don't work anymore, like C6 bank (digital Brazilian bank), and other shows a message that in a few weeks my device won't be able to use the app because it's not safe and not use the original rom. All these apps are in the magisk hide, the magisk it's up to date too, I tried everything and nothing works.
What do you guys suggest? I don't want to go back to MIUI and for me, I don't need the root/magisk on my phone, but I wanna continue to use a custom rom.
Thanks
Click to expand...
Click to collapse
In the Magisk Wiki pages there are more hints how certain apps detect root and how to hide from, not only about Magisk hide
On the other side, to flash custom ROMs you need to have Bootloader unlocked. And that can be again a way for detecting 'root' (apps do not tell you exactly what unsafe they detected), hence you may again end up not being able to use your banking apps
To stay 100% safe in that cat and mouse game of "root" and detection, you should reflash stock, relock Bootloader and in future exclusively wait for OTAs to upgrade your stock ROM