• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][GT-P52XX][UNOFFICIAL][5.1.1] CyanogenMod 12.1

nels83

Senior Member
Apr 12, 2015
405
2,611
0
Unofficial CyanogenMod 12.1 for Samsung Galaxy Tab 3 10.1

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include 
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards, ...
 * You flash this at your own risks
 */
About CM

CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

Important information

You need a recent TWRP version to flash this ROM.

Installation

First time installing or coming from another ROM
  • Copy ROM to SDCard
  • Copy Houdini to SDCard
  • Copy GApps to SDCard
  • Boot into recovery
  • Backup EFS partition
  • Wipe -> Advanced Wipe -> Dalvik Cache + System + Cache + Data
  • Install ROM
  • Install Houdini
  • Install GApps
  • Reboot
  • First start takes a long time

Upgrading from earlier version of CyanogenMod 12.1
  • Copy ROM to SDCard
  • Boot into recovery
  • Install ROM
  • Reboot

[OPTIONAL] Converting filesystem to F2FS (thanks @michiil)

The ROM has F2FS support. You may want to use it instead of the default (EXT4).

This will delete ALL files/data from your tab.

What you will need: A working PC and a working USB cable.

  1. Install the most recent Recovery
    Download the most recent Recovery from the second post. Flash the zip file in recovery. Back in the main menu press Reboot > Recovery
  2. Format Data and Cache to F2FS
    Wipe > choose Cache > repair or change file system > change file system > F2FS > Swipe to Confirm
    Go back and repeat the same steps with Data. I got some error messages when formatting Data but they don't seem to be a problem.
    Back in the main menu press Reboot > Recovery
  3. Install Rom + Houdini + Gapps
    Connect your tab to your PC and copy the zip files on the tab.
    Flash the files, reboot and enjoy :good:

How to get back to EXT4

You will again loose all files/data on the tab.
Just repeat Step 2 but use EXT4 instead of F2FS.

What's working

  • RIL for P5200 (data, SMS/MMS, calls)
  • GPS
  • 2D/3D acceleration
  • HW video encoding/decoding
  • Screen cast (miracast)
  • Sound
  • InfraRed
  • Camera
  • Wifi
  • Bluetooth
  • Sensors (and automatic brightness)
  • Smart cover lock/unlock
  • Multiuser
  • SDCard, USB OTG
  • Tethering (USB, Bluetooth, Wifi)
  • F2FS and exFAT

What's not working

  • Chromecast
  • RIL (for P5220)
  • MHL
  • Secure videos/DRM (Widevine, Google Play Movies...)
  • HW audio decoding
  • SELinux (disabled)
  • You tell me

How to root

  • Go to 'Settings/About tablet'
  • Tap 7 times on 'Build number'
  • Go back
  • Go to 'Developer options'
  • Tap on 'Root access'
  • Select 'Apps only' ('Apps and ADB' if you plan to use it in adb shell)

How to help

When something is not working correctly, in addition to common informations, I may ask you to provide logs. There are different kind of logs and it's not always easy to get all of them. For this, you can use SysLog (available on F-Droid or Google Play.

There is currently a bug in the app. Download it from AndroidFileHost. Use this patch if you want to compile it yourself:

Code:
diff --git a/app/src/main/java/com/tortel/syslog/utils/Utils.java b/app/src/main/java/com/tortel/syslog/utils/Utils.java
index 40d41b8..80ae55c 100644
--- a/app/src/main/java/com/tortel/syslog/utils/Utils.java
+++ b/app/src/main/java/com/tortel/syslog/utils/Utils.java
@@ -144,7 +144,7 @@ public class Utils {
 
             Log.v(TAG, "Path: "+path);
             //Make the directory
-            if(!outPath.mkdirs() && !outPath.isDirectory()){
+            if(!outPath.mkdirs() || !outPath.isDirectory()){
                 throw new CreateFolderException();
             }
Make sure to root device before using this app.

To get the logs:
  • Start SysLog
  • Click on 'TAKE LOG'
  • Once log is taken, SysLog will try to share the resulting file, just cancel
  • Send me the file /sdcard/SysLog/[YYYY-MM-DD_HH.mm]/[YYYY-MM-DD_HH.mm].zip

If you left 'Scrub potentially personal information from the logs' checked, you should be safe.

ROM sources

Credits

  • Angel_666 , moonbutt74 and Restl3ss for starting the work on this device
  • Android-Andi for his device tree
  • Deltadroid for his GApps package
  • All testers of the "signup" thread
  • CyanogenMod and Google for Android
  • XDA
  • AndroidFileHost

XDA:DevDB Information
CyanogenMod 12.1 for GT-P52XX, ROM for the Samsung Galaxy Tab 3 10.1

Contributors
nels83
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
Based On: CyanogenMod

Version Information
Status: Beta

Created 2015-05-05
Last Updated 2016-05-29
 

nels83

Senior Member
Apr 12, 2015
405
2,611
0
Downloads

ROM

ROM - Beta 4 (20160529)
Galaxy Tab 3 10.1 3G : GT-P5200 (MD5)
Galaxy Tab 3 10.1 Wifi : GT-P5210 (MD5)
Galaxy Tab 3 10.1 LTE : GT-P5220 (MD5)

You can find old versions on AndroidFileHost. Version code is in file description.

Houdini (20150521)
Houdini for Android 5.0 (MD5)

GApps
See Open Gapps, select Platform x86 and Android 5.1.

TWRP

See TWRP thread.

Other

Flash player (11.1.112.60)
Flash player for x86


Note
There is currently a bug with HW video decoding/encoding: you can't have both. By default, the ROM provides HW video encoding but partial HW video decoding.
If you want full HW video decoding, you can flash hw_decode.zip (you will however loose HW video encoding).
Fixed in alpha 11.

A bug appeared in Alpha 13 causing voice calls (in P5200) to be muted. It will be fixed in Beta 2. In the meantime, you can flash audio_test3.zip after flashing the ROM. Fixed in beta 2.
 
Last edited:

nels83

Senior Member
Apr 12, 2015
405
2,611
0
Changes

Changelog

Beta 4 (20160529)
- CM update

Old changes


Beta 3 (20160210)
- CM update
- Fixed GPS
- Updated F2FS driver

Beta 2 (20151120)
- CM update (stable/cm-12.1-YOG7D)
- Fixed audio calls
- Speaker by default for audio calls
- Fixed video artifacts

Beta 1 (20151027)
- CM update
- Better hardware buttons responsiveness
- Enabled wifi hotspot for GT-P5210

Alpha 15 (20151012)
- CM update
- Button lights are activated only when touching them (thanks to pawitp)
- Reduced boot time (first one and when using encryption)

Alpha 14 (20150922)
- CM update
- Fixed device encryption
- Added HW keystore
- Disabled CABC
- Added stock extSdCard symlink (thanks @HassoNas)
- Reduced boot time by launching MDS service (thanks to Tran Huu Tin)

Alpha 13 (20150902)
- Based on CM 12.1 YOG4 stable branch
- Fixed sensors
- Optimized zram
- Added KeyDisabler
- Added CABC

Alpha 12 (20150806)
- CM Sync
- Fixed voice calls for P5200
- Fixed GPS for P5200/P5220 (still partial support)
- Fixed permissions for interactive governor
- Used proper OmniROM patch for cursor
- Added deadline I/O scheduler
- Reverted to CFQ I/O scheduler by default
- Disabled KSM

Alpha 11 (20150728)
- CM Sync
- Fixed video encoding
- Fixed audio bugs appearing in some games
- Added FIOPS I/O scheduler (enabled by default)

Alpha 10 (20150711)
- CM Sync (Android 5.1.1_r6)
- Fixed USB OTG settings
- Added performance profiles
- Fixed more green bar on some videos
- Fixed reversed volume button
- Reverted power hal

Alpha 9 (20150615)
- CM Sync
- Added Stk and SamsungServiceMode
- Fixed pinch zoom (by CM)
- Set lz4 compression for zram
- Set lzma compression for kernel
- Cleanups / merges

Alpha 8 (20150605)
- CM Sync
- Fixed third party VPN
- Added smart cover support
- Various fixes

Alpha 7 (20150601)
- CM Sync
- Enabled KSM (for real, missed a commit in alpha 6)
- Fixed audio glitches
- Fixed green bar on some videos
- Added F2FS support (needs TWRP 2.8.6.0 V2)

Alpha 6 (20150528)
- CM Sync (Android 5.1.1_r3)
- Enabled KSM and zram
- Forced menu icon (in Firefox for example)
- Fixed home button for secondary users

Alpha 5 (20150520)
- CM Sync
- Fixed screen recording
- Use opensource mixvbp

Alpha 4 (20150517)
- CM Sync
- Adjusted power profile (needs testing)
- Fixed HW video encoding (only from camera, screen recording not working)
- Fixed Wifi direct
- Various config fixes

Alpha 3 (20150510)
- CM Sync
- Fixed wifi tethering
- Fixed mouse cursor
- Fixed show touches in developer options

Alpha 2 (20150508)
- Add P5220 ROM
- Fixed bluetooth PIN and tethering
- Add extra fonts
- H icon for HSPA
- Enable Wifi-Direct for all devices

Alpha 1 (20150505)
- Fixed camera for P5200
- Fixed minimum brightness
- Fixed hardware keys definitions
- Enabled reboot to download
 
Last edited:

Angel_666

Senior Member
Mar 18, 2009
317
856
93
Changelog


Alpha 1
- Fixed camera for P5200 (hopefully)
- Fixed minimum brightness
- Fixed hardware keys definitions
- Enabled reboot to download
Hi! Glad to see a new thread by you!
Just some Thoughts - in "/common-overlay/frameworks/base/core/res/res/xml/power_profile.xml"

Code:
<item name="battery.capacity">2100</item>
maybe 4000? 
and 
<array name="cpu.speeds">
max value for us is 16000000 and min value is 800000 i think like this:
<array name="cpu.speeds">
<value>800000</value>
<value>933000</value>
<value>1200000</value>
<value>1333000</value>
<value>1600000</value>
</array>
And for Intel platform we need 2 more files: thermal_throttle_config.xml
thermal_sensor_config.xml but i dunno how correctly it will be used by CM frameworks...
P.S. for open\close reaction on case we can try add <bool name="config_lidControlsSleep">true</bool>
 
Last edited:

blits01

Member
Apr 21, 2015
27
7
0
New bugs:
-otg mouse works, but no cursor
-screencasting not working(my device chromecast)
-show touches in developer options not working
-when I change language, settings crash

---------- Post added at 03:27 PM ---------- Previous post was at 03:03 PM ----------

New bugs:
-otg mouse works, but no cursor
-screencasting not working(my device chromecast)
-show touches in developer options not working
-when I change language, settings crash
+wifi hotspot not working
 

KingUsman

Senior Member
Aug 4, 2013
484
189
0
Is there a way to make the button lights only light up when you touch them and not light up every time you touch the screen?

Sent from my Nexus 5
 

blits01

Member
Apr 21, 2015
27
7
0
New bugs:
-otg mouse works, but no cursor
-screencasting not working(my device chromecast)
-show touches in developer options not working
-when I change language, settings crash

---------- Post added at 03:27 PM ---------- Previous post was at 03:03 PM ----------


+wifi hotspot not working
Not working Dialer(do not call)
 
  • Like
Reactions: Ole Ingvar

nels83

Senior Member
Apr 12, 2015
405
2,611
0
Hi! Glad to see a new thread by you!
Just some Thoughts - in "/common-overlay/frameworks/base/core/res/res/xml/power_profile.xml" ...
Thanks! Good catch, I never edited this file, just took the one from stock ROM...

And for Intel platform we need 2 more files: thermal_throttle_config.xml
thermal_sensor_config.xml but i dunno how correctly it will be used by CM frameworks...
I'll take a look. Thermal management is on my todo list.

P.S. for open\close reaction on case we can try add <bool name="config_lidControlsSleep">true</bool>
It won't work, these devices don't have lid :(
 

Holzi001

Senior Member
Jan 29, 2011
107
52
0
Thank you for this great ROM.

Is it possible to make the magnetic Sensors work? If i open or close my Bookcover the Display doesn't turn on or off.
 

nels83

Senior Member
Apr 12, 2015
405
2,611
0
New bugs:
-screencasting not working(my device chromecast)
-otg mouse works, but no cursor
-show touches in developer options not working
Thanks for the reports, I'll check this.

-when I change language, settings crash
It seems we are not alone: https://code.google.com/p/android/issues/detail?id=166828 and http://forum.xda-developers.com/showpost.php?p=59934854&postcount=5133
I noticed some bugs concerning fonts, it may be related.

+wifi hotspot not working
Not working Dialer(do not call)
These two are hard to try for me as I don't have a P5200 device (but I will investigate). Maybe @Angel_666 could take a look ? :D
 
  • Like
Reactions: guygrenier

cpthornman

Senior Member
Dec 13, 2014
72
24
0
Flashed this afternoon and I am loving it so far. Can really tell it's been liberated from TW as performance is vastly superior. Haven't really encountered new bugs or anything. Did try to mess with the magnetic lock apps but with zero success. Is it even possible to bake functionality like this into CM?

Thank you so much for putting this together!! Has breathed a lot of new life into this aging device.
 

michiil

Senior Member
May 28, 2013
486
262
0
Salzburg
Its really awsome to see something new here :) i will flash it as soon as i get home.
If you need someone to do some testing just ask me since i have a 5200.

EDIT: goddamn thats smooth. its like a whole new tablet :)
 
Last edited:
  • Like
Reactions: urphonesux

klejs1973

Member
Dec 21, 2013
5
1
0
47
Stubbekøbing
Thrilled

This is just amazing! I've been looking in the development thread almost every day this year. From the start of April it's been less often and I almost most hope. :rolleyes:
So imagine my surprise and joy! It's like a brand newer tablet! Thanks :laugh::good:
 

Angel_666

Senior Member
Mar 18, 2009
317
856
93