[DEV][GITHUB][PORT] Sense 5 port from the HTC One to the Wildfire S

izi501

Senior Member
Jul 19, 2012
912
486
0
Nantes
ION is the unified memory allocator implemented by Google. ROMs with Android version 4.1 and above uses ION memory allocator. Legacy devices like Explorer, Wildfire S etc uses PMEM instead of ION.

Actually, the main problem which prevents Sense 5 ROM from running on your device is the CPU Architecture. Sense 5 ROM is compiled for ARMv7 processor and hence it
contains ARMv7 instructions. Wildfire S is using old
ARMv6 processor. So the libs and binaries containing ARMv7 instructions won't get executed on your device.

Sent from my HTC Explorer A310e using xda premium
In fact, the problem of armv7 isn't really important, because smali patching can do wonders.
Most probably this rom won't boot, because we will get an error that we cannot fix. For example this ION thing, about which I never heard.
But we can always try... and as some people say, we can always ask @JDevs if something doesn't work :D
And if the rom boots, it will be very unstable and sooo much laggy !
But « L'espoir fait vivre » :D

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
 

4ndaKava

Senior Member
Jan 3, 2013
176
37
0
In fact, the problem of armv7 isn't really important, because smali patching can do wonders.
Most probably this rom won't boot, because we will get an error that we cannot fix. For example this ION thing, about which I never heard.
But we can always try... and as some people say, we can always ask @JDevs if something doesn't work :D
And if the rom boots, it will be very unstable and sooo much laggy !
But « L'espoir fait vivre » :D

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
unstable bla bla laggy bla bla .. :p We will make it stable and smooth :D
 

JDevs

Senior Member
May 13, 2013
109
807
0
In fact, the problem of armv7 isn't really important, because smali patching can do wonders.
Most probably this rom won't boot, because we will get an error that we cannot fix. For example this ION thing, about which I never heard.
But we can always try... and as some people say, we can always ask @JDevs if something doesn't work :D
And if the rom boots, it will be very unstable and sooo much laggy !
But « L'espoir fait vivre » :D

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
I'm busy. Do not attempt to port the Sense 5, without some source code - it's impossible.
Silly idea.
 

izi501

Senior Member
Jul 19, 2012
912
486
0
Nantes
I'm busy. Do not attempt to port the Sense 5, without some source code - it's impossible.
Silly idea.
I know, but allow me to doubt and to try :p
And I never wanted to disturb you ;)

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
 
Last edited:

aazzam16661

Senior Member
Aug 22, 2012
442
593
0
21
Gombak, Selangor
You guys can just port it now and then wait for the ION kernel

And ION kernel is a must,
Here is HTC HD2 Sense 5 port without ION

Code:
E/libgenlock(   78): genlock_create_lock: GENLOCK_IOC_SETINFO failed (error=No such file or directory)

E/libgenlock(   78): genlock_create_lock: GENLOCK_IOC_SETINFO failed (error=Invalid argument)

E/libgenlock(   78): genlock_create_lock: GENLOCK_IOC_SETINFO failed (error=Invalid argument)

D/libc    (   71): pt_debug : pthread_create->start_routine=  0xfed1, tls=0x40420f00, arg= 0x38668

D/libc    (   71): pt_debug : __thread_entry->func=  0xfed1

D/libc    (   71): , tls=0x40420f00, arg= 0x38668

I/Adreno200-EGL(   78): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)

I/Adreno200-EGL(   78): Build Date: 07/31/12 Tue

I/Adreno200-EGL(   78): Local Branch: 

I/Adreno200-EGL(   78): Remote Branch: quic/master

I/Adreno200-EGL(   78): Local Patches: NONE

I/Adreno200-EGL(   78): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 +  NOTHING

E/HAL     (   78): load: module=/system/lib/hw/hwcomposer.qsd8k.so

E/HAL     (   78): Cannot load library: link_image[1891]:    78 could not load needed library 'liboverlay.so' for 'hwcomposer.qsd8k.so' (reloc_library[1306]:    78 cannot locate '_ZN7gralloc16IAllocController11getInstanceEb'...

E/HAL     (   78): )

W/SurfaceFlinger(   78): hwcomposer module not found

E/Trace   (   78): error opening trace file: No such file or directory (2)

W/Adreno200-EGLSUB(   78): <GetBackBuffer:2172>: handle base address is NULL

W/Adreno200-ES20(   78): <qgl2DrvAPI_glFinish:33>: GL_OUT_OF_MEMORY

E/SurfaceFlinger(   78): GL error 0x0505

W/Adreno200-EGLSUB(   78): <GetBackBuffer:2172>: handle base address is NULL

W/Adreno200-ES20(   78): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY

W/Adreno200-EGL(   78): <qeglDrvAPI_eglSwapBuffers:3477>: EGL_BAD_ALLOC

E/SurfaceFlinger(   78): eglSwapBuffers: EGL error 0x3003 (EGL_BAD_ALLOC)

I/Adreno200-EGL(  194): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)

I/Adreno200-EGL(  194): Build Date: 07/31/12 Tue

I/Adreno200-EGL(  194): Local Branch: 

I/Adreno200-EGL(  194): Remote Branch: quic/master

I/Adreno200-EGL(  194): Local Patches: NONE

I/Adreno200-EGL(  194): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 +  NOTHING

E/Trace   (  194): error opening trace file: No such file or directory (2)

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

W/memalloc(   78): Falling back to system heap

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

E/gralloc (   78): gralloc failed err=No such file or directory

W/GraphicBufferAllocator(   78): alloc(480, 800, 2, 00000b03, 0 ...) failed -2 (No such file or directory)

E/SurfaceFlinger(   78): GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (No such file or directory), handle=0x0

E/BufferQueue(   78): [<pid_194>] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

W/Adreno200-EGLSUB(  194): <DequeueBuffer:420>: dequeue native buffer fail: No such file or directory

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

W/memalloc(   78): Falling back to system heap

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

E/gralloc (   78): gralloc failed err=No such file or directory

W/GraphicBufferAllocator(   78): alloc(480, 800, 2, 00000b03, 0 ...) failed -2 (No such file or directory)

E/SurfaceFlinger(   78): GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (No such file or directory), handle=0x0

E/BufferQueue(   78): [<pid_194>] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

W/Adreno200-EGLSUB(  194): <DequeueBuffer:420>: dequeue native buffer fail: No such file or directory

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

W/memalloc(   78): Falling back to system heap

E/memalloc(   78): open_device: [COLOR="red"]Failed to open ion device[/COLOR] - No such file or directory

E/gralloc (   78): gralloc failed err=No such file or directory

W/GraphicBufferAllocator(   78): alloc(480, 800, 2, 00000b03, 0 ...) failed -2 (No such file or directory)

E/SurfaceFlinger(   78): GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (No such file or directory), handle=0x0

E/BufferQueue(   78): [<pid_194>] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

W/Adreno200-EGLSUB(  194): <DequeueBuffer:420>: dequeue native buffer fail: No such file or directory

W/Adreno200-EGL(  194): <qeglDrvAPI_eglMakeCurrent:2850>: EGL_BAD_ALLOC

E/libEGL  (  194): eglMakeCurrent:561 error 3003 (EGL_BAD_ALLOC)

W/Adreno200-EGLSUB(   78): <GetBackBuffer:2172>: handle base address is NULL

E/SurfaceFlinger(   78): GL error 0x0505

W/Adreno200-EGLSUB(   78): <GetBackBuffer:2172>: handle base address is NULL

W/Adreno200-ES20(   78): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY

W/Adreno200-EGL(   78): <qeglDrvAPI_eglSwapBuffers:3477>: EGL_BAD_ALLOC

E/SurfaceFlinger(   78): eglSwapBuffers: EGL error 0x3003 (EGL_BAD_ALLOC)

W/MediaPlayer(   83): info/warning (1, 902)

E/WVMExtractor(   83): Failed to open libwvm.so

W/MediaPlayer(   83): info/warning (1, 902)

E/mm-libcamera2(   83): mm_camera_query: open '/dev/video100' failed. err='No such file or directory'

E/AudioHardwareMSM76XXA(   83): void android_audio_legacy::setPnpMode(int): open failed /sys/power/pnpmgr/apps/audio_mode, err = No such file or directory

E/AudioHardwareMSM76XXA(   83): Failed to open /dev/msm_snd !!!

W/AudioPolicyManagerBase(   83): could not open HW module primary

E/AudioPolicyManagerBase(   83): Not output found for attached devices 00000003

E/AudioPolicyManagerBase(   83): Failed to open primary output

E/AudioPolicyManagerBase(   83): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

E/AudioPolicyManagerBase(   83): getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION

E/AudioPolicyService(   83): couldn't init_check the audio policy (No such device)

W/HtcNativeFlag(   81): Fail to get flag string for type 'customer', use default value

W/HtcNativeFlag(   81): Fail to get flag for type 'customer', use default value: 52

W/HtcNativeFlag(   81): Fail to get flag string for type 'language', use default value

W/HtcNativeFlag(   81): Fail to get flag for type 'language', use default value: 0
[code/]
 

izi501

Senior Member
Jul 19, 2012
912
486
0
Nantes
Good luck!
Btw which sense is easier to port? 4 or 5?

Sent from my HTC "Marvellous" WFS
Both are really hrad to port, but Sense 4 must be easier to port because we have a fully working version on the Desire C (and the Desire 200) which are nearly exactly the same as the Wildfire S. the HTC One is a very different phone, so porting its ROM is very difficult.
 

Guitarfreak12

Senior Member
May 27, 2012
291
53
0
Huissen
Both are really hrad to port, but Sense 4 must be easier to port because we have a fully working version on the Desire C (and the Desire 200) which are nearly exactly the same as the Wildfire S. the HTC One is a very different phone, so porting its ROM is very difficult.
Okey! But do you think you gonna be stuck with the same networkmanagement (already forgot it, hope you know what i mean :p) error? Like in sense 4?

Sent from my HTC "Marvellous" WFS
 

izi501

Senior Member
Jul 19, 2012
912
486
0
Nantes
Okey! But do you think you gonna be stuck with the same networkmanagement (already forgot it, hope you know what i mean :p) error? Like in sense 4?

Sent from my HTC "Marvellous" WFS
Nope, we will be stuck with the ION error first I think. Then, if we fix that, I hope there will not be any error like NetworkManagementSocketTagger ;)

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
 

Guitarfreak12

Senior Member
May 27, 2012
291
53
0
Huissen
Nope, we will be stuck with the ION error first I think. Then, if we fix that, I hope there will not be any error like NetworkManagementSocketTagger ;)

Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4 ;)
It was called networkmanagementsockettagger hahaha will remember this:p
Btw are you french?

Sent from my HTC "Marvellous" WFS