FORUMS

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

405 posts
Thanks Meter: 2,647
 
By nels83, Senior Member on 5th May 2015, 12:41 PM
Post Reply Email Thread
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

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
The Following 167 Users Say Thank You to nels83 For This Useful Post: [ View ] Gift nels83 Ad-Free
5th May 2015, 12:41 PM |#2  
OP Senior Member
Thanks Meter: 2,647
 
More
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.
The Following 83 Users Say Thank You to nels83 For This Useful Post: [ View ] Gift nels83 Ad-Free
5th May 2015, 12:41 PM |#3  
OP Senior Member
Thanks Meter: 2,647
 
More
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
The Following 43 Users Say Thank You to nels83 For This Useful Post: [ View ] Gift nels83 Ad-Free
5th May 2015, 03:05 PM |#4  
Angel_666's Avatar
Senior Member
Thanks Meter: 894
 
Donate to Me
More
Quote:
Originally Posted by nels83

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>
The Following 10 Users Say Thank You to Angel_666 For This Useful Post: [ View ] Gift Angel_666 Ad-Free
5th May 2015, 03:43 PM |#5  
Parley!'s Avatar
Junior Member
Thanks Meter: 2
 
More
Just flashed Alpha1 built for P5200 and camera works now
thx nels83
The Following 2 Users Say Thank You to Parley! For This Useful Post: [ View ] Gift Parley! Ad-Free
5th May 2015, 04:27 PM |#6  
Junior Member
Thanks Meter: 7
 
More
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 ----------

Quote:
Originally Posted by blits01

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
5th May 2015, 04:36 PM |#7  
KingUsman's Avatar
Senior Member
Thanks Meter: 191
 
More
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
5th May 2015, 04:58 PM |#8  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by blits01

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)
The Following User Says Thank You to blits01 For This Useful Post: [ View ] Gift blits01 Ad-Free
5th May 2015, 05:48 PM |#9  
Parley!'s Avatar
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by KingUsman

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

+1
5th May 2015, 06:19 PM |#10  
OP Senior Member
Thanks Meter: 2,647
 
More
Quote:
Originally Posted by Angel_666

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...

Quote:
Originally Posted by Angel_666

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.

Quote:
Originally Posted by Angel_666

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
The Following 3 Users Say Thank You to nels83 For This Useful Post: [ View ] Gift nels83 Ad-Free
5th May 2015, 06:22 PM |#11  
OP Senior Member
Thanks Meter: 2,647
 
More
Quote:
Originally Posted by KingUsman

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?

I don't think so. This would require CyanogenMod changes (if it is even possible).
The Following 2 Users Say Thank You to nels83 For This Useful Post: [ View ] Gift nels83 Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes