Comments (5)
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.
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.
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.
There I commited:
phhusson/device_phh_treble@b01b148
Not tested yet on either A or A/B
from treble_experimentations.
Fetched, and tested on a Google Pixel XL (A/B): it works.
from treble_experimentations.
Related Issues (20)
- Setup Crash<title>
- Galaxy A10 - Camera Error
- Flash HOT 6
- Flash
- How to flash phh gsi and root on Vankyo P31 (using unisoc sc9863a) HOT 2
- System RO on Google GSI Official 14 HOT 2
- GSI loads fine with DSU loader but fails from FastbootD
- SIM card is detected, but also not really. HOT 1
- <title> How to add status bar padding?
- how to build user variant HOT 2
- Redmi 12 - "surfaceflinger" spams with errors HOT 6
- Redmi 12 - screen backlight stops working after locking/unlocking the screen for a few times HOT 3
- Galaxy A04 - Mobile internet bug HOT 4
- Can anybody pleas build pixel experience with android 14 ??
- battery drain and hot when charging HOT 1
- MTK No Internet HOT 5
- Error in repo sync step HOT 1
- What is the lisense for this? HOT 1
- Status bar inconsistency on Redmi 9
- Mblu hifi dac playback artifacts (crackles and sound fades) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treble_experimentations.