Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP LifeHacks

27th August 2014, 07:43 PM   |  #1  
OP Member
Thanks Meter: 42
 
63 posts
Join Date:Joined: Jun 2014
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
28th August 2014, 05:44 AM   |  #2  
slsamg7112's Avatar
Senior Member
Flag Taichung
Thanks Meter: 33
 
163 posts
Join Date:Joined: Feb 2013
More
Quote:
Originally Posted by LifeHacks

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 by slsamg7112; 28th August 2014 at 11:21 AM.
28th August 2014, 07:18 PM   |  #3  
OP Member
Thanks Meter: 42
 
63 posts
Join Date:Joined: Jun 2014
http://forum.xda-developers.com/xper...ading-t2857513


basically this miui is ported onto a sony base, and sony kernels boot sony firmware.
31st August 2014, 01:04 PM   |  #4  
munjeni's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 16,763
 
5,358 posts
Join Date:Joined: Jun 2011
look into /system/etc/sensor_def_qcomdev.conf

look into line :

:hardware 8974
latform
roperty
# 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 by munjeni; 31st August 2014 at 01:40 PM.
31st August 2014, 01:47 PM   |  #5  
munjeni's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 16,763
 
5,358 posts
Join Date:Joined: Jun 2011
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...2f68c3c7bd4339

this one fixed isue -> https://github.com/munjeni/miui_sony...4bf8294d3d448f

probably your port have messed something in android policy PhoneWindowManager.smali !
Last edited by munjeni; 31st August 2014 at 01:51 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes