Courtesy of KonstaKANG

  • limerod@reddthat.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    adb shell pm compile -a -f --check-prof false -m everything

    adb shell pm compile -a -f --check-prof false --compile-layouts

    adb shell pm bg-dexopt-job

    What do these commands do? From 1st to last.

    • aluminium@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      in short : Android apps contain dex bytecode, which through these commands get compiled into native machine code.

      • limerod@reddthat.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I know that. I was just asking what the actual adb commands do like the compile-layouts parameter, the last bgdexopt job. Why are all 3 necessary. Samsung has a galaxy app booster that appears to do something similar.

        • aluminium@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Ah, unfortunately I don’t know it either. I always saw these 3 mentioned when talking about the topic. My guess with the --compile-layouts flag would be that it maybe precalculates layout xml files to your exact screen size and resolution.