[Galaxy Tab 3 8.0 Android Development] arshull:
GalaTab3 Kernels for either JellyBean or KitKat ROMS - SM-T310 8.0 - TouchWiz

Warning:

As always, flash at your own risk. I'm not responsible, in any way, for what you flash, copy, fiddle with, poke, molest or otherwise screw with on your phone or tablet....

*** Important ***

- I recommend using TricksterMod or a similar CPU/Kernel modification app to adjust the settings/configurations. Although I am a huge fan of Faux123 and his Kernel app, it does not play nice with Exynos CPU's or Mali GPU's (especially the two together). Maybe it will in time, but only someone of his genius can figure it out. But, I have implemented the features specifically to allow TricksterMod to have full access to the controls.

You can get the app HERE

USB Audio Mod for JellyBean ROM's ONLY

Flash this file to allow USB Audio functionality to work 100%. This will work in conjunction with my kernel and allow you to use external DAC's and bypass the internal audio hardware/software completely. This provides MUCH better sound quality and higher bitrates (depending on the DAC you choose to use).

USB Audio Mod

_______________________________________________________________________________________________________

_______________________________________________________________________________________________________

Releases & Downloads

Version 14.7.16 (KitKat)

- Download - KitKat ROM's ONLY

- STOCK KitKat NF4 4.4.2 Kernel

- Built from newly released source code by Samsung

- Added Root/SuperSU binaries

- Added Init'd Functionality

- Added mock location functionality in default prop

This is the base in which I will be building the new KitKat custom kernels from. Obviously, I wanted to add some of the basic functions, like Root and Init'd so nothing is reverted from any custom ROM's you may have flashed. This is not a copy of the kernel from the stock ROM.... This is built against the source code. I will be adding features and customizing this kernel shortly and will begin uploading the new versions ASAP. My main focus is to get it overclocked first and then I will fine tune some of the stock features and add new stuff along the way.

Version 14.5.27 (JellyBean)

https://www.mediafire.com/?b0h9ii661x113d9

- Last JellyBean Kernel Release

- Same features as Version 14.4.8r2

-

Camera now working

. Fixed driver loading error.

- Refreshed source code and toolchain

- Adjusted charging current for USB, Dock and Misc charging modes. Now all register as "A/C" current.

- Misc code updates and fine tuning.

Version 14.4.8r2 (JellyBean)

https://www.mediafire.com/?m29aztntz2jx613

- Cleaned up some code

- Speed modifications to allow for smoother daily use

- Transitioned some kernel modules to be built in primary image for faster load times

- Finished adding Sweep2Wake code - still needing to finalize trigger processes (so feature is not active yet)

- Adjusted USB Audio function at Kernel level. Will provide an updated framework file to implement this fully and allow for 100% native function. Allows total compatibility with external DAC's and complete bypass of internal audio hardware/software.

Version 14.4.3 (JellyBean)

https://www.mediafire.com/?kv44k85q41878y9

- Reverted some edits to allow previous steady kernel workflow

- Added additional USB Audio/Video Kernel functions based on user requests

(You now do not need proprietary apps to play to external dacs or video decoders)

- Additional dock features added for broader compatibility

- Reverted Init'd files to previous versions

Version 14.3.25 r2 (JellyBean)

http://www.mediafire.com/download/t60k13chcat5b3f/GalaTab3_Kernel_v14.3.25_r2.zip

- Fixed Init.d Functionality Problems. Now runs on boot as it is supposed to

- Revised several of the init.d scripts from past releases and added several new ones.

- Enabled Debugging & Mock Locations by default.

- Added several Audio Interface and DAC drivers (some as modules, some built in). This will allow for a much broader driver base for external DAC's connected via USB.

After flashing and booting, I highly recommend you set your Trickster settings again (and remember to set to boot). The new tweaks adjust some of the kernel performance values and if you use your old Trickster profile, it will reset these new values to those of previous releases. I will be evaluating and adjusting these new values in future releases to determine which have the best results on our devices.

"Stock" GalaTab3 Init.d Files (Flashable) - http://www.mediafire.com/download/u2slgste63dpx1l/GalaTab3_Original_Init.d_Files_Flashable.zip

Flash this if you want to use the normal Init.d Files with the new kernel.

Version 14.3.18 (JellyBean)

http://www.mediafire.com/download/xbx12xq493n68e8/GalaTab3_Kernel_v14.3.18.zip

- Updated/Enhanced SLUB performance features. Allows for much faster ROM and file systems

- Adjusted ExFat file system calls within kernel. Now loads ExFat file systems twice as fast.

- Added initial code for Sweep2Wake and DoubleTap2Wake features. NOT FULLY IMPLEMENTED YET - need to fine tune some parameters to make these features compatible on our devices.

Version 14.1.6 (JellyBean)

http://www.mediafire.com/download/8ycwqq7wt4kaqi5/GalaTab3_Kernel_v14.1.6.zip

- Added 3 CPU Governors for extra versatility - SmartAss3, Lulzactiveq & zzmoove (Thanks Civato!!!!)

- Updated LZO Compression code to allow for vastly improved performance and compression speed (helps with many aspects of I/O speeds and boot times)

OLDER RELEASES/INFORMATION

Since it's the holidays - I thought I would give you all your first gift...... in the form of a newly updated Kernel release! I know.... this was on the top of your list of crap needed......

Basically, I completely started again from scratch and an re-implemented past features and some new ones. I wanted to make sure that the features were 100% compatible and efficient for the Tab 3 and that additional features were not stacked on top of broken code. In short..... this has been a huge pain in the a*# and I can't believe how hard it has been to implement features that are so widely available on other architectures. Mainly, the Mali GPU has been the biggest pain - that and all of the errors and bugs in the stock firmware.

After speaking with MANY developers and observing other device forums, I'm happy to know that I'm not the only one. The new releases of 4.2.2, 4.3 and 4.4 ROM/Kernels have caused a lot of problems with both the poor code and dramatic architecture changes from Google and Samsung. But.... here you are..... a fresh new release that is running well.

Version 13.12.21r5 (JellyBean)

https://www.mediafire.com/?ggruj3gqj3gywx7

- Completely Re-wrote Kernel Mod's and/or re-implemented functional features (that are known to be stable)

- Built against an updated & modified 4.7.3 Android Toolchain (up from 4.4.3)

- Added and Implemented Boeffla Sound Engine (You can use a few apps to control the engine)

- Fully implemented GPU Controls!!! Overclocked to 700mhz but works very well at 533mhz (without having to burn through your battery)

- Independent CPU and GPU throttling based on your use. (i.e. - GPU does not ramp up if you are processing heavy data)

*** Again, use TricksterMod to adjust GPU frequencies to your liking)

- Re-Implemented CPU Overclock from 50mhz - 1900mhz

- Rewrote and modified Hotplug for better performance and ramp up's

- Cleaned up several algorithms and eliminated code that is not used on our device

- Eliminated several debugging functions (thanks to ketut.kumajaya for his previous work)

- Added back several additional drivers for BT and USB connections

- Full OTG and Dock features - including charging while using OTG and MHL/HDMI

On a quick test before uploading - this new revision

scored over 18000 on the benchmark

without implementing "Performance" CPU or overclocking the GPU beyond 533mhz. I'm not a "gamer", so I'm sure some of you will put this to the test, but the core function of this kernel has surpassed the Galaxy III (which I also own). The GPU function and frame rates tripled compared to the last update a month ago!

ENJOY and HAPPY HOLIDAYS TO EVERYONE!!!!!

Version 13.11.08r2 (JellyBean)

http://www.mediafire.com/?7cdajhmh5080075

- Modified CPU code and how algorithms function at idile and demand situations

- Updated OnDemand governor and ROW I/O scheduler to maximize performance

- Fixed black screen on device wake

- Adjusted idle frequency so both cores are utilized for better responsiveness

- Rewrote/Updated Hotplug code to be more efficient for the Tab3

- ***FINALLY BROKE 17000 ON BENCHMARK RESULTS!!!****** (Very close to the S3 now)

- Fixed updater script......again......

Version: 13.10.28r4 (JellyBean)

http://www.mediafire.com/download/w...rnel_SM-T310_Tab3-13.10.28v4_w.Initd.cron.zip

Int'd Scripts Added:

- Swap/zRam Implementation (Run script in terminal emulator once and it will be on until turned off - thanks definitive!!!!)

- Performace & Battery tweaks

- ZipAlign Apps at boot

- Cron memory cleanup scheduling (hourly, daily & weekly)

- SQLite tweak upon boot

- Permissions set at every boot

- GalaTab3 Logging enabled

- Other various tweaks to maximize performance​

- Fixed Permissions on Installer Script (11/1/13)

- Increased eMMC SdCard Readahead speeds to 3072

- Several tweaks, adjustments and updates to existing code. Some items updated to Samsung's new i9500 versions/revisions

- Fixed the CPU Frequency limit when booting. Will now boot at max CPU limit rather than a flat 1600mhz

- Modified CPU logic function so the processor is more adaptive to actual processing needs

- Improved and Modified PM/Sleep registers and functions. Should not have problems waking device to a black screen anymore

- Added additional support for wireless modem features - Allows external modems and bluetooth dongles to be connected via USB

- Added Android Graphic Fence feature/function from AOSP - allows graphics and the media logic to run smoother

- Added Root FS Slave restrictions so the Davik Cache can mount system wide storage and utilize the memory more efficiently

- Adjusted signal reporting so that it show more accurately

- Modified writeback protocol so the memory is freed correctly an is not held for an indefinite time until user operations are suspended

- Transitioned to ASM Atomic memory allocations from the standard Linux version. Much more efficient....

- Disabled several debugging functions that were useless and took up CPU and Memory resources

- Several other tweaks, but I'm way too tired to remember them.....

To Enable/Disable Swap:

1) install a terminal emulator for Play Store

2) Open terminal

3) Type "su", then hit enter

4) Type "swapit", then hit enter

5) follow onscreen instructions

Download v13.10.14:

Version: 13.10.14r7 (JellyBean)

- Increased Overclock to 1900mhz (blazing fast now!)

- Reduced Underclocking to 50mhz (yep, that's right) (Thanks Civato)

- Re-implemented zRam and it's running smoothly (make sure to use a quality CPU app, like FauxClock, to turn on and adjust zRam function)

- Finalized HotPlugging feature and fully implemented

- Enabled/Added SVGA adapter support (a few users had requested)

- Stripped Debugging on a few features to shrink the size of the Kernel and burden

- Added and Optimized ARM R/W functions

- Modified OnDemand Governor for increased performance

- Increased Read-Ahead Values for Memory (2048)

- Added a LOT of PPP, networking & connectivity drivers - especially for Bluetooth and Network controllers via USB (This will allow you to connect Tab to external modems and several BT interfaces, including Serial)

- Added some additional OTG/Host controller features - allows broader compatibility based on User setup

- Added additional support for generic chargers

- Additional EXT4 File System support features

- Converted several features to Modules to allow Kernel to be less bulky (should increase some performance)

- Various Bug Fixes

Download v13.10.14: http://www.mediafire.com/download/dd3uc1i1nbabdfc/GalaTab3_Kernel_SM-T310_Tab3-13.10.14r7.zip

Version: 13.10.11 (JellyBean)

- Increased Overclock to 1800mhz

- Fully implemented SIO scheduler

Disabled zram (temporarily) while I modify how the kernel handles this feature.

Download v13.10.11 - http://www.mediafire.com/?ahqh6ukabsajtq2

Version: 13.10.7 (JellyBean)

Features:

- Based on MH2 4.2.2 Samsung Kernel

- Linux ver 3.0.31

- Overclocked to 1.6mhz (stepping this up slowly so we don't have any problems)

- Underclocked to 100mhz (Amazing battery savings)

- Fine tuned voltage controls

- Added ROW IO Scheduler (Foundation for SIO is implemented too, just need to finalize one thing and it will be active in the next release)

- Adjusted USB and Dock charging voltages to allow for MUCH faster charging on "USB" currents (basically, will charge twice as fast as before)

- Implemented and Enabled zRam. Now you can turn on/off zRam to allow for additional RAM/Swap

- Enabled ARCH power (allows for CPU to run much more efficiently and based on the need)

- Enabled Dynamic FSync (Thanks Faux123!!!)

- Added and Enabled ExFat support

- Several performance mods and fixed a lot of memory leaks...... This thing is running nicely now......

- Enabled Linux Atomic resources

- Several other tweaks, but I'm way too tired too remember.

Basically, this is a major improvement to our Kernel for the T310 and you will instantly see the performance gains.....Enjoy!

Download v13.10.7 - http://www.mediafire.com/download/iknplvhjvraud3p/GalaTab3_Kernel_SM-T310_Tab3-13.10.7.zip

I figured I would kick off some of the development for the 8.0 version of the Galaxy Tab 8. I've included the kernel I created recently which has helped with several performance issues and allows for OTG with Charging on our Tab 3 8.0.

Version: 13.9.20 (JellyBean)

Features:

- Based on MH1 4.2.2 Source from Samsung

- Compiled from ARM-EABI 4.4.3 ToolChain

- Added "OnDemand" CPU Governor support (Full)

- Added Support for Samsung's SmartDock, AudioDock, OTG and MHL Cable functions (added features/detection roles)

- Added full OTG support and function. This allows for various OTG compatibility and OTG Charging.

- Added MHL Chip Driver, 11 Pin Micro USB Connector Support and fix for MHL HPD Glitch

- Added additional USB Gadget support for devices (Including the Native Android USB Gadget Functions)

- Additional support for FUSE Filesystems - added functionality

- Several bug fixes

**** To enable OTG plus Charging, your OTG cable must have a 64.9k Ohm resistor between the ground and sense ID pins. This will engage the SmartDock function on the tablet, allowing for OTG/USB Hub, MHL, USB Audio and Device Charging simultaneously.

- Please search Google and XDA for making your own OTG cable. This thread is NOT for asking questions about building cables, problems with OTG function, etc..... I have enabled full function in this kernel and this has been extensively tested by several users - IT WORKS!!!!.****

- In order to utilize the OTG and MHL functions, you will need to add an additional hub or MHL port to your OTG cable. Again, this is not the forum for asking how to do this - use Google and XDA as resources on how to build. Chances are, if you don't know how to do this, then you should not be using this function anyway.....

- OTG Charging requires you connect the device to an AC Samsung Charger (OEM, the one that came with device) or a DC Charger that provides 5V, 2+ amp output. Connecting to another charger without this output will limit the functionality of the charging feature.

- I HIGHLY Suggest using an external powered hub to connect additional USB devices (Memory Sticks, Keyboards, Mouse, Bluetooth, Modem, Etc...).

This is just the beginning and the first release of this kernel. There will still be bugs and quirks that will need to be ironed out. I'm actively working on several features for our SM-T310 devices and future releases will contain major feature upgrades and bug fixes (that are native in Samsung's Source Code).

Enjoy and I will update the OP with add'l information on releases as I have them complete. Do not ask for ETA's!!!!! I will not release until I feel comfortable with the stability and functions. I'm almost finished with my ROM as well, which will contain this kernel. Just need to finalize some theming. I'll release that this week.

Stock Kernel Downloads

Original Stock JellyBean Kernel: Download - JELLYBEAN

Original Stock KitKat Kernel: Download - KITKAT

Install Instructions:

1) Reboot Into Recovery (TWRP Recommended)

2) Create Nandroid/Backup

3) Wipe Cache/Davik

4) Install Kernel

5) Reboot (First boot after flash may take a little longer - Kernel is building additional file structure and adding features)

6) Enjoy!!!!!

GitHub Source Code & Revisions

JellyBean Kernel Versions

KitKat Kernel Versions