| The Following User Says Thank You to nieldk For This Useful Post: | ||
|
|
2017-02-08
, 11:43
|
|
Posts: 43 |
Thanked: 32 times |
Joined on Jan 2015
|
#52
|

#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
vendor/lib/egl/egl.cfg
vendor/lib/egl/eglsubAndroid.so
vendor/lib/egl/libEGL_adreno.so
vendor/lib/egl/libGLESv1_CM_adreno.so
vendor/lib/egl/libGLESv2_adreno.so
vendor/lib/egl/libplayback_adreno.so
vendor/lib/egl/libq3dtools_adreno.so
vendor/lib/hw/gralloc.msm8974.so
vendor/lib/libadreno_utils.so
vendor/lib/libgsl.so
vendor/lib/libmemalloc.so
vendor/lib/libqdutils.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.onyx.so
"
####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
etc/media_codecs.xml
etc/media_profiles.xml
etc/media_codecs_google_audio.xml
etc/media_codecs_google_telephony.xml
etc/media_codecs_google_video.xml
"
####### LINKING LOOP #########
NEEDED_EXTRA_FILES="
$EXTRA_FILES_3D
$EXTRA_FILES_CAMERA
$EXTRA_FILES_HWCODEC
"
for x in $NEEDED_EXTRA_FILES; do
target=/system_jolla/$x
link=$ANDROID_ROOT/${x/.msm8974./.default.}
ln -sf $target $link
done
ln -sf /system_jolla/lib/hw/camera.onyx.so /system/lib/hw/camera.default.so
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
| The Following User Says Thank You to karan5chaos For This Useful Post: | ||
|
|
2017-02-08
, 11:43
|
|
Posts: 738 |
Thanked: 819 times |
Joined on Jan 2012
@ Berlin
|
#53
|
| The Following User Says Thank You to cvp For This Useful Post: | ||
|
|
2017-02-08
, 11:47
|
|
Posts: 1,255 |
Thanked: 4,243 times |
Joined on Oct 2014
|
#54
|
how do you create the egl.cnf file under /vendor/lib/egl ? with root it tells me that i cant save it becaus read-only-filesystem
| The Following User Says Thank You to nieldk For This Useful Post: | ||
|
|
2017-02-08
, 11:50
|
|
Posts: 1,255 |
Thanked: 4,243 times |
Joined on Oct 2014
|
#55
|
oh and btw i get an error when i run chmod-x command
it says no directory
chmod +x /opt/alien/system/script/platform_extraenvsetup.sh
|
|
2017-02-08
, 11:53
|
|
Posts: 1,255 |
Thanked: 4,243 times |
Joined on Oct 2014
|
#56
|
i just modified the sh file
here it is -
Code:#!/bin/bash # Copyright 2013-2016 Myriad Group AG. All Rights Reserved. ####### 3D needs ######### EXTRA_FILES_3D=" vendor/lib/egl/egl.cfg vendor/lib/egl/eglsubAndroid.so vendor/lib/egl/libEGL_adreno.so vendor/lib/egl/libGLESv1_CM_adreno.so vendor/lib/egl/libGLESv2_adreno.so vendor/lib/egl/libplayback_adreno.so vendor/lib/egl/libq3dtools_adreno.so vendor/lib/hw/gralloc.msm8974.so vendor/lib/libadreno_utils.so vendor/lib/libgsl.so vendor/lib/libmemalloc.so vendor/lib/libqdutils.so " ####### CAMERA needs ######### EXTRA_FILES_CAMERA=" lib/hw/camera.onyx.so " ####### HW CODECS needs ######### EXTRA_FILES_HWCODEC=" etc/media_codecs.xml etc/media_profiles.xml etc/media_codecs_google_audio.xml etc/media_codecs_google_telephony.xml etc/media_codecs_google_video.xml " ####### LINKING LOOP ######### NEEDED_EXTRA_FILES=" $EXTRA_FILES_3D $EXTRA_FILES_CAMERA $EXTRA_FILES_HWCODEC " for x in $NEEDED_EXTRA_FILES; do target=/system_jolla/$x link=$ANDROID_ROOT/${x/.msm8974./.default.} ln -sf $target $link done ln -sf /system_jolla/lib/hw/camera.onyx.so /system/lib/hw/camera.default.so # For camera socket mkdir -p /data/misc ln -s /data_jolla/misc/camera /data/misc/camera
oh and btw i get an error when i run chmod-x command
it says no directory
|
|
2017-02-08
, 11:56
|
|
Posts: 43 |
Thanked: 32 times |
Joined on Jan 2015
|
#57
|
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so
|
|
2017-02-08
, 11:57
|
|
Posts: 1,255 |
Thanked: 4,243 times |
Joined on Oct 2014
|
#58
|
so how should i determine where are the missing files ?
I mean i cannot see them in the cm zip. looks like they are all packed under .dat file.
any suggestions for this ? i found and verified rest of the files though.
|
|
2017-02-08
, 11:58
|
|
Posts: 738 |
Thanked: 819 times |
Joined on Jan 2012
@ Berlin
|
#59
|
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so
|
|
2017-02-08
, 12:02
|
|
Posts: 43 |
Thanked: 32 times |
Joined on Jan 2015
|
#60
|
These changes, however, does not work as-is
#!/bin/bash # Copyright 2013-2016 Myriad Group AG. All Rights Reserved. ####### 3D needs ######### EXTRA_FILES_3D=" vendor/lib/egl/egl.cfg vendor/lib/egl/eglsubAndroid.so vendor/lib/egl/libEGL_adreno.so vendor/lib/egl/libGLESv1_CM_adreno.so vendor/lib/egl/libGLESv2_adreno.so ## MISSING vendor/lib/egl/libplayback_adreno.so vendor/lib/egl/libq3dtools_adreno.so lib/hw/gralloc.msm8974.so vendor/lib/libadreno_utils.so vendor/lib/libgsl.so lib/libmemalloc.so lib/libqdutils.so " ####### CAMERA needs ######### EXTRA_FILES_CAMERA=" lib/hw/camera.msm8974.so " ####### HW CODECS needs ######### EXTRA_FILES_HWCODEC=" etc/media_codecs.xml etc/media_profiles.xml etc/media_codecs_google_audio.xml etc/media_codecs_google_telephony.xml etc/media_codecs_google_video.xml " ####### LINKING LOOP ######### NEEDED_EXTRA_FILES=" $EXTRA_FILES_3D $EXTRA_FILES_CAMERA $EXTRA_FILES_HWCODEC " for x in $NEEDED_EXTRA_FILES; do target=/system_jolla/$x link=$ANDROID_ROOT/${x/.msm8974./.default.} ln -sf $target $link done ln -sf /system_jolla/lib/hw/camera.msm8974.so /system/lib/hw/camera.default.so # For camera socket mkdir -p /data/misc ln -s /data_jolla/misc/camera /data/misc/cameraYou can still support my work by donation - click here
ETH: 0xFcD031609DB739C62730589361940C68ceEbC913