Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
218 stars 31 forks source link

Hammerhead: camera and hotspot do not work. #140

Open AvverbioPronome opened 2 years ago

AvverbioPronome commented 2 years ago

Phone boots fine, tho. Bootloader relocking works as well. I haven't tried calling, incoming SMS do work.

I'd like to use this phone again, but I can't without camera and hotspot.

I did run a logcat (which I did not save, silly me) and the problem seems to be with some hardware driver.

SkewedZeppelin commented 2 years ago

15.1 or 16.0?

AvverbioPronome commented 2 years ago

15.1 or 16.0?

divested-16.0-20220715-dos-hammerhead

should I go for 15.1?

SkewedZeppelin commented 2 years ago

Yes, give 15.1 a try. 16.0 for hammerhead is a bit broken.

AvverbioPronome commented 2 years ago

I'm flashing the system. I find that fastboot flash recovery recovery.img doesn't do anything, I still get the stock recovery.

I am using adb sideload after having done fastboot boot recovery.img

AvverbioPronome commented 2 years ago

Flashing the recovery, and OTA updates, work. I just had to install the recovery after the system.

Camera looks like it works. Hotspot claims to be working (the interface switches on and off, which 16.0 didn't do) but doesn't emit any wifi network:

08-02 12:25:22.125   366   458 V NatController: enableNat(intIface=<wlan0>, extIface=<rmnet0>)
08-02 12:25:22.131   683   796 D RecurrenceRule: Resolving using anchor 2022-08-02T12:25:22.131+02:00[Europe/Rome]
08-02 12:25:22.143   683   706 I Tethering: Finding IPv4 upstream interface on: {InterfaceName: rmnet0 LinkAddresses: [10.21.13.111/27,]  Routes: [0.0.0.0/0 -> 10.21.13.112 rmnet0,10.21.13.96/27 -> 0.0.0.0 rmnet0,] DnsAddresses: [151.5.216.228,151.5.216.28,] Domains: null MTU: 1500 TcpBufferSizes: 524288,1048576,2097152,262144,524288,1048576}
08-02 12:25:22.144   683   706 I Tethering: Found interface rmnet0
08-02 12:25:22.145   366   458 D TetherController: setDnsForwarders(0xf0064 0 = '151.5.216.228')
08-02 12:25:22.145   366   458 D TetherController: setDnsForwarders(0xf0064 1 = '151.5.216.28')
08-02 12:25:22.145   366   458 D TetherController: Sending update msg to dnsmasq [update_dns|0xf0064|151.5.216.228|151.5.216.28]
08-02 12:25:22.151   683   706 I Tethering: Finding IPv4 upstream interface on: {InterfaceName: rmnet0 LinkAddresses: [10.21.13.111/27,]  Routes: [0.0.0.0/0 -> 10.21.13.112 rmnet0,10.21.13.96/27 -> 0.0.0.0 rmnet0,] DnsAddresses: [151.5.216.228,151.5.216.28,] Domains: null MTU: 1500 TcpBufferSizes: 524288,1048576,2097152,262144,524288,1048576}
08-02 12:25:22.152   683   706 I Tethering: Found interface rmnet0
08-02 12:25:22.153   366   458 D TetherController: setDnsForwarders(0xf0064 0 = '151.5.216.228')
08-02 12:25:22.153   366   458 D TetherController: setDnsForwarders(0xf0064 1 = '151.5.216.28')
08-02 12:25:22.153   366   458 D TetherController: Sending update msg to dnsmasq [update_dns|0xf0064|151.5.216.228|151.5.216.28]
08-02 12:25:22.155   683   796 D RecurrenceRule: Cycle 19 from 2022-08-02T00:00+02:00[Europe/Rome] to 2022-09-02T00:00+02:00[Europe/Rome]
08-02 12:25:22.156   683   796 D NetworkStats: Resolving plan for NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=222882..., matchSubscriberIds=[222882...]
08-02 12:25:22.158   683   796 D NetworkStats: Found active matching subId 1
08-02 12:25:22.165   683   796 D NetworkStats: Resolved to plan null
08-02 12:25:24.011  2890  2890 E hostapd : nl80211: Could not configure driver mode
08-02 12:25:24.011  2890  2890 I hostapd : nl80211: deinit ifname=wlan0 disabled_11b_rates=0
08-02 12:25:24.012  2890  2890 E hostapd : nl80211 driver initialization failed.
08-02 12:25:24.012  2890  2890 I hostapd : wlan0: interface state UNINITIALIZED->DISABLED
08-02 12:25:24.012  2890  2890 I hostapd : wlan0: AP-DISABLED
08-02 12:25:24.012  2890  2890 I hostapd : wlan0: CTRL-EVENT-TERMINATING
08-02 12:25:24.012  2890  2890 E hostapd : hostapd_free_hapd_data: Interface wlan0 wasn't started
08-02 12:25:24.017   683   798 D SoftApManager: SoftAp is ready for use
08-02 12:25:24.020   683   683 D WifiService: handleWifiApStateChange: currentState=13 previousState=13 errorCode= -1 ifaceName=wlan0 mode=1
08-02 12:25:24.020   683   706 E Tethering: Tried to Tether an unavailable iface: wlan0, ignoring
08-02 12:25:24.020   683   706 E Tethering: unable start or stop tethering on iface wlan0
08-02 12:25:27.109   683   711 E LightsService: Light requested not available on this device. 2
AvverbioPronome commented 2 years ago

@SkewedZeppelin I tried a lot of stuff, both DivestOS releases, and the last stock image from Google, and I settled on a dev image of /e/OS, which works fine but it's at least one year old. I'd like to give DivestOS another try, if you can guide me to making the rom work or point me to an hammerhead DivestOS user community.

SkewedZeppelin commented 2 years ago

I'll reopen this as it is still an issue.

I don't have this device and it is somehow still holding a high price used.

More logs would help, camera should work on 15.1. Hotspot may be broken by one of the kernel patches? But I haven't seen issues like that on any other 3.4 devices.

AvverbioPronome commented 2 years ago

I haven't forgotten about this issue but I cannot reflash my phone right now. I'll get you your logs eventually.

SkewedZeppelin commented 2 years ago

No worry, I've since acquired a hammerhead. 16.0 fixes are on my TODO list. 15.1 seems stable however.

AvverbioPronome commented 2 years ago

I had to try. I flashed 15.1.

Camera works, hotspot doesn't. logcat.txt

(USB tethering works, but that's not very comfortable -- BT tethering I'm not sure)

iraklis10 commented 1 year ago

Camera not working 16.0 if it helps > logcat.txt

keomabrun commented 1 year ago

Thanks for the work ! I have a Nexus 5 hammerhead with 15.1, works like a charm except:

Let me know if I can help :) I can run test builds and provide feedback.

SkewedZeppelin commented 1 year ago

an 18.1 based hammerhead is up thanks to @z3DD3r