yashsingh1/xdaforums huggingface dataset:
[T-Mobile Galaxy Note 4 Android Development] Orical:
I'm confused, I thought they patched this, interesting. I also noticed thise Rom doesn't have the read write to extsdcard fix, Might want to add that into it for those that don't know how to do it themselves manually.
[T-Mobile Galaxy Note 4 Android Development] siraltus:
This is Odexed, not Deodexed.
[T-Mobile Galaxy Note 4 Android Development] pathtologos:
Hey all. I'm new to the note 4. I'm currently on DOG1. Am I alright to flash this from where I am, or do I need to flash the stock COG2?

Thanks.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
You can clean flash it if you have an N910T, but I think DOG1 stock is better. If you are on N910T3, don't flash this.
[T-Mobile Galaxy Note 4 Android Development] pathtologos:
Thanks bro. U saved my ass...lol. U have any ideas/suggestions for a similar, stock, debloated, rooted ROM for N910T3?
[T-Mobile Galaxy Note 4 Android Development] dcwinc:
***Rooted Bloated Stock ROM for Note 4 SM-N910T3 (DOG1) Needed Desperately!!! ***

If anyone has one or can provide me a link to one ASAP, I would really appreciate it.

Thanks!
[T-Mobile Galaxy Note 4 Android Development] Fat Rat Bastard:
That's a link for COD6 and not COG2 as the poster was looking for. :p

If you've got a link for a faster source than sammobile, it would be most helpful. :good:
[T-Mobile Galaxy Note 4 Android Development] zounduser:
Yo, action memo isn't working. Which is to bad because I need it, I use it a lot

---------- Post added at 12:09 AM ---------- Previous post was at 12:08 AM ----------

Sorry wrong thread
[T-Mobile Galaxy Note 4 Android Development] Fat Rat Bastard:
Sorry, I'm a bit of a n00b, and it's ~5am where I'm at.

Why would one wipe the data? Isn't this the user data partition? :confused:

Shouldn't only the Dalvik cache, system cache, and the system partition be wiped?
[T-Mobile Galaxy Note 4 Android Development] funtimez:
did you fix the memory leak with this rom?
[T-Mobile Galaxy Note 4 Android Development] darkmandoose:
Do anyone know how to get xposed on this Rom
[T-Mobile Galaxy Note 4 Android Development] JoeGrimm:
So, I know that someone else already mentioned something about this, but there has been no response to them, so I'll ask, is there a fix for the sd card read/write problem for this rom? I would really like to keep using this rom, but not being able to write to my SD card is a MAJOR problem

Sent from my SM-N910T
[T-Mobile Galaxy Note 4 Android Development] pvsgh:
If you are rooted you can modify platform.xml to fix the SD card write issue, there are also some apps on play store which also fixes this issue.
[T-Mobile Galaxy Note 4 Android Development] JoeGrimm:
Thank you for your quick response, I actually just went in and edited the build.prop setting "ro.securestorage.support" and changed it from true to false and it fixed the issues, I was just about to edit my last post to let everyone know, when I saw your response

Edit: well apparently i was misinformed, changing the setting in the build.prop fixed the SD card issue in titanium back up only not sure why it worked at all, but the platform.xml edit did work for all app.

Thanks again [MENTION=4342818]pvsgh[/MENTION]

Sent from my SM-N910T
[T-Mobile Galaxy Note 4 Android Development] mmarcz:
Loving this rom. Have xposed and viper all installed running as they should.
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
Rom Update request

[MENTION=2562876]rmarinella[/MENTION] I love this rom, its light, speedy and great with battery life. Would you be able to create a similar ROM for the DOK2 update for the Tmobile N910T with stock kernel?

Thanks
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Ha! When did that hit? Yes, I will be updating, and making an N5 Express version too! Need a week or so though, busy with work. Look forward to having a stock kernel on 5.1.1! Thanks!
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
[MENTION=2562876]rmarinella[/MENTION] Thanks for your work sir. I look forward to this version of your rom. I am currently on the N5 Express and its great with just one hiccup, Sound Alive force closes anytime a notification or an adjustment is made to sound alive.
[T-Mobile Galaxy Note 4 Android Development] VeNuMuS:
Looking forward to this.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Should I create a stock ROM still? It seems there are already many DOK2 stock ROMs already available. The "stock" kernel won't work on a rooted phone. Closest one is BeastMode 1.11, based on DOG1.
[T-Mobile Galaxy Note 4 Android Development] hurtz777:
I would say go for it if you want to. I am running Overdrive's deodexed stock and flashed BeastMode v1.1.1 kernel and it didn't have the sdcard write fix or the Quick Connect and SFinder notification shade removed. The sd card fix was easy for me to fix but I don't know how to compile a SystemUI.apk to remove the stupid QC and SFinder notification shade.
[T-Mobile Galaxy Note 4 Android Development] JoeGrimm:
Yes you should, your rooms seem to work better and also seem to be more stable... atleast on my device

Sent from my SM-N910T
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
Id love to have a stock based rom with some debloating for real.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
OK, I'll put one together this weekend. No Mods, 100% debloated stock, with Beast Mode Kernel of course.
[T-Mobile Galaxy Note 4 Android Development] hurtz777:
Please be sure to include sdcard fix. Will you please make a flashable SystemUI.apk that has Sfinder and QC notification shade removed or include it in the rom? Thanks man.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Will come out as close to stock as possible. I will make a flashable of the modified systemui eventually. I like doing the easy stuff first. :)
[T-Mobile Galaxy Note 4 Android Development] vprasad1:
Have to find it but there are posts indicating Chainfire System-less Root works fine with DOK2 stock kernel.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Please do! I looked at 2.52, but that didn't fly.
[T-Mobile Galaxy Note 4 Android Development] vprasad1:
This post has a step-by-step with links to 2.62 (systemless)
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Will look at it, but not tonight. New Stock Deodexed-Bloated Posted in the OP. Enjoy!
[T-Mobile Galaxy Note 4 Android Development] rajil.s:
Can this DOK2 be rooted?
[T-Mobile Galaxy Note 4 Android Development] mike28:
No directly but you can just Odin twrp and flash away any roms and be rooted with the DOK base
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
This DOK2 Is rooted. Need to edit build.prop for passwords to be remembered.

Change ro.securestorage.support=true to ro.securestorage.support=false

ROM link with password fix included changed in OP.
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
[MENTION=2562876]rmarinella[/MENTION] THIS IS AWESOME! This is the one ive been waiting for. Ive been rocking your N5 Express but this is the one ive had my eyes on. Is the debloating similar to the one on the N5?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Yes, virtually identical.
[T-Mobile Galaxy Note 4 Android Development] blane3298:
does this have a note 5 look or stock note 4 appearence?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Stock Note 4, no mods except deodex, debloat and root.
[T-Mobile Galaxy Note 4 Android Development] socal-trucker:
I keep getting this. How do I get rid of it?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Can't. Your phone is rooted. That's the threat. Unless you uninstall Smart Manager.
[T-Mobile Galaxy Note 4 Android Development] DionWhite33:
WOW!!! This Rom is SUPER FAST!!!! Thank you sooo much! I put this on my wife's Note 4 last night. She was on 5.0.1 and had a few issues. I didn't flash the new firmware before flashing this Rom. I instead found the Bootloader and flashed ONLY that. Then I dirty Flashed this over 5.0.1 and after minutes it popped on and her apps were preloaded. I did clear out the Dalvik Cache and reg cache...just for smother sailing....But this is a BEAST of a Rom here...her phone is twice as fast!!!! Thank you againsoooo very much for the time you put in this!!!
[T-Mobile Galaxy Note 4 Android Development] timg11:
I have SM-N910T 5.0.1 N910TUVU1COD6 stock, rooted.

I'd like to update to the latest DOK2.

I have downloaded the files linked in OP:

SM-N910T_N910TUVU2DOK2_N910TTMB2DOK2_N910TUVU2DOK2.zip

Odin3+v3.10.6.exe.zip

twrp-2.8.7.0-trltetmo.img.tar

Deodexed_Debloated_DOK2.zip

It looks like this has everything since it is stock, but I want to confirm the following:

1) Wi-Fi calling

2) Tethering

3) supports xposed framework (I think de-odexed means it is xposed-ready, but want to be sure...)

4) stagefright fixed

So I can just follow steps 1 to 5 in OP, and be ready to go?

Data restoration. Since step 5 includes wipe and advanced wipe, restoring data will be needed. Other ROMs have cautioned about using Titanium Backup to restore system data (call history, SMS history, wi-fi networks/pw, etc).

Are there any concerns with this given this is stock? Can I just restore everything in the most recent Titanium backup including system data?

Will anything be missing?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Back up your calls and SMS with your Samsung Account. You can use Titanium for your non system apps. You should be in good shape. All features work. No idea on xposed. Personally have no interest in it, but I do know others have gotten it to work. Don't restore anything from system, we will both regret it!
[T-Mobile Galaxy Note 4 Android Development] symply:
I'm getting these weird notifications. A security Notice "unauthorized actions have been detected." Any idea's how to stop this notification? Or why I'm getting it?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Smart Manager notification that you're rooted. You can disable Smart Manager, but it does auto manage apps in background nicely after a few days. Older versions didn't do it as well.
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
You can also JUST disable or freeze SecurityLogAgent 4.1.9 using Titanium. This will freeze just that part of Smart Manager while allowing smart manager to manage apps in the background.
[T-Mobile Galaxy Note 4 Android Development] DirtySant0:
Apps I have frozen and still have full functionality

Here are the apps I have frozen, with the exception of wifi calling (since I don't use it), im able to keep full functionality of all my Note 4 apps and functions.
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
[MENTION=2987701]DirtySant0[/MENTION] is right. I neglected to delete SecurityLogAgent on the stock version. OP updated with new ROM link with SecurityLogAgent removed.
[T-Mobile Galaxy Note 4 Android Development] timg11:
I'm not sure how to back up calls and SMS to samsung account. What is the App that does that? I don't see anything like backup in "Galaxy Apps".

Under Settings / Backup and Reset, there is a check box for "back up my data" to Google servers, and a checkbox for Automatic Restore.

There is also a Settings / Cloud that seems to be logged into my Samsung account. When I click on "Storage usage", it says "Server Unavailable" and never provides any information. Under Sync settings it has "Calendar, contacts, Internet, and Scrapbook". Nothing about Calls or MMS, so I'm guessing that is not the right function.

Titanium Backup can back up calls and MMS to both binary as well as XML format. Would restoring from the XML be compatible?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
No problem:

Settings>Accounts>Samsung account>Backup
[T-Mobile Galaxy Note 4 Android Development] timg11:
Oops forgot to refresh the thread before posting this and missed your reply.

I found something: Under Settings / Accounts / Samsung Account / Backup

There are check boxes for Auto Backup, Phone Logs, Messages, etc.

They are all checked.

Under each of them it says "backup failed. Last Backed up Never". I touch "Back Up Now" at the bottom, but nothing changes. A notification displays "Failed to back up data. An Unknown Error occurred"

Going to Storage Usage pops up "Server is Temporarily Unavailable".

---------- Post added at 09:02 PM ---------- Previous post was at 08:48 PM ----------

So it looks like Samsung Account does not work for whatever reason...

Please help me understand what forms of backup/restore are compatible with this ROM. I'm moving from N910TUVU1COD6 rooted to this N910TUVU2DOK2 rooted ROM. I understand something is different about the system data storage, and the normal Titanium backup process doesn't work.

Could I use the backup from Kies 3?

Could I use the backup from MyBackup Pro?

Could I use the XML backup from Titanium? (separate operation to generate these)

Would Google restore my system data (calls,sms, mms, etc) if I have the "Back up my data" checked in Settings / Backup and Reset?

Can I use a TWRP backup?
[T-Mobile Galaxy Note 4 Android Development] timg11:
I'm confused on which is the stock ROM file and which is the modified.

From the OP:

Download the full firmware here: SM-N910T_N910TUVU2DOK2_N910TTMB2DOK2_N910TUVU2DOK2.zip

Download Odin by clicking here: Odin3 v3.10.6.exe.zip

Download TWRP Custom Recovery here: twrp-2.8.7.0-trltetmo.img.tar

Download Stock DOK2 ROM here: Download gives a 404 not found...

Link at the bottom of the OP:

New DOK2 Stock ROM

Download Link (links to file Deodexed_Debloated_DOK2.zip)

Which file do I flash in Step 3 (Stock) and which file do I flash in Step 5 (modified)?

The link to "Stock" at the bottom of the post seems to be the modified ROM with Deodexed_Debloated in the filename.

The link to the "full firmware" looks like a stock file name: SM-N910T_N910TUVU2DOK2_N910TTMB2DOK2_N910TUVU2DOK2.zip

I'm guessing the Deodexed_Debloated_DOK2.zip file is the modified file for Step 5 since the internal timestamps are later. The file inside the SM-N910T_N910TUVU2DOK2_N910TTMB2DOK2_N910TUVU2DOK2.zip is dated a month earlier.

Also, in step 3, it says "Find and Select the stock firmware *.tar.md5 file", and the SM-N910T_N910TUVU2DOK2_N910TTMB2DOK2_N910TUVU2DOK2.zip file does contain a single .tar.md5 file.

Step 5 says "Select Stock DOK2 File". So that must be the file "Deodexed_Debloated_DOK2.zip", which has been copied onto the Micro SDcard as a ZIP (not extracted) .

In conclusion, I think I now understand, but I was confused because the modified ROM is referred to as "Stock". It would be clearer to newbies if the specific file names were mentioned in the steps, instead of using phrases like "Stock", which in this case applies to both the original and modified firmware.
[T-Mobile Galaxy Note 4 Android Development] timg11:
One issue that still remains is on the boot screen, there are two lines of small yellow and red text warning something about the kernel.

How is that fixed/suppressed/removed?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
The only fix is unrooted stock. Only a modified kernel can be used with a rooted ROM. This changed in 5.1.1. Or, you could go back to an older ROM that is on 5.01. Not sure you'll be happy with it though, once you get to use all of the new features here, plus the superior performance, that 2 seconds at boot time becomes meaningless.
[T-Mobile Galaxy Note 4 Android Development] JDM Civic EG8:
Rom is running smoothly keep up the good work!
[T-Mobile Galaxy Note 4 Android Development] timg11:
Apologies for the noob question, but in a rooted environment with custom recovery, doesn't the developer have control of everything that happens from power on to home screen? In theory, couldn't someone find the code that displays that message and patch it out?

I'm not saying you are obligated to do that, but just in theory, if someone were motivated enough, there is nothing in 5.1.1 that makes that message display somehow a permanent part of the phone and not under the control of the software running on it?

I'm not worried about the 2 seconds, but more that it is a rather obvious sign of modification. Even a clueless employee at a T-Mobile store would see that, if I had to bring it in for an software-unrelated warranty item (e.g. I already had to replace one Note 4 for a defective power switch)
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
The question is not a problem. The message is generated by low level firmware that we don't have access to. Thats where the Galaxy Note 4 Splash comes from. Once it flips to the animated boot logo we have control. If you need to return to a T Mobile store, boot to download mode and Odin flash the stock firmware. We all have the same issues with that.
[T-Mobile Galaxy Note 4 Android Development] seraphyz:
The kernel message was patched with the latest 2.64 systemless root
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Are you running that on this ROM? Chainfire says that it needs to be on a virgin STOCK installation. But, maybe it works that's why I'm asking my friend.
[T-Mobile Galaxy Note 4 Android Development] MeatyCoins:
Installed the rom it's running smooth and great but I am experiencing my battery life dying faster than normal, any one else? input? thanks!
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
First cycle since flash, or recharged several times? Takes a while for all cache to get built, and that does eat CPU cycles. CPU eats battery. Usually after first overnight charge it is pretty well settled in.
[T-Mobile Galaxy Note 4 Android Development] timg11:
I've been running this ROM for two days. Everything seems fine, and battery life is unchanged. There were two unexplained events, though:

1) Yesterday while taking a photo, phone froze for a few seconds then spontaneously rebooted. Many other photos taken before and after with no

repeat.

2) This morning after charging overnight, phone was completely unresponsive to any buttons. Screen remained black. I used the power-home-volume key to start to enter recovery, and then canceled that for normal boot. It seems to be fine since then.

Also, there is a new icon in the notification area, but no notification appears to use that icon shape. Can anyone identify this:

[IMG="Mystery notification icon"]http://i.imgur.com/1Jjy9ZU.png[/IMG]

On my previous stock ROM, there were more options for wallpaper. I think I had Phase Beam, but that is not present. Can I restore it with Titanium?
[T-Mobile Galaxy Note 4 Android Development] seraphyz:
Yeah same for me on the battery side of it, I usually get around six hours on pop rocks and Tek but only around four on this, I think it may be due to a lack of various build prop initd tweaks and such things
[T-Mobile Galaxy Note 4 Android Development] i0423x:
The Symbol is the NFC on
[T-Mobile Galaxy Note 4 Android Development] qbanlinxx:
And it is a debloated rom, hence the missing wallpapers that he mentioned.
[T-Mobile Galaxy Note 4 Android Development] LoopDoGG79:
Anybody have the Odin flashable DOK2 baseband and bootloader?
[T-Mobile Galaxy Note 4 Android Development] DionWhite33:
Who has Xposed with this Rom? Im trying to find a compatible one for my wife's phone. I have Note Edge and its fine on mine... I rooted her note for and do her boot stuff for her but haven't had time to check all the forms on note 4 so any help would be appreciated. I just need to know what version zip to flash... I'm trying to feel and keep getting boot loops

---------- Post added at 02:40 AM ---------- Previous post was at 02:39 AM ----------

Not trying to feel...I tried a few and keep getting bootloops....tslk to text messed that up
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
You probably found it by now, but search the forums, it is out there.
[T-Mobile Galaxy Note 4 Android Development] LoopDoGG79:
I just took the dive, and Odin flashed the full stock ROM you provided. Worked like a charm buddy. [emoji2]
[T-Mobile Galaxy Note 4 Android Development] timg11:
Serious problem now. While using the phone, it just froze. It did not reboot. After battery pull, I tried to get into recovery, but nothing but short vibrations every 10 seconds or so. Screen remains black. Phone gets hot.

USB recognizes "SAMSUNG Mobile USB Composite Device " and Odin shows "<ID:0/004> Added!!" as if it is connected.

But nothing on the screen at all.

Update - after letting it sit for a while, I was able to boot into recovery. From recovery, I was able to reboot into Android. What could be going on? Are there any logs I could examine to understand the issue?

2nd Update: Could this be related to the "Real solution to emmc_read/write problems" issue?
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
[MENTION=5086692]notufatjesus[/MENTION] had a similar issue on our variant. He has it solved I believe.
[T-Mobile Galaxy Note 4 Android Development] timg11:
rmarinella, please look at this thread.

http://xdaforums.com/showpost.php?p=64552866&postcount=19

What do you think about the idea that the 5.1.1 ROM won't wipe memory so you have to go back to 5.0.1 Isn't flashing more up to Odin than code in the ROM?

This is getting too complicated. I don't want to go through this whole process of reflashing and manually restoring everything again, if the root cause is something else.

So others who have used your ROM and 5.1.1 N910TUVU2DOK2 are not having this problem? So it only affects certain Note4 units? It would seem that if the bootloader really corrupts memory and causes many problems, it would happen to everyone with a Note4, including those with stock TMO delivered OTA.

I'm wondering if I'm chasing the wrong thing..... I have never seen the emmc error. Maybe other things can cause freeze/reboots and failure to boot (even into recovery or download?).
[T-Mobile Galaxy Note 4 Android Development] seraphyz:
99.9% of the time any issues are caused by user error, read up and learn the right way to do things and youll never have a problem
[T-Mobile Galaxy Note 4 Android Development] rmarinella:
Not sure about number one. Have you changed anything, kernel, CPU governors, etc? OOBE (Out Of Box Experience) is pretty flawless for most users.

One number two, I guess occasionally I have to do a reboot, usually after a day or two.

NFC icon has already been answered. You can shut NFC off if you don't use it.

I deleted the stock live wallpapers, Phase Beam and Noisefield. I will upload a flashable to restore them.
[T-Mobile Galaxy Note 4 Android Development] timg11:
No changes to anything low level or system level. Just installed the ROM, and restored data (except system data).

I had a couple bad crashes since this message, where the phone would not reboot. It would not go to download or recovery either. It would just vibrate every 10 seconds or so while I held down the buttons. After several battery pulls, it finally went into recovery, and then booted just fine. I think it is some issue that causes the screen to be blacked out, so it really was booting into recovery or DL, but I couldn't see anything. I'm unsure how that black-screen state persists after power-off and battery pull. Since Tuesday the 29th, it has been running fine, so I don't know if has "gotten over" whatever was causing the freeze/reboot/black screen, or there is still some latent issue waiting to bite me again.

I downloaded a Phasebeam app which is fine, so no need to make anything to restore it (at least for me).
[T-Mobile Galaxy Note 4 Android Development] eessel:
I was having a problem connecting to Netflix because I was getting stuck at the splash/loading screen and eventually getting a message that said: "Sorry, we could not reach the Netflix service. Please try again later. (-9)". To fix it, I had to go to /vendor/lib/ and delete (take a backup of it) the file liboemcrypto.so and reboot. Just figured I would post that here for anyone else who experienced that problem.