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)

liar 2013-04-09 23:53

Re: ApkEnv support module development
 
http://www.youtube.com/watch?v=Mc_09JYd9hM
works :)
(sound was cheated by using mplayer ;), this still needs a bit of work)

v0id 2013-04-10 06:39

Re: ApkEnv support module development
 
awesome!!!!!

b-rockSA 2013-04-14 18:59

Excited!

-via Maemo Talk app

Raim 2013-04-14 21:01

Re: ApkEnv support module development
 
Quote:

Originally Posted by thp (Post 1307010)
You mean that the +/- buttons are used for volume control? Should be possible by setting a resource application class. Patches welcome.

I gave it a shot and this was actually very easy to implement following to the Resource Policy docs. You only need to place a single file at /usr/share/policy/etc/syspart.conf.d/apkenv.conf with the following contents:

Code:

[classify gaming]
/usr/bin/apkenv

Afterwards, everything started with apkenv is handled as a game and the +/- keys handle the volume when it is in the foreground.

I sent a pull request to Thomas' repository on github.

nice_2000 2013-04-17 06:44

Re: ApkEnv support module development
 
Sky Force Reloaded:
Code:

Not supported yet, but found JNI methods:
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeLoadPanel
Java_pl_idreams_skyforcereloaded_game_nativeTouch
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeInit
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeInitPathForSave
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSave
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativePause
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeDone
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetAchievement
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetLeaderboard
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetScore
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeCheckURL
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeClearURL
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeCheckVibraDuration
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSetAccelerometer
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeScreenLightState
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeMenuMode
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeProcess
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSoundInit
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSoundUpdate

Which functions must be ported to run the game?
there are no nativeRender and nativeResize functions.

Java_pl_idreams_skyforcereloaded_MySurfaceView_nat iveInit:
Code:

private static native void nativeInit(ByteBuffer paramByteBuffer, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
What is this? :confused:
Sorry for my bad english :|

liar 2013-04-17 19:25

Re: ApkEnv support module development
 
Quote:

Originally Posted by nice_2000 (Post 1336634)
Sky Force Reloaded:
Code:

Not supported yet, but found JNI methods:
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeLoadPanel
Java_pl_idreams_skyforcereloaded_game_nativeTouch
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeInit
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeInitPathForSave
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSave
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativePause
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeDone
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetAchievement
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetLeaderboard
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeGetScore
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeCheckURL
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeClearURL
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeCheckVibraDuration
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSetAccelerometer
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeScreenLightState
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeMenuMode
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeProcess
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSoundInit
Java_pl_idreams_skyforcereloaded_MySurfaceView_nativeSoundUpdate

Which functions must be ported to run the game?
there are no nativeRender and nativeResize functions.

Java_pl_idreams_skyforcereloaded_MySurfaceView_nat iveInit:
Code:

private static native void nativeInit(ByteBuffer paramByteBuffer, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
What is this? :confused:
Sorry for my bad english :|

search the code where nativeInit is called and look how the bytebuffer is filled (maybe look up ByteBuffer if you don't know what it is, i found: http://docs.oracle.com/javase/6/docs...yteBuffer.html)
you should also find there what paramInt2-5 should be, probably screen size and stuff...
if there is no update function look up in the code how the game's main loop works (i'd first look at nativeProcess, that seems suspicious)

nice_2000 2013-04-18 06:15

Re: ApkEnv support module development
 
@liar
Where is the code?
in Java Decompiler there is only one line:
Code:

private static native void nativeInit(ByteBuffer paramByteBuffer, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);

Mric 2013-04-18 12:34

Re: ApkEnv support module development
 
Hey everyone,
I'm writing this little message to encourage the developers working on apkenv. I truly find it incredible how some Android applications can run (very smoothly) on our beloved N9 and N900. It's like having the best of two worlds ...
I have to do some exams in the next few weeks, but when I have free time I will definitely try to help this project.
Lets keep up the incredible work :)

Ta76eem 2013-04-20 15:56

Re: ApkEnv support module development
 
can Subway Surfers added ??

notaz 2013-04-21 12:35

Re: ApkEnv support module development
 
There is a pull request for SuperHexagon waiting for several days now. I've also fixed World of Goo, but waiting for thp to handle pending pull requests first, hopefully he can handle them soon.


All times are GMT. The time now is 08:09.

vBulletin® Version 3.8.8