[Galaxy Note II Android Development] Chris Kerry:
[SOLVED: Auto-rotate problem and some other Issues]

[Sorry, really long post]

I finally solved the slowly accumulating issues I've been experiencing with this ROM series:

A) Longer and longer boot times, whether just after cleaning data/cache/dalvik & flashing new rom or routine restarts.

B) Loss of auto-rotate ability after deep-sleep. Must reboot to re-enable (only to lose it again with next deep-sleep).

C) Strange behaviours, even for a freshly installed system. Eg,

a) even though I wiped EVERYTHING except internal and external SDCards and radios (ie: /data, cache, dalvik, and formatted /system), flashing ONLY Temasek 5.4 (without Gapps) still showed the key Google apps after booting (G.P.Services, Framework and Store) working normally (you can log into your Google accounts,etc). I thought that they must have been included in the rom in pico form;

b) For some time now it has been physically IMPOSSIBLE for me to install Temasek without agni kernel. I have used agni kernel, for some years now, due to the breadth of control it affords granularly (cpu gov, fast -charge, etc) and wonderful sound improvements (eg boeffla). However, in trying to troubleshoot the lack of auto-rotate of the last few weeks, I attempted to do a clean install without agni, use for some days and see how it turns out. The rom simply was stuck in an eternal bootloop until I reboot into recovery and flashed in the agni again. I even downloaded a script that removes all traces of agni when it (the script) is flashed in recovery. No show.

c) Very weird vibrations that activate the Back-button. This only happened rarely over the last 3-4 months. However, when it starts, usually after using the system for a long while, you simply can't do anything with it and have to power down for some hours. This only rarely happens, though, and I have to use this phone (as it is now) much longer before concluding that it's been definitively resolved. I have started seeing small signs pointing me in that direction anyway.

d) There are surely a few others I can't recall now.

However, I solved virtually all of them thus:

A) Flashed in recovery-clockwork-touch-6.0.4.3-n7100.tar.md5 via Odin (PC).

B) Cleaned out data/cache/dalvik while in recovery.

C) Flashed in the original unrooted Samsung KitKat 4.4.2 rom (over 2Gb in size) for my system via Odin.

D) Booted into the phone and confirmed that all those issues weren't there (especially the auto-rotate failure after rest).

E) Flashed in, again via Odin, recovery-clockwork-touch-6.0.4.3-n7100.tar.md5.

F) Booted into the recovery and wiped data/cache/dalvik.

G) Flashed in only the Temasek 5.4 (without Gapps) due to the strange past experience that seemed to indicate presence of pico gappps in it.

H) Booting, though it was the initial one, was FAST (maybe about a minute - wasn't timing it). Shocked me!

I) I realised, however, that there was NO Google apps and no way to put in Google accounts (thus confirming that there was a structurally flawed make-up in the previous setup that must have been corrected by returning the system to its unrooted origin). Even after 1 hour rest autorotate still worked (previously impossible for up to 10min rest).

J) I tested agni now by flashing it in. Immediately after booting, autorotate worked BUT then failed within 5-6min of uninterrupted rest.

K) With all this info, I then cleaned data/cache/dalvik one last time, installed Temasek 5.4 and Gapps immediately afterwards. Wiped just cache. Rebooted without allowing recovery alter the SU. After the first reboot and logging in my Google Accounts, I re-entered recovery to flash Xposed and rebooted.

Everything is faster and problem-free. Just mourning the loss of extra-functions I'd always used with agni (faster charging, wonderful boeffla sounds, etc).

The only other issue I still encounter is the loss of cellular radio if "Soft reboot" is chosen among the Reboot menu options, thus needing another reboot (with full "Reboot") to re-enable cellular function.