[ROM][9.0][OFFICIAL] FlokoROM v2.0 [clover/Mi Pad 4]

Search This thread

1indwurm

Senior Member
Sep 9, 2014
106
290
maud.io
Xiaomi Mi 5
Moto G5 Plus
floko-logo-banner.png


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.

Features

Floko-specific features:
  • OmniSwitch included
  • Kawaii Easter Egg in Floko Settings
  • Remove Music Player
  • Remove Font Packages (Did Google release "Product Sans" under open source license???)

crDroid and LineageOS features:
  • SmartNav(SmartBar, Fling, Pulse...)
  • Network traffic monitor
  • switch 4G/LTE icon
  • Battery bar
  • Statusbar Quick/Smart pulldown
  • QS columns
  • Lockscreen customization
  • Switch "Recents" style
  • HW button configurations
  • Expanded desktop
  • Rounded corners
  • Style(Theming)
  • Volume panel customization
  • brand-new dashboard
  • media seekbar

Hardware-specific Features

I have an 8" wifi model of Mi Pad 4. so I can't test other version's hardware-specific features like cellular and fingerprint scanner.

  • dt2w
  • smart (magnetic) cover
  • Night light with LiveDisplay
  • grayscale (both "Reading Mode" and "Digital Wellbeing")
  • aptX Audio

Known Issues

  • Lockscreen is Landscape mode only
    Maybe aosp issue, plz tell me if you know "it's fixed in other ROM!"
  • If you encountered other issues, please tell me

How to Install

  1. MAKE A BACKUP OF ALL YOUR DATA.
  2. (First time) Wipe /system, /data, /cache, Dalvik/ART Cache
  3. Flash ROM, GApps, Magisk(optional), ...
  4. Reboot to System
  5. Enjoy.

Thanks

love. respect. and love.

  • GuaiYiHu (device & kernel are based on his work)
  • crDroid
  • LineageOS
  • OmniROM
  • Dirty Unicorns
  • AICP

Team


Downloads




Source Codes




XDA:DevDB Information
FlokoROM, ROM for the Xiaomi Mi Pad 4

Contributors
1indwurm
Source Code: https://github.com/FlokoROM

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: crDroid

Version Information
Status: Beta
Current Beta Version: v2.0
Beta Release Date: 2019-10-15

Created 2019-02-19
Last Updated 2019-10-15
 
Last edited:

1indwurm

Senior Member
Sep 9, 2014
106
290
maud.io
Xiaomi Mi 5
Moto G5 Plus
additional information

FAQ

Why this ROM encrypting my /data partition? How to disable it?
FlokoROM enabled forceencrypt for /data partition as default to avoid the issue ( https://github.com/FlokoROM-Devices...mmit/d83e5ebd7b826d53b3aa49faa3d824c397e4ba2f )
and keep your data securely.

If you don't want encryption, you can use this https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389 .
note: This Disabler require formatted /data . you can use it at first time you flash Floko. DO NOT use for already encrypted /data .

first time: in TWRP, Format Data(THIS WILL ERASE YOUR DATA) -> Flash Floko -> OpenGApps(optional) -> Magisk(recommended) -> Flash Disabler .
update: Flash Floko -> OpenGApps(optional) -> Magisk(recommended) -> Flash Disabler.


What is "recommended TWRP"?
some TWRP couldn't decrypt /data correctly. we recommend mokee's one.

Why FlokoROM doesn't support "Fast Charge"?
Hardware issue. Mi Pad 4 DOES NOT support ANY "fast charge", 5V/2A is max (depend on charger and cable).

Changelog

You can read full changelog (Git changes) in FlokoROM. Open Settings -> Floko Settings -> about FlokoROM -> current changelog .

Code:
[SIZE="3"]
Floko-v2.0-clover-20191212_060504-OFFICIAL: 2019.12 release
  * Include 2019-12-05 security patch levels

Floko-v2.0-clover-20191114_033716-OFFICIAL: 2019.11 release
  * Include 2019-11-05 security patch levels
  * added seekbar to media notification: like Android Q

Floko-v2.0-clover-20191015_073807-OFFICIAL: 2019.10 release
  * Include 2019-10-05 security patch levels
  * no new feature (maintainance)

Floko-v2.0-clover-20190915_100553-OFFICIAL: 2019.09 release
  * Include 2019-09-05 security patch levels
  * kernel has been rebased
  * re-enabled "Force activities to be resizable" (does it work?)

Floko-v2.0-clover-20190817_084433-OFFICIAL: 2019.08 release
  * Include 2019-08-01 security patch levels
  * Update kernel to 4.4.185
  * Gaming Mode: now you can disable ADB when you turned on

Floko-v2.0-clover-20190707_160503-OFFICIAL: 2019.07 release
  * Include 2019-07-05 security patch levels
  * Update kernel to 4.4.181
  * Added Gaming Mode (block notifications, disable automatic brightness, ...)
  * Substratum settings integration in "Interface" category (require "substratum theme engine")

Floko-v2.0-clover-20190610_024932-OFFICIAL: 2019.06 release
  * Include 2019-06-05 security patch levels
  * Update kernel to 4.4.180
  * Now you can use OmniSwitch as Recents
  * Add Android Q style battery icon

Floko-v2.0-clover-20190515_072709-OFFICIAL: 2019.05 release
  * Include 2019-05-05 security patch levels
  * Update kernel to 4.4.179
  * Renewal bootanimation

Floko-v2.0-clover-20190416_014344-OFFICIAL: april release
  * Include 2019-04-05 security patch levels
  * Update kernel to 4.4.178
  * Use Snap as default camera app
  * Show our logo in "about device" dialog
  * Add "Restart SystemUI" button
  * Fix old style cellular icons

Floko-v2.0-clover-20190318_110436-OFFICIAL: renewal
  * v2.0 (based on crDroid)
  * Doze and LiveDisplay are back
  * Include 2019-03-05 security patch levels
[/SIZE]

old releases changelog (based on AICP):
Code:
[SIZE="3"]
floko_clover_p-9.0-OFFICIAL-20190219_070313: First Official release!
  * SELinux is now Enforcing
  * Enabled forceencrypt on /data (but your data doesn't encrypt at this time)
  * Disable useless DisplayMode settings (finally!)

floko_clover_p-9.0-EXPERIMENTAL-20190207_004509: Initial public release (experimental)
  * Support "Night lights" and "Grayscale" screen
(feature does work, but you can see DisplayMode settings that does not work)
  * Remove LineageOS LiveDisplay(we don't use lineage-sdk)
[/SIZE]
 
Last edited:

1indwurm

Senior Member
Sep 9, 2014
106
290
maud.io
Xiaomi Mi 5
Moto G5 Plus
You forgot to add:
System will encrypt your tablet,
Twrp with encryption support:
?????
Flash no-dm-verity-no-encryption.zip before 1st boot:
GSI Guide.
Thx. @1indwurm

I'm using MoKee's TWRP-20190117-3.2.3.0-4-clover.img
・primary(baidu): https://download.mokeedev.com/?device=clover -> "Download Recovery"
・mirror(Google Drive): https://forum.xda-developers.com/showpost.php?p=78699745&postcount=9

> Flash no-dm-verity-no-encryption.zip before 1st boot:

does it work with Pie??
 

dzidexx

Senior Member
Nov 9, 2015
1,694
522
Lublin, Poland
"flash....zip"
I don't know.

I was very surprised during the booting.
I need to make a full copy int.mem. and do the format data.
Now I see into LRT TWRP thread - it has no verity, no encryption in adv.options. @1indwurm

Mokee's twrp mounts encrypted Internal Memory automatically but doesn't ask for pass/pin/etc. Encryption hasn't any sense.

I can't find option:
Quick settings pulldown - left/right/both sides.
 
Last edited:

dyingbread

Senior Member
Apr 7, 2012
334
73
Semarang
"flash....zip"
I don't know.

I was very surprised during the booting.
I need to make a full copy int.mem. and do the format data.
Now I see into LRT TWRP thread - it has no verity, no encryption in adv.options. @1indwurm

Mokee's twrp mounts encrypted Internal Memory automatically but doesn't ask for pass/pin/etc. Encryption hasn't any sense.

I can't find option:
Quick settings pulldown - left/right/both sides.

If I flash this rom, it will encrypt my clover automatically?
 

dyingbread

Senior Member
Apr 7, 2012
334
73
Semarang
Yes it will encrypt, all data will not be deleted. You can try to flash mentioneded .zip or option in LRT TWRP.
I didn't do that yet. @dyingbread

I am not a fan of enrcypted device. So i am not interested if this rom automatically encrypt my device. I just don't want the trouble of formatting data if I move to a different rom.
 

1indwurm

Senior Member
Sep 9, 2014
106
290
maud.io
Xiaomi Mi 5
Moto G5 Plus
Can someone please explain the difference between this and that: https://treble.andro.plus

Ok.
First, we provide this officially and this is traditional-style ROM. Release per device, support hardware specific features, and you can flash this ROM for clover only.

...Aaaand, treble.andro.plus provides "phh-treble" style FlokoROM GSI (Generic System Image) unofficially. You can flash it for all Treble-ready (A-only and A/B) devices.
 
Last edited:
  • Like
Reactions: stangri
Thank you for the outstanding ROM. I've tried a few Oreo-based ROMs before, so I've had bootloader unlocked for a while. All the other Pie-based ROMs I've tried before failed to support Mi Pad 4 properly.

Flashed Mokee TWRP, from TWRP I wiped data, flashed this ROM, OpenGapps 9.0 micro, Magisk 18.1, wiped cache/dalvik cache, booted in and restored most of my apps/setup from the cloud as if Gapps were installed natively and got the Magisk Manager app after another reboot.

Fantastic ROM, granted I haven't tried BT yet, but WiFi definitely works better than on Oreo AICP Mordiford, screen has rounded corners, etc. Thank you for making this ROM available!
 

crass00

Member
Aug 23, 2010
15
4
Rom has been near perfect, Thank you 1indwurm

The one thing I have found a problem with is charging. I have tried a few chargers and they are very slow or don't register at all, after been fast on the stock rom. I never checked the charging speed before so can't give a before and after comparison but it seems at least twice as slow. On one of my chargers it seemed to be draining the battery instead of charging it. On the charger that was reasonable speed it was charging at 950mA but that was on a charger that should do 2.4A
@stangri - BT works well, I didn't have any drop outs when I used to have occasional dropouts in busy areas
 
  • Like
Reactions: stangri
The one thing I have found a problem with is charging.

@1indwurm -- another thing I've discovered is force-landscape orientation is lost after reboot. If I disable rotation when the device is in the landscape mode it works fine until reboot. After reboot it's stuck in portrait, I have to enable rotation again, rotate into landscape and then lock rotation again.

All other roms I've tried, once you lock the device in landscape mode, it would survive reboots and after reboot would be in landscape mode again with rotation locked.
 

1indwurm

Senior Member
Sep 9, 2014
106
290
maud.io
Xiaomi Mi 5
Moto G5 Plus
sorry for the delay in releasing a new build.

First, we have to tell you that we're working on switch to the crDroid-based version (from AICP-based) now.

crDroid use LineageOS device trees(familiar to us), so I wish we can make it more stable and work better than before...
and finally we don't have to nuke LiveDisplay and some Lineage HALs!

Done:
  • pass the build
  • flash it over old release (no need to wipe /data !)
  • boot
  • Wi-Fi
  • Grayscale and LiveDisplay
  • DT2W
  • Smart cover
  • basic rebrand
  • new OTA

WIP or TODO:
  • WIP: Extra Settings is a little buggy FIXED
  • WIP: rebranding
  • TODO: fix screen rotation
  • TODO: fix charging speed

Screenshot:
floko-v-2-tiny.png


need sources?

@1indwurm -- another thing I've discovered is force-landscape orientation is lost after reboot. If I disable rotation when the device is in the landscape mode it works fine until reboot. After reboot it's stuck in portrait, I have to enable rotation again, rotate into landscape and then lock rotation again.

All other roms I've tried, once you lock the device in landscape mode, it would survive reboots and after reboot would be in landscape mode again with rotation locked.

reproduced in the latest release and testing(crDroid-based) ver. Did(or would) you test that on Mokee? (our build is based on mokee's tree, not xiaomi-sdm660)
 
Last edited:
  • Like
Reactions: dzidexx

Adamooo

Member
Oct 12, 2017
39
4
Flashed over v1 and keep saying google play services stop auutomatically, play store either, what it is the problem ? I'll have to do a clean install?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    floko-logo-banner.png


    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.

    Features

    Floko-specific features:
    • OmniSwitch included
    • Kawaii Easter Egg in Floko Settings
    • Remove Music Player
    • Remove Font Packages (Did Google release "Product Sans" under open source license???)

    crDroid and LineageOS features:
    • SmartNav(SmartBar, Fling, Pulse...)
    • Network traffic monitor
    • switch 4G/LTE icon
    • Battery bar
    • Statusbar Quick/Smart pulldown
    • QS columns
    • Lockscreen customization
    • Switch "Recents" style
    • HW button configurations
    • Expanded desktop
    • Rounded corners
    • Style(Theming)
    • Volume panel customization
    • brand-new dashboard
    • media seekbar

    Hardware-specific Features

    I have an 8" wifi model of Mi Pad 4. so I can't test other version's hardware-specific features like cellular and fingerprint scanner.

    • dt2w
    • smart (magnetic) cover
    • Night light with LiveDisplay
    • grayscale (both "Reading Mode" and "Digital Wellbeing")
    • aptX Audio

    Known Issues

    • Lockscreen is Landscape mode only
      Maybe aosp issue, plz tell me if you know "it's fixed in other ROM!"
    • If you encountered other issues, please tell me

    How to Install

    1. MAKE A BACKUP OF ALL YOUR DATA.
    2. (First time) Wipe /system, /data, /cache, Dalvik/ART Cache
    3. Flash ROM, GApps, Magisk(optional), ...
    4. Reboot to System
    5. Enjoy.

    Thanks

    love. respect. and love.

    • GuaiYiHu (device & kernel are based on his work)
    • crDroid
    • LineageOS
    • OmniROM
    • Dirty Unicorns
    • AICP

    Team


    Downloads




    Source Codes




    XDA:DevDB Information
    FlokoROM, ROM for the Xiaomi Mi Pad 4

    Contributors
    1indwurm
    Source Code: https://github.com/FlokoROM

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x
    Based On: crDroid

    Version Information
    Status: Beta
    Current Beta Version: v2.0
    Beta Release Date: 2019-10-15

    Created 2019-02-19
    Last Updated 2019-10-15
    8
    FlokoROM v3 RC is here!

    flokowall_v3.png


    FlokoROM v3 (based on Android 10) is coming!

    warn: MUST format /data before flash

    known issue: (SafetyNet) ctsProfile: fail

    testing build: https://mega.nz/#!Z7RBAILQ!eimfwbkiujcpKTPHr8j-NQi4iJiRWVfihdAJGSaY6fQ
    TWRP: https://mega.nz/#!CQQRwSAL!VX34bYDiiZCfYAIE03ZhIfkhxyx7-fb1wm1rI6abVek
    (optional) Disable ForceEncrypt: https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
    7
    additional information

    FAQ

    Why this ROM encrypting my /data partition? How to disable it?
    FlokoROM enabled forceencrypt for /data partition as default to avoid the issue ( https://github.com/FlokoROM-Devices...mmit/d83e5ebd7b826d53b3aa49faa3d824c397e4ba2f )
    and keep your data securely.

    If you don't want encryption, you can use this https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389 .
    note: This Disabler require formatted /data . you can use it at first time you flash Floko. DO NOT use for already encrypted /data .

    first time: in TWRP, Format Data(THIS WILL ERASE YOUR DATA) -> Flash Floko -> OpenGApps(optional) -> Magisk(recommended) -> Flash Disabler .
    update: Flash Floko -> OpenGApps(optional) -> Magisk(recommended) -> Flash Disabler.


    What is "recommended TWRP"?
    some TWRP couldn't decrypt /data correctly. we recommend mokee's one.

    Why FlokoROM doesn't support "Fast Charge"?
    Hardware issue. Mi Pad 4 DOES NOT support ANY "fast charge", 5V/2A is max (depend on charger and cable).

    Changelog

    You can read full changelog (Git changes) in FlokoROM. Open Settings -> Floko Settings -> about FlokoROM -> current changelog .

    Code:
    [SIZE="3"]
    Floko-v2.0-clover-20191212_060504-OFFICIAL: 2019.12 release
      * Include 2019-12-05 security patch levels
    
    Floko-v2.0-clover-20191114_033716-OFFICIAL: 2019.11 release
      * Include 2019-11-05 security patch levels
      * added seekbar to media notification: like Android Q
    
    Floko-v2.0-clover-20191015_073807-OFFICIAL: 2019.10 release
      * Include 2019-10-05 security patch levels
      * no new feature (maintainance)
    
    Floko-v2.0-clover-20190915_100553-OFFICIAL: 2019.09 release
      * Include 2019-09-05 security patch levels
      * kernel has been rebased
      * re-enabled "Force activities to be resizable" (does it work?)
    
    Floko-v2.0-clover-20190817_084433-OFFICIAL: 2019.08 release
      * Include 2019-08-01 security patch levels
      * Update kernel to 4.4.185
      * Gaming Mode: now you can disable ADB when you turned on
    
    Floko-v2.0-clover-20190707_160503-OFFICIAL: 2019.07 release
      * Include 2019-07-05 security patch levels
      * Update kernel to 4.4.181
      * Added Gaming Mode (block notifications, disable automatic brightness, ...)
      * Substratum settings integration in "Interface" category (require "substratum theme engine")
    
    Floko-v2.0-clover-20190610_024932-OFFICIAL: 2019.06 release
      * Include 2019-06-05 security patch levels
      * Update kernel to 4.4.180
      * Now you can use OmniSwitch as Recents
      * Add Android Q style battery icon
    
    Floko-v2.0-clover-20190515_072709-OFFICIAL: 2019.05 release
      * Include 2019-05-05 security patch levels
      * Update kernel to 4.4.179
      * Renewal bootanimation
    
    Floko-v2.0-clover-20190416_014344-OFFICIAL: april release
      * Include 2019-04-05 security patch levels
      * Update kernel to 4.4.178
      * Use Snap as default camera app
      * Show our logo in "about device" dialog
      * Add "Restart SystemUI" button
      * Fix old style cellular icons
    
    Floko-v2.0-clover-20190318_110436-OFFICIAL: renewal
      * v2.0 (based on crDroid)
      * Doze and LiveDisplay are back
      * Include 2019-03-05 security patch levels
    [/SIZE]

    old releases changelog (based on AICP):
    Code:
    [SIZE="3"]
    floko_clover_p-9.0-OFFICIAL-20190219_070313: First Official release!
      * SELinux is now Enforcing
      * Enabled forceencrypt on /data (but your data doesn't encrypt at this time)
      * Disable useless DisplayMode settings (finally!)
    
    floko_clover_p-9.0-EXPERIMENTAL-20190207_004509: Initial public release (experimental)
      * Support "Night lights" and "Grayscale" screen
    (feature does work, but you can see DisplayMode settings that does not work)
      * Remove LineageOS LiveDisplay(we don't use lineage-sdk)
    [/SIZE]
    7
    Floko-v2.0-clover-20200313_123154-OFFICIAL

    It's final build of FlokoROM v2.

    Security patch level: 2020-03-05
    New feature: none

    FlokoROM v3 (Android10): soon™
    6
    Floko-v2.0-clover-20190817_084433-OFFICIAL is up! (2019-08 security patch included)

    check OP and #2 .