[dev][need help] Rotation issues and playback issues located in adsp files, miui port

Search This thread

LifeHacks

Senior Member
Jun 15, 2014
64
44
ok, so i ported miui from the z1 to our z1s, the miui is based on 4.4.4 sony for the c6906, so we are able to boot it on our locked bootloaders, i face an issues after porting, and all i have done was ported some necessary files in "system/etc/" do to hardware differences, most things worked after this, except for rotation, the orientation is always opposite of what its suppose to be, and i found the issues to be fixed when i replace the Z1s /system/etc/firmware/adsp* files with the ones from the z1, but than i get playback issues, what would you recommend i do in this situation. PLEASE HELP.

I tried replacing everything that has the word Sensor in it from stock z1s, didnt work
i tried ro,sfrotation=180 to build.prop
please help devs
so we can possibly make more z1s ports possible
 

slsamg7112

Senior Member
ok, so i ported miui from the z1 to our z1s, the miui is based on 4.4.4 sony for the c6906, so we are able to boot it on our locked bootloaders, i face an issues after porting, and all i have done was ported some necessary files in "system/etc/" do to hardware differences, most things worked after this, except for rotation, the orientation is always opposite of what its suppose to be, and i found the issues to be fixed when i replace the Z1s /system/etc/firmware/adsp* files with the ones from the z1, but than i get playback issues, what would you recommend i do in this situation. PLEASE HELP.

I tried replacing everything that has the word Sensor in it from stock z1s, didnt work
i tried ro,sfrotation=180 to build.prop
please help devs
so we can possibly make more z1s ports possible

sorry i don't know how to fix it.but do you mean our z1 compact can be booted up by the kernel provide in the ROM?
or can you provide the rom you port? thanks
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
look into /system/etc/sensor_def_qcomdev.conf

look into line :

:hardware 8974
:platform
:property
# Orientation of sensors
# accel x/y/z
700 -1 0x00010001
701 2 0x00010001
702 -3 0x00010001


try to reorder, for example by this way:

700 -1 0x00010001
701 -3 0x00010001
702 2 0x00010001

hope this fix orientation isue :)
 
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,720
22,375
I have tried to reorder but can not get reversed rotation. Probably you can fix rotation isues by looking for sysmols in android policy... see this 2 commits about how I get rotations fixed on an old miui rom for xperia go:

tried without luck -> https://github.com/munjeni/miui_sony_xperia/commit/21e5266768a32f52f44012c85e2f68c3c7bd4339

this one fixed isue -> https://github.com/munjeni/miui_sony_xperia/commit/2f68ceb5bb9afc3031cdb75c264bf8294d3d448f

probably your port have messed something in android policy PhoneWindowManager.smali !
 
Last edited: