maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Run AlienDalvik on Nexus 4 (https://talk.maemo.org/showthread.php?t=98800)

BluesLee 2017-02-07 21:07

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by BluesLee (Post 1522873)
I am pretty sure that it will not run with CM12 base.

I was wrong :D Same magic does the job on Nexus 5 running CM12 with Sailfishos 2.0.5.6.

Here my modified script based on the above one:

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
  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.hammerhead.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.hammerhead.so /system/lib/hw/camera.default.so

# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera

with missing egl.cnf

Code:

0 0 android
0 1 adreno


chenliangchen 2017-02-07 21:10

Re: Run AlienDalvik on Nexus 4
 
Nice! Will that be working on FP2 using the same method? Anyone willing to give a try? :D

lfc22 2017-02-07 21:29

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by chenliangchen (Post 1522981)
Nice! Will that be working on FP2 using the same method? Anyone willing to give a try? :D

as long as we are being somewhat OT, how about opx? :D

matemana 2017-02-07 22:42

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by BluesLee (Post 1522980)
I was wrong :D Same magic does the job on Nexus 5 running CM12 with Sailfishos 2.0.5.6.

Here my modified script based on the above one:

with missing egl.cnf

Code:

0 0 android
0 1 adreno


Wow nice. I did not thought about searching that libs. nice to see that it works there too.

BluesLee 2017-02-08 06:20

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1522987)
Wow nice. I did not thought about searching that libs. nice to see that it works there too.

I had a typo in the name of the egl file but it did not matter with regards to starting apps. Sound works but video not. Whats your experience with video on alien + CM11 base?

matemana 2017-02-08 06:33

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by BluesLee (Post 1522980)
I was wrong :D Same magic does the job on Nexus 5 running CM12 with Sailfishos 2.0.5.6.

Here my modified script based on the above one:

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
  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.hammerhead.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.hammerhead.so /system/lib/hw/camera.default.so

# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera

with missing egl.cnf

Code:

0 0 android
0 1 adreno


I have 2.0.4.13 version installed and it does not install aliendalvik.
It freezes on Installing packages.
I tried updating to 2.0.5.6 on a fresh install whole night it was doing update but in the morning it was frozen on 82 %. I force rebooted and it did not even boot. ****ING REFLESH AGAIN. WTF is wrong with update? How did you update to 2.0.5.6 can you post commands?

For now aliendalvik does work on my 2.0.4.13 but i tried google play services and aliendalvik does not start after just coping needed files in /opt/alien/ folder. But i did same with my nexus 4 and it works great.

P.S. Camera does not work for me.

BluesLee 2017-02-08 07:09

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523000)
I have 2.0.4.13 version installed and it does not install aliendalvik.
It freezes on Installing packages.
I tried updating to 2.0.5.6 on a fresh install whole night it was doing update but in the morning it was frozen on 82 %. I force rebooted and it did not even boot. ****ING REFLESH AGAIN. WTF is wrong with update? How did you update to 2.0.5.6 can you post commands?

For now aliendalvik does work on my 2.0.4.13 but i tried google play services and aliendalvik does not start after just coping needed files in /opt/alien/ folder. But i did same with my nexus 4 and it works great.

P.S. Camera does not work for me.

Please refer to the Nexus 5 thread regarding upgrade issues, most of us are struggling with OTA.

Can you play video files?

claustn 2017-02-08 08:49

Re: Run AlienDalvik on Nexus 4
 
Nice! I will install another Sailfish with multirom, update it to the latest version and try it :)
BluesLee, could you tell us what commands did you run? It would be very useful a complete guide.

edit: could you please try if gps works for android applications? I would use it for Here Maps...

karan5chaos 2017-02-08 08:55

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by claustn (Post 1523006)
Nice! I will install another Sailfish with multirom, update it to the latest version and try it :)
BluesLee, could you tell us what commands did you run? It would be very useful a complete guide.

+1
Also please guide us on how to find the specific config file (in my case it's opx with cm12.1 base)

matemana 2017-02-08 11:35

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523008)
+1
Also please guide us on how to find the specific config file (in my case it's opx with cm12.1 base)

You should search for this same libs as in the sh file. For example egl.cfg is in /system/lib/egl folder in CM11 but as you see it's in /vendor/lib/egl/ folder in CM12. It should be in the same place if you use CM12.

P.S.
I am now modifying aliendalvik.rpm to include this sh file in it. also editing build.prop for screen density. Nexus 4 and nexus 5 have different dencity and everything is smaller with this aliendalvik on nexus 5. Of course you can edit it after installation but i like simple things. I will generate aliendalvik.rpm for nexus 4 & nexus 5. If you want give me sh file for your device and i'll generate that too. Because it's easier to install just one rpm then after installation stop service copy file change mods on that file and start service :)

nieldk 2017-02-08 11:41

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523015)
You should search for this same libs as in the sh file. For example egl.cfg is in /system/lib/egl folder in CM11 but as you see it's in /vendor/lib/egl/ folder in CM12. It should be in the same place if you use CM12.

You will find the changes here, note that its almost the same, except, cameri lib and a missing libplayback_adreno.so

These changes, however, does not work as-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
## 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/camera


karan5chaos 2017-02-08 11:43

Re: Run AlienDalvik on Nexus 4
 
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

cvp 2017-02-08 11:43

Re: Run AlienDalvik on Nexus 4
 
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

nieldk 2017-02-08 11:47

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by cvp (Post 1523018)
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


Mount system RW: mount -o rw,remount,rw /system
Mount system RO: mount -o ro,remount,ro /system

nieldk 2017-02-08 11:50

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523017)
oh and btw i get an error when i run chmod-x command
it says no directory

Code:

chmod +x /opt/alien/system/script/platform_extraenvsetup.sh
(there were a space between + and x in original post)

nieldk 2017-02-08 11:53

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523017)
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

That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so

karan5chaos 2017-02-08 11:56

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523022)
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so

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.

nieldk 2017-02-08 11:57

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523023)
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.

look at my sh file

cvp 2017-02-08 11:58

Re: Run AlienDalvik on Nexus 4
 
nieldk+mo107
thanks a lot, i forget it ^^


Quote:

Originally Posted by nieldk (Post 1523022)
That script wont work for a couple of reasons,
there is no camera.onyx.so
and there is no libplayback_adreno.so

but camera.msm8974.so exiting

karan5chaos 2017-02-08 12:02

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523024)
look at my sh file

so i was able to locate the cameralib but libplayback was not found.

nieldk 2017-02-08 12:05

Re: Run AlienDalvik on Nexus 4
 
A journal reveals some errors

Feb 08 12:57:29 Sailfish systemd[1]: Starting Myriad Alien Dalvik...
Feb 08 12:57:29 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/egl.cfg': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/eglsubAndroid.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/libEGL_adreno.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/libGLESv1_CM_adreno.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/libGLESv2_adreno.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/libq3dtools_adreno.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/libadreno_utils.so': No such file or directory
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/libgsl.so': No such file or directory

Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/dalvik-cache exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/app-private exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/app exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/data exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/misc exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/property exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /run/user/1000/alien/socket exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /run/user/1000/alien/ashmem exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /home/nemo/android_storage exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /storage/sdcard0 exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /cache exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: /data/keystore exists already
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: -------------------------------------------
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ANDROID_ROOT=/system
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ANDROID_DATA=/data
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: DOWNLOAD_CACHE=/cache
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: EXTERNAL_STORAGE=/storage/sdcard0
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: BOOTCLASSPATH=/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ANDROID_LOG_TAGS=*:e
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: USER_APP=
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: -------------------------------------------
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_audio_server
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_gps_server
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_keyboard_server
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_resource_mgr
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/aliensensorserver
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_media_control
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ap no li po nc vi pm
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ms fo
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: gexe.sh Execute: /system/genv/bin/alien_bridge_server co
Feb 08 12:57:30 Sailfish start_alien.sh[21522]: ================================================== ==========
Feb 08 12:57:30 Sailfish alien_bridge_server[21579]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Feb 08 12:57:59 Sailfish systemd[1]: aliendalvik.service operation timed out. Stopping.
Feb 08 12:58:00 Sailfish systemd[1]: Failed to start Myriad Alien Dalvik.
Feb 08 12:58:00 Sailfish systemd[1]: Unit aliendalvik.service entered failed state.
Feb 08 12:58:01 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Feb 08 12:58:01 Sailfish systemd[1]: aliendalvik.service start request repeated too quickly, refusing to start.
Feb 08 12:58:01 Sailfish systemd[1]: Unit aliendalvik.service entered failed state.

matemana 2017-02-08 12:06

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523017)
i just modified the sh file :)

here it is -

oh and btw i get an error when i run chmod-x command
it says no directory

Do you run with devel-su?

I'll make aliendalvik package for your device too, i do not have onyx so i'll use your sh file (i can't check if it works or not).
Please tell me if /vendor/lib/egl/egl.cfg exists on your device, because if it does not i'll create it from rpm, so you will not have to make anything after installing aliendalvik.

matemana 2017-02-08 12:08

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523028)
A journal reveals some errors

Feb 08 12:57:29 Sailfish systemd[1]: Starting Myriad Alien Dalvik...
[B]Feb 08 12:57:29 Sailfish start_alien.sh[21522]: ln: creating symbolic link `/system/vendor/lib/egl/egl.cfg': No such file or directory

You have a mistake it's not /system/vendor/lib/egl/egl.cfg
it's /vendor/lib/egl/egl.cfg

upper errors are because of this.

nieldk 2017-02-08 12:08

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523029)
Do you run with devel-su?

I'll make aliendalvik package for your device too, i do not have onyx so i'll use your sh file (i can't check if it works or not).
Please tell me if /vendor/lib/egl/egl.cfg exists on your device, because if it does not i'll create it from rpm, so you will not have to make anything after installing aliendalvik.

/vendor/lib/egl/egl.cfg does not exist (I created it manually)
And, my script doesnt work either - so far. No use in packaging yet

karan5chaos 2017-02-08 12:08

Re: Run AlienDalvik on Nexus 4
 
no its not present.
And thank u so much for your efforts :)
I figured out the camera.so location but i cannot see audioplayback.so file.

nieldk 2017-02-08 12:11

Re: Run AlienDalvik on Nexus 4
 
1 Attachment(s)
Quote:

Originally Posted by matemana (Post 1523031)
You have a mistake it's not /system/vendor/lib/egl/egl.cfg
it's /vendor/lib/egl/egl.cfg

upper errors are because of this.

Nope, look at my script it says vendor/lib/egl/egl.cfg

The install script uses a 'base', not direct, full path
(The full path IS /system/vendor/lib/egl FYI)

cvp 2017-02-08 12:14

Re: Run AlienDalvik on Nexus 4
 
nieldk,
libplayback_adreno.so
lib/libmemalloc.so
lib/libqdutils.so

for me (opx) is this thee files missing. I dont know if its really needing. On Turing Phone doesnt existing the three files and i cant find egl.cfg on turing phone

nieldk 2017-02-08 12:18

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by cvp (Post 1523035)
nieldk,
libplayback_adreno.so
lib/libmemalloc.so
lib/libqdutils.so

for me (opx) is this thee files missing. I dont know if its really needing. On Turing Phone doesnt existing the three files and i cant find egl.cfg on turing phone

libplayback_adreno.so is not exisiting (and probably not needed since CM12)

The two other libs are in
lib/libmemalloc.so
lib/libqdutils.so

However, the full path if you want to 'see' them on the filesystem is

/system/lib/libmemalloc.so
/system/lib/libqdutils.so

It is relative paths in the script, starting by /system folder

matemana 2017-02-08 12:32

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523034)
Nope, look at my script it says vendor/lib/egl/egl.cfg

The install script uses a 'base', not direct, full path
(The full path IS /system/vendor/lib/egl FYI)

Sorry, now i got it. You are right! Then it maybe a permission problem? or owner?

karan5chaos 2017-02-08 12:58

Re: Run AlienDalvik on Nexus 4
 
well i did all the things but dalvik fails to start


here's the log -

Code:

-- Logs begin at Sun 2016-12-18 02:15:58 IST, end at Sun 2016-12-18 02:47:35 IST.
 --
Dec 18 02:47:05 Sailfish sensorfwd[792]: [SocketHandler]: Socket error:  QL
ocalSocket::PeerClosedError
Dec 18 02:47:05 Sailfish sensorfwd[792]: [SocketHandler]: Noticed lost sess
ion:  99
Dec 18 02:47:06 Sailfish ohmd[754]: *** resource_request:  unregister  42
Dec 18 02:47:06 Sailfish ohmd[754]: *** resource_request:  unregister  41
Dec 18 02:47:34 Sailfish systemd[1]: aliendalvik.service operation timed ou
t. Stopping.
Dec 18 02:47:34 Sailfish systemd[1]: Failed to start Myriad Alien Dalvik.

-- Subject: Unit aliendalvik.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf
6855d2428ba40df7e9d022f03d
--
-- Unit aliendalvik.service has failed.
--
-- The result is failed.
Dec 18 02:47:34 Sailfish systemd[1]: Unit aliendalvik.service entered faile
d state.
Dec 18 02:47:35 Sailfish systemd[1]: aliendalvik.service holdoff time over, sched
uling restart.
Dec 18 02:47:35 Sailfish systemd[1]: aliendalvik.service start request repe
ated too quickly, refusing to start.
Dec 18 02:47:35 Sailfish systemd[1]: Unit aliendalvik.service entered faile
d state.


karan5chaos 2017-02-08 13:13

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523037)
libplayback_adreno.so is not exisiting (and probably not needed since CM12)

The two other libs are in
lib/libmemalloc.so
lib/libqdutils.so

However, the full path if you want to 'see' them on the filesystem is

/system/lib/libmemalloc.so
/system/lib/libqdutils.so

It is relative paths in the script, starting by /system folder


hello. did u get dalvik to run ?

nieldk 2017-02-08 13:32

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523041)
hello. did u get dalvik to run ?

Nope, and now I need a reinstall of system *sigh*

karan5chaos 2017-02-08 13:36

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523043)
Nope, and now I need a reinstall of system *sigh*

:( same here..
every commands is successful but it still won't start dalvik...
hope someone figures out the problem :)

cvp 2017-02-08 14:46

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by nieldk (Post 1523043)
Nope, and now I need a reinstall of system *sigh*

reinstall system? what do you try?

matemana 2017-02-08 18:15

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by karan5chaos (Post 1523017)
i just modified the sh file :)

oh and btw i get an error when i run chmod-x command
it says no directory

Here is aliendalvik. No need for sh script nor you have to create that vendor/lib/egl/egl.cfg. Screen density problem is fixed N4 has 720p 320 ppi and N5 & OPX 1080p i set Density to 480 in build.prop (yes i know that N5 has 445.03 ppi :D but 480 is default in android too)

I made this based on nieldks post about modified sh script for OPX. I do not have that device so i do not know if this will work, but i can confirm that what i changed does work on nexus 5 though. So if that sh script is correct for OPX this rpm should just work.

http://bin.ge/dl/247945/aliendalvik-...mv7hl.rpm.html

cvp 2017-02-08 18:38

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523070)
Here is aliendalvik. No need for sh script nor you have to create that vendor/lib/egl/egl.cfg. Screen density problem is fixed N4 has 720p 320 ppi and N5 & OPX 1080p i set Density to 480 in build.prop (yes i know that N5 has 445.03 ppi :D but 480 is default in android too)

I made this based on nieldks post about modified sh script for OPX. I do not have that device so i do not know if this will work, but i can confirm that what i changed does work on nexus 5 though. So if that sh script is correct for OPX this rpm should just work.

http://bin.ge/dl/247945/aliendalvik-...mv7hl.rpm.html

thanks for the work, but its not working :(

matemana 2017-02-08 19:25

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by claustn (Post 1522889)
There is a beautiful website called archive.org where I found it! http://web.archive.org/web/201604120...hammerhead.zip

Please try it and let me know if it works

I tried it with that CM11 but i had to install SFOS 1.1.9.28 then with little modification to sh script for aliendalvik now it runs on CM12.1 BASE too on Nexus 5. Though i could not install Play services and play store, but apks are working and fdroid is working too.

cvp 2017-02-08 20:58

Re: Run AlienDalvik on Nexus 4
 
@matemana, can you upload the missing file in oneplus x from nexus cm12.1 ?

claustn 2017-02-08 22:33

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523075)
I tried it with that CM11 but i had to install SFOS 1.1.9.28 then with little modification to sh script for aliendalvik now it runs on CM12.1 BASE too on Nexus 5. Though i could not install Play services and play store, but apks are working and fdroid is working too.

To run it on Nexus 5 do I have just to install the file you built? But it might not work with Sailfish 2.0.1.1 right?

karan5chaos 2017-02-09 03:25

Re: Run AlienDalvik on Nexus 4
 
Quote:

Originally Posted by matemana (Post 1523070)
Here is aliendalvik. No need for sh script nor you have to create that vendor/lib/egl/egl.cfg. Screen density problem is fixed N4 has 720p 320 ppi and N5 & OPX 1080p i set Density to 480 in build.prop (yes i know that N5 has 445.03 ppi :D but 480 is default in android too)

I made this based on nieldks post about modified sh script for OPX. I do not have that device so i do not know if this will work, but i can confirm that what i changed does work on nexus 5 though. So if that sh script is correct for OPX this rpm should just work.

http://bin.ge/dl/247945/aliendalvik-...mv7hl.rpm.html

the problem is that i was able to complete all the mentioned step successfulyy but the aliendalvik still faild to start.

EDIT :

i get this error while installing the RPM -

Code:

Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides /system/bin/sh needed by aliendalvik_OPX-1.0.46-1.armv7hl
 Solution 1: do not install aliendalvik_OPX-1.0.46-1.armv7hl
 Solution 2: break aliendalvik_OPX-1.0.46-1.armv7hl by ignoring some of its dependencies

i did "devel-su ls system/bin" and i can see sh being present there :/


All times are GMT. The time now is 23:51.

vBulletin® Version 3.8.8