maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   ApkEnv support module development (https://talk.maemo.org/showthread.php?t=88250)

Akkumaru 2013-05-19 04:35

liar,can you do a video? ;) hope you are not what your username is..

thedead1440 2013-05-19 05:26

Re: ApkEnv support module development
 
Quote:

Originally Posted by Akkumaru (Post 1344727)
liar,can you do a video? ;) hope you are not what your username is..

He has contributed previously as well as developing the N64 emulator for us so just be patient for him to push his changes to thp ;)

liar 2013-05-23 20:13

Re: ApkEnv support module development
 
I've sent in a pull request. i hope there isn't much i need to change before it goes in :)

liar 2013-05-27 22:49

Re: ApkEnv support module development
 
EDIT:
i have managed to launch dalvikvm on my nokia n9 using a few hacks here and there, but most importantly: i can do this without openmode (i am running inception, but it should be possible in a standard installation too)
i am able to execute basic jar files now, and i've managed to initialize some internal stuff, like preloading classes:
...preloaded 2297 classes in 5637ms.

i still cannot launch activities though because i am lacking the knowledge on how to use some of the internal android classes.

what i can do so far is:
load the dalvikvm
initialize native methods (located in libandroid_runtime.so) and redirect then to harmattan native calls (all functions which apkenv supports until now and a few more)
preload some android classes
> until here everything is going the way it's supposed to be but thats it
i've tried manually loading activities from an apk file using dalvik.system.PathClassLoader and it works, i can call methods, but most of them fail (java exceptions) because this is not the way activities are supposed to be loaded

if somebody knows how it works please let me know
i am currently experimenting with ActivityThread

Ta76eem 2013-06-01 08:06

Re: ApkEnv support module development
 
I wrote this command :
Code:

apkenv --install /home/user/MyDocs/Apkenv/wogoo.apk
how to uninstall the game ?

Just486 2013-06-01 14:11

Re: ApkEnv support module development
 
Liar, can you please share further information about how to get Plants vs. Zombies work?
It uses an external data folder on Android. Where should we copy it?
Do we need anything else to launch the game?
Also, which version of the game are you able to execute?
(Or is the Humble Bundle version of PvZ completely different from other versions?)
Please give us, users some hint about it :)

liar 2013-06-01 15:39

Re: ApkEnv support module development
 
Quote:

Originally Posted by Just486 (Post 1348629)
Liar, can you please share further information about how to get Plants vs. Zombies work?
It uses an external data folder on Android. Where should we copy it?
Do we need anything else to launch the game?
Also, which version of the game are you able to execute?
(Or is the Humble Bundle version of PvZ completely different from other versions?)
Please give us, users some hint about it :)

files go to: /home/user/.apkenv/<pvzapkfilename>
i've used version 1.3.16 iirc

Just486 2013-06-01 17:10

Re: ApkEnv support module development
 
Thanky.
I tried various versions however, all of them skipping marmalade.apkenv.so and using the generic module instead.
I have
- marmalade.apkenv.so in /opt/apkenv/modules
- "files" folder in /home/user/.apkenv/pvz-test.apk
- pvz-test.apk (version 1.3.16, and others) in /MyDocs/Apkenv

and launching with code:

apkenv /home/user/MyDocs/Apkenv/pvz-test.apk

All I get is a "screenshot" of the last launched page (the terminal), and the log in terminal, claiming marmalade.apkenv.so (2) is loaded, but generic.apkenv.so (2) is being used.

Do you have any idea what am I doing wrong? (I also have the openframeworks.apkenv.so for Super Hexagon in /modules folder, if that counts.)

EDIT: If I remove generic.apkenv.so, it loads marmalade and gives the following info:
late-intializing errorcheck mutex (x3)
Segmentation fault

liar 2013-06-01 18:19

Re: ApkEnv support module development
 
that probably means you're missing the data files
if pvz-test.apk is your apkfilename then they have to be in:
/home/user/.apkenv/pvz-test.apk/
(don't forget the dot)

bandora 2013-06-01 18:24

Re: ApkEnv support module development
 
liar I suggeat PMing thp and collaborate with him.. He's the one to ask about this stuff.. Also this is exciting news.. Very exciting news!!! I am willing to donate some money for this to succeed.. I'm sure a lot of other people would do the same too! Best of luck..


All times are GMT. The time now is 12:16.

vBulletin® Version 3.8.8