Reply
Thread Tools
Posts: 78 | Thanked: 57 times | Joined on Jun 2012 @ Hungary
#81
Originally Posted by xes View Post
I have just built the latest apkenv snapshot with all the new modules for fremantle... (here attached)

All is working except WOG that does not starts at all giving segfault..

Thanks to all and... Happy Christmas!!!
Nokia N900.

Fruit ninja works, background music too.

AB Rio 1.4.4 segmentation fault
AB Space 1.3 black screen, kernel crash, only taking out the battery helped.
What's wrong? (or please PM me with the right APKs)
 

The Following User Says Thank You to quailstorm For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#82
Just a quick overview of what I have been doing.

I noticed that apkenv doesn't take into account the fact that some games may have multiple libraries in the lib folder and just loads the first of them and tries to bind the modules to it. Unfortunately there is no easy fix for this, as the main library is not listed anywhere and can't be detected too (JNI_OnLoad for instance can be sometimes found in more than one of the libs in the folder).

So taking this into account, I've added a possibility for a module to specify which library it wants to use (partial match so you can skip .so). Also changed the folder match to partial, as there are variations.

There is another road block - when the libraries in the lib folder are several, they are referencing each other, next I'll work on mechanism to extract them all somewhere (though it can be slow as I don't have much time), currently you can just extract them in the bionic folder.

Third issue I've noticed - some libraries only export JNI_OnLoad and Unload and bind the native functionality by hand in JNI_OnLoad. This prevents the module to bind directly to them in try_init. I'm open to suggestions how this can be detected and made automatic.

My fork is here:
https://github.com/bundyo/apkenv
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 8 Users Say Thank You to Bundyo For This Useful Post:
Posts: 203 | Thanked: 125 times | Joined on Jan 2011
#83
Originally Posted by xes View Post
I have just built the latest apkenv snapshot with all the new modules for fremantle... (here attached)

All is working except WOG that does not starts at all giving segfault..

Thanks to all and... Happy Christmas!!!

Feedback for your work:
Angry Birds, Angry Birds seasons,Amazing Alex works GREAT
Fruit ninja Works with music but ingame is little bit slow
Angry Birds Rio, Angry Birds space not working (stucks the phone)
Cut the rope segmentation fault after loading ends

Also using apkenv --install /.....
creates .desktop to wrong location (/home/user/.local/share/applications but must be /home/user/.local/share/applications/hildon). Btw move it to the correct location still not working.

I upload an example of Amazing Alex for a working .desktop (using script method)
Just edit the files as you want. The examples works if
1)apk location and name: /home/user/MyDocs/ANDROID/"Amazing Alex.apk"
2) copy Alex.sh to /opt/apkenv
3) copy Amazing_Alex.png to home/user/.local/share/icons/hicolor/64x64/apps
4) copy Amazing Alex.desktop to home/user/.local/share/applications/hildon
 

The Following User Says Thank You to hadjistyllis For This Useful Post:
Posts: 53 | Thanked: 104 times | Joined on Jan 2011 @ Veska, Czech Rep.
#84
Originally Posted by hadjistyllis View Post
...
Angry Birds Rio, Angry Birds space not working (stucks the phone)
...
Same here on my N900, with several APK versions. It has some memory leak, because after launching, it just fills up all available memory and swap space and after while the phone reboots.

Originally Posted by hadjistyllis View Post
...
Also using apkenv --install /.....
creates .desktop to wrong location (/home/user/.local/share/applications but must be /home/user/.local/share/applications/hildon). Btw move it to the correct location still not working.
...
This function seems to be for Harmattan, so it assumes its file locations and executable commands. To make .desktop file working for N900, just move it to ./hildon subdirectory and on the Exec= line remove "invoker --single-instance --type=e " part of command, so ApkEnv will be called directly.
 
Posts: 203 | Thanked: 125 times | Joined on Jan 2011
#85
Originally Posted by jamar View Post
Same here on my N900, with several APK versions. It has some memory leak, because after launching, it just fills up all available memory and swap space and after while the phone reboots.


This function seems to be for Harmattan, so it assumes its file locations and executable commands. To make .desktop file working for N900, just move it to ./hildon subdirectory and on the Exec= line remove "invoker --single-instance --type=e " part of command, so ApkEnv will be called directly.
already tested and not working. Only script method works for me
 
Posts: 53 | Thanked: 104 times | Joined on Jan 2011 @ Veska, Czech Rep.
#86
Originally Posted by hadjistyllis View Post
already tested and not working. Only script method works for me
But should be, at least it works for me. Here's content of my .desktop file for Angry Birds:
Code:
[Desktop Entry]
Name=Angry Birds 2.3.0
Exec=/opt/apkenv/bin/apkenv /home/user/MyDocs/APKs/Angry-Birds-2.3.0.apk
Icon=/home/user/.apkenv/Angry-Birds-2.3.0.apk.png
Terminal=false
Type=Application
Categories=Game;
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#87
My N900 was feeling the need of a new apkenv build...
For anyone who wants try, here it is!
It includes the new modules present in the bundyo's repo:

angrybirds.apkenv.so
badpiggies.apkenv.so
cuttherope.apkenv.so
fruitninja.apkenv.so
generic.apkenv.so
perry.apkenv.so
swords.apkenv.so
trg2.apkenv.so
worldofgoo.apkenv.so
worms.apkenv.so

For me, worldofgoo still segfaults..
@bundyo: Do you have any suggestion?
Attached Files
File Type: gz apkenv_bundyo_20130107_N900_Xes.tar.gz (84.2 KB, 158 views)

Last edited by xes; 2013-01-07 at 23:37.
 

The Following 3 Users Say Thank You to xes For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#88
Nope Didn't touch it. Also please note that none of my modules actually works.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
B-RUNO's Avatar
Posts: 124 | Thanked: 125 times | Joined on Sep 2010
#89
Originally Posted by xes View Post
My N900 was feeling the need of a new apkenv build...
For anyone who wants try, here it is!
It includes the new modules present in the bundyo's repo:

angrybirds.apkenv.so
badpiggies.apkenv.so
cuttherope.apkenv.so
fruitninja.apkenv.so
generic.apkenv.so
perry.apkenv.so
swords.apkenv.so
trg2.apkenv.so
worldofgoo.apkenv.so
worms.apkenv.so

For me, worldofgoo still segfaults..
@bundyo: Do you have any suggestion?
Hey xes are you able to build with OpenGL ES 2.0 support under fremantle scratchbox?
I've been trying to build but no success, I was just wondering if there is an issue for fremantle or if it's me missing something
__________________
Proud owner of a Nokia N900
If you like my post hit the Thanks button!
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#90
@B-RUNO even in N9 GLES2 Angry Birds not working. Need other modules for it.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Reply

Tags
apkenv

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:46.