Remove All Ads from XDA

[ROM][Unofficial][AOSP] Android 5.1.1 Lollipop

643 posts
Thanks Meter: 2,605
By decatf, Senior Member on 13th November 2014, 05:18 PM
Post Reply Email Thread
*** Disclamer

Read all instructions before proceeding.
Use at your own risk. I am not responsible for
bricked devices, broken SD cards, broken hearts.
Android Open Source Project 5.1

Samsung Galaxy Tab 10.1
(P7510, P7500, SGH-T859)
(p4wifi, p4, p4tmo)

  • busybox
  • CMFileManager
  • DSP Manager
  • Cyanogenmod audio/video frameworks
  • Privacy Guard
  • Advanced reboot menu
  • Long press recents to switch to previous app
  • Clear all recents button
  • Long press back to force kill app
  • Left navigation bar buttons

Kernel features:
  • CPU OC (1.2Ghz - 1.6Ghz)
  • CPU Voltage control
  • GPU OC (400Mhz)
  • Dynamic fsync
  • F2FS
  • SELinux
  • Voodoo Sound
  • USB Charging

Installation instructions

First Install:
  1. Install TWRP or newer
  2. Wipe cache, dalvik cache, system, data
  3. Install the ROM
  4. Optional step:
    - Install gapps
    - Install SuperSU 2.52
  5. Reboot into the ROM

The first boot will take longer than Android 4.4.4 and older ROMs. Android Runtime (ART) is slower than Dalvik at optimizing applications the first time.

Optional steps...
To enable voice calling:
To enable SELinux enforcing mode:
  • The default SELinux mode is Permissive. Flash the "Set_SELinux_enforcing" zip to enable full SELinux enforcing mode.

p4wifi (GT-P7510): WIFI only tablet.

p4 (GT-P7500): Cellular / 3G tablet.

p4tmo (SGH-T859): Tablet from T-Mobile carrier.

Android File Host

Extra Utilities

This ROM uses a new open source audio HAL written for the Android 5.0 API. Install this to use the old ICS audio HAL.
The audio dock will work with this.

Lollipop gapps:
For AOSP 5.1.x

root: SuperSU
BETA SuperSU v.2.52


Current changelog: 

October 9, 2017
Add ARM NEON emulation
Kernel fixes

March 5, 2016
14ce2ff Update f2fs from Jaegeuk's linux-3.4.y branch
aa33f57 Revert "bound cpu cores to same speed"
7bf6385 Update f2fs from Jaegeuk's linux-3.4.y branch
b7da55c f2fs: support for kernel 3.1 with M for grouper
c3caabe Update f2fs from Jaegeuk's linux-3.4.y branch
6d4068a f2fs: support for kernel 3.1

February 15, 2016
Update to android-5.1.1_r30
Add missing WIFI tethering patch
Kernel L2 cache improvements

October 31, 2015
project device/samsung/p4-common/
32c8ec7 p4-common: switch to BFQ io scheduler

project kernel/samsung/p4/
94ec284 Update f2fs from Jaegeuk's linux-3.4 branch
e846e09 f2fs: support for kernel 3.1
418d0b0 Move other graphite flags into its kconfig section
58660d9 Revert "Enable ccache"
a32532a Revert "defconfig: enable graphite optimization"
fc4d1f6 ARM: 7168/1: use cache type functions for arch_get_unmapped_area
854a90d ARM: 7169/1: topdown mmap support
0dda9f1 ARM: 7294/1: vectors: use gate_vma for vectors user mapping
d6c8c57 defconfig: switch to slab
79f2d7a touchscreen: mxt1386: Report pressure events
e92b8e2 touchscreen: mxt1386: report active based on detect bit
fdb401f touchscreen: mxt1386: Tweak parameter range
18148fb defconfig: Use cmdline extend
Older Changes:

August 14, 2015
project bionic/
ba3ba89 Replace Cortex A15 strlen implementation with cortex-strings
606eca6 Import memchr implementation from cortex-strings for Cortex A15
b95b9b7 libc: tegra2: Use a15 strlen and string copy
b553cd8 libc: Update non-neon cortex a9 makefile
4a07afa bionic/libm pow optimizations for arm64
c35e587 Sync libm with upstream.
f9ad8a8 Get new coshl, sinhl, and tanhl implementations from upstream.
87d2724 Fix our <complex.h> support.
976604d libm: arm: Add arm specific floor() optimization
7f1159a Add aarch64 instructions wherever possible
e91b015 libm: Fix makefiles

project build/
44da9a4 "LMY48H"
d278554 "LMY48I"

project device/samsung/p4-common/
2d30b54 p4-common: switch back to cortex-a9 bionic

project external/libavc/
2eaba5e Encoder: Fixed an issue in handling FPS greater than 60

project frameworks/av/
efbf145 audiopolicy: Make sense of concurrency properties
e47a66b libmedia: AudioTrack offload only for STREAM_MUSIC
aa31cfa libmedia: Enable TrackOffload for more usecases
086daa6 libstagefright: use SW AAC encoder for HE-AAC format
e914a34 httplive: Check for bandwidth switch only for variant playlists
5bdf394 httplive: Check for NULL playlist in postPrepared
09fade8 httplive: Adjust seek time to last video IDR time
a588850 audiopolicy: Fix for isStateInCall() do not return proper status
49a2379 libstagefright: Fix crash in convertMetaDataToMessage
56c7950 nuplayer: Fix incorrect state handling while shutting down a decoder
3676897 Guard against codecinfo overflow
93d306a MPEG4Extractor: still more NULL dereference fixes
ba0017c SampleTable: fix integer overflow checks.
beaf7af AudioOutput: Always open AudioTrack with a flag
bdd042d audiopolicy: use deep_buffer as default output for music stream
fc5ee4b audiopolicy: fix for voice call to work on USB headset during concurrency
4b48487 audiopolicy: fix playback of multichannel pcm clips via low latency output
c773ab2 libeffects: validate channel mask in downmixer configure
bb5a485 Fix multiple division-by-zero conditions in MPEG4 parsing
8da57d7 Fix null-pointer-dereferences accessing the SampleTable
f5024f6 MPEG4Extractor.cpp: Add check for size == SIZE_MAX
574e49d Detect allocation failures and bail gracefully
744a392 libstagefright: Remove nBitPerSample CHECK
cc68933 Fix global-buffer-overflow in voAWB_Copy.
8dbd7ff Check allocation
62c0231 Fix new[] vs delete mismatch.
ce0ebe4 The preview frame data is broken when sending via Binder
1610dca Validation of Number of Channels on WAV files
72323a4 libstagefright: fix output buffer is not released by Writer when stopping
bbc6668 libstagefright: Fix incorrect duration calculation
6a2289e Add AUtils::isInRange, and use it to detect malformed MPEG4 nal sizes
636050c Add some sanity checks
aae1058 HDCP: buffer over flow check -- DO NOT MERGE
8d2c4b3 IOMX: Add buffer range check to emptyBuffer
523b5c5 libstagefright: Scale up bitrate for HSR videos
c69b0a3 video: Disable resync markers
51dde7a AudioMixer: fill 0s at right place when no more buffers available
35460e9 MPEG4Extractor.cpp: handle chunk_size > SIZE_MAX
7c7f1e1 Fatal error while playing certain mkv files.
38c26d7 stagefright: Don't crash on invalid / null AVCC atoms in MKV

project frameworks/base/
18fd2dc Barrier only messages shouldn't prevent the idle handlers from running

project frameworks/native/
cadfa27 Fix mistake using width instead of height.
63503fe Workaround for black screenshots due to z-order change

project kernel/samsung/p4/
caa6dae ARM: 7403/1: tls: remove covert channel via TPIDRURW
dc508fd ARM: 7587/1: implement optimized percpu variable access
ff15b70 ARM: 7735/2: Preserve the user r/w register TPIDRURW on context switch and fork
3dfe7a0 ARM: 7747/1: pcpu: ensure __my_cpu_offset cannot be re-ordered across barrier()
5ec7979 crc32: optimize inner loop
a1f50af ARM: bitops: prefetch the destination word for write prior to strex
6069ae6 video: tegra: nvmap: Set PAGELIST_VMALLOC_MIN size correct
f7cbb13 mm for fs: add truncate_pagecache_range()
45196f8 Update f2fs from Jaegeuk's linux-3.4 branch
8a6aa31 f2fs: support for kernel 3.1

project packages/apps/CMFileManager/
f328e4f [CMFileManager] Fix can't copy after disconnect with pc.
7b09bb0 Made NavigationView reliant on FileObserver to keep up to date.
6e633d8 Automatic translation import
cb05075 Revert "Made NavigationView reliant on FileObserver to keep up to date."
ddb22bb Fixed ANR associated with SecureStorage
c740f92 Fixed search to actually open the clicked folder
6f6094d Fixed ANR & Memory Leak Associated with 3GP
13879c7 Fix don't pop up "Actions" menu when long pressing on a file/folder after open and close "Use swipe gesture".
eb58bd8 Automatic translation import
602f3de RTL: move buttons to proper spot in nav drawer
b5c78a6 Automatic translation import
bd79d58 Improve copy/move performance with nio and reintroduce cancel.

project system/core/
2eb6642 - Revert "fs_mgr: let fsck.f2fs actually attempt a fix"

July 29, 2015
project device/samsung/p4-common/
52ee2e9 libstagefrighthw: add libstagefrighthw for tf700t/tf300t tablets
project external/f2fs-tools/
ef77a4a mkfs.f2fs: set encryption feature
d07544c fsck.f2fs: show superblock features and encryption info
bcf54d1 dump.f2fs: show i_advise field in inode
ac43c66 fsck.f2fs: avoid build warning
e48773e fsck.f2fs: add hash conversion for encrypted dentries
f9cb4b2 fsck.f2fs: select to update the latest valid summary
da3931d fsck.f2fs: drop extent_info to avoid potential wrong access
project external/ffmpeg/
56bedf7 Update to ffmpeg 2.7.2
project external/libavc/
87ad734 Merge "Don't set -mno-avx"
3c192ea Merge "Mark arrays of pointers as const"
9fbffcf Don't declare variables after statements
f080d51 Fixed encode of single frame
d0603c3 Merge "Remove the now unused stride field from the set dimensions struct"
a306c95 Merge "Fixed encode of trailing B frames"
cc58d3f Check the width/height and adjust level used for RC
08e68e8 avcenc: Initialize avg_time
8e78e30 Make sure that apv_bufs[0] and u4_is_last always are set
0fee948 Use INT_MAX as i4_max_sad in ih264e_evaluate_bipred
9c6a2f7 Cabac optimizations
b7d5bb5 Fixed issue in cost computation for BIPRED ME
5696adb Validate the u4_entropy_coding_mode field
634567f Merge "Always do recon of 4x4 intra blocks"
aad4587 Made gops closed
1cd52d6 Merge "Don't use side effects in the macro PUT_BITS_SEV parameters"
90bd045 Decoder: Fixed issues shown by Valgrind
project external/stagefright-plugins/
df31683 Revert "stagefright-plugins: Restructure the code"
project frameworks/av/
f481ae6 Merge branch 'cm-12.1' of into cm-12.1-p4
181e02c Fix TF101 workaround for NVOMX plugin crash
7e07312 Remove TF101_OMX
512a42f Revert "stagefright: Move a bunch of FFMPEG stuff out of here"
21b5b3e Revert "stagefright: Add support for loading a custom OMXPlugin"
project frameworks/native/
47b6110 Revert "Add OMX_AUDIO_CodingAPE and OMX_AUDIO_CodingDTS"
f96eb86 Revert "Revert "Add OMX_AUDIO_CodingAPE and OMX_AUDIO_CodingDTS""
project vendor/samsung/p4/
2a4f1c8 Remove
project vendor/samsung/p4wifi/
676d1c0 Remove

July 23, 2015
project kernel/samsung/p4/
8402aaf ARM: missing ->mmap_sem around find_vma() in swp_emulate.c
4f8f9f2 ext4: fix memory leak in xattr
f662c201 Revert "SCHEDULER: Autogroup patch group by current user android UID instead of task ID"
f6c7ac3 cpufreq: interactive: Align timer windows for all CPUs
25d9b61 cpufreq: interactive: Reset last evaluated jiffy in idle callback
e803dc2 cpufreq: interactive: Round up timer_rate to match jiffy
32c73e9 Graphite optimization kconfig option
5518b30 defconfig: enable graphite optimization
project libcore/
8cb50cb Remove forced alignment code.

July 17, 2015
project bionic/
4487f63 libc: Cache large /etc/hosts files
project build/
222d0ae Saberize v5 (3/5)
455c0f5 Fix call to dumvar
project device/samsung/p4-common/
83e2ed3 Revert "p4-common: Avoid hotplug kernel crash"
b2b1ec8 p4-common: Fix and clean up init.d scripts
3d524fd p4-common: Remove build custom flags
2a8e73a p4-common: Remove custom stagefright cache params
1c4e84d p4-common: Disable running without sync framework flag
820aa61 p4-common: Don't install alternate random script
44d5f56 p4-common: Switch to FIOPS io scheduler
project external/ffmpeg/
4bf19a5 Update to ffmpeg 2.7.1
project external/libpng/
8022b8e Make compatible with SaberMod ARM mode.
project external/stagefright-plugins/
e9eddbf stagefright-plugins: Disable lowres
529ea8c stagefright-plugins: Improve seeking further
a82d5bd stagefright-plugins: Add special handling of DivX files
ce6fc45 stagefright-plugins: Fix adaptive buffer and crop handling
68d9c45 stagefright-plugins: Remove Vorbis/MP3/H263/H264/HEVC
project frameworks/base/
c701b1e Barrier only messages shouldn't prevent the idle handlers from running
project frameworks/native/
4f4e423 SF: Skip render-to-texture for color transforms
project frameworks/opt/net/wifi/
e1f6fbc Fix memory leak in WifiNative
project kernel/samsung/p4/
686f7d7 base: cpu: Make cpu online sysfs readonly
d61cf07 arm: tegra: thermal: Fix p4lte build
65668ac sync: don't block the flusher thread waiting on IO
3c2e117 ext4: Speedup WB_SYNC_ALL pass called from sync(2)
b83fef6 udp: fix behavior of wrong checksums
1cca78f Makefile: Use O3 and Graphite
bd0772d compiler-gcc: Update to upstream for GCC 5.x compiler
a4397ae GCC 5.1 build fixes
c38fd65 defconfig: Disable some debugging
df855aa Revert "lowmemorykiller: optimize for use with zswap"
f18a32b lowmemorykiller: Don't count swap cache pages twice
49a0387 Revert "drivers: staging: android: lmk compile fixup"
8ce1cfe Revert "lowmemorykiller: Use asynchronous compaction"
f4f8fcd Revert "lowmemorykiller: Compact memory when killing processes"
c8322ee3 android: drivers: workaround debugfs race in binder
eb2f91e arm: config: p4wifi: Enable zRAM options suggested by Google
7336f70 Revert "defconfig: frandom"
08e15f9 Revert "Added frandom kernel random number generator:"
f6885cb net: llc: use correct size for sysctl timeout entries
012453e netfilter: nf_conntrack: reserve two bytes for nf_ct_ext->len
48e8533 A local route may have a lower hop_limit set than global routes do.
4f38de3 ipv4: try to cache dst_entries which would cause a redirect
c16a81d vfs: read file_handle only once in handle_to_path
42d0e43 mmc: block: Update error handling if block data is not available
3551921 selinux: fix inode security list corruption
04808cf ARM: 7919/1: mm: refactor v7 cache cleaning ops to use way/index sequence
d76c0cd Revert "block, bfq: add Early Queue Merge (EQM) to BFQ-v7r8 for 3.1.0"
600e1ab Revert "block: introduce the BFQ-v7r8 I/O sched for 3.1"
44b7fc3b Revert "block: cgroups, kconfig, build bits for BFQ-v7r8-3.1"
7a5cae4 Revert "block: prepare I/O context code for BFQ-v7r8 for 3.1"
c609384 block: fix genhd refcounting in blkio_policy_parse_and_set()
52280cd block: move blk_throtl prototypes to block/blk.h
390bef4 block: pass around REQ_* flags instead of broken down booleans during request alloc/free
66c94ee block: drop unnecessary blk_get/put_queue() in scsi_cmd_ioctl() and blk_get_tg()
72e5dcb block: reorganize queue draining
c20f87c block: reorganize throtl_get_tg() and blk_throtl_bio()
551d25c block: make get_request[_wait]() fail if queue is dead
233001b block: drop @tsk from attempt_plug_merge() and explain sync rules
efa12eb block: fix request_queue lifetime handling by making blk_queue_cleanup() properly shutdown
12ae3a2 block: initialize the bounce pool if high memory may be added later
811183b block: fix a typo in the blk-cgroup.h file
f531c70 block: Remove the control of complete cpu from bio.
88320aa block: warn if tag is greater than real_max_depth.
239d247 blk-throttle: Free up policy node associated with deleted rule
0df5999 blk-throttle: Take blkcg->lock while traversing blkcg->policy_list
5616b48 blk-throttle: use queue_is_locked() instead of lockdep_is_held()
6fefae4 block: don't call blk_drain_queue() if elevator is not up
30df47c block, sx8: kill blk_insert_request()
5670654 block: add blk_queue_dead()
6ebed60 block: fix drain_all condition in blk_drain_queue()
4c0a1bd block: add missing blk_queue_dead() checks
a9ef87a block, cfq: move cfqd->cic_index to q->id
9517813 block: misc ioc cleanups
d8795f2 block: make ioc get/put interface more conventional and fix race on alloction
39bd421 block: misc updates to blk_get_queue()
620de54a block, cfq: misc updates to cfq_io_context
6d6a86c block, cfq: move ioc ioprio/cgroup changed handling to cic
acf16ed block, cfq: fix race condition in cic creation path and tighten locking
24b5fba block, cfq: fix cic lookup locking
38a1289 block, cfq: unlink cfq_io_context's immediately
2d4d01f block, cfq: remove delayed unlink
a95acba block, cfq: kill ioc_gone
e406bdc block, cfq: kill cic->key
067e171 block, cfq: replace current_io_context() with create_io_context()
05107d7 block: reorder elevator switch sequence
1c5462b2 block: remove elevator_queue->ops
640fd83 block, cfq: reorganize cfq_io_context into generic and cfq specific parts
6d31480 block, cfq: move cfqd->icq_list to request_queue and add request->elv.icq
28026e0 block, cfq: move io_cq lookup to blk-ioc.c
948013b block, cfq: move icq cache management to block core
71b69e3 block, cfq: move io_cq exit/release to blk-ioc.c
5347ffc block, cfq: restructure io_cq creation path for io_context interface cleanup
d8d2502 block, cfq: move icq creation and rq->elv.icq association to block core
12f3d5d block, cfq: fix empty queue crash caused by request merge
afa0f35 block: recursive merge requests
c631ab7 block: ioc_cgroup_changed() needs to be exported
c7b050e block: an exiting task should be allowed to create io_context
89a8f79 block: remove WARN_ON_ONCE() in exit_io_context()
3dc5b4d block: Introduce blk_set_stacking_limits function
feb05a6 block: Add BLKROTATIONAL ioctl
a00dfa4 fs: remove unneeded plug in mpage_readpages()
bcce0d5 blockdev: convert some macros to static inlines
aa4a136 include/linux/bio.h: use a static inline function for bio_integrity_clone()
ecb5b65 bio: change some signed vars to unsigned
6fc6d50 block: Stop using macro stubs for the bio data integrity calls
2c79fc0 Revert "block: recursive merge requests"
e2467ee Revert "block: fixes required to make the kernel compile with ROW."
4446aef fs: fuse: Fix-ups after d8795f2c85d4e458ec4f8353c3de693ee9d450fc
5386714 cfq-iosched: fix use-after-free of cfqq
b403c63 block,cfq: change code order
d97fc7d block: fix NULL icq_cache reference
f9faa23 block: fix ioc locking warning
17186c2 block: strip out locking optimization in put_io_context()
9d170a3 block: separate out blk_rq_merge_ok() and blk_try_merge() from elevator functions
736cc20 block: don't call elevator callbacks for plug merges
e8bda1e bsg: fix sysfs link remove warning
6cac422 block: fix lockdep warning on io_context release put_io_context()
3890115 block: replace icq->changed with icq->flags
316e673 block: simplify ioc_release_fn()
6ba1509 block: exit_io_context() should call elevator_exit_icq_fn()
eb6d63a block: fix ioc leak in put_io_context
0fd50c6 block: blk_alloc_queue_node(): use caller's GFP flags instead of GFP_KERNEL
1304491 block: use lockdep_assert_held for queue locking
8b4ef57 block: Make cfq_target_latency tunable through sysfs.
44e08ef block: make auto block plug flush threshold per-disk based
3cff711 block: fix buffer overflow when printing partition UUIDs
485197e block: fix request_queue->flags initialization
4cb8505 cgroup: add cgroup_root_mutex
c814092 threadgroup: rename signal->threadgroup_fork_lock to ->group_rwsem
c3e285f cgroup: always lock threadgroup during migration
1ffddb4a cgroup: improve old cgroup handling in cgroup_attach_proc()
7c066d3 cgroup: introduce cgroup_taskset and use it in subsys->can_attach(), cancel_attach() and attach()
7c5426a cgroup: kill subsys->can_attach_task(), pre_attach() and attach_task()
e525675 cgroup: don't use subsys->can_attach_task() or ->attach_task()
838cf8b cgroup_freezer: Fix build
b43392c cgroup: propagate mode_t
52c57bb cgroup: remove cgroup_attach_task_current_cg()
f1fe20a cgroup: move struct cgroup_pidlist out from the header file
ae1fc96 cgroup: revert ss_id_lock to spinlock
8b314a3 block: fiops ioscheduler core
16ab2c1 block: fiops read/write request scale
75597dd block: fiops sync/async scale
4df5521 block: fiops add ioprio support
39bc9cc block: fiops preserve vios key for deep queue depth workload
12626e0 block: fiops bias sync workload
c68587d block: cgroups, kconfig, build bits for BFQ-v7r8-3.4
82b1954a block: introduce the BFQ-v7r8 I/O sched for 3.4
bc44c2f block, bfq: add Early Queue Merge (EQM) to BFQ-v7r8 for 3.4.0
48130ff BFQ: Fix up for upstream 3.4 block and partial cgroup backports
911abd8 mm: make swapin readahead skip over holes
67a2eb7 shmem: cleanup shmem_add_to_page_cache
7fe8734 lib/radix-tree.c: make radix_tree_node_alloc() work correctly within interrupt
bea141f pstore: selinux: add security in-core xattr support for rootfs, pstore and debugfs
8ca5c5a Revert "writeback: fix writeback cache thrashing"
0ef581f writeback: account per-bdi accumulated dirtied pages
5c9427b writeback: dirty position control
9232e4b writeback: add bg_threshold parameter to __bdi_update_bandwidth()
cd14996 writeback: dirty rate control
ec92937 writeback: stabilize bdi->dirty_ratelimit
0aface7 writeback: per task dirty rate limit
f440b08 writeback: IO-less balance_dirty_pages()
f768c02 writeback: limit max dirty pause time
17f5989 writeback: control dirty pause time
aa7e2fc writeback: dirty position control - bdi reserve area
c49792c writeback: per-bdi background threshold
c275aea writeback: trace event bdi_dirty_ratelimit
a2e92b5 writeback: trace event balance_dirty_pages
5a7cfe8 writeback: fix uninitialized task_ratelimit
1650668 mm: Make task in balance_dirty_pages() killable
2d559d2 writeback: hard throttle 1000+ dd on a slow USB stick
5245c7a ext4: warn if direct reclaim tries to writeback pages
70826da writeback: fix writeback cache thrashing
7bdcb42 writeback: fix race that cause writeback hung
7addbb8 writeback: remove vm_dirties and task->dirties
1d9dcda writeback: comment on the bdi dirty threshold
de54aa8 writeback: permit through good bdi even when global dirty exceeded
220cb45 writeback: set max_pause to lowest value on zero bdi_dirty
3d5f7e4 writeback: charge leaked page dirties to active tasks
83f8dfc writeback: fix dirtied pages accounting on sub-page writes
7d887fa writeback: fix dirtied pages accounting on redirty
a9c86ab writeback: dirty ratelimit - think time compensation
7bde8d6 writeback: fix ppc compile warnings on do_div(long long, unsigned long)
6ce29e4 writeback: max, min and target dirty pause time
465affd writeback: avoid tiny dirty poll intervals
1a0b83e writeback: do strict bdi dirty_exceeded
a5731de writeback: balanced_rate cannot exceed write bandwidth
f152649 net: wireless: bcmdhd: Reduce HW4 logging level
6460c52 workqueue: CPU hotplug keep idle workers
aa1d07f arm: workqueue: fix get_pool_nr_running()
d31ec88 sched: unthrottle rt runqueues in __disable_runtime()
011ba24 kthread: disable preemption during complete()
67c9a09 ARM: mm: cache-l2x0: Implement outer_clean_all()
ce6ab65 mm: Fix incorrect cache attribute restoration.
6bfdfe5 mm: Avoid freeing init and initrd memory when CPA is enabled.
2252275 ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+
d3da7fa ARM: mutex: use generic atomic_dec-based implementation for ARMv6+
project system/core/
6240b07 Fix compile with SaberMod
project vendor/sm/
2ad8230 Add p4wifi

June 28, 2015
project device/samsung/p4-common/
8400112 p4-common: Avoid hotplug kernel crash
0190630 p4-common: restrict dmesg
8849014 p4-common: multirom: add tegra-kbc to init devices
6a52c6e p4-common: Make vendor config optional
a9752c6 hwc: Skip composition when numHwLayers is zero

project external/ffmpeg/
74773c1 ffmpeg: Readd missing X86 fixups
3b79b80 ffmpeg: Set cpu arch for silvermont config

project external/stagefright-plugins/
e5f8759 ffmpeg: Remove a couple of codecs we don't need
36780e8 stagefright-plugins: Set sensible defaults for audio decoders
3272744 stagefright-plugins: Update codec list with capabilities

project frameworks/av/
775c557 stagefright: ffmpeg: Slightly raise the threshold for the ffmpeg scanner
90371ca Merge branch 'cm-12.1' of into cm-12.1-p4

project frameworks/base/
b7b3ad9 Fix a GL error leak issue
2154010 Merge tag 'tags/android-5.1.1_r5' into aosp-5.1.1_r5-p4

project frameworks/native/
94d649a SF: Reduce resync samples without present
886ec01 Merge branch 'android-5.1.1_r5' into aosp-5.1.0-p4

project kernel/samsung/p4/
33caae7 netfilter: Sync with grouper android-5.1.0_r0.4
98ee028 netfilter: nf_conntrack_dccp: fix skb_header_pointer API usages
5171a7f sock: Introduce named constants for sk_reuse
8415f79 net: wireless: Sync with grouper android-5.1.0_r0.4
49f1b7a block: disable entropy contributions for nonrot devices
4cb0220 defconfig: Disable SELinux
dce2b44 Revert "defconfig: Disable SELinux"
700f75a defconfig: Enable kexec-hardboot for p4, p4tmo, and p4lte
7d02246 sysctl net: Keep tcp_syn_retries inside the boundary
903d78d WLAN subsystem: Sysctl support for key TCP/IP parameters
2cf48c8 net: Create shadow files under /sys/kernel/ipv4

project packages/apps/CMFileManager/
91c9e78 Fix parsing of shell command output regardless of encoding
1b15dff Automatic translation import
22b9eab Shell console: fix bug in shell output stream

June 20, 2015
project bionic/
d23763b libc: tegra2: Update memchr from aosp
cf10b1c libc: Cache large /etc/hosts files
6c554bf Revert "libc: Cache large /etc/hosts files"

project device/samsung/p4-common/
4d817d0 p4-common: Prefer ffmpeg vp8 and vp9 decoder
a79d8c9 p4-common: overlay: Update screen brightness levels
de0c6cd p4-common: overlay: Remove softap from  wifi tether regex

project external/stagefright-plugins/
949ae01 stagefright-plugins: Add -Wno-psabi for ARM64 builds as well
ffed52f FFmpegExtractor: mark HEVC as supported
86506b6 stagefright-plugins: Refactor the decoders
56bdc69 stagefright-plugins: Move and update codec XML
1778caf stagefright-plugins: Clean up makefiles
f50a061 stagefright-plugins: Refactoring the extractor
1e35faa stagefright-plugins: Convert tabs to spaces
ee5d283 stagefright-plugins: Minor fix for FFMPEG 2.7

project external/wpa_supplicant_8/
1f6393f nl80211: add ifndef on AP SME condition

project frameworks/av/
c764b0a Merge remote-tracking branch 'cyanogenmod/cm-12.1' into cm-12.1-p4
a1fa45c audio: Fixed streamType for non-media streams
9cc1c24 audiopolicy: Fix call recording for legacy qcom HAL (again)
3fd6088 audio: fix incall music ifdefs (3/3)
489d096 ESQueue:use 0x000001 instead of 0x00000001 as sync word in H264/MPEG_VIDEO
4816034 Don't fail read when "seeking" to current position
5e179e6 libstagefright: free mMoovBoxBuffer
0d94b66 Signal EOS at end of mpeg video to flush out final sample
ba8d3f2 MediaCodec: use non-blocking call to get service
72ae734 Fix div zero error in corrupted media file
22a8369 Nuplayer: Fix no image or image will be delay issue
2aa3a23 frameworks/av: do not allow voip direct output for non 16-bit PCM
a39faef libstagefright: Support PCM channel mask update
f266c28 nuplayer: Don't write data to sink if sink is stopped
e640dc4 RTSPSource: check audio buffer count
e44aa1c NuPlayer: Fix for PCM offload fallback on BT
3759ee4 AudioFlinger: Add PCM offload format for dumpsys logging
67054e8 NuPlayer: Fix for pcm offload not using offload path after pause time out
774df3f NuPlayer: Fix incorrect time update for pause followed by seek, resume
45bbdff stagefright: Replace strncpy with strlcpy
1df821b frameworks/av: Fix NULL check for source
7ff13ee nuplayer: improve startup/rebuffering for http progressive playback
3cbb418 audio: removed stream type check from AudioTrack
16c78bb Fix several ineffective integer overflow checks
e586b3e Fix integer underflow in ESDS processing
3854030 Fix integer overflow during MP4 atom processing
a7cf34b Revert "audio: Reduce device switch delay"
14df986 nuplayer: start or stop audio sink from renderer only
ab5b940 NuPlayer: Clear stale track packets on seek
a43fc72 audiopolicy: Unbreak incall music
0546fab Merge branch 'cm-12.1' of into cm-12.1-p4
37882c1 audiopolicy: Use legacy alsa to guard incall music feature
4f9390d audiooutput: Serialize access to AudioOutput
96e0621 Nuplayer: During flush operation flush audiosink
4f6010d stagefright: Fix issues with software decoders
1e9fb53 Merge branch 'cm-12.1' of into cm-12.1-p4

project frameworks/base/
c0a5106 policy: Show a simple dialog about optimizing apps

project kernel/samsung/p4/
9d84b5d Revert "video: tegra: remove free memory check"
fea1797 bcmdhd: espresso10 driver
d24d7ff bcmdhd: Fix build for p4
805b82f net: wireless: bcmdhd: Enable p2p support bits for p2p device
caece2f bcmdhd: Disable pno support
5a0b388 bcmdhd: Enable Ad-Hoc (IBSS) mode
1e8eac5 backlight: cmc623: Reduce deadzone at lower backlight level
89df4af backlight: cmc623: Fix tune_level calculation
7a8aeea backlight: cmc623: Clean up code
8ff490f cpufreq: interactive: restructure CPUFREQ_GOV_LIMITS
089ace1 subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency
1e94567 block: Make CFQ default to IOPS mode on SSDs
28b524f fs: take i_mutex during prepare_binprm for set[ug]id executables
3559d50 ARM: tegra: Implement 6395/1 for Tegra
b07ee46 ARM: 7746/1: mm: lazy cache flushing on non-mapped pages
3422443 ARM: cacheflush: don't round address range up to nearest page
eef66cf video: tegra: cmc623: Fix build warnings
33d93b9 sensors: proxlight: bh1721fvc: Fix error log
6b2bc1c workqueue: make all workqueues non-reentrant
1e0d016 update defconfig
446a27e Revert "block, bfq: add Early Queue Merge (EQM) to BFQ-v7r7 for 3.1.0"
c22600d Revert "block: introduce the BFQ-v7r7 I/O sched for 3.1"
caaa9ce Revert "block: cgroups, kconfig, build bits for BFQ-v7r7-3.1"
2ea3d7f Revert "block: prepare I/O context code for BFQ-v7r7 for 3.1"
916953c block: prepare I/O context code for BFQ-v7r8 for 3.1
7a534fc block: cgroups, kconfig, build bits for BFQ-v7r8-3.1
04f0dd6 block: introduce the BFQ-v7r8 I/O sched for 3.1
fc6069b block, bfq: add Early Queue Merge (EQM) to BFQ-v7r8 for 3.1.0
5730193 Implement kexec-hardboot
78d6db6 defconfig: Enable kexec hardboot

project packages/apps/CMFileManager/
da3e50d Prevent possible OOBE when ran under monkey test
c5c6852 CM Easy Mode File Manager Navigation fixes
2ed65f0 Fix back arrow discoloration in action bar
3a81139 Automatic translation import
08a24ff Prevent possible OutOfBoundsException
835447a Update Editor Activity to handle Content URI
0c06f5c [CMFileManager] The remember selection don't work when open a file
41232db CMFileManager: Improved strings
0d31e17 [CMFileManager]Fix the FileManager Crash.
9a75e1b [CMFileManager]Fix CMFileManager sometimes crash.
4841e94 Automatic translation import
b1bac2d Fix there are no folders in NavigationView Pinned file manager
ae97d0f Automatic translation import

May 13, 2015
project bionic/
4b2a184 Revert "libc: tegra2: Try again Cortex-A9 optimized memcpy"
project device/samsung/p4-common/
4d817d0 p4-common: Prefer ffmpeg vp8 and vp9 decoder
project frameworks/av/
779252b libmedia: avoid processing stale callback events when track recycled
8b5540c libstagefright: Fix for handling of stream with corrupt frames
c764b0a Merge remote-tracking branch 'cyanogenmod/cm-12.1' into cm-12.1-p4

May 8, 2015
project bionic/
55a62b4 libc: tegra2: Try again Cortex-A9 optimized memcpy
dd34e6e libc: tegra2: Use Cortex-a9 strcpy
df6879e Use ARM assembly instructions for fabs/fabsf
project build/
fed24bb Allow a device to generically define its own headers
project external/f2fs-tools/
b3ed522 f2fs-tools: fix build system to make distcheck correctly
0dd62d1 configure: add check for fallocate
827d130 mkfs.f2fs: show bytes for total_sectors
563b7f3 fsck.f2fs: show cp_state for fsck.f2fs
5ef95c4 fsck.f2fs: show total sectors consumed by filesystem
77da947 mkfs.f2fs: add quite mode, -q
70677f4 mkfs.f2fs: 512 UTF-16 characters for label
6227183 fsck.f2fs: reduce redundant message
3965dfd fsck.f2fs: remove inconsistent named directories
1afeea2 fsck.f2fs: check file types
70ec5c5 fsck.f2fs: fix inodes having wrong i_links
8be5073 fsck.f2fs: skip block count fix when i_links is fixed
bcbc323 fsck.f2fs: preserve orphan blocks
5f81460 fsck.f2fs: return summary block pointer and types
27f4bbd fsck.f2fs: fix summary block
3331158 fsck.f2fs: fix corrupted dentries
b54be7e fsck.f2fs: count child directories correctly for i_links
1a7969f fsck.f2fs: fix missing i_links
4e29cee fsck.f2fs: clean up child information
c9d380e fsck.f2fs: fix missing dentries
9b2bd4f fsck.f2fs: fix orphan inode's link count
d110a43 Revert "mkfs.f2fs: 512 UTF-16 characters for label"
ad39d96 fsck.f2fs: show ckeckpoint version info
project external/ffmpeg/
7a4bdf1 Update FFMPEG 2.5.6
57e6214 Restore av_err2str
project external/libavc/
c72323e Fixed few issues seen in CTS tests
cd9e51f fix file permissions
25e8adb Resolved warnings and fixed alignment of few assemblies
project external/wpa_supplicant_8/
6aa95d8 P2P: Validate SSID element length before copying it
project frameworks/av/
fb629ad Ensure there is no two same storages showing on the computer.
12d059e MediaCodec: use non-blocking call to get service
bd4881c stagefright: Configure codecs correctly in the mediatek platform
f519217 audio policy: validate stream type received from binder calls.
9fe3b80 mpeg2ts: Enable timestamp reordering for HEVC TS content
4f68435 mpeg2ts: Clean up HEVC format checks
4828d45 Audioflinger: fix for hardware accelerated effects memory leak issue
fbe18e6 audiopolicy: fix crash in camcorder during voice call
d851d89 Revert "nuplayer: Modify seek and resume latency calculation"
ec8cc54 nuplayer: Fix bitrate propagation
8ffdb20 libstagefright: wfd: add option to omit using intra macroblock refresh mode
e48b311 Revert "nuplayer: do not use cached source for wvm content -- DO NOT MERGE"
dd2e326 stagefright: httplive: Bring in line with upstream
6f0df50 Merge remote-tracking branch 'cyanogenmod/cm-12.1' into cm-12.1-p4
project frameworks/base/
2df81c2 Revert "Revert "DimLayer : remove unnecessary surface transaction calls""
e62470c Revert "Revert "Remove the window whose client process has died or become zombie""
549dd1e Revert "Revert "Improve concurrency by propagating B services to higher adj""
4c3616f Revert "Revert "hwui : fix memory leak due to duplicate in shadow cache""
24c5a33 Left nav bar (1/2)
project frameworks/opt/net/wifi/
55d2439 Revert "aggressively blacklist WifiConfiguration for the purpose of switching network"
project kernel/samsung/p4/
19cba0d defconfig: Enable tegra errata
10196cb Update f2fs to for-f2fs-4.1 from Jaegeuk's linux-3.4 branch
8c2e022 f2fs: support for kernel 3.1
3fb6d1c Revert "f2fs: enhance multi-threads performance"
90acd29 f2fs: fix wrong error hanlder in f2fs_follow_link
5c2888f misc: nct1008: add id for nct72
67cda80 drivers: nct: exposed nct internal/external temps
bbf52b4 drivers: misc: nct: fix section mismatch warning
c6e502f misc: nct: section mismatch fix
c3d4ef6 drivers: nct: shutdown and thermal register
86e596e drivers: misc: nct driver decouple
5cbba8d drivers: nct: Fixed uninitialized variable
a35f766 drivers: nct: Added hysteresis
1693f51 arm: tegra: thermal: nct1008 support for p4wifi
c5ab0eb ARM: tegra: thermal: Remove tegra therm dependency
ed27375 defconfig: enable config thermal
5419b99 arm: tegra: thermal: nct1008 support for rest of samsung pX boards
8e9f5aa ipv4: Missing sk_nulls_node_init() in ping_unhash().
0029ee9 Revert "Revert "kernel:sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire""
39ac867 fs: aio: Fix bad merge
d31abd7 Revert "Revert "android: lowmemorykiller: squash task adj rbtree optimization from Motorola""
cc8bc12 defconfig: use Motorola's lmk optimizations
323c773 drivers:lmk: Fix double delete issue
cea73cb lmk: wrap the lmk code with config
468715e staging:android:lmk: read rb tree root with spinlock
aaedf1c Revert "cpufreq: interactive: Remove trace event from idle_start handler"
f77ca4f Revert "cpufreq: interactive: Reset floor_validate_time if busy at max for 100ms"
3c5b25d tcp: fix FIONREAD/SIOCINQ
ac157b0 defconfig: Turn off CONFIG_CC_OPTIMIZE_FOR_SIZE
4711923 Revert "defconfig: Enable tegra errata"
acc31c5 defconfig: use Motorola's lmk optimizations
project packages/apps/Settings/
6d1fc14 Left nav bar (2/2)

April 28, 2015
Fix no sim card detected for p4.

April 26, 2015
I haven't encountered any freezing after these changes. 
It now has ICS audio wrapper by default. This should be suitable for most users. I think it is only those who use the audio dock that need to install the old ICS audio HAL. 

project bionic/
f354b2a Revert "libc: tegra2: Cortex-A9 optimized memcpy"
project kernel/samsung/p4/
8c44c03e Revert "mutex: Place lock in contended state after fastpath_lock failure"
31cd532 Revert "ARM: 7587/1: implement optimized percpu variable access"
23a755f Revert "ARM: mutex: use generic atomic_dec-based implementation for ARMv6+"
b664aa6 Revert "ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+"

April 23, 2015
50f9704 libaudio: spdif: write the bytes all at once
cab7db4 AudioWrappers: Update audio policy for Lollipop
41ce091 AudioWrappers: Reduce logging from info to verbose
721ffe7 AudioWrappers: Build the audio policy
55977a5 Update media codec definitions
6e35f2c Default to AwesomePlayer
c9721c0 Build audio_policy.tegra
0390ad9 sepolicy: Bluetooth tethering
a87c048 sepolicy: Wifi tethering denials
c668cd8 Merge tag 'android-5.1.0_r5' into aosp-5.1.0-p4
fddab84 PackageManager: allow build-time disabling of components
2084b02 SystemUpdateService: enable service but lock its receivers [1/2]
5494227 base: nat464X: Only update ipv4 pseudo-interface when it's connected
37f1430 base: ConnectivityServer: Don't reap the new network
652814c Revert "DimLayer : remove unnecessary surface transaction calls"
0cfc66b Revert "Remove the window whose client process has died or become zombie"
e6977b3 Revert "Improve concurrency by propagating B services to higher adj"
cb61503 Revert "hwui : fix memory leak due to duplicate in shadow cache"
d8af7f7 Merge tag 'android-5.1.1_r1' into aosp-5.1.0-p4

517c9ed arm: tegra: display: provide framebuffer clear function
9eff89f arm: tegra: display: handle fbmem2 cmdline parameter
a8e6af0 arm: tegra: atags: properly parse tegra bootloader tags
4b6f9be mach-tegra: fix type of iram start/end
793b4f9 video: tegra: p4: clear fb2 unspecified by bootloader
57348aa Revert "CHROMIUM: media: tegra: set the clock rate of avp.sclk for T20/T25"
5b30ebe video: tegra: remove free memory check
b950460 ARM: 7478/1: errata: extend workaround for erratum #720789
f76e8c6 mutex: Place lock in contended state after fastpath_lock failure
cb6b69b6 ARM: 7178/1: fault.c: Port OOM changes into do_page_fault

April 14, 2015
Update CMFileManager
Update telephony frameworks
Switch to CyanogenMod 12.1 audio/video frameworks
7eab128 libc: Restore cortex-a9 to aosp
6a71b00 libc: tegra2: A9 optimized memcmp and memcpy
188a198 Fix memchr overflow.
6b49e30 Make libaudio optional
4c1cf12 Add AudioWrappers by Thomas Wendt
ea20ddc Revert "PowerHAL: Set interactive go_hispeed_load to 95"

37a1489 defconfig: bring up p4tmo and p4lte
23538be ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+
1e8b290 ARM: mutex: use generic atomic_dec-based implementation for ARMv6+
27c2485 ARM: 7587/1: implement optimized percpu variable access
eed8b4d Revert "cpufreq: interactive: Add get_cpu_idle_time() to for 3.1 compatibility"
450ce14 Revert "cpufreq: interactive: Update from hammerhead kernel"
062577f Revert "android: lowmemorykiller: squash task adj rbtree optimization from Motorola"
c6c5386 Revert "introduce for_each_thread() to replace the buggy while_each_thread()"
c77524c cpufreq: tegra2 voltage control: Improve undervolt table
a1c95e6 arm: tegra: p75xx: Apply OC voltages only to speedo 1 process 0 and 1 chips

April 3, 2015
Revert "PowerHAL: interactive scheduler settings from grouper"
PowerHAL: Set interactive go_hispeed_load to 95
make switch to last app animation snappier
[ActivityManager] Prevent provider from been created twice.
[ActivityManager] fix NPE in ActivityStack.resetTargetTaskIfNeededLocked.
Layout the config-changed window if it has surface
[ActivityManager] Reset ActivityRecord's waitingVisible
[ActivityManager] Use synchronized to protect object
PackageManager: Restrict system packages to protected storage
ResolverActivity: fix null pointer exception
[ActivityManager] Ensure provider external access count will be released.
[ActivityManager] Improve task order of getRunningTasks.
[ActivityManager] Fix index out of bounds when updating next pss time.
[ActivityManager] Avoid orphan ContentProviderRecord.
[ActivityManager] Reduce report wrong anr activity
Avoid deadlock between ActivityManagerService and ProcessStatsService.
[ActivityManager] Fix adjust to wrong focused stack
[ActivityManager] Set appropriate relation of task to home
[ActivityManager] Prevent application holding AMS lock
[ActivityManager] Fix process record leakage.
[ActivityManager] Distinguish FG or BG receiver finished
Prevent system server dump stuck by pipe buffer full.
[ActivityManager] Fix activity always visible.
Revert "[ActivityManager] Set appropriate relation of task to home"
Revert "Revert "[ActivityManager] Set appropriate relation of task to home""
Revert "[ActivityManager] Improve task order of getRunningTasks."
MediaCodec: Update cached buffers in async mode
Perform once GCs on all app process when system ready
Clear the previous states before setting the new app visibility
Remove the window whose client process has died or become zombie
hwui : fix memory leak due to duplicate in shadow cache
[ActivityManager] Avoid killing unrelated processes.
Layout the window to be displayed if it would be resized
DimLayer : remove unnecessary surface transaction calls
Wait for opening apps ready before stopping freezing display
Wait for visible wallpaper drawn before starting app transitions
Assign more reasonable width and height of a window surface
Fixes large number of thumbnails leads to low memory
Improve concurrency by propagating B services to higher adj
Revert "third part apps can unlock the phone without password even if the phone has setted the password"
[ActivityManager] Improve multi-thread access the same provider
Remove unnecessary sleep in ActivityThread.
Revert "ResolverActivity: fix null pointer exception"
CMFileManager: change warning drawables used in dialogs for visibility
Revert "ARM: Tegra: Added support to run at two frequency modes"
CHROMIUM: media: tegra: set the clock rate of VDE for T20/T25
CHROMIUM: media: tegra: set the clock rate of avp.sclk for T20/T25
CHROMIUM: arm: tegra: fix cpu clock transition latency
arm: tegra: p4/p4wifi: Enable uartb clock only when needed
CHROMIUM: arm: tegra: clocks: sanity-check clocks at boot
ARM: tegra: move secondary start kernel message
cpufreq: interactive: Update from hammerhead kernel
cpufreq: interactive: Add get_cpu_idle_time() to for 3.1 compatibility

March 28, 2015
AppOps/Privacy Guard from cm-12.0
f2fs-tools 1.4.1
p4-common: HDMI audio (untested work in progress)
fs_mgr: Skip filesystem check unless fs_type matches
frameworks/base: Clear recents fixes from cm-12.0
Revert "disable DEBUG_SEC configs"
radix_tree: clean away saw_unset_tag leftovers
radix_tree: remove radix_tree_indirect_to_ptr()
radix_tree: take radix_tree_path off stack
radix-tree: introduce bit-optimized iterator
radix-tree: rewrite gang lookup using iterator
radix-tree: fix preload vector size
radix-tree: fix contiguous iterator
Update f2fs from Jaegeuk's linux-3.4 branch
f2fs: support for kernel 3.1
mm: shmem: use new radix tree iterator
radix-tree: use iterators in find_get_pages* functions

March 20, 2015
Add init.d support
PowerHAL: Tweak interactive scheduler parameters
Settings: Add option to scramble pin layout when unlocking (1/2).
Keyguard: Add option to scramble pin layout when unlocking (2/2).
Add global scramble pin layout setting.
base [1/6]: fix screenshot and rotation animation
native [2/6]: init display orientation according to panel orientation
native [3/6]: surfaceflinger: reimplement hwrotation
native [4/6]: surfaceflinger: odd hw rotation (90/270) patch for swapping width/height
native [5/6]: surfaceflinger: fix boot animation rotation problem
native [6]: surfaceflinger: consolidate display orientation compensation hooks
Revert "defconfig: disable HW crypto engine"
arm: tegra2: Revert clocks to ICS code
ARM: tegra: clock: Update secondary pll dividers resume
ARM: tegra: clock: Add reset propagation delays
arm: tegra2: Restore p4 and p4wifi overclock
Tegra2 voltage control
defconfig: Enable overclock and voltage control
ARM: Tegra: Added support to run at two frequency modes
Revert "Revert "arm: config: p4wifi: Enable zRAM options suggested by Google""
arm: tegra2: Set tegra_pm_notify to nvidia nv-3.1 behaviour
arm: tegra2: Remove 150Mhz step
See post #980 for additional notes.

March 13, 2015
Update to Android 5.1.0_r1
 - Install TWRP
 - Do a full wipe then install the ROM.
 - Default SELinux mode is Permissive. Install the "enforcing" bootimage if you want to enable SELinux.
I did not merge Android 5.1.0 into my 5.0.x sources. The necessary changes were cherry-picked from my 5.0.x sources on to the new Android 5.1.0_r1 sources.
I've gone back to using the AOSP repositories for Bluetooth/bluedroid and frameworks_av instead of CyanogenMod. I don't know what their timeline is for moving to CM-12.1. 
The 3G parts from OmniROM have been updated. I hadn't bothered to update it previously out of fear of breaking it. I only have the WIFI tablet so 3G is untested.
Most other things should be working the same as with the AOSP 5.0.x ROM.

Other Changes:
bionic: libc: tegra: Switch some parts from Generic to Cortex-A9 
boringssl: Remove client-side support for ServerKeyExchange in the RSA key exchange. (CVE-2015-0204)

defconfig: disable HW crypto engine
net/ping: handle protocol mismatching scenario
ARM: 8118/1: crypto: sha1/make use of common SHA-1 structures
ARM: add .gitignore entry for aesbs-core.S
ARM: move AES typedefs and function prototypes to separate header
ARM: 7723/1: crypto: sha1-armv4-large.S: fix SP handling
mac80211 & nl80211: add support to abort a scan request on tx
Revert "arm: config: p4wifi: Enable zRAM options suggested by Google"
ARM: tegra: Remove timer workaround

March 5, 2015
PowerHAL: Update for Lollipop
 - Low Power Mode power hint caps the maximum frequency to 456Mhz.
 - Remove non-existent input_boost and boost_factor (gone in kernel 3.4 interactive scheduler).
 - Refactor nonsensical logic in p3_power_set_interactive.
 - setInteractive on: set go_hispeed_load to 85 . setInteractive off: set go_hispeed_load to 99.
Fix widevine lib paths
p4-common: Fix "stagefright: Add legacy MediaBuffer::acquireBuffer symbol" from switch to cm-12.0 frameworks/av
hwc: Crop the first layer instead of the second
system/core: Revert "fs_mgr: Use fsck.f2fs auto fix flag"
bionic: Use QCOM sqrt optimization on tegra2
libpng: Fix buffer overflow security vulnerability (CVE-2014-9495)
libpng: Restore a width check that was removed from png.c (CVE-2015-0973)
openssl: Upgrade to 1.0.1l (CVE-2015-0204)
Update cm-12.0 android_external_bluetooth_bluedroid
Update cm-12.0 android_frameworks_av

Upgrade BFQ-v6r2 to BFQ-v7r7
netfilter: nf_conntrack_dccp: fix skb_header_pointer API usages (CVE-2014-2523)
mnt: Only change user settable mount flags in remount (CVE-2014-5206)
cfq-iosched: Fix null pointer dereference
cpufreq: interactive: turn boost_pulse off on boost off
cpufreq: interactive: fix compiling warnings
cpufreq: interactive: Reset floor_validate_time if busy at max for 100ms
cpufreq: interactive: Remove trace event from idle_start handler
cpufreq: interactive: delete timers for GOV_START
arm/crypto: Add optimized AES and SHA1 routines
ARM: 7626/1: arm/crypto: Make asm SHA-1 and AES code Thumb-2 compatible
ARM: 7837/3: fix Thumb-2 bug in AES assembler code
add extra free kbytes tunable
mmc: use really long write timeout to deal with crappy cards
ARM: tegra: clock: Update secondary pll dividers resume
ARM: tegra: clock: Add reset propagation delays
See post #884 for additional notes

February 25, 2015
 f2fs-tools 1.40
 fs_mgr: Add fsck.f2fs auto fix arg
 Update cm-12.0 android_frameworks_av
 Disable tegra2 stat_mon
 bcmdhd: Set custom dpc cpu core
 bcmdhd: add threaded rx frame
 bcmdhd: use kthread_run instead of kernel_thread
 f2fs-tools 1.40
See post #838 for additional notes

February 19, 2015
 - Add 3G radio permissions (thanks to Prowler665)
 - Fix boot from lpm charging with selinux enforcing
 Update cm-12.0: bluedroid, CMFileManager, busybox
 Exchange: fix call wrong service when reschedule an eas ping 
 exchange: use the port returned by autodiscover response
 ksm: Provide support to use deferred timers for scanner thread
 cgroup: remove synchronize_rcu() from cgroup_attach_{task|proc}()
 Revert "kernel:sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire"
 Revert "cpufreq: Report correct min/max frequencies."
 disable DEBUG_SEC configs
See post #799 for additional notes.

February 9, 2015
 fstab: Add F2FS data and cache partition
 Build Launcher3
 bluetooth: Allow larger a2dp bursts per tick
 Update cm-12.0 parts
 - android_external_bluetooth_bluedroid
 - android_frameworks_av
 - CMFileManager
 hwrotation for Galaxy Tab 8.9
 F2FS backports from grouper kernel
 Build on android 5.0 sources
 Allow mkfs to be run
See post #722 for additional notes.

January 31, 2015
hwc: Fix blurryness in portrait
wpa_supplicant: Use legacy NL80211 STA events for older drivers
Update CyanogenMod/android_frameworks_av
kernel: Cherry-pick things from AOSP kernel/tegra

January 27, 2015
Revert "WindowManagerService: Fix On-Screen keyboard popups when hw-keyboard is present"
libaudio: Bad sleep times when pcm_get_htimestamp() fails

January 25, 2015
Another try at buggy hwcomposer workaround [1]
    Revert invisible layer workaround
Input method selector notification toggle
Fix On-Screen keyboard popups when hw-keyboard is present [2]
Fix missing break statement in GPS code (improves signal locking)
Update CMFileManager
Update CyanogenMod/android_frameworks_av
ANR and NPE fixes AOSP master and CyanogenMod cm-12.0
Misc. small optimizations from AOSP master and CyanogenMod cm-12.0
Show Optimizing app dialog on first boot
Lockscreen pin scrambling
Expanded desktop
Re-enable Samsung dock driver
Compile kernel with Linaro 4.9 toolchain

January 18, 2015
Extend buggy hwcomposer workaround to lockscreen and multi-user
Enable target running without sync framework flag

January 16, 2015
Fix HWC rendering path
Fix SurfaceFlinger source crop
Switched to hwcomposer 1.0 wrapper
Work around proprietary hwcomposer blob glitches
See post #545 for additional info

January 10, 2015
revert Add 48kHz A2DP to audio policy
Fix WIFI access point not being rememberd
overlay: Add setting for dock audio and power control widget
Add ICS audio blob hacks to CM-12.0 frameworks av and build old ICS audio HAL for those that use it

January 9, 2015
Recompiled wifi driver without verbose debugging
Fix microphone breakage in 20150108 build

January 8, 2015
 - Advanced reboot menu (enable in Developer Options)
 - Close all recent apps button
 - Long press Recents to switch to last app
 - Long press Back to force close app (enable in Developer Options)
Audio HAL
 - Dock audio output path
 - BT SCO audio output paths
 - Ringer paths
Add 48kHz A2DP to audio policy
Wifi firmware from to
Switch to CyanogenMod/android_frameworks_av [1]
Switch to video codecs from Toradex Android tarballs [2]
Updated Widevine DRM libraries [3]
Update CMFilemanager
 - Backported a few wifi P2P driver changes. (WIFI Direct still not working.)
See post #463 for additional notes.

January 1, 2015
Fix memory leak in system_server when screen on/off. reference.
Add DSPManager app
Add missing Java library needed for Bluetooth
Add the new Lollipop audio HAL
Add audio remote submix policy
Build the standard audio policy manager instead of the legacy audio policy manager
Fix email combined view crash

If there are any problems with the new audio HAL then please save a logcat of the problem and send it over! If we can get it working without many problems then we can get rid of the old ICS audio blobs forever. This will make it easier to port present and future ROMs.

To go back to the old ICS audio just install the package.

See post #387 for additional notes.

December 30, 2014
Experimental: Initial version of audio HAL for Android 5.0 API. See post #368 
To revert back to the ICS audio HAL install this. 
It's just the audio HAL from the 20141222 ROM. 

December 27, 2014
Standalone fix for Combined View in Email:

Experimental build 20141227
Bluetooth audio output
This is for testing. This audio code will not be included in the regular builds yet.
See Post #351 for more info.

December 22, 2014
Update to Android 5.0.2
Switched from userdebug to user build. 
Switched to healthd charger. No longer using the old LPM charger method.
Reverted a change in media_codecs.xml
Cherry picked some Bluetooth stack commits from CyanogenMod 12.0

December 19, 2014
Fix Email app crashing at start up.

December 17, 2014
3G fixes

December 16, 2014
Revert frameworks_av changes
Switch to OmniROM frameworks_opt_telephony
Add CMFilemanager and Busybox
Fix camera switching force close:
TWRP: Added encryption support.

December 6, 2014
Update to Android 5.0.1

November 27, 2014
Fixed charger mode
Added support OTA survival scripts
Added power menu Reboot action
Removed device check from p4wifi installer
Updated gapps

November 20, 2014
[new] Update to android 5.0.0 r7 (LRX21V)
[new] kernel: arm: tegra: Add an API call to log wakeup reasons
[changed] Enable multi user UI
[changed] Bluetooth audio compatibility backports
[fixed] Browser settings crash

November 15, 2014
[fixed] keyboard on p4

November 14, 2014
[changed] updater-script: Use pre-lollipop installer script

November 13, 2014
[new] Add Lollipop support to p4wifi device sources
[new] Android Lollipop frameworks compatibility fixes for p4wifi
[fixed] Kernel: Fix reboot hang when compiled with GCC > 4.7
[fixed] Kernel: Misc GCC compilation fixes
[fixed] Kernel: netfilter: Add missing commits

  • Video
  • Audio
  • Wifi
  • 3G
  • GPS
  • Encryption
Not working or buggy
  • Bluetooth
    --- Pairing and tethering working
    --- Audio output working with the Lollipop audio HAL
    --- Other bluetooth functionality may or may not be working
  • Camera.
    --- Panorama does not work.
  • Keyboard dock
    --- Not working.
  • WIFI tethering
    --- Works if you set custom DNS servers on the client
  • WIFI Direct
    --- Might be working since 20150620. Might be buggy for some.
  • Wireless Display (Miracast) / Screen recording
    --- Not working.
    --- Miracast support was introduced in Jellybean
    --- Lollipop has a new screen recording API
    --- This is device only has ICS graphics blobs which are not compatible with Lollipop screen recording

Via Paypal

Thanks To/Credits
* All of the developers and contributors for this device
* All of the users who send system logs and bug reports
* twa_priv
* AAccount
* BeeGee_Tokyo
* kasper_h
* pershoot
XDA:DevDB Information
Android 5.1 Lollipop, ROM for the Samsung Galaxy Tab 10.1

Source Code:

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.1.x
Based On: AOSP

Version Information
Status: Stable

Created 2014-11-13
Last Updated 2017-10-09
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-11-13-17-23-26.png
Views:	113862
Size:	52.9 KB
ID:	3013415  
The Following 205 Users Say Thank You to decatf For This Useful Post: [ View ] Gift decatf Ad-Free
13th November 2014, 05:18 PM |#2  
OP Senior Member
Thanks Meter: 2,605
Donate to Me
FAQ and common problems
* How to root the ROM
Install TWRP
Install ChainFire SuperSU zip in recovery.

Video / audio issues

* Chrome crashes when playing videos
It is a bug in newer versions of Chrome. Only Google can fix it. Use Chrome 29.x or older for HTML5 video playback.
Update - 2015-05-14 - Chrome version 42.0.2311.111: HTML5 videos are not crashing but they only work in full screen mode.
* Low sound volume with Lollipop audio HAL
Use Voodoo Sound app to increase the headphone amplification.
* Youtube video freezes but audio still playing
Set quality to 480p or less.
* Can we fix laggy video playback? Can we fix Youtube HD video?
* Why can't we fix video playback?
The video drivers and codecs are closed source. We cannot modify it. We cannot debug it.
There are no other video drivers or video codecs except for the ICS drivers and codecs. Video streaming technology advances but we are stuck with old drivers and codecs from ICS.
* Can we use ICS / Jellybean / Kitkat video drivers?
We have always been using ICS video drivers. There is no other driver.
Every ROM for this tablet is using the ICS video drivers.
Every single one. No exceptions.
* Youtube HD worked with ICS ROM. Why doesn't it work now?
The drivers are outdated. The video drivers are from 2011. The recent Youtube app is using 2015 streaming technology.
* Can we write new drivers? Can we update the drivers?
No. There is no open source code. There is no technical documentation. We can't do anything without both of those. There is no where to start from. There is nothing that can be modified.
* Why is there no open source code or technical documentation for video drivers?
They are closely guarded NVidia secrets. They will not release it to the public.

Misc. issues

* Can't mount USB storage. How to mount USB storage?
Use StickMount
* TRIM does not work. (fstrim : FSTRIM: Operation not supported on transport endpoint)
TRIM is disabled due to the eMMC "SuperBrick" bug
* Undervolting
Use this at your own risk!
The only app for voltage control that is officially supported by this kernel is SetCPU.
Most apps use the same kernel interface for voltage control but none of the app developers agreed on a standard interface. For that reason it is impossible to support all apps. Do not use any other app for voltage control.
* Do CyanogenMod themes work?
* Do Touchwiz themes work?
* CM-12 themes?
* CM-11 themes?
* Swipe gesture not working with stock keyboard.
Swipe gestures will not work with the stock keyboard. Install the Google Keyboard.
It requires a proprietary library from Google. This closed source module does not work on this tablet.
* I have some other problem.
Send me system logs and describe in detail what the problem is. See Problem Reporting Steps below.
Problem reporting steps:

How to send system logs:
  1. Root the device by installing ChainFires SuperSU.
  2. Install SysLog.
  3. Reproduce the problem.
  4. Open Syslog app and save the Kernel Log and Main Log.
  5. Send me the log files stored in /sdcard/Syslog.
    Share the files on Dropbox or another similar site.
    Then PM me a link to the files. Please describe exactly what the issue is.
The Following 37 Users Say Thank You to decatf For This Useful Post: [ View ] Gift decatf Ad-Free
13th November 2014, 06:21 PM |#3  
eushaun99's Avatar
Senior Member
Flag Subang Jaya
Thanks Meter: 974
Damn! I definitely wasn't expecting this so quickly since it took so long for KK to arrive for our tab. Thanks a lot for this. Hopefully we can see a p4 build since it has almost the same source tree as p4wifi. Even if we can't, I'd still be flashing this on my p4.

Sent from my GT-P7500 using Tapatalk
13th November 2014, 06:33 PM |#4  
OP Senior Member
Thanks Meter: 2,605
Donate to Me
Originally Posted by eushaun99

Damn! I definitely wasn't expecting this so quickly since it took so long for KK to arrive for our tab. Thanks a lot for this. Hopefully we can see a p4 build since it has almost the same source tree as p4wifi. Even if we can't, I'd still be flashing this on my p4.

Sent from my GT-P7500 using Tapatalk

I'm going to put up a p4 build. But since I only have the p4wifi I have no guarantees that it will work right away...
The Following 5 Users Say Thank You to decatf For This Useful Post: [ View ] Gift decatf Ad-Free
13th November 2014, 06:50 PM |#5  
eushaun99's Avatar
Senior Member
Flag Subang Jaya
Thanks Meter: 974
Originally Posted by decatf

I'm going to put up a p4 build. But since I only have the p4wifi I have no guarantees that it will work right away...

I can test it, but I can't test the 3g since I don't have a sim card for my tab.

Sent from my GT-P7500 using Tapatalk
13th November 2014, 07:30 PM |#6  
Thanks Meter: 1
Hows the speed?
Laggy or very usable like omni rom by AAccount?
13th November 2014, 07:43 PM |#7  
OP Senior Member
Thanks Meter: 2,605
Donate to Me
Originally Posted by .me

Hows the speed?
Laggy or very usable like omni rom by AAccount?

The performance is similar to Kitkat. It didn't get much better or worse.
13th November 2014, 08:22 PM |#8  
giorat96's Avatar
Junior Member
Thanks Meter: 0
Good work!! Can you release the Sources of this rom so I can build it too and help you to improve it!
13th November 2014, 09:11 PM |#9  
Olivier V's Avatar
Senior Member
Thanks Meter: 78
It's that weird time of the year again where my old GT-P7510 is going to run lollypop before my Nexus receives it's ota! 😄
Small question, I did my twrp backup and downloaded everything. Now, can I just restore my cm10.2 backup is I don't like how lollypop runs on my tablet?

Sent from my Nexus 7 2013
13th November 2014, 09:25 PM |#10  
Junior Member
Thanks Meter: 6
Edit : I flashed the gapps and its all good. I guess there is no way to make the tab faster though right ?

I just tried to flash this rom.
When I flash it the first time I couldn't do anything (ie open the browser, open play store etc). Every app was crashing.

I then tried to flash it twice in a row. The problem is after flashing it once, TWRP disappeared when I tried to boot the recovery. Instead I had the dead android with a read triangle with a "!" inside.

Anyone can help ?

Thank you for helping and thank you to the developer that cooked this.
The Following User Says Thank You to diperso For This Useful Post: [ View ] Gift diperso Ad-Free
13th November 2014, 09:53 PM |#11  
Thanks Meter: 12
Thumbs up
Wow, thank you for your great work!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes