Reply
Thread Tools
Posts: 288 | Thanked: 1,103 times | Joined on Jul 2014
#261
I think it would be best if you enabled the services in init.rc as listed here http://piratepad.net/lYkoEab7p1 rather than copy the modified init.rc directly as sometimes it bootloops.

Now I'm properly gone till the 27th. Although I may be able to lurk around now and then.
 

The Following 3 Users Say Thank You to nh1402 For This Useful Post:
Posts: 55 | Thanked: 34 times | Joined on Jun 2014
#262
Tried to install a keyboard prediction. This is what I get
Code:
root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                               
Command failed: This tool could not find any available package: could not find jolla-xt9-de
There isn't much that I can go wrong.. Copy and paste.
 
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#263
i have now implemented unix domain sockets to share the file descriptors of the buffer_handle_t but for some reason gralloc->lock does not want to work in the renderer app on the transfered buffer handle, any ideas?
(testing on my jolla phone with a small test application which creates a buffer and sends the handle to the sfdroid application

EDIT: after reviewing the comments in the android source i noticed that i missed a call to gralloc->registerBuffer. sharing the buffer handle works now

Last edited by liar; 2015-12-07 at 17:28.
 

The Following User Says Thank You to liar For This Useful Post:
Posts: 1,746 | Thanked: 1,832 times | Joined on Dec 2010
#264
Originally Posted by asa View Post
Tried to install a keyboard prediction. This is what I get
Code:
root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                               
Command failed: This tool could not find any available package: could not find jolla-xt9-de
There isn't much that I can go wrong.. Copy and paste.
you need to go steal the package from your Jolla since its properietary
 
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#265
Originally Posted by asa View Post
Tried to install a keyboard prediction. This is what I get
Code:
root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                               
Command failed: This tool could not find any available package: could not find jolla-xt9-de
There isn't much that I can go wrong.. Copy and paste.
It's just you don't need the "-de" package, the first one is enough as far as I remember.
 

The Following 3 Users Say Thank You to romu For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#266
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

(almost) completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences

Last edited by liar; 2015-12-09 at 09:04.
 

The Following 7 Users Say Thank You to liar For This Useful Post:
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#267
Originally Posted by liar View Post
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences
The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed
 

The Following 2 Users Say Thank You to BluesLee For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#268
Originally Posted by BluesLee View Post
The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed
The first issue is that the CM image does not support your bootloader. I have to add your bootloader to the allowed ones (it should work with any bootloader anyways, the original CM image has no differences in startup code but simply has more bootloaders in the allowed bootloader section). I will update this sometime during the day.
EDIT: It simply allows any bootloader.

The second issue is that some environment variables are not set. How do you start sfdroid (ssh, terminal-app,...)? Try starting it as normal user (it does not need root permissions anyway).

I have updated the piratepad to include the sdl2 installation.

EDIT: I have adjusted the bootloader check, see http://piratepad.net/FtZYtm4tDY

Last edited by liar; 2015-12-09 at 16:16.
 

The Following 4 Users Say Thank You to liar For This Useful Post:
Posts: 18 | Thanked: 6 times | Joined on Jan 2014
#269
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?
 
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#270
Originally Posted by breiti_oi View Post
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?
If you launch sfdroid a window should appear in SailfishOS with the screen contents of android drawn inside that window. If you want to get out of it, simply close sfdroid and kill surfaceflinger, zygote, vold and netd, media and keystore, killing those processes is optional but if you do and relaunch sfdroid it will not render anything anymore.

EDIT: Also be aware: these services are started during boot, if you want to disable them again apply nh1402's init.rc tutorial in reverse.

Last edited by liar; 2015-12-09 at 19:28.
 

The Following 5 Users Say Thank You to liar For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:14.