Monday, November 16, 2015

Porting Method MTK - Part One

by jonacxDGreat

1. Normal Porting - AOSP, Stock Based, Customed/Modded Stock, Customed/Modded AOSP
2. Cyanogenmod 12 - 5.0.2
3. Cyanogenmod 12.1 - 5.1.1
4. MIUI 7 - KK
5. Crossporting MT6582 - MT6592 (vice-versa) AOSP, Stock Based, AOSP, Stock Based, Customed/Modded Stock, Customed/Modded AOSP



Normal Porting - MT6582/MT6592
Stock - Port

system/bin
                file: pq, vold, sdcard (optional)
system/etc:
                file: apns-conf.xml, custom.conf (port file - edit lines)
                folder: bluetooth, firmware, wifi, mddb (optional)
system/lib:
                file: libcamalgo.so, libcamdrv.so, libcameracustom.so, libdpframework.so,
                                  libEGL.so, libMali.so, libsensorservice.so, libsync.so, libvcodecdrv.so
                                  (note: all libaudio files only for fixing audio)
                folder: egl (libEGL_mali.so, libGLES_android.so)
                                                hw (copy all file from stock to port - replace existing)
                                                modules (copy all file from stock to port - replace existing)
system/vendor:
                replace from stock to port - replace existing and leave not on stock

system/xbin:
                file: libmnlp_mt6592, mnld, (and other rooting files needed)
               
               
Cyanogenmod 12

Copy stock to port (boot.img)
stock/zImage and stock/ramdisk/ueventd.rc

system/etc:
                folder: firmware (modem_1_wg_n.img or whole firmware folder)
system/lib:
                file: libMali.so,libaudio.primary.default.so,libcamdrv.so,libcamalgo.so,libcameracustom.so
                folder: hw (gralloc.default.so, gralloc.mt6592.so, hwcomposer.mt6592.so)

Cyanogenmod 12.1

Copy stock to port (boot.img)
stock/zImage and stock/ramdisk/ueventd.rc

system/bin: (boot_logo_updater, ipod, logwrapper, netd)
system/etc:
                folder: firmware (modem_1_wg_n.img or whole firmware folder)
                hostapd folder, permissions (android.hardware.camera.xml, android.hardware.microphone.xml)
system/lib:
                hw folder: camera.default.so
                file: libfeatureio.so, libfeatureio.so, libimageio_plat_drv.so, libipod.so, libMali.so, libshowlogo.so


For emulated storage fix

Edit: init.mt65xx.rc
Replace:

on init
    export LD_PRELOAD /system/lib/libxlog.so

    export EXTERNAL_STORAGE /storage/emulated/legacy
    export SECONDARY_STORAGE /storage/sdcard1

    mkdir /mnt/shell 0700 shell shell
    chmod 0750 /mnt/shell
    chown shell sdcard_r /mnt/shell
    mkdir /mnt/shell/emulated 0700 shell shell
    mkdir /mnt/shell/emulated/0 0700 shell shell
    mkdir /storage/emulated 0555 root root

    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /storage/sdcard1 0700 root root

    export EXTERNAL_STORAGE /storage/emulated/legacy
    export SECONDARY_STORAGE /storage/sdcard1
    export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
    export EMULATED_STORAGE_TARGET /storage/emulated

With this:

on init
    export LD_PRELOAD /system/lib/libxlog.so
    export EXTERNAL_STORAGE /storage/sdcard0
    export SECONDARY_STORAGE /storage/sdcard1

on init
    mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /storage/sdcard0 0700 root root
    mkdir /storage/sdcard1 0700 root root

    export EXTERNAL_STORAGE /storage/sdcard1

    # Support legacy paths
    symlink /storage/sdcard0 /sdcard
    symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2


    # USB OTG
    mkdir /storage/usbotg 0700 root root
    mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw

And Edit: Framework-res.apk (storagelist.xml)

From this:

    <storage android:storageDescription="@string/storage_internal" android:primary="true" android:emulated="true" android:mtpReserve="400" />
    <storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:removable="true" />
    <storage android:mountPoint="/storage/usbotg" android:storageDescription="@string/storage_usb" android:removable="true" />

To this:

    <storage android:storageDescription="@string/storage_internal" android:primary="false" android:removable="false" android:allowMassStorage="true" />
    <storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_sd_card" android:primary="false" android:removable="true" />
    <storage android:mountPoint="/storage/usbotg" android:storageDescription="@string/storage_usb" android:removable="true" />
</StorageList>



Porting MIUI 7

System Files (Patch Files)

system/bin (mtkbt, vold, sdcard(optional))

system/etc
                folder: firmware and mddb

system/lib
                folder: hw
                files:
                                libcameracustom.so
                                libcameraservice.so
                                libfeatureio.so
                                libMali.so
                                libshowlogo.so
                                libaudio*.so (optional if bug on sound)

system/vendor: copy whole folder to port, replace if existing

system/xbin: libmnlp_mt6592, mnld


Boot.img porting

-copy stock kernel to port boot.img
-compare and edit port init.rc w/ stock init.rc
-copy sepolicy and ueventd.rc from stock to port


Crossporting MT6582 - MT6592 (vice-versa)

stock to port rom

boot.img:
copy ramdisk/init.rc and init.environ.rc bootclash lines from stock to port

system/bin
                copy all file and replace existing

system/etc
                delete bluetooth and mddb folder from port
                copy bluetooth and mddb folder from stock to port
                copy firmware folder from stock to port - replace existing files
                copy permissions folder (platform.xml, handheld_core_hardware.xml) optional/bug fix
                edit port custom.conf

system/lib
                must delete files from stock before copy paste to port
                libandroid.so,libandroid_runtime.so,libandroid_servers.so
                libandroidfw.so,libjavacore.so,libjavacrypto.so
                libwebrtc_audio_preprocessing.so,libwebviewchromium.so,libwebviewchromium_plat_support.so
                *now copy whole lib folder to port libfolder and replace existing file consider hw/modules

system/vendor
                copy stock vendor to port - replace existing

system/xbin
                delete libmnlp_mt6582 from port
                copy libmnlp_mt6592, mnld from stock to port
               
build.prop:
replace all mt6582 lines to mt6592 vice-versa
replace lines if xport mt6582 - mt6592
mediatek.wlan.chip=MTK_CONNSYS_MT6592

mediatek.wlan.module.postfix=_mtk_connsys_mt6592

Thursday, November 12, 2015

CyanogenZ5 5.1.1 MT6592 - Lynx/Be Pure

by jonacxDGreat

CyanogenZ5 5.1.1

What’s New?

• For MT6592 – Lynx/Be Pure
• Cyanogenmod 12.1 Base
• Cyanogenmod Theme – Xperia by Rizal Lovins
• DGreat Music by jonacxDGreat – Patched JetAudio Pro
• Xposed Installer
• XinternalSD – Xposed
• CM 13 Mms
• CM 13 Deskclock
• CM 13 Recorder
• PLDT Wifi
• CM 13 Recorder
• Xperia - Xposed
• Xperia Z5 Support App
• Xperia Z5 Media Sounds
• Xperia Z5 Calculator
• Xperia Z5 ExperienceFlow Live wallpaper
• Xperia Z5 White balance
• Xperia Z5 My Xperia
• Xperia Z5 Style Portrait
• Xperia Z5 Sync Hub
• Xperia Z5 Photo Analyzer
• Xperia Z5 Podcast
• Xperia Z5 OMAClient Provisioning
• Xperia Z5 Smart Search
• Xperia Z5 Photo Slideshow
• Xperia Z5 Wallpaper Picker
• Xperia Z5 Sound Picker
• Xperia Z5 Retaildemo App
• Xperia Z5 Phone-usage
• Xperia Z5 Home
• Xperia Z5 Setup Wizard
• Xperia Z5 Album
• Xperia Z5 Music
• Xperia Z5 Videos
• Xperia Z5 Clockwidgets
• Xperia Z5 SemcClock
• Xperia Z5 Calendar
• Xperia Z5 KeyBoard
• Xperia Z5 Backup and Restore
• Xperia Z5 Clock
• Xperia Z5 Photo Editor
• Xperia Z5 Weather App
• Xperia Z5 Care
• Xperia Z5 Media Sounds
• Xperia Z5 Live Wallpaper
• Xperia Z5 Calculator
• Xperia Z5 World Clock Widget
• Xperia Z5 Top Contacts Widget
• Xperia Z5 Wallpaper
• Xperia Z5 Themes
• Xperia Z5 Movie Creator
• Xperia Z5 What's New
• Xperia Z5 Update Center

Tweaks:

Pre-installed – Pacshit Tweaks

Fly-On-Mod app Tweaks
(Note: Automatically replace pre-installed tweaks once you enable this)

Features:
- The ability to control every part of the Mod.
- Simplified access for new users/not willing to flash the Mod through the recovery.
- Booster Mode for better performance and battery life.
- Full memory management/Better multitasking.
- Linux kernel tweaks and improvements for better performance and battery life.
- Less lags for gamers.
- Entropy generator engine used to reduce lags.
- Zipalign apps in "/system" and apps in "/data" every 24 hours which result in less RAM usage.
- Better thermal management and less overheating.
- Sqlite optimizations and faster database access.
- Increased SD Card read-ahead cache to 2048 KB for faster SD card read and write.
- Build.prop tweaks and improvements.
- Cleans log files and tombstones at every boot.
- Many other tweaks for better performance and battery life!


Xtreme Music Mod

XTREMEMusic v5.0.4

About:
Better than eXtremeBeats, WORKING WITH POWERAMP and SUPPORTS ANDROID M!
The only one with HTC BOOM SOUND, Sony SFORCE SURROUND 3D and Sony DSEE-HX! 
ALSO OPTIMIZED FOR DUAL SPEAKER DEVICES!
NOW WITH AN INCREDIBLE SOUND RESAMPLING! 6144khz 64bit for Headphones and 190khz 24bit for Speakers!!
SUPER EXCLUSIVE FEATURES
INCREDIBLE RESAMPLING! 

Forced 6144khz 64bit for headphones and 192khz 24bit for speakers!!
Htc One M9 ported Hrman Kardon audio!
Alsa libs ported from Awesome beats give faster and better audio processing!

Features:

Beats Audio by Dr.Dre 
More clarly sound
More stereophony sound
Clear bass
Better sound frequences yield
Sound Distortions reducer
No conflict with the equalizers!!

Pure Audio™
- Introducing the PureEQ, a new system-level component that powerfully works on the output audio part of your phone
- Updated the Beats extras libraries to the latest one
- Updated the xLoud extras libraries to the latest one
- New audio parameters in the system/etc up to 3-5-5-3-8
- Less battery consumption
- Better compatibility with other mods
- Beats peqimages updated to solo/mixr headphones
- New 320 kbps conversion algorithm
- Clear sound
- No more track noise
- Beats Audio by Dr.Dre
- Audio Pure Control not to damage your hearing
- Also compatible with the headphones that don't support audio render of 60kHz
- Where possible, arrange for the conversion of the songs (in background) below 256 kbps to 320kbps
- During playback of songs / sounds make a soft frequency scaling to reduce noise and highlight the track
- It offers more powerful and closed bass
- Efficient even with stock headphones
- Improves a lot the audio call
- Enhance the speakers for playing music without headphones in high quality 

Pon Audio 3
Dolby Digital Plus
Beats Audio Libs
Sony ClearAudio and XLoud libs
SRS Processing
DTS Processing
Viper4Android
Noozxoide EIZO-rewire PRO
Ponified Audio => SQUEE ENGINE!!!

Samsung SoundAlive effects!
SoundAlive gives you a wide range of EQ options including 25 sound effects that enrich your listening experience for music, movies, games and even other apps. The effects are enabled by default in this MOD with a perfect balance!

Qualcomm Ported Snapdragon HW effects!
Qualcomm HW effects are configured parameters of audio module/feature code running on Qualcomm® Hexagon DSP Core contained in Qualcomm® Snapdragon processors. The benefit is enhanced precision, sample rate, concurrency, and reduced power consumption while retaining standard Android APIs. Qualcomm Snapdragon and Qualcomm Hexagon are products of Qualcomm Technologies, Inc

Dirac HD Audio!
Dirac offers superior technology focusing on: - Best possible sound through digital signal processing based on decades of research - Tailored solutions for your product rather than generic sound effect!

Sony Ported Z5 Sound Processing!
ClearAudio+ Has all the Sony enchantments in one!
Clear Phase optimise automatically the clarity of the speaker sound
xLOUD boost the overall speaker sound!

AwesomeBeats!
enjoy the power of a Beats Audio fully enhanced by the Team Inferno!!
HTK® audio engine
" FLY on the MUSIC "
* Powerful ALSA

* Beats audio: with lastest Beats audio engine of 2nd generation!
* DTS audio processing
* SRS audio: srs wowhd, srs truebass, srs trumemedia,...
* Dolby digital plus audio effect from HUAWEI
* Harman Kardon
* xloud
* SONY audio: clearaudio+, clearphase, surround sound...
* SFORCE SURROUND 3D from sony phone

MegaBass!
-Louder output in headphones and speaker
-Bass enchantment
-Chrispier,much clearer sound
-Not really much need for use dsp manager,althrough it cant be no harm in that

Dolby ATMOS!
Enjoy the Power of the latest dolby certified sound tecnology! with a lot of mods made for us by @worstenbrood
Dolby Atmos creates an amazing mobile headphone experience with breathtaking, moving audio—sound that flows all around you.

Surround Virtualizer creates a surround sound experience through headphones or built-in speakers.
Dialogue Enhancer ensures that every word is heard.
Volume Leveler maintains constant volume across all content and applications.
Intelligent Equalizer dynamically adjusts the audio to achieve the tone you want.
Dolby Digital Pass-Through lets you connect your device directly to a home theater for a full surround sound experience.

Lenovo's MaxxAudio  ( Installable as an OPTIONAL ADD-ON) 
All the lenovo engigneers music technology experience, can be found on the Lenovo's MaxxAudio! ported for us by @ahrion
MaxxBass can extremely boost your bass without any distortion and make ypour bass very Crystalline!
MaxxTreblle Can Boost your medium ang high frequences yeld without any distortion!
MaxxVolume enchance your volume To make your music even better!



Fixes and Bugs:

Beta:
• Storage: Emulated
• SDCard, Internal and OTG – Internal Default
• MTP enabled (Internal and SDCard)
• Hotspot Fixed
• Bluetooth Fixed
• Launcher Widget and Apps Fixed
• FM Radio Bugs
• Offline Charging Bugs

Stable:
• Storage: Emulated
• SDCard, Internal and OTG – Internal Default
• MTP enabled (Internal and SDCard)
• Hotspot Fixed
• Bluetooth Fixed
• Launcher Widget and Apps Fixed
• FM Radio Fixed
• Offline Charging Fixed

How to Install?

Reboot to custom recovery
Wipe cache, wipe dalvik cache
Flash zip
Reboot to system
Finish system setup
Reboot to Recovery
Flash CyanogenZ5 Xposed
Reboot to system…

Post Installation:

Enable Xposed module on Xposed Framework
Reboot

Go to Settings – About Phone – Advance mode – Enable
Tap Build number until you enable Developer settings
Developer options (Enable) – Advance reboot (enable)
Notification Drawer – Quick settings panel – Select and order tiles – tap reset icon (yes)
Themes – lovins Xperia Z5 - Enable: Statusbar, notifications, Style, Lock wallpapers, icons

Xperia Xposed module
Note: Do not enable Super User Mode in System/Behavior
Other than that explore what you want…


Download:

CyanogenZ5 Rom: Beta
CyanogenZ5 Xposed:


Screenshots:













Credits:
jonacxDgreat – Rom Chef/Modder
Maximum Dev/Port Team
Lynx Admin and Member
Tester for Lynx
Rizal Lovins - Theme
Slaid480, thetechnologician – Fly-On-Mod

Antonio Cirielli and androidexpert35 – Xtreme Music

Wednesday, October 28, 2015

DanOS for Lynx-BePure MT6592





by jonacxDGreat


(notable new features)
---------
### V1
* Personalize ROM
* Material Design
* material Colors
* FMD Lollipop Panel
* FMD Recents
* Marshmallow Design
* Dynamic System Bar
* Potato clock
* Network Traffic
* Google Apps Material Inspired
* Graphics Visualizer
* Shuttle+ Music Player
* Rooted (Superuser)
* Busybox
*Marshmallow Platlogo (added by jonacxDGreat)

Visit http://www.facebook.com/maximumrom for our group facebook fanpage.
Or you can Contact me on facebook http://facebook.com/danielle.anonymous.CodeX

Screenshots:







Download:
Credits:

Dannielle Jhay Relox Bote
Maximum Port Team
jonacxDGreat - Porter

Friday, October 23, 2015

Lynx - Be Pure Recovery Installer

By jonacxDGreat

Lynx - Be Pure Recovery Installer

Flashable Edition
Via custom recovery
With Aroma installer

Recovery Choices:
Philz Touch Recovery
Clockwork Mod Recovery
Carliv Touch Recovery
Team Win Recovery Project

Download:

Application Edition
Install as ordinary android app/apk
Root needed

Recovery Choices:
Clockwork Mod Recovery
Carliv Touch Recovery
Team Win Recovery Project

Download:

Thursday, October 22, 2015

TWRP 2.8.7.0 For Lynx

by jonacxDGreat


Working:

Install and Backup:
Internal memory
Sdcard
USB-OTG

With Material play theme


Screenshots:





Download:

Flashable:
https://mega.nz/#!f8tEXTZK!PX4ilDoU2lTjS95ZOTt39MVGB3KPHUrw3W8RBUMfuZY

Via Rashr Tool:
https://mega.nz/#F!WksAyZYL!4DSSqvaXLaak5Qumg6dfDQ