micro5k / microg-unofficial-installer

microG unofficial installer - it installs microG on Android
https://forum.xda-developers.com/showthread.php?t=3432360
GNU General Public License v3.0
174 stars 21 forks source link

Volume keys are not being identified #64

Closed fabianski7 closed 1 year ago

fabianski7 commented 1 year ago

I tested it on crdroid on android 13 and on havoc on a11 and in neither case was this app installed. How can I help debug this? I am using a oneplus 6 (enchilada)

ale5000-git commented 1 year ago

Aurora Services isn't installed by default, but during the zip flashing you could use the live setup to enable it.

fabianski7 commented 1 year ago

Does TWRP support this type of installation? Because when I flash the zip, no timeout is activated so I can press the volume button, it just starts installing.

ale5000-git commented 1 year ago

Yes, it works perfectly in TWRP.

TWRP have an option to copy log. Could you please flash the zip, copy the log and post it here so I can see what happens?

fabianski7 commented 1 year ago

dmesg.log logcat.txt recovery.log

ale5000-git commented 1 year ago

@fabianski7 The warning that I have put was too much generic, now I have improved it. Could you please retry with this test build and then post the recovery.log again?

Edit: Link removed

fabianski7 commented 1 year ago

sorry the delay

recovery (1).log logcat (1).txt dmesg (1).log

ale5000-git commented 1 year ago

@fabianski7 No problem but you have flashed the v1.3.1-beta, not the one linked.

fabianski7 commented 1 year ago

No problem but you have flashed the v1.3.1-beta, not the one linked: https://androidfilehost.com/?fid=10620683726822057649

true 🤦‍♂️

Well, now I can access the installer. The problem now is that I press the volume key only once and it registers twice.

This was an example. I pressed the + button to install Aurora Services, but it ended up installing NewPipe as well

QUESTION: Do you want to install Aurora Services?
+) Yes
-) No

/tmp/custom-setup-a5k/origin/priv-app/AuroraServices.apk

Key press: + (42)

Enabling: Aurora Services
Verifying... OK
QUESTION: Do you want to install NewPipe?
+) Yes
-) No

/tmp/custom-setup-a5k/origin/app/NewPipe.apk

Key press: + (42)

Enabling: NewPipe
Verifying... OK

recovery (2).log logcat (2).txt dmesg (2).log

ale5000-git commented 1 year ago

@fabianski7 When you have time could you please try this new test build and tell me if the situation has improved or nothing is changed and post the recovery.log again?

Edit: Link removed

fabianski7 commented 1 year ago

Well, now I can access the installer. The problem now is that I press the volume key only once and it registers twice.

Stills the same

recovery (3).log

ale5000-git commented 1 year ago

@fabianski7 It is a really strange issue, could you please try even this and post the log?

Edit: Link removed

fabianski7 commented 1 year ago

recovery (4).log

ale5000-git commented 1 year ago

Is the problem reduced or it is still the same?

fabianski7 commented 1 year ago

stills the same

ale5000-git commented 1 year ago

Sorry for the wait but the code isn't ready yet, I had encountered a strange issue that I need to fix.

ale5000-git commented 1 year ago

Could you please try this and post the recovery.log?

Edit: Link removed

fabianski7 commented 1 year ago

Here you go recovery.log

The double-click is still happening, and when I press the button, this message is displayed: Invalid choice!!!

And google play was unfortunately installed this time 😫

ale5000-git commented 1 year ago

@fabianski7

Hi, it seems that the problem is in the parsing; it get the wrong key code. Since it works on my phone maybe on your phone it emit a different sequence on key press.

Could you please do this?

fabianski7 commented 1 year ago

it seems that I don't have hexdump installed :'(

127|OnePlus6:/ # cat /dev/input/event3 | hexdump -v -x                                                                 
/system/bin/sh: hexdump: inaccessible or not found
ale5000-git commented 1 year ago

@fabianski7

Could you please do this?

fabianski7 commented 1 year ago

Here is the file. Github does not allow .dat files to be uploaded and I chose not to change the format

https://drive.proton.me/urls/737ACT7ESC#tqIE19Oi2ba9

ale5000-git commented 1 year ago

@fabianski7 The problem was that the timestamp of the input event is more bigger on your phone (probably because of the differences between 32/64-bit) and the data that I need was shifted.

It should now be fixed, could you please try this and post the recovery.log? https://androidfilehost.com/?fid=10620683726822062571

fabianski7 commented 1 year ago

recovery.log

now works perfectly!

ale5000-git commented 1 year ago

Very good, thanks for the testing :)