View Full Version : Run AlienDalvik on Nexus 4
eekkelund
2017-01-24, 17:42
I haven't myself tried(I don't have Nexus4) but what I have heard it works? :)
Link: http://4pda.ru/forum/index.php?showtopic=559889&st=700#entry57516932
Google Translated:
Installing Aliendalvik. Run Android apps
At one's own risk! For firmware based CM11
1. First, we need a very Aliendalvik and special package. a replacement script
Download( https://drive.google.com/file/d/0B825SMyajjVibDl3MW9naVVCTFE/view )
Download( https://drive.google.com/file/d/0B825SMyajjViQTRNeGo5WlBxN0k/view )
2. After downloading all of the components, we need to set Aliendalvik package.
This you can do via the terminal / SSH, connect to the device
devel-su
zypper in aliendalvik-1.0.46-1.armv7hl.rpm
Or just install .rpm package through the file manager. It can be found in Jolla Store
3. Thereafter, the script must be replaced in the system directory.
This you can do via the terminal / SSH, connect to the device
devel-su
systemctl stop aliendalvik
cp platform_extraenvsetup.sh /opt/alien/system/script/platform_extraenvsetup.sh
chmod + x /opt/alien/system/script/platform_extraenvsetup.sh
systemctl start aliendalvik
Now you can install APK application!
---
Removing Aliendalvik. If suddenly you do not like something
These steps must!
1. First, we need to disable the aliendalvik
devel-su
systemctl disable aliendalvik
2. Reboot your device
3. Remove the package
Otherwise, when you delete a package is possible to remove system and user data from the use of "bind mounts"
---
If you have problems with the link owners will be deleted. If something does not like, knock to the PM. Thank you
BluesLee
2017-01-24, 19:09
Russians ..:-) Is it restricted to Nexus 4? Let's try it.
I tried it, it works :) but when you run some android app, the process com.android.phone often stop and show the warning.
mrsellout
2017-01-25, 12:36
I tried it, it works :) but when you run some android app, the process com.android.phone often stop and show the warning.
Which device did you try it with?
Which device did you try it with?
Jolla 1 :p
Seriously ? the 'trick' is for Nexus 4
Seriously ? the 'trick' is for Nexus 4
Well, kuba77 could have reponded to "Is it restricted to Nexus 4? Let's try it." – even if it's a unlikely. :)
Well, kuba77 could have reponded to "Is it restricted to Nexus 4? Let's try it." – even if it's a unlikely. :)
Yes, not unlikely that it may work on other devices, but the scripts needs to be modified for sure.
mrsellout
2017-01-25, 15:43
Yes, not unlikely that it may work on other devices, but the scripts needs to be modified for sure.
Yeah, if it would install, I'd have thought that standard apps might work on other devices, but would start to fail with any that need to interact with any hardware.
Yeah, if it would install, I'd have thought that standard apps might work on other devices, but would start to fail with any that need to interact with any hardware.
well, on OneplusX it installs, but doesnt immediately work.
For oneplusx you may need some xxxxxx.MSM8974.so blobs (https://github.com/Android-L-Porting-Team/Android-L-Mako/tree/master/working/system/lib/hw).
On my Jolla 1 platform_extraenvsetup.sh script points to msm8909.so files.
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
lib/hw/gralloc.msm8909.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.msm8909.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/.msm8909./.default.}
ln -sf $target $link
done
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
Which device did you try it with?
Nexus 4 :)
Be careful with this konda
Its (C) infridgement in so many ways
xxxxxx.MSM8974.so[/COLOR]
i think its already include in opx
https://github.com/MasterAwesome/android_device_oneplus_onyx/blob/master/onyx.mk
# Graphics
gralloc.msm8974 \
linuxunux
2017-01-26, 04:25
Also confirming it works on N4. Looking for a way to use google services (for work related apps). Will continue testing components and report back.
linuxunux
2017-01-26, 17:18
Also confirming it works on N4. Looking for a way to use google services (for work related apps). Will continue testing components and report back.
Looking at the build.prop it appears aliendalvik is running 4.4, so I followed Jolla C thread over https://together.jolla.com/question/114608/howto-install-gapps-gplay-google-play-kk-on-tablet-or-c/
Installs fine, but does not connect...I also tried jelly bean runtime with similar results. Search continues...
try https://openrepos.net/content/coderus/opengapps-pico-installer installed with --force
linuxunux
2017-01-27, 03:34
try https://openrepos.net/content/coderus/opengapps-pico-installer installed with --force
i am getting dep-resolution-failed on droid-config-i500d. pkcon refesh does not help...
edit* force installed cause playstore to not launch.
chenliangchen
2017-01-27, 04:08
So we have another community other than TMO and TJC with some great SFOS tweaks? Surprising!
linuxunux
2017-01-28, 22:59
got google services working following jolla c guide. i upgraded to 2.0.5.6 first then installed Googleplay services
matemana
2017-02-05, 10:58
Also confirming it works on N4. Looking for a way to use google services (for work related apps). Will continue testing components and report back.
I have got google play store and google services working with this aliendalvik :)
To install google play store, google services and voice assistant follow this guide.
became root devel-su
Download this archive and extract it. http ++ ://bin.ge/dl/247451/SFOS-GAPPS-tar.gz.html (correct link i could not post link)
You will see APPS and GAPPS folders.
enter GAPPS folder and copy system folder with this command
cp -avR system/ /opt/alien/
and change permissions
chmod 664 /opt/alien/system/framework/com.google.android.maps.jar
chmod 664 /opt/alien/system/etc/permissions/com.google.android.maps.xml
then copy GmsCore.apk, Phonesky.apk, GoogleLoginService.apk and GoogleServicesFramework.apk here /opt/alien/system/priv-app
and chmod them with "chmod 664 full/path/to/these/files"
then install them
cd /opt/alien/system/priv-app
apkd-install Phonesky.apk
after this install updates they are located in APPS folder. There also are firefox and youtube apk if you want them. After install restart the phone. that's it. Google play and google services should work.
P.S. PM me if something goes wrong.
Thank you! Are apps like chrome fully functioning? How could I test it on a Nexus 5?
Seems it works only with CM11, I hope someone will port it to Nexus 5 with CM12 too
BluesLee
2017-02-05, 14:17
Thank you! Are apps like chrome fully functioning? How could I test it on a Nexus 5?
Seems it works only with CM11, I hope someone will port it to Nexus 5 with CM12 too
Install CM11 based Sailfishos using Multirom and test it on your Nexus 5, you might need to modify the scripts. I am pretty sure that it will not run with CM12 base.
First I would like to understand if there are advantages compared to sfdroid or not. Question for who is using this port on Nexus 4, are android applications able to play sounds? what about cpu usage?
matemana
2017-02-05, 16:53
First I would like to understand if there are advantages compared to sfdroid or not. Question for who is using this port on Nexus 4, are android applications able to play sounds? what about cpu usage?
I am using that Nexus 4 as a daily driver. Everything works well. Sound, games everything works like you have android device.
I used to use sfdroid but i did not like it. It felt like cheating :D
If you run any android app aliendalvik will start automatically, otherwise you should stop it because it well use RAM ~300-350 MB and battery.
Funny thing is Google apps like play store, services use more RAM then whole SFOS :D
About Nexus 5. I installed aliendalvik on nexus 5 too but it does not work. I press start and it stops immediately. First of all problems is that i have CM12.1 base on nexus 5. Sadly i can't download CM11 M11 for nexus 5 because CM is down. Thank god i had CM11 for nexus 4 and CM12.1 for nexus 5. at least nexus 5 works on Sailfish os. without CM12.1 i would not be able to install it.
If you know any source from where i can download CM11 M11 for nexus 5 please share I need cm-11-20141008-SNAPSHOT-M11-hammerhead.zip version.
matemana
2017-02-05, 16:56
Install CM11 based Sailfishos using Multirom and test it on your Nexus 5, you might need to modify the scripts. I am pretty sure that it will not run with CM12 base.
If you have CM11 M11 version for nexus 5 please share.
Cyanogenmod is down and no one can get any version from their site.
So irresponsible from cyanogenmod. Why would they prevent us from using older ROMs? For which some of us have donated money. It's so sad :(
P.S. PM me if something goes wrong.
That won't work (yet). You need at least 5 posts to send and receive PMs.
matemana
2017-02-05, 17:03
That won't work (yet). You need at least 5 posts to send and receive PMs.
LOL that line gave me a headache.
I posted it on one forum. Then copied it on https://together.jolla.com/questions/scope:unanswered/sort:activity-desc/page:1/
One user commented that TJC does not have pm. now on this site. I guess i'll just remove that line from this text and copy like that if i ever need to copy this text :D
If you have CM11 M11 version for nexus 5 please share.
Cyanogenmod is down and no one can get any version from their site.
So irresponsible from cyanogenmod. Why would they prevent us from using older ROMs? For which some of us have donated money. It's so sad :(
There is a beautiful website called archive.org where I found it! http://web.archive.org/web/20160412095525/https://download.cyanogenmod.org/get/jenkins/86435/cm-11-20141008-SNAPSHOT-M11-hammerhead.zip
Please try it and let me know if it works
BluesLee
2017-02-05, 18:55
If it work's, does it really make sense to fall back to cm11? there are several advantages of cm12 base on nexus 5 as bluetooth stability etc and on the other hand mautz's cm13 base seems almost be ready .. Hoping for a rebase of aliendalvik seems to be nonsense, right?
eekkelund
2017-02-05, 19:37
I used to use sfdroid but i did not like it. It felt like cheating :D
Well I think that AlienDalvik on nexus4 is cheating because it is commercial, one is not paying for it and it is proprietary software. In the other hand sfdroid is opensource, free and made by awesome community members. :)
matemana
2017-02-05, 20:55
Well I think that AlienDalvik on nexus4 is cheating because it is commercial, one is not paying for it and it is proprietary software. In the other hand sfdroid is opensource, free and made by awesome community members. :)
But i would like to pay anything up to 40$ for aliendalvik. They just do not sell it that's it. What should i do. I could not find jolla phone for a reasonable price to buy so i went this way and installed aliendalvik. sadly sfdroid is not as good as aliendalvik.
Did somebody already try it with Nexus 5 (with cm11 base of course?) I have N5 with cm11 based sailfish installed, i could try AlienDalvik before i move on to cm12, 12,1 or 13 based sailfish and sfdroid.
matemana
2017-02-05, 22:23
Did somebody already try it with Nexus 5 (with cm11 base of course?) I have N5 with cm11 based sailfish installed, i could try AlienDalvik before i move on to cm12, 12,1 or 13 based sailfish and sfdroid.
Try if you are already on CM11. Just tell us if it starts from settings -> android support. And if any apk installs. That would be great.
linuxunux
2017-02-05, 22:37
Did somebody already try it with Nexus 5 (with cm11 base of course?) I have N5 with cm11 based sailfish installed, i could try AlienDalvik before i move on to cm12, 12,1 or 13 based sailfish and sfdroid.
I believe the .sh tells alien where to find some N4 libraries, I was assuming this would need to be updated to point to N5 parts. I believe if this was updated, it could work...
matemana
2017-02-05, 23:05
Did somebody already try it with Nexus 5 (with cm11 base of course?) I have N5 with cm11 based sailfish installed, i could try AlienDalvik before i move on to cm12, 12,1 or 13 based sailfish and sfdroid.
I searched in sh file and found some lines pointing directly to nexus 4 libs.
I searched for some libs in my nexus 5 and edited sh file. But i did not find some libs because i have base CM 12.1 on my nexus 5, but as google said that libs should be there on 4.4 AKA CM 11.
For example i did not find /system/lib/egl/egl.cfg file. But when i searched google i found this line:
/system/lib/egl/egl.cfg, which contains something like this (from a Nexus 5 running KK 4.4)
Please use this script instead
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
lib/egl/egl.cfg
lib/egl/eglsubAndroid.so
lib/egl/libEGL_adreno.so
lib/egl/libGLESv1_CM_adreno.so
lib/egl/libGLESv2_adreno.so
lib/egl/libplayback_adreno.so
lib/egl/libq3dtools_adreno.so
lib/hw/gralloc.msm8974.so
lib/libadreno_utils.so
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
matemana
2017-02-05, 23:08
linuxunux
I edited that sh script as i could. I have both nexus 4 & 5 in front of me. Let's hope i did it right and aliendalvik will work.
Well I think that AlienDalvik on nexus4 is cheating because it is commercial, one is not paying for it and it is proprietary software. In the other hand sfdroid is opensource, free and made by awesome community members. :)
Amen.
If I ever needed to run Android applications (which fortunately I don't) this would be the way to do it.
Agreed.
On the other hand, matemana has a point. I may ruffle some feathers by saying that but, as a general rule, based on my 15 years of experience with open-source software, when I have a choice between a professional product and something bashed together by someone in his spare time in his bedroom, I go for the former. The quality of the vast majority of open-source software is abysmal, especially in the applications domain. Stability issues, lack of QA, lack of documentation, poorly designed UI, missing or half-baked features...
There are notable exceptions, of course. I use OpenOffice (or Free or Libre or whatever the current flavour of the month is) over the MS equivalent. It is nowhere near as polished but it is good enough for my humble needs. The same goes for Avidemux. It crashes 4 times out of 5 but I can put up with it, which I would not if I had to use it professionally.
I have never used Sfdroid and I am happy to believe that it may be different. A lot of open-source systems or server applications are just as good as their commercial counterparts, if not better. Apache is a good example. Sfdroind looks like it may fall into this category.
But I can understand matemana's and other users' skepticism.
I agree with you, but every user here want to try new things on his/her smartphone. If it works I will give a try; I'm currently using sfdroid only for Whatsapp (I open it just 2/3 times a day) and I would like to try Alien Dalvik instead (for audio/microphone and file manager integration).
matemana
2017-02-07, 15:58
Did somebody already try it with Nexus 5 (with cm11 base of course?) I have N5 with cm11 based sailfish installed, i could try AlienDalvik before i move on to cm12, 12,1 or 13 based sailfish and sfdroid.
I can confirm aliendalvik works with changes i made in it on nexus 5 running 1.1.9.28 CM11 base.
Now i'll try installing google play store and google play services.
BluesLee
2017-02-07, 21:07
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:
#!/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
0 0 android
0 1 adreno
chenliangchen
2017-02-07, 21:10
Nice! Will that be working on FP2 using the same method? Anyone willing to give a try? :D
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
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
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
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
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:
#!/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
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
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?
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
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
+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 :)
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
#!/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
i just modified the sh file :)
here it 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
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
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
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
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
(there were a space between + and x in original post)
i just modified the sh file :)
here it 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
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
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.
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
nieldk+mo107
thanks a lot, i forget it ^^
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
look at my sh file
so i was able to locate the cameralib but libplayback was not found.
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
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
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.
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
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.
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)
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,
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
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
well i did all the things but dalvik fails to start
here's the log -
-- 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
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 ?
hello. did u get dalvik to run ?
Nope, and now I need a reinstall of system *sigh*
karan5chaos
2017-02-08, 13:36
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 :)
Nope, and now I need a reinstall of system *sigh*
reinstall system? what do you try?
matemana
2017-02-08, 18:15
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-OPX-1-0-46-1-armv7hl.rpm.html
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-OPX-1-0-46-1-armv7hl.rpm.html
thanks for the work, but its not working :(
matemana
2017-02-08, 19:25
There is a beautiful website called archive.org where I found it! http://web.archive.org/web/20160412095525/https://download.cyanogenmod.org/get/jenkins/86435/cm-11-20141008-SNAPSHOT-M11-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.
@matemana, can you upload the missing file in oneplus x from nexus cm12.1 ?
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
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-OPX-1-0-46-1-armv7hl.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 -
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 :/
matemana
2017-02-09, 06:36
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?
In theory yes but what i uploaded is for OPX, here is for Nexus 5
Tested working. Please reboot the phone after installing this.
http://bin.ge/dl/247971/aliendalvik-N5-1-0-46-1-armv7hl.rpm.html
matemana
2017-02-09, 06:49
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 -
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 :/
My bad, I forgot to disable autoreq when making rpm for OPX. You can Just ignore it. I'll fix that.
karan5chaos
2017-02-09, 06:57
My bad, I forgot to disable autoreq when making rpm for OPX. You can Just ignore it. I'll fix that.
should i try installing it anyway then ??
matemana
2017-02-09, 07:20
should i try installing it anyway then ??
Yes, you can ignore that. If you'll wait in 1-2 hours i will post fixed version.
karan5chaos
2017-02-09, 07:34
Yes, you can ignore that. If you'll wait in 1-2 hours i will post fixed version.
that's quite alright :)
Thank you for your efforts .
edit :
Oh well, it still won't start.
Maybe something is wrong with the env file maybe.
Maybe something is missing in it.
In theory yes but what i uploaded is for OPX, here is for Nexus 5
Tested working. Please reboot the phone after installing this.
http://bin.ge/dl/247971/aliendalvik-N5-1-0-46-1-armv7hl.rpm.html
First of all, thank you! Dalvik installed correctly with your build, I can see the android support setting but how can I install an app? If I open it in a file manager or after downloading it nothing happen. I already rebooted once.
matemana
2017-02-09, 09:16
First of all, thank you! Dalvik installed correctly with your build, I can see the android support setting but how can I install an app? If I open it in a file manager or after downloading it nothing happen. I already rebooted once.
Make sure android support starts. Enter that menu and click start. If it starts stop button should highlight.
You can intsall apk from file manager, after you click on apk click install from dropdown menu. wait for 1 minute at max, or you can install from terminal
apkd-install "/apk/path"
It should print boolean true and after that install an app.
matemana
2017-02-09, 09:21
that's quite alright :)
Thank you for your efforts .
edit :
Oh well, it still won't start.
Maybe something is wrong with the env file maybe.
Maybe something is missing in it.
I fixed that error, but if it still does not work on OPX that's probably that sh files fault. I can't help with this, i do not have OPX. As i can see it's CM12 differs from what i have on my Nexus 5.
Here is fixed version for OPX (still does not work because of /opt/alien/system/script/platform_extraenvsetup.sh) If someone fixes library problems it should work on OPX too.
http://bin.ge/dl/247983/aliendalvik-OPX-1-0-46-1-armv7hl.rpm.html
install from terminal
apkd-install "/apk/path"
It should print boolean true and after that install an app.
It does, but the app doesn't install nor appear in the menu.
https://preview.ibb.co/kBpdyv/photo_2017_02_09_10_37_53.jpg
https://preview.ibb.co/jWSWJv/photo_2017_02_09_10_37_58.jpg
matemana
2017-02-09, 11:43
It does, but the app doesn't install nor appear in the menu.
https://preview.ibb.co/kBpdyv/photo_2017_02_09_10_37_53.jpg
can you please try some other apps too and post if they work?
I fixed that error, but if it still does not work on OPX that's probably that sh files fault. I can't help with this, i do not have OPX. As i can see it's CM12 differs from what i have on my Nexus 5.
Here is fixed version for OPX (still does not work because of /opt/alien/system/script/platform_extraenvsetup.sh) If someone fixes library problems it should work on OPX too.
http://bin.ge/dl/247983/aliendalvik-OPX-1-0-46-1-armv7hl.rpm.html
but the problem is not the missing "libplayback_adreno.so" this is not needing in cm12.1.
can you please try some other apps too and post if they work?
I tried firefox and opera too, no luck.
https://preview.ibb.co/eaBB1F/photo_2017_02_09_13_00_31.jpg
Maybe the problem is my Sailfish version? In the next days I will try a fresh install of Sailfish with the 2.0.4.3 rom
matemana
2017-02-09, 12:29
I tried firefox and opera too, no luck.
Maybe the problem is my Sailfish version? In the next days I will try a fresh install of Sailfish with the 2.0.4.3 rom
could be. I can confirm that this works on my Nexus 5 with 2.0.4.13
How can i remove it? Now my CPU stucks at 98% doing nothing
Does anybody tried this aliendalvik package in nexus 7 (flo). I tried and it works (I can install apps and run them ) but I haven't got a sound in android apps. Can anyone try application memrise (language learning app) - it doesn't work (it hangs after successful login).My version of sailfish is 2.0.5.6.
matemana
2017-02-09, 13:16
How can i remove it? Now my CPU stucks at 98% doing nothing
systemctl disable aliendalvik
!!!REBOOT THE PHONE!!!
pkcon remove aliendalvik
Fresh install of Sailfish with 2.0.4.13 rom, nothing installed:
Problem with installing.
With terminal it says:
[root@Sailfish Downloads]# pkcon install-local aliendalvik_N5-1.0.46-1.armv7hl.rpm
Installing files
Waiting in queue
Starting
Resolving dependencies
Fatal error: nothing provides apkd-android-settings needed by aliendalvik_N5-1.0.46-1.armv7hl
This with pkcon refresh
[root@Sailfish Downloads]# pkcon refresh
Refreshing cache
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Refreshing software list
Fatal error: File '/repodata/repomd.xml' not found on medium 'http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfishos_2.0.4.13/'
I don't know if it's connected with the failed install, but the fail is here http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_armv7hl/repodata/repomd.xml
how can i "suggest" this link?
Try pkcon install apkd-android-settings first or use zypper to install the aliendalvik package.
The repomd.xml error can be ignored. It is not related to the aliendalvik install.
pkcon update resolved. Now it works! Thanks to everyone :)
pkcon update resolved. Now it works! Thanks to everyone :)
Could you please report, what works and what not?
To debug issues, try running chroot /opt/alien and start /system/bin/surfaceflinger, then you can view logs with /system/bin/logcat inside chroot.
Could you please report, what works and what not?
I will do it soon, I want to try gps first. Tell me what to try and I'll try to test it.
I have a question too, how can I transfer all the apps and settings from the other Sailfish rom? Just copy and paste the /nemo directory?
Let me get this straight. The purpose of this thread is to kick Android off the Nexus 4 and install Sailfish on it, then go through the whole series of loops and awkward steps, only to... run Android on it? :confused:
matemana
2017-02-09, 15:16
Let me get this straight. The purpose of this thread is to kick Android off the Nexus 4 and install Sailfish on it, then go through the whole series of loops and awkward steps, only to... run Android on it? :confused:
Not only on Nexus 4 also Nexus 5 and there is some info about OPX and some about running aliendalvik on Nexus 7 too, but it's not about running android on them it's about running android apps on them. Trust me, no one in this thread would ever even speak about android if SFOS had the same apps, especially the most used ones.
P.S. i would appreciate if someone modified name of this thread. It's not just Nexus 4 It runs on Nexus 5, Nexus 7, (OPX has some problems but i believe it's some library issues) maybe it will run on some other ports too if modified correctly. sadly i can't test it. I have only N4 & N5 and i can confirm this works on both of them. On N4 i even have play store and play services :)
[QUOTE=matemana;1523174]Not only on Nexus 4 also Nexus 5 and there is some info about OPX and some about running aliendalvik on Nexus 7 too,
Do you have sound in android apps?
BluesLee
2017-02-09, 19:38
[QUOTE=matemana;1523174]Not only on Nexus 4 also Nexus 5 and there is some info about OPX and some about running aliendalvik on Nexus 7 too,
Do you have sound in android apps?
Yes, sound works, somehow.
matemana
2017-02-09, 19:42
[QUOTE=matemana;1523174]Not only on Nexus 4 also Nexus 5 and there is some info about OPX and some about running aliendalvik on Nexus 7 too,
Do you have sound in android apps?
Yes, sound works for me too.
Do you know how to repair sound in android (I've got sound in sailfish apps) - which config files, logs should I check?
I'm hopeful we can get OPX working as well - unlike the Nexus devices there is no way to multiboot Android and SFOS.
matemana
2017-02-10, 14:14
Can someone test this archive? I will not have my nexus 4 for a while.
This is for Nexus 4 only with CM 11 base !!!
install this after installing aliendalvik.
here is aliendalvik for nexus 4
https://mega.nz/#!EJNjyTya!k0SQ0kAOTeBrQDbrxaDN0i61HNLQp7g4BisN8Hw k07Y
Now about second rpm (link down below) this should help you install google services and play store. after installing this rpm you will see 4 apks in your home folder: google.apk, google_services.apk, play_store.apk and youtube.apk. Go ahead and install them. You should see them in your menu. now run them and confirm if it works.
https://mega.nz/#!YI9ECKoZ!I3y6UwioyHAVUfaCg_DTOGqDDYjwKY0_iTCNUfY lBTI
GPS works! Here Wego is functioning, i'm very satisfied :)
Nexus 5, Sailfish 2.0.4.13 and Alien Dalvik by @Matemana
GPS works! Here Wego is functioning, i'm very satisfied :)
Nexus 5, Sailfish 2.0.4.13 and Alien Dalvik by @Matemana
claustn, are you using CM12.1?
So jealous :D When can we have this working for opx...?
Yes, CM 12. I would like to help you but i don't know how :confused:
edit: Whatsapp calls work too, only with loudspeaker. I'll try Skype soon
matemana
2017-02-10, 18:19
claustn, are you using CM12.1?
So jealous :D When can we have this working for opx...?
Please try this one and report if it's working
https://mega.nz/#!hAdSkD7A!3vyN3hYnJyU-7uybIlgnsgL43VxTt3dQIiJxRDVsC0c
Installed as root using pkcon install-local. However the Android Support START button does not respond. Pressing it causes it to momentarily de-highlight, while the STOP button highlights, and then goes back to START being highlighted.
matemana
2017-02-10, 19:00
Installed as root using pkcon install-local. However the Android Support START button does not respond. Pressing it causes it to momentarily de-highlight, while the STOP button highlights, and then goes back to START being highlighted.
Can you show me status output of aliendavlik.service
Can you show me status output of aliendavlik.service
sent you PM
Can you show me status output of aliendavlik.service
https://i.imgsafe.org/e153490f3d.png
BluesLee
2017-02-10, 20:08
GPS works! Here Wego is functioning, i'm very satisfied :)
Nexus 5, Sailfish 2.0.4.13 and Alien Dalvik by @Matemana
@matemana: You repackaged the rpm and interchanged the same platform_extraenvsetup.sh as i posted above, dropping egl.cfg. Any other changes which i could miss? Using 2.0.5.6 here.
Does video playback work for any of you?
matemana
2017-02-10, 20:12
@matemana: You repackaged the rpm and interchanged the same platform_extraenvsetup.sh as i posted above, dropping egl.cfg. Any other changes which i could miss? Using 2.0.5.6 here.
Does video playback work for any of you?
I searched the internet for that missing library file for OPX. It seems some people needed them too. I downloaded CM11 for OPX made img file from system.dat and pulled out that missing library and included in this latest package but it did not help.
Video playback works for me without a problem. One thing i noticed camera does not work for me on nexus 5 with android apps.
BluesLee
2017-02-10, 20:22
I searched the internet for that missing library file for OPX. It seems some people needed them too. I downloaded CM11 for OPX made img file from system.dat and pulled out that missing library and included in this latest package but it did not help.
Video playback works for me without a problem. One thing i noticed camera does not work for me on nexus 5 with android apps.
I am talking about the Nexus 5 rpm package you provided for CM12 base, not about OPX.
matemana
2017-02-10, 20:34
I am talking about the Nexus 5 rpm package you provided for CM12 base, not about OPX.
Oh sorry, there are no other changes, so far i am trying to get google play store to work on Nexus 5.
I have got it working on Nexus 4 though and created package for it too. On Nexus 4 i have 2 packages. Aliendalvik and gapps. If you install them that's it everything works.
Oh and you remember your output, when it said that could not creat links to /system/vendor/lib/egl/egl.cfg and so on some files.
Guess what i have got that same errors and aliendalvik works for me. I'll check it on my Nexus 4 too.
matemana
2017-02-10, 20:47
https://i.imgsafe.org/e153490f3d.png
please answer pm
please answer pm
just did (10-chars)
matemana
2017-02-10, 21:33
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
Found this problem with my Nexus 5 too. It does not affect aliendalvik work because it works for mee. Although camera does not work in my Nexus 5.
To solve this problem you just have to create this path. That's it
"/opt/alien/system/vendor/lib/egl/"
debug question: other than journal and service status, does anyone have any other clues what to look for to figure out why aliendalvik won't start (on opx)?
with logcat
chroot /opt/alien /system/bin/logcat
BluesLee
2017-02-11, 06:26
I also see the error messages of nieldk
[QUOTE=nieldk;1523028]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
but it's solved as mentioned above by matemana
Though aliendalvik is somehow working a lot of apps do not have sound (gl tron, tuxrider) or video playback (webtube). For the latter i don't have a positive example yet. Other apps crash when interacting (bushido). Try out those of f-droid.
Suprising that sensors work too.
@cvp: logcat doesn't work
sh-3.2# /system/bin/logcat
Unable to open log device '/dev/alog/main':
No such file or directory
I'm hopeful we can get OPX working as well - unlike the Nexus devices there is no way to multiboot Android and SFOS.
You could try to boot an android kernel using fasboot, it should get you into CM since all android parts are not altered.
in opx and jolla device works the commandline.
with logcat
chroot /opt/alien /system/bin/logcat
If anyone is interested, opx logcat output posted here https://files.fm/down.php?i=hhm7ja9e&n=logcat.1.txt
Sony Ericsson Xperia Mini Pro (Xperia 2011 line):
Alien Dalvik starts after some script tweaks but the device lacks RAM (512MB, 438MB available, 109,7MB zRAM, ~200MB RAM free after start up). Even with SWAP. Device dies down during the startup of AD.
It has started once (per few dozens of trials, with 512MB SWAP on /sdcard partition) and only was able to show the prompt about installing new app viaapkd-install app.apk and install the app. It hanged after starting the application.
Scripts:
platform_envsetup.sh (changed one line):EXTERNAL_STORAGE=/sdcard
platform_extraenvsetup.sh:#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
lib/hw/gralloc.msm7x30.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.semc.so
"
####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
etc/media_codecs.xml
etc/media_profiles.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/.msm7x30./.default.}
ln -sf $target $link
done
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
Most probably needs also tweaking the /opt/alien/system/build.prop to set DPI, etc.
matemana
2017-02-11, 17:29
At last, i finished rpms for Nexus 4.
Now here are just 2 rpms. You must install aliendalvik first, gapps second.
does not need reboot. After installing aliendalvik just stop aliendalvik service from settings -> android support and install gapps
aliendalvik - https://mega.nz/#!1V0RWBwK!jvyid9IWQBzROkkomodCNY4BjM9dsgt-ZOQEm6kI0pk
gapps - https://mega.nz/#!tY8UEL6T!lx7H0TKCBhdU4uHa-qH2eHuQicSnGCczfF9H7lsSi08
After all installed just restart aliendalvik once. That's it. Tried on my second Nexus 4 with CM 11 SFOS 2.0.5.6 everything worked like a charm on fresh install. On fresh install just run devel-su pkcon update.
Now i'm trying to make google play work on Nexus 5 too.
BluesLee
2017-02-11, 20:04
@matemana: can you check sound/video for the apps i mentioned here http://talk.maemo.org/showpost.php?p=1523312&postcount=128
Partial success start aliendalvik on opx, but it does not work properly. Unfortunately you can not install apk jet.
1) Install aliendalvik
2) Termina: mv /etc/media_profile.xml media_profile.xml.bck
3) Termina: /opt/alien/system/script/alien.sh // wait some seconds
4) go to Settings > Android > and push the Start button
maybe someone can something do with it
matemana
2017-02-11, 23:01
@matemana: can you check sound/video for the apps i mentioned here http://talk.maemo.org/showpost.php?p=1523312&postcount=128
no your programs does not have sound. strabge thing is i installed NFS most wanted and it does have sound and works very well. i cant see difference between this and real android device gaming with nfs most wanted.i managed to install play store and voice assistant on nexus 5 too but it is not as good as in nexus 4. do not know why. chrome does not work. sound does not work in some apps. camera does not work in android apps.i have 0 problems with nexus 4.
BluesLee
2017-02-12, 06:46
no your programs does not have sound. strabge thing is i installed NFS most wanted and it does have sound and works very well. i cant see difference between this and real android device gaming with nfs most wanted.i managed to install play store and voice assistant on nexus 5 too but it is not as good as in nexus 4. do not know why. chrome does not work. sound does not work in some apps. camera does not work in android apps.i have 0 problems with nexus 4.
Interesting. Do you have the same behavior with Nexus 5, CM11? Can you do me a favor: On your Nexus 4 do a backup of your working platform_extraenvsetup.sh and use a complete reduced one like the one mp107 posted for OPX, and check the not well working apps again? Thank you
matemana
2017-02-12, 07:17
Interesting. Do you have the same behavior with Nexus 5, CM11? Can you do me a favor: On your Nexus 4 do a backup of your working platform_extraenvsetup.sh and use a complete reduced one like the one mp107 posted for OPX, and check the not well working apps again? Thank you
Do not know about CM11 base Nexus 5. I had installed it but did not try apps. I was stuck at SFOS 1.1.9.28. i quickly reinstalled it. It was so old. I saw how far SFOS has gono from that.
mp107 has posted reduced version for xperia 2011 line. I do not think it will make any change because as you saw on previuos pages i do not had that /vendor folder so it gave me same no such file warning although aliendalvik did work.
I WILL try what you want and report back.
matemana
2017-02-12, 09:41
Interesting. Do you have the same behavior with Nexus 5, CM11? Can you do me a favor: On your Nexus 4 do a backup of your working platform_extraenvsetup.sh and use a complete reduced one like the one mp107 posted for OPX, and check the not well working apps again? Thank you
Well now i am lost.
I used this sh script in my nexus 4 and tux rider worked and had sound, google chrome worked, opened youtube in google chrome and it played video without problem, also had sound.
Google camera works too. takes pictures, takes video without problems.
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
lib/hw/gralloc.msm8960.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.mako.so
"
####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
etc/media_codecs.xml
etc/media_profiles.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/.msm8960./.default.}
ln -sf $target $link
done
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
BluesLee
2017-02-12, 10:01
Well now i am lost.
I used this sh script in my nexus 4 and tux rider worked and had sound, google chrome worked, opened youtube in google chrome and it played video without problem, also had sound.
Google camera works too. takes pictures, takes video without problems.
#!/bin/bash
# Copyright 2013-2016 Myriad Group AG. All Rights Reserved.
####### 3D needs #########
EXTRA_FILES_3D="
lib/hw/gralloc.msm8960.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.mako.so
"
####### HW CODECS needs #########
EXTRA_FILES_HWCODEC="
etc/media_codecs.xml
etc/media_profiles.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/.msm8960./.default.}
ln -sf $target $link
done
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
I expected something like that from the very beginning as i had a typo in my own script and it had no impact at all. Thank you.
matemana
2017-02-12, 10:11
I expected something like that from the very beginning as i had a typo in my own script and it had no impact at all. Thank you.
What typo? You mean in the script you posted on page 6? I compared it to orginal source and only then included in rpm for OPX.
What do you think, why are those files needed? When we had that issues with Nexus 5 too aliendalvik still worked, but did not work on OPX. I do not know what's happening. maybe it's related to the files aliendalvik uses? If you open it's build.prop you can see it's meant for CM11 base it says 4.4.4, but we are using it on CM12.1 base 5.1.1. Maybe we should edit build.prop properly? Do you think it will help to work correctly on Nexus 5 and on OPX? I could not make camera work on nexus 5 and some apps do not have sound, gogle chrome does not work at all.
BluesLee
2017-02-12, 10:20
The typo was with egl.conf instead of egl.cnf, i corrected the post but as your test showed it doesn't matter.
Don't know how to proceed from here, i am trying to look into logs. As the apps i mentioned are opensource one can have a look what libs they use, GL stuff etc
CM11 / Nexus 5 test is good to see what's going on, if CM base is essential or not.
matemana
2017-02-12, 10:26
The typo was with egl.conf instead of egl.cnf, i corrected the post but as your test showed it doesn't matter.
Don't know how to proceed from here, i am trying to look into logs. As the apps i mentioned are opensource one can have a look what libs they use, GL stuff etc
CM11 / Nexus 5 test is good to see what's going on, if CM base is essential or not.
Oh you mean that, it's egl.cfg in the original source and Yes i corrected it.
Do you know how to repair sound in android (I've got sound in sailfish apps) - which config files, logs should I check?
Uncheck android support at startup and run it after system boots. It helped me to get sound in some of applications.
Uncheck android support at startup and run it after system boots. It helped me to get sound in some of applications.
How can I do this (uncheck android support at startup)?
Can you give me some examples of apps (with working audio)?
mrsellout
2017-02-14, 20:35
How can I do this (uncheck android support at startup)?
It's in the Settings app under AndroidTM Support
dzikikaktusik
2017-02-16, 18:38
How much RAM does it take?
Nothing if you don't use any Adroid app (or very few)
matemana
2017-02-16, 19:58
How much RAM does it take?
for me it takes ~180-190 MB but i also have google play store and google play services installed. I measured just aliendalvik and it used basically nothing.
SyedYaseen
2017-02-17, 07:32
Do we have any update for alien dalvik on OnePlus one ?
Nexus5 here with cm12.1 and sfos 2.0.5.6.
Looks like its running but i fail to get any apk to install or run.
No error message i can identify but also no action when tried from File-Browser and cli apkd-install as nemo and root.
Any idea how to solve?
BTW, massive kudos to everyone involved in this nicely collaborated hack!
[root@localhost nemo]# systemctl status aliendalvik.service
aliendalvik.service - Myriad Alien Dalvik
Loaded: loaded (/lib/systemd/system/aliendalvik.service; disabled)
Active: active (running) since Fri 2017-02-17 15:49:50 CET; 2s ago
Process: 16611 ExecStopPost=/system/script/alien_ui_pid_reporter.sh stop (code=exited, status=0/SUCCESS)
Process: 16599 ExecStopPost=/system/script/alien_notification_cleaner.sh (code=exited, status=0/SUCCESS)
Process: 16673 ExecStartPost=/system/script/alien_ui_pid_reporter.sh start (code=exited, status=0/SUCCESS)
Process: 16669 ExecStartPre=/system/script/alien_start_guard.sh (code=exited, status=0/SUCCESS)
Main PID: 16672 (alien_init)
CGroup: /system.slice/aliendalvik.service
├─16672 /system/bin/alien_init
├─16708 /system/bin/sdcard -u 100000 -g 100000 /home/nemo/android_storage /storage/sdcard0
├─16709 /system/bin/keystore /data/keystore
├─16710 /system/bin/netd
├─16711 /system/bin/installd
├─16712 zygote /bin/alien-main -Xzygote /system/bin --zygote --start-system-server
├─16713 /system/bin/drmserver
├─16714 /system/bin/debuggerd
├─16715 /system/root/sbin/healthd
├─16716 /system/genv/bin/alien_audio_server
├─16717 /system/genv/bin/alien_media_control
├─16718 /system/genv/bin/alien_resource_mgr
├─16719 /system/bin/mediaserver
├─16720 /system/genv/bin/aliensensorserver
├─16721 /system/genv/bin/alien_timezone_monitor
├─16722 /system/genv/bin/alien_bridge_server ap no li po nc vi pm
├─16723 /system/genv/bin/alien_bridge_server co
├─16724 /system/genv/bin/alien_bridge_server wi ri
├─16725 /system/genv/bin/alien_bridge_server ms fo
├─16726 /system/genv/bin/alien_gps_server
├─16727 /system/genv/bin/alien_keyboard_server
└─16728 /system/bin/rild -l libalien_native_ril.so
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:50 localhost start_alien.sh[16672]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:50 localhost start_alien.sh[16672]: gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:50 localhost start_alien.sh[16672]: gexe.sh Execute: /system/genv/bin/alien_bridge_server co
Feb 17 15:49:50 localhost start_alien.sh[16672]: ================================================== ==========
Feb 17 15:49:51 localhost alien_bridge_server[16723]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via Con...Changed()
Hint: Some lines were ellipsized, use -l to show in full.
EDIT.
Got a bit further, created the missing /opt/alien/system/vendor/lib/egl and realized the aliendalvik.service stopps after some 10 seconds and status then gives:
[root@localhost egl]# systemctl status aliendalvik.service
aliendalvik.service - Myriad Alien Dalvik
Loaded: loaded (/lib/systemd/system/aliendalvik.service; disabled)
Active: failed (Result: start-limit) since Fri 2017-02-17 15:43:00 CET; 6s ago
Process: 32108 ExecStopPost=/system/script/alien_ui_pid_reporter.sh stop (code=exited, status=0/SUCCESS)
Process: 32095 ExecStopPost=/system/script/alien_notification_cleaner.sh (code=exited, status=0/SUCCESS)
Process: 31416 ExecStartPost=/system/script/alien_ui_pid_reporter.sh start (code=exited, status=0/SUCCESS)
Process: 31415 ExecStart=/system/script/start_alien.sh (code=exited, status=0/SUCCESS)
Process: 31412 ExecStartPre=/system/script/alien_start_guard.sh (code=exited, status=0/SUCCESS)
Main PID: 31415 (code=exited, status=0/SUCCESS)
Feb 17 15:43:00 localhost systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Feb 17 15:43:00 localhost systemd[1]: aliendalvik.service start request repeated too quickly, refusing to start.
Feb 17 15:43:00 localhost systemd[1]: Unit aliendalvik.service entered failed state.
Attached is the journalctl during that time.
Note, i tried to install F-droid.apk and ACL request is visible in journalctl.
i try Alien Dalvik in oneplus one
using sailfishos with cm12.1 base
i can install apk but if i install first package it can't run until i try second package that can running for me these tricks i can using
also many apps hang and freeze make the system rebooted after 10-30 second .
i install firefox but i can't see content of web site all black screen
finally in wizard
to install apk i have problem with scaling display for me smaller not filled to my screen
imgur 7iSIJNu
mgur QOK3ykM
look at that it is amazing
can't waiting for fix and improvement and update ....:D
i can't using gpu with games ,web browser,or youtube
i face black screen ...:confused:
matemana
2017-02-24, 20:58
Nexus5 here with cm12.1 and sfos 2.0.5.6.
Looks like its running but i fail to get any apk to install or run.
No error message i can identify but also no action when tried from File-Browser and cli apkd-install as nemo and root.
Any idea how to solve?
BTW, massive kudos to everyone involved in this nicely collaborated hack!
Delete that version you have.
remember disable aliendalvik service.
Then restart the phone!!!!!!!!!!!!!
Then delete aliendalvik and also delete /opt/alien folder
Install my rpm here i will link you. https://mega.nz/#!QMcnyJBR!JcKjXx3nYHey8pkbKB0e8vyVRbXvJoz9FvYvCV3 6TVU
It should work.
Hi, I just try it on WT88047 with CM12.1 base and and Sailfish 2.0.5.6.
[root@Sailfish script]# cat /opt/alien/system/script/platform_extraenvsetup.sh
#!/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/libq3dtools_adreno.so
lib/hw/gralloc.msm8916.so
vendor/lib/libadreno_utils.so
vendor/lib/libgsl.so
lib/libmemalloc.so
lib/libqdutils.so
"
####### CAMERA needs #########
EXTRA_FILES_CAMERA="
lib/hw/camera.msm8916.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/.msm8916./.default.}
ln -sf $target $link
done
ln -sf /system_jolla/lib/hw/camera.msm8916.so /system/lib/hw/camera.default.so
# For camera socket
mkdir -p /data/misc
ln -s /data_jolla/misc/camera /data/misc/camera
[root@Sailfish script]#
when I started it, its failed and shown following logs;
https://gist.github.com/rizkidoank/64ab1ef7f3e8edb3834f4dea28bea4aa
All the libs are available in paths. Anyone here got this issues on your phone?
Is it because of out of memory or something else? Is zram0 related to this issue?
It should work.
Thanks a lot!
I did not mention that i had sfdroid installed. Maybe that caused the trouble.
I ended up reflashing on cm12.1 and installed AD first before OTA up from packaged 2.0.1.11.
Works nicely now, lets see if it survives OTA to 2.0.5.6.
matemana
2017-03-01, 17:03
Thanks a lot!
I did not mention that i had sfdroid installed. Maybe that caused the trouble.
I ended up reflashing on cm12.1 and installed AD first before OTA up from packaged 2.0.1.11.
Works nicely now, lets see if it survives OTA to 2.0.5.6.
I tried it with 2.0.4.13. Here i will link you packaged version of that SFOS try installing it.
https://mega.nz/#!hJ1hACJK!f20J3-qKxKVjgVKeIf6Sq1Id4j37M6ta8H_6u5uagVY
I tried upgrade to 2.0.5.6 but it fails. I know that 82% workaround. When you need to force restart delete previous package and continue upgrade but it did not work. So i am on 2.0.4.13 now.
I tried it with 2.0.4.13. Here i will link you packaged version of that SFOS try installing it.
https://mega.nz/#!hJ1hACJK!f20J3-qKxKVjgVKeIf6Sq1Id4j37M6ta8H_6u5uagVY
I tried upgrade to 2.0.5.6 but it fails. I know that 82% workaround. When you need to force restart delete previous package and continue upgrade but it did not work. So i am on 2.0.4.13 now.
You don't delete the package where it hangs you should reinstall it with 'zypper in --force'. But OTA on the Nexus sometimes doesn't work due to this dbus bug.
Delete that version you have.
remember disable aliendalvik service.
Then restart the phone!!!!!!!!!!!!!
Then delete aliendalvik and also delete /opt/alien folder
Install my rpm here i will link you. https://mega.nz/#!QMcnyJBR!JcKjXx3nYHey8pkbKB0e8vyVRbXvJoz9FvYvCV3 6TVU
It should work.
Thanks it is good that alien dalvik and google play installed and:D updated work good but i have simple problem
games black screen & youtube,firefox , video palyer not working
i try whatapp it hang with me window minimize:mad: to home screen after i return to it , many apps like this.
i think i missing library and other i don't know which one .
Thanks it is good that alien dalvik and google play installed and:D updated work good but i have simple problem
games black screen & youtube,firefox , video palyer not working
i try whatapp it hang with me window minimize:mad: to home screen after i return to it , many apps like this.
i think i missing library and other i don't know which one .
it is start or some times freeze than my device reboot the phone automatically i boot again and run app from start screen.
i know alien dalvik it is layer but please did i missing something
i have oneplus one device.
Thank you
in the platform_extraenvsetup.sh as example for nexus 4
EXTRA_FILES_3D="
lib/hw/gralloc.msm8960.so -> the question where the file path location
what about oneplus one script our path like this
vendor/lib/hw/gralloc.msm8974.so -> Q i want to know if that path correct ?????
and where is the location for library mean in script did it mean to cm base or to aliendalvik folder in /opt/alien/system/script ????
Thank you .
HendriXXX
2017-03-02, 09:40
Hi, I'm trying to install aliendalvik_N5-1.0.46-1.armv7hl.rpm package, but no success. Nexus 5, SFOS version 2.0.1.11, CM12.1
Error is:
[nemo@Nexus5 ~]$ devel-su pkcon install-local Downloads/aliendalvik_N5-1.0.46-1.armv7hl.rpm
Password:
Installing files
Waiting in queue
Starting Resolving dependencies
Fatal error: nothing provides apkd-android-settings needed by aliendalvik_N5-1.0.46-1.armv7hl
Also tried:
[nemo@Nexus5 ~]$ devel-su pkcon update
Password:
Getting updates
Waiting in queue
Starting
Querying
Refreshing software list
No packages require updating to newer versions.
[nemo@Nexus5 ~]$ devel-su pkcon install apkd-android-settings
Password:
Command failed: This tool could not find any available package: could not find apkd-android-settings
Any ideas?
How can I check repositories in Sailfish? And what repositories there should be?
Or, if someone could provide link to that apkd-android-settings- rpm file?
vendor/lib/hw/gralloc.msm8974.so -> Q i want to know if that path correct ?????
You could search your system for the file with
devel-su find / -name "gralloc.msm8974.so"
Or, if someone could provide link to that apkd-android-settings- rpm file?
It comes from Jolla store repo afair.
Had the issue too because Jolla store was not working.
IIRK this helped me:
devel-su
ssu dr adaptation0
pkcon refresh
You could search your system for the file with
devel-su find / -name "gralloc.msm8974.so"
I don't mean that
the problem I face is in in platform_extraenvsetup.sh located in /opt/alien/system/script i editing paths
to the right location as you know I have two paths for lib folder
so which one?
if i choose alien dalvik as example than i most move library to same location.
/opt/alien/system/lib/hw/ (cm base with sfos)
/system/lib/hw/ (Alien Dalvik)
The question:
Did I need to copy " gralloc.msm8974.so" to first path with cm-base
or second path for alien dalvik?
I editing platform_extraenvsetup.sh and save .
notice that :
As you know oneplus one have diff base cm12.1 not similar nexus 4,5 device with cm11.
Finally Many problems I face I don't know if libray work with me I face many black screen display , freeze, hang,
(window for android app minimize by itself), also any simple games like 3d or 2td not working at all.
Thank you
Baddea
:):confused:
@HendriXXX
You also could use zypper to install the RPM, it will install the missing dependencies.
HendriXXX
2017-03-02, 12:30
It comes from Jolla store repo afair.
Had the issue too because Jolla store was not working.
IFRK this helped me:
devel-su
ssu dr adaptation0
pkcon refresh
Thanks, that helped. Now it is working.
Now I have another problem. I installed finnish bank android app and it works quite good, but it keeps nagging about "our app relies on google play services, which is not supported by your phone.." with annoying pop up.
Why the hell it needs that for!? Is there any workaround other than trying to install play services?
I'm trying to get away from google and this ain't helping.. :mad:
Thanks, that helped. Now it is working.
Now I have another problem. I installed finnish bank android app and it works quite good, but it keeps nagging about "our app relies on google play services, which is not supported by your phone.." with annoying pop up.
Why the hell it needs that for!? Is there any workaround other than trying to install play services?
I'm trying to get away from google and this ain't helping.. :mad:
for oneplus one we don't have any problem with google play
the problem we face is missing library and minimize app by itself to home screen .
i need answers
i need answers
Can only tell you that after fresh flash and install of Matemanas rpm on Nexus5 i also have the same issue with video playback and many larger apps.
The one thing that is working perfectly is navigation with Google Maps and Here We Go though.
Enogh for my needs to have a Sailfish device with decent navigation \o/
To solve the remaining issue, do we need to root AD to look into logs? If not, where to acquire meaningfull android logs?
Why the hell it needs that for!? Is there any workaround other than trying to install play services?
I'm trying to get away from google and this ain't helping.. :mad:
There is open gapps (https://openrepos.net/content/coderus/opengapps-pico-installer). You would need to look around how to get it onto your device.
On N5, i was lazy and went with installing google Maps from playstore and not declining automatic play-service install attempt.
matemana
2017-03-02, 15:38
notice that :
As you know oneplus one have diff base cm12.1 not similar nexus 4,5 device with cm11.
notice i have 12.1 base on my N5 and aliendalvik works.
i confirm i have same issues with video playbacks and some apps, but this same gapps package works fine on my nexus 4. The only diff between my n4 and n5 is that i have cm11 base on my n4. on this weekend i'll try this gapps on my n5 with base cm11 and then i'll have some answers if it will work like it does on my n4.
matemana
2017-03-03, 07:25
Can only tell you that after fresh flash and install of Matemanas rpm on Nexus5 i also have the same issue with video playback and many larger apps.
The one thing that is working perfectly is navigation with Google Maps and Here We Go though.
Enogh for my needs to have a Sailfish device with decent navigation \o/
To solve the remaining issue, do we need to root AD to look into logs? If not, where to acquire meaningfull android logs?
I was so curious what would happen if i install my aliendalvik.rpm and my gapps on nexus 5 with base CM11. I had to install SFOS 1.1.29.8. I did it 30 minutes ago.
Aliendalvik installed without a problem, Gapps installed but when it asks you to install 3 apks at the end it installed just one of it Google play. Then i installed manually
1 GoogleLoginService.apk
2 GoogleServicesFramework.apk
3 GmsCore.apk
which are in here /opt/alien/system/priv-app
and guess what?
Youtube works well WITH SOUND. Camera works too
So something is wrong with the base CM12.1 that's why sound does not work in youtube app (and some others too) in aliendalvik with CM12.1 base and works for me now on CM11 base.
BluesLee
2017-03-03, 11:51
I was so curious what would happen if i install my aliendalvik.rpm and my gapps on nexus 5 with base CM11. I had to install SFOS 1.1.29.8. I did it 30 minutes ago.
Aliendalvik installed without a problem, Gapps installed but when it asks you to install 3 apks at the end it installed just one of it Google play. Then i installed manually
1 GoogleLoginService.apk
2 GoogleServicesFramework.apk
3 GmsCore.apk
which are in here /opt/alien/system/priv-app
and guess what?
Youtube works well WITH SOUND. Camera works too
So something is wrong with the base CM12.1 that's why sound does not work in youtube app (and some others too) in aliendalvik with CM12.1 base and works for me now on CM11 base.
Great findings but i guess no one will install cm11 for this purpose. We need to know the reasons why sound etc don't work and why it doesn't work at all with cm13.
Great findings but i guess no one will install cm11 for this purpose. We need to know the reasons why sound etc don't work and why it doesn't work at all with cm13.
How to get logs?
I dug down the rooting rabbithole but did not find an answer for alien dalvik 4.4.4.
All methods involve adb.
Journalctl only tells me about AD start.
Maybe stracing the scripts that get started by aliendalvik.service and compare the output of the different cm versions.
taalojarvi
2017-03-05, 19:44
Hey i just created an account just so i could be part of this conversation.
I'm porting to Xiaomi Redmi 2 ( wt88047), i've pushed everything and pkcon 'd everything. But AlienDalvik refuses to work. I push start, the start button goes dull and stop button highights, few seconds later we are back to
Logs (in reverse order "journalctl -r") - pastebin/yK52SryX (add .com pls)
platform_extraenvsetup.sh - pastebin/DuEv63xM (same here)
Has anyone got this working one the OnePlus X? I saw several attempts a few pages back but that direction seems to have disappeared.
Has anyone got this working one the OnePlus X? I saw several attempts a few pages back but that direction seems to have disappeared.
(Sorry for slight OT)
I don't believe so.
matemana is the main driver for this, and does not have an opx device. He did provide an experimental package for opx but it does not start AD.
Given that SFOS port is based on CM12.1, it may be suffering from similar issues as the N5+CM12.1.
klinglerware
2017-03-06, 03:31
Has anyone got this working one the OnePlus X? I saw several attempts a few pages back but that direction seems to have disappeared.
It looks like folks on the OnePlus One SFOS thread at the OnePlus forums have made some progress with the OPO (some of it works, but buggy, apparently). I do not know enough to know how relevant that is for getting AlienDalvik to work on the OPX, though.
https://forums.oneplus.net/threads/sailfish-os-for-oneplus-one.279537/
taalojarvi
2017-03-06, 05:47
I got some journalctl for you guys, i can't seem to make it work
ar 06 11:12:26 Sailfish systemd-journal[433]: Suppressed 83 messages from /system.slice/aliendalvik.service
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/dalvik-cache exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/app-private exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/app exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/data exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/misc exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/property exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /run/user/1000/alien/socket exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /run/user/1000/alien/ashmem exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /home/nemo/android_storage exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /storage/sdcard0 exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /cache exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/keystore exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: -------------------------------------------
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_ROOT=/system
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_DATA=/data
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: DOWNLOAD_CACHE=/cache
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: EXTERNAL_STORAGE=/storage/sdcard0
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: 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
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_LOG_TAGS=*:e
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: USER_APP=
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: -------------------------------------------
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_gps_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/aliensensorserver
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_keyboard_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_resource_mgr
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_media_control
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_audio_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ms fo
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ap no li po nc vi pm
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server co
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:27 Sailfish alien_bridge_server[12700]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:33 Sailfish start_alien.sh[12642]: *** Error in `/system/genv/bin/alien_media_control': malloc(): memory corruption: 0xb36000bb ***
Mar 06 11:12:34 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/dalvik-cache exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/app-private exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/app exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/data exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/misc exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/property exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /run/user/1000/alien/socket exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /run/user/1000/alien/ashmem exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /home/nemo/android_storage exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /storage/sdcard0 exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /cache exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/keystore exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: -------------------------------------------
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ANDROID_ROOT=/system
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ANDROID_DATA=/data
Mar 06 11:12:35 Sailfish alien_bridge_server[13098]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:41 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:42 Sailfish alien_bridge_server[13438]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:48 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:48 Sailfish alien_bridge_server[13774]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:55 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:55 Sailfish systemd[1]: aliendalvik.service start request repeated too quickly, refusing to start.
Mar 06 11:12:55 Sailfish systemd[1]: Unit aliendalvik.service entered failed state.
EDIT: I'm on Xiaomi Redmi 2,
platform_extraenvsetup.sh - pastebin/DuEv63xM
matemana
2017-03-06, 06:15
I got some journalctl for you guys, i can't seem to make it work
ar 06 11:12:26 Sailfish systemd-journal[433]: Suppressed 83 messages from /system.slice/aliendalvik.service
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/dalvik-cache exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/app-private exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/app exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/data exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/misc exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/property exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /run/user/1000/alien/socket exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /run/user/1000/alien/ashmem exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /home/nemo/android_storage exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /storage/sdcard0 exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /cache exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: /data/keystore exists already
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: -------------------------------------------
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_ROOT=/system
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_DATA=/data
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: DOWNLOAD_CACHE=/cache
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: EXTERNAL_STORAGE=/storage/sdcard0
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: 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
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ANDROID_LOG_TAGS=*:e
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: USER_APP=
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: -------------------------------------------
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_gps_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/aliensensorserver
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_keyboard_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_resource_mgr
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_media_control
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_audio_server
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ms fo
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ap no li po nc vi pm
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: gexe.sh Execute: /system/genv/bin/alien_bridge_server co
Mar 06 11:12:26 Sailfish start_alien.sh[12642]: ================================================== ==========
Mar 06 11:12:27 Sailfish alien_bridge_server[12700]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:33 Sailfish start_alien.sh[12642]: *** Error in `/system/genv/bin/alien_media_control': malloc(): memory corruption: 0xb36000bb ***
Mar 06 11:12:34 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ln: creating symbolic link `/data/misc/camera/camera': File exists
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/dalvik-cache exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/app-private exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/app exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/data exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/misc exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/property exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /run/user/1000/alien/socket exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /run/user/1000/alien/ashmem exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /home/nemo/android_storage exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /storage/sdcard0 exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /cache exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: /data/keystore exists already
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: -------------------------------------------
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ANDROID_ROOT=/system
Mar 06 11:12:35 Sailfish start_alien.sh[13044]: ANDROID_DATA=/data
Mar 06 11:12:35 Sailfish alien_bridge_server[13098]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:41 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:42 Sailfish alien_bridge_server[13438]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:48 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:48 Sailfish alien_bridge_server[13774]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Mar 06 11:12:55 Sailfish systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Mar 06 11:12:55 Sailfish systemd[1]: aliendalvik.service start request repeated too quickly, refusing to start.
Mar 06 11:12:55 Sailfish systemd[1]: Unit aliendalvik.service entered failed state.
Looks like AD has issues with Base 12.1 we have some issues on Nexus 5 too but it at least starts. I tried copying these lib files from CM11 base on Nexus 5 but it did not work. On the other hand CM11 base works without issues on Nexus 5. Sorry guys but there is not much thing i can do. AD needs rebase. Maybe there will be another leak of upgraded AD. Sony devices will have AD officialy and i think it will be upgraded. All we now can is just wait.
in yout log this is not good i guess.
Sailfish start_alien.sh[12642]: *** Error in `/system/genv/bin/alien_media_control': malloc(): memory corruption: 0xb36000bb
taalojarvi
2017-03-06, 06:18
Looks like AD has issues with Base 12.1 we have some issues on Nexus 5 too but it at least starts. I tried copying these lib files from CM11 base on Nexus 5 but it did not work. On the other hand CM11 base works without issues on Nexus 5. Sorry guys but there is not much thing i can do. AD needs rebase. Maybe there will be another leak of upgraded AD. Sony devices will have AD officialy and i think it will be upgraded. All we now can is just wait.
in yout log this is not good i guess.
Sailfish start_alien.sh[12642]: *** Error in `/system/genv/bin/alien_media_control': malloc(): memory corruption: 0xb36000bb
Nevermind i got it to run now. :)
I tore up the build prop and found this line
ro.alien.native_media_control=true
and i changed it to
ro.alien.native_media_control=false
Also i made changes to Dalvik heap sizes and now its working.
I'm running tests now. I recommend other users to check their build.props inside alien/system directory to debug
EDIT: apkd-install gives me boolean false :(
Has anyone fixed this?
EDIT 2: Aliendalvik failed after a reboot :( I'm exhausted now. I'll try after a break
EDIT 3: Dependencies missing.
Nevermind i got it to run now. :)
I tore up the build prop and found this line
ro.alien.native_media_control=true
and i changed it to
ro.alien.native_media_control=false
Also i made changes to Dalvik heap sizes and now its working.
I'm running tests now. I recommend other users to check their build.props inside alien/system directory to debug
EDIT: apkd-install gives me boolean false :(
Has anyone fixed this?
i try using old cm11 with sfos
first pkcon refresh and install AD rpm not work
i getting fatal error with android-ad -settings.
i install AD using zypper through terminal but the android support setting not appear in settings nothing
the question : how i can install android support setting manually ,to make it appear in setting like sfos utilites?
i getting all files in /opt/alien/system/script for AD
:) i have 1.x.x.27 with cm11
Thank you
i can now see android support in settings but i can't enter it to change start and stop alien dalvik.
i using command to start alien dalvik and reboot nothing happen
also when i try to install apk "installation was started" nothing happen
taalojarvi
2017-03-06, 09:27
AD is now running
I installed Fdroid via apkd-install and the apk is now present inside /opt/alien/data/app/incoming.
HOWEVER it's not present in the app drawer. Any body encountered/fixed this?
taalojarvi
2017-03-06, 09:32
It does, but the app doesn't install nor appear in the menu.
https://preview.ibb.co/kBpdyv/photo_2017_02_09_10_37_53.jpg
https://preview.ibb.co/jWSWJv/photo_2017_02_09_10_37_58.jpg
I'm having same issue as you. How did you fix it?
i face problem with alien dalvik now somebody help...
http://imgur.com/qrIkMJX
http://imgur.com/qrIkMJX
http://imgur.com/qrIkMJX
http://imgur.com/qrIkMJX
http://imgur.com/qrIkMJX
http://imgur.com/qrIkMJX
You might want to update your device first. You are running Sailfish OS version 1.1.1.27, which is more than two years old. The latest version is 2.0.5.6: https://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_mako
nrdnandan
2017-03-06, 13:23
Make sure android support starts. Enter that menu and click start. If it starts stop button should highlight.
You can intsall apk from file manager, after you click on apk click install from dropdown menu. wait for 1 minute at max, or you can install from terminal
apkd-install "/apk/path"
It should print boolean true and after that install an app.
I got boolean true and what is the next step in detail please
matemana
2017-03-06, 16:08
I got boolean true and what is the next step in detail please
what device do you have?
after you get boolean it must install app and that app should be visible in app drawer. you can install android apps from file manager too.
taalojarvi
2017-03-06, 16:54
what device do you have?
after you get boolean it must install app and that app should be visible in app drawer. you can install android apps from file manager too.
I'm working with @nrdnandan . The device is Xiaomi Redmi 2 (MSM8916)
we aren't getting anything on the app drawer
Here's journalctl | grep apkd after installing apk
[root@Sailfish system]# journalctl -l | grep apkd
Mar 03 23:16:23 Sailfish systemd[1]: Starting apkd path watcher.
Mar 03 23:16:23 Sailfish systemd[1]: Started apkd path watcher.
Mar 06 21:08:32 Sailfish alien_setup_chroot.sh[6276]: apkd-mount /opt/alien
Mar 06 21:34:25 Sailfish dbus[694]: [system] Activating via systemd: service name='com.jolla.apkd' unit='dbus-com.jolla.apkd.service'
Mar 06 21:34:25 Sailfish apkd[12458]: Using /data for apps + data directly
Mar 06 21:34:25 Sailfish apkd[12458]: Removing old incoming file: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:34:25 Sailfish dbus[694]: [system] Successfully activated service 'com.jolla.apkd'
Mar 06 21:34:26 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:40:00 Sailfish apkd[12458]: File already exists in incoming folder: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:40:00 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:54:11 Sailfish apkd[12458]: File already exists in incoming folder: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:54:11 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:55:19 Sailfish apkd[12458]: File already exists in incoming folder: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:55:19 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:57:15 Sailfish apkd[12458]: File already exists in incoming folder: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 21:57:15 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 22:10:27 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/com.nema.batterycalibration.apk
Mar 06 22:11:11 Sailfish apkd[12458]: File already exists in incoming folder: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 22:11:11 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 22:12:08 Sailfish apkd[14317]: Using /data for apps + data directly
Mar 06 22:12:08 Sailfish apkd[14317]: Removing old incoming file: /data/app//incoming/com.nema.batterycalibration.apk
Mar 06 22:12:08 Sailfish apkd[14317]: Removing old incoming file: /data/app//incoming/org.fdroid.fdroid.apk
Mar 06 22:12:08 Sailfish apkd[14317]: Cannot register D-Bus service at com.jolla.apkd
Mar 06 22:12:13 Sailfish apkd[14321]: Using /data for apps + data directly
Mar 06 22:12:13 Sailfish apkd[14321]: Cannot register D-Bus service at com.jolla.apkd
Mar 06 22:20:00 Sailfish apkd[12458]: Asking ACL to install (inside chroot): /data/app//incoming/org.fdroid.fdroid.apk
I can confirm aliendalvik works with changes i made in it on nexus 5 running 1.1.9.28 CM11 base.
Now i'll try installing google play store and google play services.
try this version in oneplus one maybe it give chance to aviod the problems like freeze and minimize screen app backgroubd and hang.
nrdnandan
2017-03-07, 13:13
what device do you have?
after you get boolean it must install app and that app should be visible in app drawer. you can install android apps from file manager too.
chroot /opt/alien/ /system/bin/logcat returns Unable to open log device '/dev/alog/main': No such file or directory
Device : Xiaomi Redmi 2 (wt88047)
BASE=CM12.1
SFOS=2.0.5.6
Also, I copied apk file in /opt/alien/data/app/incoming to /opt/alien/data/app/ and app is available in app drawer. But it doesn't open, it crashes.
And journalctl is full of this message Sailfish start_alien.sh[16086]: [0] handle_fuse_requests: errno=19
apkd-mount /opt/alien
ln: accessing `/data/misc/camera': Too many levels of symbolic links
/data exists already
/data/dalvik-cache exists already
/data/app-private exists already
/data/app exists already
/data/data exists already
/data/misc exists already
/data/property exists already
/run/user/1000/alien/socket exists already
/run/user/1000/alien/ashmem exists already
/home/nemo/android_storage exists already
/storage/sdcard0 exists already
/cache exists already
/data/keystore exists already
-------------------------------------------
ANDROID_ROOT=/system
ANDROID_DATA=/data
DOWNLOAD_CACHE=/cache
ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
EXTERNAL_STORAGE=/storage/sdcard0
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
LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
ANDROID_LOG_TAGS=*:e
USER_APP=
-------------------------------------------
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_gps_server
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_media_control
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/aliensensorserver
================================================== ==========
================================================== ==========
================================================== ==========
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_keyboard_server
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_audio_server
gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_resource_mgr
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_bridge_server co
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_bridge_server ms fo
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
================================================== ==========
================================================== ==========
gexe.sh Execute: /system/genv/bin/alien_bridge_server ap no li po nc vi pm
================================================== ==========
mainvolume: initVolumeConnection
mainvolume: Got PulseAudio DBus address: unix:path=/run/user/100000/pulse/dbus-socket
mainvolume: retry_connect
mainvolume: Retry connecting to PulseAudio
mainvolume: listen for signal com.Meego.MainVolume2.StepsUpdated
mainvolume: listen for signal com.Meego.MainVolume2.NotifyListeningTime
mainvolume: listen for signal com.Meego.MainVolume2.NotifyHighVolume
mainvolume: listen for signal com.Meego.MainVolume2.CallStatus
mainvolume: query currently active values
mainvolume: current StepCount: 12
mainvolume: current CurrentStep: 3
mainvolume: current HighVolumeStep: 0
The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
mainvolume: getSystemVolume got currentStep = 3, stepCount = 12
In mgmain JNI_OnLoad
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
..........(lots of repeated messages of the same kind)
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
[0] handle_fuse_requests: errno=19
/opt/alien/system/script/alien.sh: line 17: 23421 Aborted chroot $ROOT /system/script/alien_settings_server.sh
/opt/alien/system/script/alien.sh: line 19: kill: (23421) - No such process
| SailfishOS 2.0.4.13 (Fiskarsinjoki) (armv7hl)
'---
[nemo@Sailfish ~]$ devel-su
Password:
i try install apk using command the result:
method return time=1488919385.531420 sender=:1.122 -> destination=:1.172 serial=8 reply_serial=2
boolean true
how to install the rpm package :
devel-su
pkcon refresh
pkcon install-local aliendalvik-1.0.46-1.armv7hl.rpm
mv platform_extraenvsetup.sh /opt/alien/system/script/"
/opt/alien/system/script/
chmod +x platform_extraenvsetup.sh
systemctl start aliendalvik
reboot >
after restart alien dalvik start and back to stop automatically
i can't run any apk >>>> :rolleyes:
SailfishOS 2.0.4.13 (Fiskarsinjoki) (armv7hl)
i try to install Alien Dalvik with zypper no error message through install porcess in terminal
the service not start for alien dalvik :
[root@Sailfish nemo]# systemctl status aliendalvik.service
aliendalvik.service - Myriad Alien Dalvik
Loaded: loaded (/lib/systemd/system/aliendalvik.service; enabled)
Active: failed (Result: start-limit) since Wed 2017-03-15 21:24:13 AST; 22s ago
Process: 5550 ExecStopPost=/system/script/alien_ui_pid_reporter.sh stop (code=exited, status=0/SUCCESS)
Process: 5539 ExecStopPost=/system/script/alien_notification_cleaner.sh (code=exited, status=0/SUCCESS)
Process: 5045 ExecStartPost=/system/script/alien_ui_pid_reporter.sh start (code=exited, status=0/SUCCESS)
Process: 5044 ExecStart=/system/script/start_alien.sh (code=exited, status=0/SUCCESS)
Process: 5041 ExecStartPre=/system/script/alien_start_guard.sh (code=exited, status=0/SUCCESS)
Main PID: 5044 (code=exited, status=0/SUCCESS)
Mar 15 21:24:13 Sailfish systemd[1]: aliendalvik.service holdoff time over,...t.
Mar 15 21:24:13 Sailfish systemd[1]: aliendalvik.service start request repe...t.
Mar 15 21:24:13 Sailfish systemd[1]: Unit aliendalvik.service entered faile...e.
Hint: Some lines were ellipsized, use -l to show in full.
is there another way to make it working in these version
SailfishOS 2.0.4.13 maybe i miss something ?!
matemana
2017-03-17, 17:04
I installed SFOS 2.0.2.51 base CM12.1 on Nexus 4 and aliendalvik has the same issues as in Nexus 5 with base CM12.1. Youtube does not work, video playback does not work, Google chrome does not work, google assistant does not work. But Camera does work! That's nice, but without video playback it's useless. Firefox crashes. It seems when it needs GPU acceleration it crashes.
So we are screwed if we change base for Nexus 4. We no longer will be able to use aliendalvik until it's rebase. I can't do that :(
How can I launch an Android program from terminal?
I've played with apkd-launcher, but I don't understand what to do.
"Usage: apkd-launcher <apkfile> <package>/<activity>"
How can I find which activity to request?
The program I'm trying to run is XServer-XSDL, installed from Google Play.
The .apk file appears to be located at /opt/alien/data/app/x.org.server-1.apk
Try:
apkd-launcher /opt/alien/data/app/x.org.server-1.apk x.org.server/x.org.server.MainActivity
As I can see f.e. the VirusTotal lists app's activities:
https://virustotal.com/pl/file/69e015154e115465a27495a624a3445544886ba05fd16068a7 3738a0c19848e2/analysis/
Is there any way to get root inside aliendalvik on the Nexus 4?
so why you installed sailfishos if you need android applications to use which requires root?
No necessity, just mere curiosity. I messed around with a few things including tinkering with your package for the Jolla 1, and manually installing supersu. I even tried kingroot (eww...). However, I haven't been able to get anywhere.
The main thing I wanted was the f-droid privileged extension to ease auto-updating. However, i was able to install it without rooting alien by copying the apk to /opt/alien/system/priv-app, changing permissions, and using apkd-install.
matemana
2017-05-19, 20:31
No necessity, just mere curiosity. I messed around with a few things including tinkering with your package for the Jolla 1, and manually installing supersu. I even tried kingroot (eww...). However, I haven't been able to get anywhere.
The main thing I wanted was the f-droid privileged extension to ease auto-updating. However, i was able to install it without rooting alien by copying the apk to /opt/alien/system/priv-app, changing permissions, and using apkd-install.
try this package, but before you do backup this file '/system/bin/su'
https://mega.nz/#!0c1DHQhD!wZA8RS7hmU_4cEam9VEYSIs_mEOWiOYIGrAVAa3 3yhQ
I was trying yo get root in my aliendalvik. I was able to run kernel manager (which needs root) with root priviledges. Although root checkers said device was not rooted, But actual programs that need root did work.
try this package, but before you do backup this file '/system/bin/su'
https://mega.nz/#!0c1DHQhD!wZA8RS7hmU_4cEam9VEYSIs_mEOWiOYIGrAVAa3 3yhQ
I was trying yo get root in my aliendalvik. I was able to run kernel manager (which needs root) with root priviledges. Although root checkers said device was not rooted, But actual programs that need root did work.
i have try root package from openstore but i don't no that alien dalvik that can't detected status if the device rooted or not .
that strange, i try your package and see what happen .:D
Veraendert
2017-07-02, 19:55
Sorry, i didn't find a better thread than this one. Running Android apps on Sailfish might be fine, it would be even better to have a newer Sailfish base. So- could anyone help this guy porting version 2.1 to Mako ?
https://forum.xda-developers.com/nexus-4/development/rom-sailfish-os-community-port-t2969823/page83
try this package, but before you do backup this file '/system/bin/su'
https://mega.nz/#!0c1DHQhD!wZA8RS7hmU_4cEam9VEYSIs_mEOWiOYIGrAVAa3 3yhQ
I was trying yo get root in my aliendalvik. I was able to run kernel manager (which needs root) with root priviledges. Although root checkers said device was not rooted, But actual programs that need root did work.
I'm not successful installing this root package. Error msg as below.
Installation of alienroot-0.1-1 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: installing package alienroot-0.1-1.armv7hl needs 8KB on the /system filesystem
I'm installing on Nexus 5 running CM12.1 SFOS 2.0.4.13
Appreciate if someone can guide me thru. Thanks.
I installed SFOS 2.0.2.51 base CM12.1 on Nexus 4 and aliendalvik has the same issues as in Nexus 5 with base CM12.1. Youtube does not work, video playback does not work, Google chrome does not work, google assistant does not work. But Camera does work! That's nice, but without video playback it's useless. Firefox crashes. It seems when it needs GPU acceleration it crashes.
So we are screwed if we change base for Nexus 4. We no longer will be able to use aliendalvik until it's rebase. I can't do that :(
Did you already try to get AD working on N5 with the CM13 base?
Did you already try to get AD working on N5 with the CM13 base?
Not CM13 base but AD working well on N5 with CM12 base. There're something not working as mention before (ie. Video playback, youtube) but I can live with that.
Now I want to root AD to get some awesome apps running.
Sent from my Nexus 5 using Tapatalk
Hi,
Can I ask if I use this file to install alien dalvik on Xiaomi Redmi Note 4 with SailfishOS ?
Just find out if aliendalvik is successfully installed and can be start, android_storage will be created under /home/nemo/ with all the essential folders like Document, Download, etc plus priv-app folder. This is the case for N5 with CM11 SFOS 1.1.9.28 and CM12 SFOS 2.0.4.13.
If aliendalvik is installed and cannot be start, android_storage will still be created but just with priv-app folder, missing all the other folders.
This is the case for OnePlusX CM12 SFOS 2.0.5.6 and N5 CM13 SFOS 2.1.0.10
Hi @matemana! Thanks for your very good work with ad! I ask you if you can update ad (alienD 1.0.63) with the new one released for the Jolla c! I see it in New sailfish 2.1.1.23 update.
Thanks
Ps: I have nexus 5 and xiaomi mi4 with sailfishos
Has anyone found a solution for the INOI R7?
matemana
2017-07-28, 06:23
Hi @matemana! Thanks for your very good work with ad! I ask you if you can update ad (alienD 1.0.63) with the new one released for the Jolla c! I see it in New sailfish 2.1.1.23 update.
Thanks
Ps: I have nexus 5 and xiaomi mi4 with sailfishos
Can you check if ad is rebased or does it still use android KK as it's base? If it's not changed i think there is no point in updating ad.
If it will be leaked on any forums i will look into it no matter it's rebased or not. Hopefully it will fix some issues what we have on nexus 5 and other devices with base other then CM11
matemana
2017-07-28, 06:25
Hi,
Can I ask if I use this file to install alien dalvik on Xiaomi Redmi Note 4 with SailfishOS ?
You can try but i can't gie you guarantee that it will work. which cm base does that device use?
For my understanding is Aliendalvik Kernel depended.
I have Aliendalvik 1.0.48 from the Touring Phone compiled for Kernel 3.4.0
And I have the new Aliendalvik 1.0.63 from the Jolla C compiled for Kernel 3.10
Is there an option to upgrade the components of the 3.4.0-compiled AlienDalvik with the newer updates from the 1.0.63 Package ?
Or is it only my ill phantasy? ;-)
matemana
2017-07-28, 11:41
I have Aliendalvik 1.0.48 from the Touring Phone compiled for Kernel 3.4.0
And I have the new Aliendalvik 1.0.63 from the Jolla C compiled for Kernel 3.10
Can you please share with those packages?
@matemana
Hi thanks for your reply. I haven't got Jolla c or Jolla phone I can't test ad...
I hope for a User "donation" of that files ;)
Can you please share with those packages?
Yes, i can. Please send me an email to explit(at)mailbox.org
I will send you the link
matemana
2017-07-28, 19:48
Yes, i can. Please send me an email to explit(at)mailbox.org
I will send you the link
I have sent you an email
Hi I'm interested about the news on alien d! I like to have it updated on nexus 5 ;)
Something new about aliendalvik, I have SailfishOS 2.1.3.7 on electrablue kernel can I install this file?
I'm also interested for using it on the updated Sailfish image on Nexus 5. @matemana can you help us and give a try with the new files? :)
matemana
2017-11-14, 07:52
I'm also interested for using it on the updated Sailfish image on Nexus 5. @matemana can you help us and give a try with the new files? :)
I was a little off these things. I got new job and have to learn some new things. Also my nexus 5 was damaged and i repaired it yesterday. I'll try when i'll have a time and report back here.
I was a little off these things. I got new job and have to learn some new things. Also my nexus 5 was damaged and i repaired it yesterday. I'll try when i'll have a time and report back here.
Congratulation on the new job!
Hope to see more development from you soon.
I was a little off these things. I got new job and have to learn some new things. Also my nexus 5 was damaged and i repaired it yesterday. I'll try when i'll have a time and report back here.
Congratulations, but what about idea port alien dalvik for SailfishOS on Xiaomi Redmi Note 4 (Mido)?
taalojarvi
2017-11-20, 07:02
For my understanding is Aliendalvik Kernel depended.
I have Aliendalvik 1.0.48 from the Touring Phone compiled for Kernel 3.4.0
And I have the new Aliendalvik 1.0.63 from the Jolla C compiled for Kernel 3.10
Is there an option to upgrade the components of the 3.4.0-compiled AlienDalvik with the newer updates from the 1.0.63 Package ?
Or is it only my ill phantasy? ;-)
Can you make those packages public? ( or DM me with a link ? )
localhorst
2018-04-22, 06:47
I have a Nexus 5x and I use Sailfish OS 2.1.3.7. Is there a way to use AlienDalvik on this device? :)
localhorst
2018-04-22, 06:50
I have a Nexus 5x and I use Sailfish OS 2.1.3.7. Is there a way to use AlienDalvik on this device?
Hi guys.
Is anyone there who run dalvik on kernel 3.18? I have Xiaomi Redmi 5+ with SFOS 2.1.4.14.
I'm using AD 1.0.83 from Xperia X and can't get this working.
My errors:
[root@Sailfish nemo]# systemctl status aliendalvik -l
● aliendalvik.service - Myriad Alien Dalvik
Loaded: loaded (/lib/systemd/system/aliendalvik.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit) since Wed 2018-05-16 14:08:44 CEST; 1s ago
Process: 10955 ExecStopPost=/system/script/alien_ui_pid_reporter.sh stop (code=exited, status=0/SUCCESS)
Process: 10943 ExecStopPost=/system/script/alien_notification_cleaner.sh (code=exited, status=0/SUCCESS)
Process: 10836 ExecStart=/system/script/start_alien.sh (code=exited, status=0/SUCCESS)
Process: 10832 ExecStartPre=/system/script/alien_start_guard.sh (code=exited, status=0/SUCCESS)
Main PID: 10836 (code=exited, status=0/SUCCESS)
May 16 14:08:44 Sailfish systemd[1]: aliendalvik.service: Service hold-off time over, scheduling restart.
May 16 14:08:44 Sailfish systemd[1]: aliendalvik.service: Start request repeated too quickly.
May 16 14:08:44 Sailfish systemd[1]: aliendalvik.service: Unit entered failed state.
May 16 14:08:44 Sailfish systemd[1]: aliendalvik.service: Failed with result 'start-limit'.
i try to using old image " SailfishOS 1.1.1.27" with OPO
my target to using cm11 not cm12 with AD but i face this problem
[root@Jolla Desktop]# pkcon install apkd-android-settings
Command failed: This tool could not find any available package: could not find apkd-android-settings
there error when i try to start alien dalvik . can anyone share link for "apkd-android-settings" i want to install it locally i want to try AD using CM11 base.:)
smatkovi
2018-08-19, 22:16
i got it running on oneplus x by putting /opt/alien/ before the call of alien_settings_server and alien_service_manager in their scripts: alien_settings_server.sh and alien_service_manager.sh in /opt/alien/system/script/
smatkovi
2018-08-20, 00:09
hmm... but unfortunately i cannot install any apk
Is it possible to run AlienDalvik on sony xperia Z3 tablet compact? Does anyone have platform_extraenvsetup.sh for this device?
brodolfo
2018-11-21, 15:01
I have sent you an email
have you a compiled version of aliendalvik of turing phone? do you know if it works on oneplus one?
matemana
2018-11-22, 07:55
have you a compiled version of aliendalvik of turing phone? do you know if it works on oneplus one?
I have not compiled aliendalvik ever. I just changed some files and rebuild whole package. If there were sources of it it would be much easier to make aliendalvik run on different devices. I did not have nexus phones for months and yesterday i got my nexus 4 from ebay. Turns out someone has made SF run on CM13 base on nexus 4 i'll try it and i'll check if AD works there.
I haven't myself tried(I don't have Nexus4) but what I have heard it works? :)
Link: http://4pda.ru/forum/index.php?showtopic=559889&st=700#entry57516932
Google Translated:
Hello,
I have sailfishos-hammerhead-release-2.0.1.11-cm121-alpha1 on my nexus 5.
Is AD will work with this method? CM 11 and CM 12.1 the same to install AD?
Thanks in advance
vBulletin® v3.8.8, Copyright ©2000-2025, vBulletin Solutions, Inc.