luk1337 / ih8sn

331 stars 113 forks source link

No network when ih8sn is installed on davinci #19

Closed Spiffyk closed 2 years ago

Spiffyk commented 2 years ago

When I install ih8sn on my davinci with LineageOS 19 UNOFFICIAL, all network (i.e. WiFi, mobile data, Bluetooth etc.) stops working. It seems that the system loses a way to access the devices, because the settings for these hang in strange ways.

Network starts working again when I remove /bin/ih8sn and /etc/init/ih8sn.rc. Is there some known way to fix this or a hint as to how to debug this problem?

luk1337 commented 2 years ago

Does that happen with an empty config file?

Spiffyk commented 2 years ago

I've tried multiple configurations, including with everything commented out and configuring it with values from the latest stock ROM. I should note that the latest ROM is Android 11. Do mismatching Android versions of the fingerprint and the actual ROM cause problems? I.e. should I wait until/if Xiaomi releases an official Android 12 stock ROM for the device (or downgrade to LineageOS 18)?

luk1337 commented 2 years ago

If you're able to compile, then try to find out which property override breaks it.

Spiffyk commented 2 years ago

And I should try commenting out the ones at the bottom of main.cpp, i.e. on lines 130-135, one by one, correct?

luk1337 commented 2 years ago

Yeah, these are the only prop overrides that aren't optional.

Spiffyk commented 2 years ago

Network works with ro.boot.verifiedbootstate commented out. SafetyNet verification fails, but I'm guessing that is kind of expected.

luk1337 commented 2 years ago

hmm, that's unexpected...

luk1337 commented 2 years ago

Try to wrap the last 5 overrides with is_boot_completed_stage.

Spiffyk commented 2 years ago

That fixes it and SafetyNet passes!

luk1337 commented 2 years ago

Can you open PR? ^.^

Spiffyk commented 2 years ago

Will do! Thanks for the help.