Git Product home page Git Product logo

Comments (5)

AndroPlus-org avatar AndroPlus-org commented on August 16, 2024

To workaround this issue, I added "PRODUCT_PACKAGES += bootctl" to device_phh_treble/generate.sh
and run "bootctl mark-boot-successful" in adb shell after booting.

from treble_experimentations.

phhusson avatar phhusson commented on August 16, 2024

I don't get such a problem on Razer Phone, that's a bit weird.
For the moment I've added bootctl:
phhusson/device_phh_treble@6603eb0

Something as simple as on property:sys.boot_completed=1 bootctl mark-boot-successful in an init.rc should be enough I guess, but I want to check the behaviour on an A-only device first

from treble_experimentations.

Jim-Bar avatar Jim-Bar commented on August 16, 2024

Tested on a Google Pixel (arm64, A/B):

on property:sys.boot_completed=1
    exec u:r:phhsu_daemon:s0 root -- /system/bin/bootctl mark-boot-successful

I put that into device/phh/treble/environ/init.treble-environ.rc.

The bootloader successfully marked the slot as bootable. Before first boot:

$ fastboot getvar all
(…)
(bootloader) slot-count:2
(bootloader) current-slot:a
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:3
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no

After first boot:

$ fastboot getvar all
(…)
(bootloader) slot-count:2
(bootloader) current-slot:a
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:2
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes

from treble_experimentations.

phhusson avatar phhusson commented on August 16, 2024

There I commited:
phhusson/device_phh_treble@b01b148
Not tested yet on either A or A/B

from treble_experimentations.

Jim-Bar avatar Jim-Bar commented on August 16, 2024

Fetched, and tested on a Google Pixel XL (A/B): it works.

from treble_experimentations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.