Lagfix app

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by _jordan_, Aug 31, 2013.

  1. _jordan_

    _jordan_Members

    Oct 13, 2012
    282
    23
    40
    Male
  2. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Im using fstrim binary and a init.d script to trim 3 partitions after boot.
    Works nice.

    Wysłane z Xiaomi MI 2
     
    xeGox likes this.
  3. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    What's the init.d file?

    Inviato dal mio Xiaomi Mi-4s...con tapatalk 26°
     
  4. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Its a directory. in /etc (but not there by default). Everything you put there is executing during boot.
    A bash scripts are allowed there. But our MI-2 doesnt have init.d support (we might create that in future for miuiandroid builds)
     
  5. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    nah isn't necessary xiaomi update soon the xiaomi to 4.3
     
  6. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Well maybe not but im already doing that since few months on my rom ;p
    And MIUI said they are comparing 4.2 and 4.3 - they didnt say yet that MI-2 will get 4.3.
     
  7. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    i don't see the xiaomi words is only my thought. Like last year with mi1 and mi2 they do the same thing with mi3 and mi2 this year i think
     
  8. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Yes they will do for sure. But question is 4.2 or 4.3? I suppose it will be 4.2.1(2) for MI-2.
     
  9. _jordan_

    _jordan_Members

    Oct 13, 2012
    282
    23
    40
    Male
    That sucks. 4.3 is much better. Revived my galaxy nexus NP.

    @ Acid. Does your script fstrim /system? I'm terrified of messing with /system on a device with two system partitions.

    Sent from my Xiaomi MI2S
     
  10. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    I know....
    I wanted to know the script exactly ;-)

    Inviato dal mio Xiaomi Mi-4s...con tapatalk 26°
     
  11. manohar

    manoharMembers

    Jun 6, 2013
    904
    243
    80
    Male
    @Acid: would you mind sharing that script with us here pls ? we would also like to use that script instead of app !
    Is it enough to put that file in init.d folder ?
     
  12. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    For MI2? No.. you have to make init.d support also. Fix certain files. Its not for users to do that.

    Script is simple:
    Code:
    su fstrim -v /cache
    su fstrim -v /data
    su fstrim -v /system
    Also fstrim binary needs to be put in /system/bin to be able to call it from script without full path.
     
  13. manohar

    manoharMembers

    Jun 6, 2013
    904
    243
    80
    Male
    i use Mi2S with Mokee's CM 10.2 ROM...
    what should i do next ?
     
  14. deini

    deiniMembers

    May 11, 2013
    281
    104
    65
    Download the app and use it.

    Sent from my MI 2S using Tapatalk 4
     
  15. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    But people... Why? I have old MI 2 and don't see much difference with fstrim.
    And you guys with S600 CPUs? C'mon..


    Wysłane z Xiaomi MI 2
     
    xeGox and deini like this.
  16. manohar

    manoharMembers

    Jun 6, 2013
    904
    243
    80
    Male
    Ok, i understood ! Thanks for your help !
     
  17. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    anf strim is already on in the 4.3 rom =/
     
  18. _jordan_

    _jordan_Members

    Oct 13, 2012
    282
    23
    40
    Male
    Its definitely not a placebo. After flashing miuiandroid over the xiaomi release, there was probably a lot of junk leftover.

    Sent from my Xiaomi MI2S
     
  19. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Well I can implement fstrim for aries just to make users happy they have something from 4.3...
    But It won't make visual difference. Trim is extends flash memory life and holds its speed over time.
    In my rom fstrim is executing each reboot (or just new version install). On my laptop trim is doing also each reboot as I have SSD disc.
     
  20. _jordan_

    _jordan_Members

    Oct 13, 2012
    282
    23
    40
    Male
    Pry better to leave it out. I wonder what xiaomi will be giving us now that kit Kat was announced.

    Sent from my Xiaomi MI2S
     

Share Our Site