Hello everyone, here's a tough one to crack, been at it for hours!! This is Android 4.1.1, running on a proscan/gigabyte PLT1066G.
Anyway, i need the "exec" builtin command in /init which for some reason got stripped out of the build on this tablet. I compiled my own /init replacement from the official android source, with the "exec" command enabled.
Two problems occur when i boot the tablet with this /init in its rom image - NOTHING ELSE HAS BEEN CHANGED, *only* the /init binary. Same /init.rc file, everything else is exactly the same.
- Sound no longer works. A tool called 'dumpsys' shows that it might be a mismatch with the sample rate. With the stock /init, "dumpsys media.audio_flinger" shows 48KHz, and with my own compiled /init, it shows 44.1KHz. Sound chip (from /proc/asound/...) shows as "SOC-Audio - AML-WM8960"
- Brightness can no longer be controlled by the user interface. However i am able to read / write the brigness level from the shell via "/sys/devices/platform/aml-bl/backlight/aml-bl/brightness". From a script that runs early in the boot process (using init's "exec" command) i set the permissions on this file to a+rw, which enables non-root user to set the brightness from the shell, but still can't set brightness from the UI.
Thanks for any help!!
Anyway, i need the "exec" builtin command in /init which for some reason got stripped out of the build on this tablet. I compiled my own /init replacement from the official android source, with the "exec" command enabled.
Two problems occur when i boot the tablet with this /init in its rom image - NOTHING ELSE HAS BEEN CHANGED, *only* the /init binary. Same /init.rc file, everything else is exactly the same.
- Sound no longer works. A tool called 'dumpsys' shows that it might be a mismatch with the sample rate. With the stock /init, "dumpsys media.audio_flinger" shows 48KHz, and with my own compiled /init, it shows 44.1KHz. Sound chip (from /proc/asound/...) shows as "SOC-Audio - AML-WM8960"
- Brightness can no longer be controlled by the user interface. However i am able to read / write the brigness level from the shell via "/sys/devices/platform/aml-bl/backlight/aml-bl/brightness". From a script that runs early in the boot process (using init's "exec" command) i set the permissions on this file to a+rw, which enables non-root user to set the brightness from the shell, but still can't set brightness from the UI.
Thanks for any help!!
Aucun commentaire:
Enregistrer un commentaire