[Galaxy S 4 i9505 Android Development] mikussj3:
​

/*
* Your warranty is now void.

* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

MIUI 8

DeBloat

Patch 22.10.2017

Hello XDA community. This is my first forum thread. I have decided to release my MIUI 8 version for S4 (i9505). Please be patient, Feel free to give suggestions and help improve my project.

NEW! KERNEL

Download Mega:

1. Stock kernel

2a. Kernel-V2 from Miui8-R5

Changelog:

Delete moduls

Delete Stweaks.apk

Delete some files

2b. Kernel-V3 from Miui8-R5

changelog:

new default settings

stweaks_boot_control=yes

scaling_max_freq_cpu0=1890000

scaling_max_freq_cpu1=1890000

scaling_max_freq_cpu2=1890000

scaling_max_freq_cpu3=1890000

scaling_min_freq_cpu0=384000

scaling_min_freq_cpu1=384000

scaling_min_freq_cpu2=384000

scaling_min_freq_cpu3=384000

gentle_fair_sleepers=off

arch_power=off

power_efficient=off

scaling_max_gps_freq=1890000

scaling_max_suspend_freq=1242000

scaling_max_oncall_freq=1350000

scaling_min_suspend_freq=384000

cpu_voltage_switch=on

CPUVOLT1=1150000

CPUVOLT2=1112500

CPUVOLT3=1075000

CPUVOLT4=1037500

CPUVOLT5=1000000

CPUVOLT6=975000

CPUVOLT7=962500

CPUVOLT8=950000

CPUVOLT9=925000

CPUVOLT10=900000

CPUVOLT11=887500

CPUVOLT12=875000

CPUVOLT13=875000

CPUVOLT14=875000

CPUVOLT15=875000

scaling_governor_cpu0=interactive

scaling_governor_cpu1=interactive

scaling_governor_cpu2=interactive

scaling_governor_cpu3=interactive

up_threshold=70

up_threshold_at_min_freq=60

sampling_rate=20000

sampling_down_factor=1

freq_step=30

down_differential=5

freq_for_responsiveness=486000

down_threshold=30

inc_cpu_load_at_min_freq=60

inc_cpu_load=70

dec_cpu_load_at_min_freq=60

dec_cpu_load=70

freq_for_responsiveness_max=1890000

freq_responsiveness=1242000

pump_inc_step_at_min_freq_1=2

pump_inc_step_at_min_freq_2=2

pump_inc_step_at_min_freq_3=2

pump_inc_step_at_min_freq_4=2

pump_inc_step_1=2

pump_inc_step_2=2

pump_inc_step_3=2

pump_inc_step_4=2

pump_dec_step_at_min_freq_1=2

pump_dec_step_at_min_freq_2=2

pump_dec_step_at_min_freq_3=2

pump_dec_step_at_min_freq_4=2

pump_dec_step_1=1

pump_dec_step_2=1

pump_dec_step_3=1

pump_dec_step_4=1

freq_step_at_min_freq=30

freq_up_brake_at_min_freq=20

freq_up_brake=20

freq_step_dec=10

freq_step_dec_at_max_freq=10

cpus_up_rate=1

cpus_down_rate=1

cpuhotplugging=2

hotplug_sampling_rate=50

hotplug_rate_1_1=1

hotplug_rate_2_0=1

hotplug_rate_2_1=2

hotplug_rate_3_0=2

hotplug_rate_3_1=2

hotplug_rate_4_0=2

hotplug_freq_1_1=1242000

hotplug_freq_2_0=810000

hotplug_freq_2_1=1242000

hotplug_freq_3_0=810000

hotplug_freq_3_1=1242000

hotplug_freq_4_0=810000

hotplug_load_1_1=60

hotplug_load_2_0=20

hotplug_load_2_1=60

hotplug_load_3_0=20

hotplug_load_3_1=60

hotplug_load_4_0=20

hotplug_rq_1_1=100

hotplug_rq_2_0=100

hotplug_rq_2_1=150

hotplug_rq_3_0=150

hotplug_rq_3_1=150

hotplug_rq_4_0=150

maxcoreslimit=4

maxcoreslimit_sleep=2

cpus_boosted=2

hotplug_suspend=always_active

min_cpus_online=1

max_cpus_online=4

msm_thermal=intelli_temp

core_control=1

core_mask=2

core_limit_temp_degC=70

limit_temp_degC=60

temp_hysteresis_degC=5

governor=ondemand

max_pwrlevel=0

min_pwrlevel=3

thermal_pwrlevel=0

gpu_voltage_switch=on

GPUVOLT3=1100000

GPUVOLT2=1000000

GPUVOLT1=895000

input_boost_freq=1350000

input_boost_ms=50

min_input_interval=1050

nr_boost_cpus=4

intsd_read_ahead_kb=1024

extsd_read_ahead_kb=1024

mmc_mode=performance

internal_iosched=sioplus

sd_iosched=sioplus

auto_oom=on

enable_adaptive_lmk=on

vm_pressure_adaptive_start=75

vmpressure_file_min=78

enable_process_reclaim=on

pressure_max=80

oom_config_screen_on=aggressive

oom_config_screen_off=aggressive

lowmem_reserve=high_pressure

dirty_background_ratio=5

dirty_ratio=20

vfs_cache_pressure=100

swaptweaks=0

zramtweaks=768

swappiness=50

run=on

uksm_gov_on=medium

uksm_gov_sleep=quiet

sleep_millisecs=1000

crontab_switch=off

cron_drop_cache=off

cron_reset_systemui=off

cron_fstrim=off

cron_process_reclaim=off

cron_ram_release=off

ad_block_update=off

cron_db_optimizing=off

cron_clear_app_cache=off

led_lowpower_current=40

led_highpower_current=40

led_fade_in_time=1

led_fade_out_time=4

led_fade=on

led_fade_dt1=1

led_fade_dt2=1

led_fade_dt3=2

led_fade_dt4=3

gpl_headphone_gain=40

gpl_headphone_pa_gain=12

gpl_speaker_gain=40

gpl_hdmi_spkr_gain=40

gpl_mic_gain=40

gpl_cam_mic_gain=40

gpl_headset_mic_gain=40

force_fast_charge=2

use_mtp_during_fast_charge=1

screen_on_current_limit=1

ac_charge_level=1900

usb_charge_level=1000

tcp_congestion_control=westwood

selinux_control=off

logger=0

gpsfixer=off

gpsregion=No_GPS_Zone_changes

init_d=off

pwm_value=50

usb_mode=default

auto_mount_sd=on

usb_keyboard=disable

cortexbrain_background_process=0

cortexbrain_memory=off

cortexbrain_system=off

cortexbrain_kernel_tweaks=off

cortexbrain_cpu=off

cortexbrain_io=off

for better liquidity, friendly battery and better RAM management

3. NEW KERNEL for SGS4-Miui8

Installation:

Flash via recovery

Wipe dalvik and cache

Rom based on CyanogenMod

Version 5 with GAPPS

Download Mega:

Miui8-jfltexx-R5-Gapps-DeBloat-mikussj3.zip

***********************************

Clean installation recommended

Do not restore apps from older android version through titanium backup, install the apps from Play Store and only use Titanium backup to restore the app data for non system apps

***********************************

Installation:

ROM:

-save Miui8-jfltexx-R5-Gapps-DeBloat-mikussj3.zip in external card

-Delete all hide files and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: 'dctp' and 'did' (internal memory) and all folders: 'miui, mi, xiaomi, mi_drive, yymet...' etc from internal and external memory, delete folders 'Alarms,backups' (internal memory)

-Enter recovery mode

-backup your rom

-backup EFS

-factory reset

-format system, data, cach and dalvik

-install Miui8-jfltexx-R5-Gapps-DeBloat-mikussj3.zip from external memory (sd card)

-wipe cache, reboot

When boot complete

-time to time skip 'google play services stop'

- skip language and setup your bootsettings

- skip google account setup ('Got Google?' - tick 'NO')

When bootsettings done

- go to settings/installed apss/ Google Play services, 'App permissions' and tick all permissions

- go to settings/installed apss/ Google Contacts Sync, 'App permissions - Additional permissions' and tick permissions

- change language

- Change Region (read tips - second post)

- setup your GOOGLE ACCOUNT

- go to settings/Other accounts/Google - 'On' Contacts sync

done.

Version 5 without GAPPS

Download Mega:

Miui8-jfltexx-R5-NoGapps-DeBloat-mikussj3.zip

***********************************

Clean installation recommended

Do not restore apps from older android version through titanium backup, install the apps from Play Store and only use Titanium backup to restore the app data for non system apps

***********************************

Installation:

ROM:

-save Miui8-jfltexx-R5-NoGapps-DeBloat-mikussj3.zip in external card

-Delete all hide files and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: 'dctp' and 'did' (internal memory) and all folders: 'miui, mi, xiaomi, mi_drive, yymet...' etc from internal and external memory, delete folders 'Alarms,backups' (internal memory)

-Enter recovery mode

-backup your rom

-backup EFS

-factory reset

-format system, data, cach and dalvik

-install Miui8-jfltexx-R5-NoGapps-DeBloat-mikussj3.zip from external memory (sd card)

-wipe cache, reboot

When boot complete:

- skip language and setup your bootsettings

When bootsettings done:

- change language

- Change Region (read tips - second post)

done.

Go to second post and read tips and changelog.

BUGS:

1. region after reboot is china (read tips - second post)

2. Edit your APN or use TEXTRA APK if you have MMS problems (some testers reported an MMS problem)

3. Call recording

4. Long screenshoot (Scrolling)

5. Front camera dont work (in miui camera)

***You tell me :) ***

Full DeBloat Script post 3

Version 4

Download Mega:

Miui8-jfltexx-R4-NoGapps-mikussj3.zip

In connection with the PROVISIONS.APK prose I decided to not include GAPPS

***********************************

Clean installation recommended

Do not restore apps from older android version through titanium backup, install the apps from Play Store and only use Titanium backup to restore the app data for non system apps

***********************************

Installation:

ROM:

1.

-save Miui8-jfltexx-R4-NoGapps-mikussj3.zip in external card (SD card)

- save Miui_8_De-Bloat_Extreme_jfltexx-mini.zip in external card (SD card) from 'attached files'

-Delete all hide files and folders and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: dctp and did and all folder miui, mi, xiaomi, etc from internal and external memory

-Enter recovery mode

-backup your rom

-backup EFS

-factory wipe

-wipe system, data, cache and dalvik

-install Miui8-jfltexx-R4-NoGapps-mikussj3.zip from external memory (sd card)

- install Miui_8_De-Bloat_Extreme_jfltexx-mini.zip from external memory (sd card) (or not if you want full miui rom)

-wipe cache, reboot

2.

When boot complete

- skip language and setup your bootsettings

3.

When bootsettings done

- change language

- Change Region (read tips - second post)

microG:

download and unpack 'microG.zip', read instructions 'ReadMe.text'

microG.zip

or

GAPPS:

- Download latest Open Gapps from	http://opengapps.org/

- reboot recovery

- flash open gapps

- wipe cache and dalvik

- reboot

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

OR USE CHINESE GAPPS INSTALLER from Attached Files

- install gapps

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

DONE

Go to second post and read tips and changelog.

BUGS:

1. region after reboot is china (read tips - second post)

2. Edit your APN or use TEXTRA APK if you have MMS problems (some testers reported an MMS problem)

3. Call recording

4. Long screenshoot (Scrolling)

5. Front camera dont work (in miui camera)

***You tell me :) ***

Full DeBloat Script post 3

Version 3

Download Mega:

Miui8-jfltexx-R3-NoGapps-mikussj3.zip

In connection with the PROVISIONS.APK prose I decided to not include GAPPS

***********************************

Clean installation recommended

Do not restore apps from older android version through titanium backup, install the apps from Play Store and only use Titanium backup to restore the app data for non system apps

***********************************

Installation:

ROM:

1.

-save Miui8-jfltexx-R3-NoGapps-mikussj3.zip in external card (SD card)

- save Miui_8_De-Bloat_Extreme_jfltexx-mini.zip in external card (SD card) from 'attached files'

-Delete all hide files and folders and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: dctp and did and all folder miui, mi, xiaomi, etc from internal and external memory

-Enter recovery mode

-backup your rom

-backup EFS

-factory reset

-format system, data, cache and dalvik

-install Miui8-jfltexx-R3-NoGapps-mikussj3.zip from external memory (sd card)

- install Miui_8_De-Bloat_Extreme_jfltexx-mini.zip from external memory (sd card) (or not if you want full miui rom)

-wipe cache, reboot

2.

When boot complete

- skip language and setup your bootsettings

- Important - leave selected locations

3.

When bootsettings done

- change language

- Change Region (after all reboot back to china):

MIXplorer: go to data/miui/cust/your region/cust.prop and copy all line to build.prop

REBOOT

GAPPS:

- Download latest Open Gapps from	http://opengapps.org/

- reboot recovery

- flash open gapps

- wipe cache and dalvik

- reboot

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

OR USE CHINESE GAPPS INSTALLER from Attached Files

- install gapps

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

DONE

Go to second post and read tips and changelog.

BUGS:

1. region after reboot is china

2. After the restart, you will see the message "SD card - touch to open in explorer"

4. Edit your APN or use TEXTRA APK if you have MMS problems (some testers reported an MMS problem)

5. Call recording

6. Long screenshoot

***You tell me :) ***

Full DeBloat Script post 3

Of course, thank you very much to the beta testers, especially the

Szwajowy

marm0tte31

Version 2

Download Mega:

Miui8-jfltexx-R2-NoGapps-mikussj3.zip

In connection with the PROVISIONS.APK prose I have decided not to include GAPPS

***********************************

Clean installation recommended

Do not restore apps from older android version through titanium backup, install the apps from Play Store and only use Titanium backup to restore the app data for non system apps

***********************************

Installation:

ROM:

1.

-save Miui8-jfltexx-R2-NoGapps-mikussj3.zip in external card

-Delete all hide files and folders and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: dctp and did and all folder miui, mi, xiaomi, etc from internal and external memory

-Enter recovery mode

-backup your rom

-backup EFS

-factory reset

-format system, data, cach and dalvik

-unmount system and data

-install Miui8-jfltexx-R1-NoGapps-mikussj3.zip from external memory (sd card)

-wipe cache, reboot

2.

When boot complete

- skip language and setup your bootsettings

3.

When bootsettings done

- change language

- Change Region (after all reboot back to china):

MIXplorer: go to data/miui/cust/your region/cust.prop and copy all line to build.prop

REBOOT

GAPPS:

- Download latest Open Gapps from	http://opengapps.org/

- reboot recovery

- flash open gapps

- wipe cach and dalvik

- reboot

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

OR USE CHINESE GAPPS INSTALLER from Attached Files

- install gapps

- go to settings/installed apss/ google play services, permissions and tick all permissions

- setup your account

DONE

Go to second post and read tips and changelog.

BUGS:

1. region after reboot is china

2. It does not work location in the weather, set your location manually

3. After the restart, you will see the message "SD card - touch to open in explorer"

4. Edit your APN or use TEXTRA APK if you have MMS problems (some testers reported an MMS problem)

5. Call recording

6. Long screenshoot

***You tell me :) ***

Version 1

Download

Link:

https://mega.nz/#!3URTQLhC!x8YzaDxROJ5k5JYgNqODeeEeaEPIwm3z6g5DV-qUTuc

installation:

-save Miui8-jfltexx-release1-by-mikussj3.zip in external card

-Delete all hide files and folders and 'Android' folder in internal memory (best way: format internal memory)

-If you come from 'miui rom' delete files: dctp and did and all folder miui, mi, xiaomi, etc from internal and external memory

-Enter recovery mode

-backup your rom

-backup EFS

-factory reset

-format system, data, cach and dalvik

-unmount system and data

-install Miui8-jfltexx-release1-by-mikussj3.zip from external memory (sd card)

-wipe cache, reboot

When boot complete

-time to time skip 'google play service stop'

- skip language and setup your bootsettings

- select theme 'high life' (deafult have bug- not display 2 icons)

When bootsettings done

- go to settings/installed apss/ google play services, permissions and tick all permissions

- change language

done.

Go to second post and read tips.

Unistall app - kernel tuner (i forgot delete)

Of course, thank you very much to the beta testers, especially the

Szwajowy

marm0tte31

Thanks to

ISF

ROM REVIEW HERE

[YOUTUBE]0S0urjEEa0A[/YOUTUBE]​

If you like my work don't forget to hit the thanks button

Donate:

If you support my working project MIUI 8, consider a donation.

I’ll be very grateful for the coffee.

​

Special thanks to the donators ;)

zetcamp

XDA:DevDB Information

Miui 8 Rom Samsung Galaxy S4 GT-I9505, ROM for the Samsung Galaxy S4 GT-I9505

Contributors

::mikussj3::

Source Code:

Miui Patchrom,LineageOS(CyanogenMod),Google,JDCTeam

ROM OS Version: 6.0.1

ROM Kernel: Linux 3.4.112

ROM Firmware Required: Compatible Custom Recovery

Version Information

Status: Stable

Created 2017-07-14

Last Updated 2017-11-20