yashsingh1/xdaforums huggingface dataset:
[Sprint  Galaxy Note 4 Android Development] samep:
There are risks involved so no guarantees. Following the OP closely is a start but you may want to familiarize yourself with TWRP install, backup, restore and flashing custom mods, kernels and ROMs. The TWRP thread is found in original development forum.

You should also familiarize yourself with Odin and stock tar restore or update through Odin to stay up to date and in case something goes wrong. The stock tar thread is in general forum. You may have to do some scrolling to find it but you'll find it.

Truly, you should have these tools before you begin: Samsung USB driver for Windows from Samsung support (look for support downloads for your phone: SM-N910P), TWRP recovery in the form of tar.md5 for flashing in Odin, latest Odin, stock tar, ROM zip and/or appropriate zip flashes on ext sdcard to flash. And a personal favorite: WinMd5Sum to check those downloads.

Search these threads before asking simple questions. Lots of easy pointers get repeated often...

Install TWRP and make a TWRP backup in recovery of stock ROM. Also make a backup of current ROM (just in case) and any ROM you may want to return to later. Label these so you know what they are.

Root isn't a prerequisite if flashing a custom ROM. But being on the recommended update and installing TWRP is. It gets a bit more complicated if rooting stock but hopefully I've gotten you started.

If you read the OP again, you'll see that this thread doesn't currently support your update which must likely ends with PE2? Check that too. There is a PE2 ROM by freeza in this development forum.

Please don't quote full OP. A simple ask for help would be sufficient. You'll find sticky threads at top in the main forums. You should familiarize yourself with those too.

Ideally, you should have little to no trouble but be prepared.
[Sprint  Galaxy Note 4 Android Development] styles420:
Custom roms don't change your baseband or boot loader, so that's to be expected - if you want to downgrade, a full wipe in custom recovery is insufficient.

But in order for anyone to offer more specific advice, you'll need to be more specific about which older rom you flashed (there are far more than one)
[Sprint  Galaxy Note 4 Android Development] ibedanny:
Anyone having issues with this ROM on PE2? any special instruction I need to install this great ROM?
[Sprint  Galaxy Note 4 Android Development] maltydog:
I have been running this Rom for a few months. I had Xposed installed on it. Xposed has been a bit buggy lately, and I've been thinking of removing it. Anyway, this morning, Xposed had an update (didn't ask me whether I wanted it or not), and I got a message to reboot the phone to put the update into effect. But when I rebooted my phone, I now get stuck on the Galaxy Note screen, can't get past it. Can I just wipe the phone and reinstall the Stock_DeOdexed_N910PVPS4DPD1_1.0_04302016.zip file in TWRP (with Gapps, I assume)? Or is there more to it than that? Edit: I see I have the Xposed uninstaller on my SD card, maybe the first thing I should do is run that in TWRP?
[Sprint  Galaxy Note 4 Android Development] samep:
You could try that Xposed uninstaller but personally, I'd go for the PG1 update. Better battery stats, Wi-Fi Calling fixes and security updates included in the PG1 update.

If updating, I'd recommend factory reset, wipe internal memory and power down and Odin PG1 stock tar. There is a PG1 deodexed ROM. I'd recommend the factory reset and wipe internal memory again before flashing the ROM.

Gapps is not something you flash over touchwiz ROMs. If you're missing Google apps after flashing a touchwiz custom ROM, get them from Google Play.
[Sprint  Galaxy Note 4 Android Development] maltydog:
That's the {ROM][6.0.1] Stock PG1 | De-bloated | DeoDexed | N910PVPU4DPG1 [8/24/16] you're talking about? I will take a look at that a little later. I ran the Xposed Uninstaller and wiped Dalvik and am at the optimizing apps screen now, so I'm going to see what I have there first.
[Sprint  Galaxy Note 4 Android Development] samep:
That's the one. Just throwing some options out there.

Sounds like it'll boot and run though.
[Sprint  Galaxy Note 4 Android Development] maltydog:
Thanks for that, I will look into it once I make sure it's not too buggy now.

And I feel a bit silly for mentioning Gapps, of course I should've known I didn't need it for this Rom....
[Sprint  Galaxy Note 4 Android Development] Melon00:
Losing Root Constantly

I am having an issue with consistently losing root after installing this ROM. I lose it within a week or two after installing this ROM, every single time. My phone is a Sprint Note 4 SM-N910P, and I have TWRP for my custom recovery, which I used to install this ROM, which is version 6.0.1. My understanding is that this ROM is mostly stock, which means it has Sprint Zone, all the standard Play apps, and I'm guessing most, if not all, of the system apps.

What seems to be happening is there is some update that gets pushed through, which is the culprit of me losing root. I can usually tell when the root is lost, because the phone gets really glitchy, e.g. screen doesn't turn on, laggy, etc. The only way I have found to fix it, is to band-aid the problem by flashing the ROM and restoring nandroid backup. I would also like to note that I have "automatic updates" unchecked under "system update."

My questions are as follows:

1. What update could be causing me to lose root within a week after installing a "new" ROM?

2. What can I do to prevent this from happening?

3. Are there any system apps worth disabling or uninstalling that are not essential to the basic functionality of the phone?

Thanks to all for your help on this matter.
[Sprint  Galaxy Note 4 Android Development] samep:
You may be on an older version of SuperSU. Google Play may have updated the app. If that happens, all you should have to do is open the app and follow prompt to update the su. There has been security updates that have done that to previous ROMs and earlier versions of SuperSU were losing systemless root for unknown reasons but I think that has been resolved in recent versions.

If something is amiss, have you tried to update manually by downloading the SuperSU zip to flash in recovery?

http://xdaforums.com/showpost.php?p=55256620&postcount=1

Be careful with the debloat of ROM not to break functionality. Using titanium backup to remove Facebook may break auto rotation. You might consider using app manager, freezing or using a package disabler rather than removing system bloat unless you need the system space for other apps. If removing, test first.

One thing I do is monitor apps running in background and freeze the ones not needed. I leave the S-Pen apps alone though. Just watch for ill effects and undo, if needed.
[Sprint  Galaxy Note 4 Android Development] ianmb:
Hold on to your seats...
[Sprint  Galaxy Note 4 Android Development] Sterist:
well if others have done it with knox tripped, I guess that means we haven't been up to speed with how to do it. good to know :) I'll try restoring a stock recovery first next time!

in other news, I can confirm that PC1 will boot and run without issue on PB5 engineering bootloader & baseband and speaking of which, anyone able to make a TWRP flashable PC1 modem?

edit:

also, the latest xposed wanam arm v80.1 does not work on the deodexed rom :( I'll try his test build (80.0) later today. I know it was already tested and confirmed *not* working but that was on the (partially?) odexed engineering rom. wanam did state multiple times after I sent the requested files that that rom is in fact odexed

i'll have to find and redownload it though. I'm about to leave the house so if someone can find that link for me while I'm out I can report back that much sooner :)
[Sprint  Galaxy Note 4 Android Development] GROOVYJOSHCLARK:
NP glad Netflix works again. It's a common bug

sent from my droid
[Sprint  Galaxy Note 4 Android Development] styles420:
I might be mixing up info from my old S3, but I think modems can't be flashed in recovery on our phones - Odin or OTA are the only options
[Sprint  Galaxy Note 4 Android Development] GROOVYJOSHCLARK:
Welcome, glad it worked for you

sent from my droid

---------- Post added at 11:04 PM ---------- Previous post was at 11:01 PM ----------

ROOT didn't work for me either, others will follow, according to some, I apparently can't follow directions (even though I did) ;)

Simple fix, flash UPDATE-SuperSU-v2.46.zip from recovery and all will be good. The ROOT binaries will install and you will be finely rooted!

sent from my droid

---------- Post added at 11:04 PM ---------- Previous post was at 11:04 PM ----------

Me too

sent from my droid

---------- Post added at 11:06 PM ---------- Previous post was at 11:04 PM ----------

Sure they can, as long as you have a Zip with the script written correctly and the baseband image

sent from my droid
[Sprint  Galaxy Note 4 Android Development] Sterist:
yes I do recall something like that too, but there have been several twrp flashable modems in recent times, for s4 and note 4. I don't fully understand what determines whether or not it can be done -- just that certain partitions are flagged as "protected" and that the only way around that is odin.

you can check for the flag with flashfire and on the note 4, modem partition is not flagged.
[Sprint  Galaxy Note 4 Android Development] GROOVYJOSHCLARK:
You can most definitely flash just the baseband in TWRP for our note 4. I have personally done it myself from a recovery script I wrote myself. I don't recommend it though, using Odin is always the best method

sent from my droid
[Sprint  Galaxy Note 4 Android Development] styles420:
Guess my wires were a little crossed after all - but the unreliable flash issue would be enough for me to write it off as a bad idea that isn't worth the risk, so the end result is almost the same ;)
[Sprint  Galaxy Note 4 Android Development] Kris_b1104:
https://dl.twrp.me/trltespr/twrp-3.0.1-0-trltespr.img.tar.html
[Sprint  Galaxy Note 4 Android Development] kcsween:
I didn't any custom recovery as I went back to stock in order to get the OTA update.

---------- Post added at 08:51 PM ---------- Previous post was at 08:23 PM ----------

I got around to flashing this bad boy tonight and I followed the OP to the letter, T, I’s dotted…the whole 9. After the 12 minute startup/setup I immediately got error messages telling me my device storage was low and my system didn’t have enough memory and was directed to Smart Manager only to find that I had 24.1 GB of free storage. This popup error was persistent, appearing about every 2 to 3 minutes. I ended up rebooting and that cleared up the error then the phone starts to optimize 318 apps when I have none installed other than the stock apps; nowhere near 318, so IDK. I’m going to let my phone sit for a few hours and ‘settle’ in and report back tomorrow after I’ve set it up to my liking. But, so far so good I suppose as I’ve been experiencing extremely sluggishness on MOAR Hybrid Note 5 v2.1b ROM, even after I reverted back to stock OK1 and even still after updating to PC1. For some reason my touches registered about 5 to 7 seconds late randomly and I’ve even been getting random reboots when again, randomly launching apps; my phone would freeze then reboot. It doesn’t seem to be software related though as I’ve tried 3 other ROMs after the MOAR Hybrid Note 5 and the sluggishness and touch panel and reboots were consistent throughout all the ROMs. Hopefully it’s not a sign of ‘dying’ hardware.
[Sprint  Galaxy Note 4 Android Development] WeMakePies:
Found it for you! Lets hope this works... :fingers-crossed: https://drive.google.com/folderview?id=0B3vJQtURk5A4V2FtWDlpRlV0bzQ&usp=sharing
[Sprint  Galaxy Note 4 Android Development] styles420:
The optimization of apps you hadn't installed since the clean flash makes me suspect leftover data from a previous rom - which partitions did you wipe? And did you do any repartitioning when flashing OK1? Perhaps you had apps moved to the external sd card?

One way to be sure would be to back up everything you want to keep from both internal and external storage, wipe EVERYTHING and start again from the beginning (Odin flashing OK1) - but make sure you verify an exact md5sum match for the stock tar and the rom zip first
[Sprint  Galaxy Note 4 Android Development] GavinMazey:
When it is initially optimizing apps 318 is probably the right number installed from flashing the rom. Check your system/app and system/priv-app folders and combined you will have at least 318 apks installed to the system.
[Sprint  Galaxy Note 4 Android Development] Sterist:
ty ty!

the results are in and lookin grim :eek:

sits at Samsung logo indefinitely. looks like someone will have to adb debug it n report to wanam. I don't have a pc anymore and it sucks :(
[Sprint  Galaxy Note 4 Android Development] t5mckinney:
external sd card

if i flash will it give me access to my external sd card
[Sprint  Galaxy Note 4 Android Development] ianmb:
Usually just stock is around 240-260 apks, just from past experience.
[Sprint  Galaxy Note 4 Android Development] GavinMazey:
There are 176 apks in the system/app folder and 144 in the system/priv-app folder totaling 320 apks pre installed in this rom.
[Sprint  Galaxy Note 4 Android Development] jglm4u:
Same here
[Sprint  Galaxy Note 4 Android Development] MDOT870:
Seem to have an issue with TWRP flash. After reboot still on stock recovery. Any advice?
[Sprint  Galaxy Note 4 Android Development] GROOVYJOSHCLARK:
User Odin to flash the official TWRP .TAR in PDA mode, you won't have issues

sent from my droid

---------- Post added at 10:45 AM ---------- Previous post was at 10:43 AM ----------

You absolutely can as long as you are running the official software when you take the OTA. Knox trip 0x1 does not affect the OTA as long as you are official from the OS side. At least that has been my luck and I do it all the time across the board for my note 4 with ALL releases (LP and MM).

sent from my droid
[Sprint  Galaxy Note 4 Android Development] Sterist:
PDA in odin is now and has been "AP" for probably about 2 years

also, if TWRP is not sticking you're probably not booting straight into recovery. you need to be ready for it and fast at holding recovery combo as soon as odin finishes flashing. if System begins to boot after odin finishes, TWRP will automatically be replaced with stock again.

alternatively, if you're rooted but no TWRP, you can use Flashify from Google Play to install it. if you do that, you must go into recovery on the next reboot otherwise it'll get replaced with stock again, requiring another try.
[Sprint  Galaxy Note 4 Android Development] kcsween:
Ok, well then that makes a lot of sense then. I was moreso looking at the number of apps in the app drawer so that was ignorance on my part.
[Sprint  Galaxy Note 4 Android Development] zhr47:
Worked for me.

Thanks
[Sprint  Galaxy Note 4 Android Development] GROOVYJOSHCLARK:
LOL tomatoes, tomatoes, AP <=> PDA but good point for newbies.

sent from my droid
[Sprint  Galaxy Note 4 Android Development] jglm4u:
Off topic : I've factory reset my device with a clean flash odin firmware to 5.1.1 many, many times just to take the ota but it always says your "device has been modified" or something like that.

After flashing it my device returns to official firmware but unable to take the ota. But not big deal since Odin does the same thing. But hey "Lucky you"! Lol
[Sprint  Galaxy Note 4 Android Development] t5mckinney:
My note 4 doesn't allow me to format my external sd card to internal storage it will only let me format to portable storage will this flash fix it and give me full access to my external sd card
[Sprint  Galaxy Note 4 Android Development] styles420:
The OP instructions do mention a reboot during the initial startup process before the optimization begins - and he said that the optimization happened after he rebooted the device due to the problems he had... I wonder if he somehow interrupted the reboot that was supposed to happen, thereby interrupting a part of the rom's configuration process such that it wasn't able to do everything it should have, even after he manually rebooted...
[Sprint  Galaxy Note 4 Android Development] MJ523:
Has anyone try to install lollipop rom after installing this MM stock rooted rom? The reason I ask is because lot of people reported problems with wifi.
[Sprint  Galaxy Note 4 Android Development] samep:
You have a backup? All you really have to do is downgrade the bootloader to OK1 to go back to Lollipop. Many are still using the MM baseband after returning to Lollipop. But yes, Wi-Fi and camera focus don't work unless you restore the correct bootloader.

[MENTION=309990]freeza[/MENTION] posted the Odin flashable bootloader in OP of the leaked MM thread. Make sure you disabled reactivation lock and Odin that in AP slot since it's a tar file, wipe data, cache and dalvik and then restore your backup. I prefer to backup keepsakes and wipe everything but extSdCard but make sure you don't wipe your backup in the process.

You can Odin the OK1 stock tar and start over but that's some work. The backup restore is easy. I've gone back to the Moar port twice from leaked MM- no issues.
[Sprint  Galaxy Note 4 Android Development] flofy22:
ohh yea ! saturday morning flashing !!

thanks a lot tx_dbs_tx for all your builds !

anyone have the .tar file of the PC1 stock rom ?

thanks !
[Sprint  Galaxy Note 4 Android Development] gdecker:
I recently installed the custom Lollipop ROM (courtesy of tx_dbs_tx) then xposed framework without any issues. Now I have the custom Marshmallow ROM installed (again, thanks to tx_dbs_tx) but am unable to get the framework installed.

I tried all versions 76-81. Each attempt hangs at the Sprint logo and let it stew there about 15 mins or so. Luckily the uninstaller works. Both USB debugging and unknown sources are checked. I have plenty of drive space and cleared both cache and dalvik before each attempt.

Please, any ideas?
[Sprint  Galaxy Note 4 Android Development] GavinMazey:
Xposed is not supported on Samsung MM roms currently and causes what you have described. You are out of luck till it gets updated for Samsung MM support
[Sprint  Galaxy Note 4 Android Development] tommy_2q:
Anybody have a laggy swipe unlock screen?
[Sprint  Galaxy Note 4 Android Development] gdecker:
What changed from the custom lollipop that I had xposed working on to the custom marshmallow? I really like this ROM and I will wait for a working xposed framework either way.
[Sprint  Galaxy Note 4 Android Development] GavinMazey:
The whole firmware has changed, Lolli and MM are pretty different under the hood. Whenever a new Android version comes out xposed needs to be updated and it seems it gets harder/takes longer each version. Plus Samsung changes so much from stock Android that it makes getting xposed to work much more difficult.
[Sprint  Galaxy Note 4 Android Development] gdecker:
Cool. Thanks for the info. :)
[Sprint  Galaxy Note 4 Android Development] cushgrunt:
Haven't tried it yet but says xposed works with note4 marshmallow. http://xdaforums.com/showthread.php?p=62377731

Sent from my SM-N910P using JellyBombed Tapatalk 2
[Sprint  Galaxy Note 4 Android Development] jglm4u:
Dont bother on flashing it, unless yall wanna help out with "logs" so it can be fix!?
[Sprint  Galaxy Note 4 Android Development] Currykun:
[MENTION=1180415]tommy_2q[/MENTION]

Yeah I'm dealing with the same problem man. I've tried freezing a variety of problem apps that Samsung throws on their devices, but it hasn't officially solved the issue. Usually I can go about 6-8 hours without a laggy lockscreen, and then I have to reboot to make it go away. It's really bothering me since OK1 with Beast kernel never gave me lockscreen lag. Hopefully someone has an idea of what's causing it... I'm thinking it might be a MM memory leak. Hard to tell what's going on without the ability to use Amplify.
[Sprint  Galaxy Note 4 Android Development] MmmmBeeeeer:
Two days ago, his post singled out Sprint Note 4 MM not working, but now it says all Note 4 MM not working.
[Sprint  Galaxy Note 4 Android Development] TorxT3D:
Hows gear vr performance on this rom?
[Sprint  Galaxy Note 4 Android Development] Tha_Dynasty2049:
well some odd reason the Poland version is workin fine with xposed due to some Yandisk here on this link

Flash firmware deodexer(not sure if Xposed works without it) - https://yadi.sk/d/r3e3wD9LqsEj6

im not sure what it is honestly but im not just gon flash it kinda a dumb move but idk :rolleyes:

but yea tried the special xposed for the note 4 even the other versions except 64 bit and still no go

Went back to Hybrid 3.0 and im fine...guess we just have to chill til then
[Sprint  Galaxy Note 4 Android Development] tommy_2q:
I'm on this ROM fully stock. I installed Galaxy Lockscreen Effects by xperiacle from the play store and the lockscreen lag during swipe is gone. Changing unlock effects stops the lag.

Actually I think the lock screen becomes laggy after some time passes.. Need definitive fix..
[Sprint  Galaxy Note 4 Android Development] tx_dbs_tx:
It does sound like failing hardware. I had one of my previous N4's develop a constant lag and nothing fixed it. I odin'd stock roms until my fingers were numb. That did not fix the lag problem. It was hardware failure. It happens. I ended up getting that phone replaced by Sprint free of charge. I have TEP and it's a very wise decision to have that on your account because these phones can and do fail at times due to internal board issues, etc. with no physical damage at all.

I read the reports of some people who didn'y have root upon flashing the rom. All I can tell you is that when you flash the rom and then reboot system, the phone will reboot twice while it writes the new .img image to your phone. You must wait and let it reboot on it's own without interrupting this process. If it works for most people then it will work for all. there should be no need to flash a seperate root package. So my question is: How many people here did successfully flash this rom and have root access after setting up the rom? If there is a problem then i want to fix it. Thanks.
[Sprint  Galaxy Note 4 Android Development] tommy_2q:
My phone was properly rooted after flashing this ROM. Everything works perfectly except for a laggy swipe lock screen. Thanks again for all your work tx_dbs.
[Sprint  Galaxy Note 4 Android Development] kcsween:
Yeah, I had no issues with this ROM doing it's thing from flash to startup (even though I wanted to pull the battery a few times because it seemed stuck), thankfully, I strictly followed your OP. I'm up for an upgrade but I'm holding out to see what the N6 is going to be about but I do so love my N4. I may have to use my TEP and get a new device, it'll at least last me another 12-18 months if need be.
[Sprint  Galaxy Note 4 Android Development] spotopolis:
Auto rotation is not working for me. Used Odin to flash MM stock. Let the rom boot, then used Odin to flash TWRP 3.0.2.0. Wiped everything including data 3x. Flashed this rom. Everything is working but auto rotation in any app will not work. I have tried turning off rotation, rebooting, turning it on, then rebooting again and still not working.
[Sprint  Galaxy Note 4 Android Development] hendav:
If you uninstalled facebook via titanium or samsung hub it will break auto rotation.
[Sprint  Galaxy Note 4 Android Development] spotopolis:
Well thats just dumb. Im assuming there isnt a .so file that I can extract from the zip and place in the system folder to fix it?
[Sprint  Galaxy Note 4 Android Development] mcdermott1:
That is dumb, mine is also doing it. Now that I know the cause, I can just reflash the rom but is there a way of removing the facebook app without breaking auto rotate? Can I just remove the app by going into the system/app folder using root explorer to delete it and not break auto rotate.
[Sprint  Galaxy Note 4 Android Development] spotopolis:
I tried just installing the playstore FB app hoping that would resolve it so i could remove it, but nope. Not wanting to reflash the whole rom and go through setup again yet either. May just deal with it til a MOAR rom is released.
[Sprint  Galaxy Note 4 Android Development] hendav:
Probably best to dirty flash again.