maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] apkenv (N900, N950, N9) (https://talk.maemo.org/showthread.php?t=87496)

Sniper_swe 2012-10-22 09:31

Re: [Announce] apkenv (N900, N950, N9)
 
I'm on open mode and if i run it as user the game freeze at loading image. As root i get passed it and are able to play game. Zooming seem to work.

edit:fruit ninja runs both as user and root.

vicscraft 2012-10-22 09:40

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by thedead1440 (Post 1283776)
If you are using open mode, root or user won't make a difference...Running as root will allow you to run things that can only be run as user...

AB space and rio hang on user during loading... Terminal says failed to open ....settings.lua for writing .... Dont have this error on root... And im using openmode.

thedead1440 2012-10-22 09:42

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by thedead1440 (Post 1283776)
Running as root will allow you to run things that can only be run as user...

My post says if you have to run something as user you can run it as root too...If it requires root you can only run as root...

So your posts are the same as what I am saying :D

vicscraft 2012-10-22 09:45

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Sniper_swe (Post 1283784)
I'm on open mode and if i run it as user the game freeze at loading image. As root i get passed it and are able to play game. Zooming seem to work.

edit:fruit ninja runs both as user and root.

would you mind if you could verify having /dev/sequencer or /dev/snd/seq file or folder?

Kozzi 2012-10-22 09:45

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Sniper_swe (Post 1283784)
I'm on open mode and if i run it as user the game freeze at loading image. As root i get passed it and are able to play game. Zooming seem to work.

edit:fruit ninja runs both as user and root.

Please edit the wiki, what game supports multitouch using apkenv. Please do not hesitate in adding more than what is written in the wiki :)


I'm thinking of adding a desktop file to homescreen, anyone know of a right way to execute this in the Exec part ? I quickly made an icon for Fruit Ninja:
http://i.imgur.com/TmvG4.png

Wreck 2012-10-22 10:14

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Kozzi (Post 1283797)
I'm thinking of adding a desktop file to homescreen, anyone know of a right way to execute this in the Exec part ? I quickly made an icon for Fruit Ninja

I tried:

Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=FruitNinja
Exec=/usr/bin/osso-xterm ./apkenv /home/user/apkenv/Fruit.apk
Icon=   
#X-Window-Icon=timerwidget
X-Window-Icon=   
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

Didn't seem to work for me. Might need to cd to the correct path and then execute apkenv?

A .sh script like:

Code:

/usr/bin/osso-xterm 'cd /home/user/apkenv' &
/usr/bin/osso-xterm './apkenv /home/user/apkenv/Fruit.apk' &

But this will start up two xterminals right? Don't have my phone near me so can't test it.

FOR N900

thedead1440 2012-10-22 10:20

Re: [Announce] apkenv (N900, N950, N9)
 
Recently N9QTweak has changed to allow opening it without entering the root password...

The Exec you may be interested in:

Code:

Exec=invoker --splash=/opt/N9QTweak/Splashs/splash.orig.png --type=e /usr/bin/meego-terminal -n -e /opt/N9QTweak/START
I think you need to use the bold part with the /opt/ onwards being replaced by ./apkenv

Not sure but you can give it a try ;)


Edit: The above is for harmattan...

ibrakalifa 2012-10-22 10:22

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Sniper_swe (Post 1283767)
@ibra.
are you running it as root or user?:)

as user, :/

but still no luck with fruitninja, T_T
and on normal mode, no inception too, xD

myname24 2012-10-22 10:29

Re: [Announce] apkenv (N900, N950, N9)
 
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=false
Name=Fruit Ninja
Exec= ./apkenv Fruit_Ninja_v1.5.4_2.apk
Icon=/home/user/FruitNinja.png
#X-Window-Icon=timerwidget
X-Window-Icon=   
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

This worked for me

edit : i put fruit ninja icon in /home/user and i disabled show terminal :)

Artyom 2012-10-22 10:55

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by coderus (Post 1283696)
and i'm in openmode. someone played Fruit Ninja at stock firmware?

I did actually. There is no need for Open mode or Inception. you just have o be root.

correction: you also don't need to be root ro open fruit ninja.

Kozzi 2012-10-22 10:59

Re: [Announce] apkenv (N900, N950, N9)
 
2 Attachment(s)
Quote:

Originally Posted by myname24 (Post 128382)
...
This worked for me

edit : i put fruit ninja icon in /home/user and i disabled show terminal :)


I have bin and libs files in /home/user/apkenv/ which will fail with *Missing library dependencies* if I try to execute in the desktop file using:
Exec= ./apkenv/apkenv /path-to-game/name.apk

Is the moving everything to /home/user/ the only way out :(

MFaroTusino 2012-10-22 11:10

Re: [Announce] apkenv (N900, N950, N9)
 
The wiki compatibility page is good, but not necessarily accurate. I have apks for certain apps that are listed as working, yet give me errors.

Clearly, it depends on which apk someone has

thedead1440 2012-10-22 11:18

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by MFaroTusino (Post 1283843)
The wiki compatibility page is good, but not necessarily accurate. I have apks for certain apps that are listed as working, yet give me errors.

Clearly, it depends on which apk someone has

For harmattan, angry birds space is working and fruit ninja is working for some and not working for others...

There is a version number field too for people to fill up (except for a few non-working entries it indeed is filled)...So I don't really see a huge inaccuracy...

Sniper_swe 2012-10-22 11:22

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by vicscraft (Post 1283796)
would you mind if you could verify having /dev/sequencer or /dev/snd/seq file or folder?


# cd /home/apkenv
/home/apkenv # ./apkenv.harmattan.2012-10-21b /home/a
pkenv/Fruit_Ninja_v1.5.4.apk
open /dev/sequencer or /dev/snd/seq: No such file ordirectory

still launches and woriing fine though:)

vicscraft 2012-10-22 11:25

Re: [Announce] apkenv (N900, N950, N9)
 
This works for me... though I have to enter my root password...
I borrowed it from here...
http://talk.maemo.org/showthread.php?t=80743

Code:

[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e devel-su -c "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>


coderus 2012-10-22 11:29

Re: [Announce] apkenv (N900, N950, N9)
 
nice icons, Rio please, Kozzi!

patlak 2012-10-22 11:35

Re: [Announce] apkenv (N900, N950, N9)
 
Just a thought, but is there any possibility of getting QNX/Playbook games to run under Harmattan and Fremantle?

coderus 2012-10-22 11:37

Re: [Announce] apkenv (N900, N950, N9)
 
i dont think so

Schturman 2012-10-22 11:39

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by vicscraft (Post 1283852)
This works for me... though I have to enter my root password...
I borrowed it from here...
http://talk.maemo.org/showthread.php?t=80743

Code:

[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e devel-su -c "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>


Remove "devel-su -c" and try again...

thedead1440 2012-10-22 11:42

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Schturman (Post 1283859)
Remove "devel-su -c" and try again...

doesn't work :(

vicscraft 2012-10-22 11:48

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by thedead1440 (Post 1283860)
doesn't work :(

+1 :(
10chars

Kozzi 2012-10-22 11:54

Re: [Announce] apkenv (N900, N950, N9)
 
2 Attachment(s)
Quote:

Originally Posted by coderus (Post 1283853)
nice icons, Rio please, Kozzi!

Here you go

Code:

[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>

and I put this in /home/user/.local/share/applications/
trying to run without success, Terminal complains:
"Could not find 'cd /home/user/apkenv/ && ./apkenv /path/game.apk', starting '/bin/sh' instead.

Schturman 2012-10-22 12:08

Re: [Announce] apkenv (N900, N950, N9)
 
Ok, try to add "devel-su user -c"

vicscraft 2012-10-22 12:14

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Schturman (Post 1283873)
Ok, try to add "devel-su user -c"

Thanks Schturman, but it only ask me user password instead of root... :(

vicscraft 2012-10-22 12:17

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Kozzi (Post 1283867)
Here you go

Code:

[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>

and I put this in /home/user/.local/share/applications/
trying to run without success, Terminal complains:
"Could not find 'cd /home/user/apkenv/ && ./apkenv /path/game.apk', starting '/bin/sh' instead.

Thanks for your icons...
try to put it on /usr/share/applications/
here's what I have...

Code:

[Desktop Entry]
Type=Application
Name=Angry Birds Rio
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e devel-su -c "cd /home/user/apkenv && ./apkenv abr.apk"
Icon=/home/user/apkenv/abr80.png

i put everything in /home/user/apkenv folder for simplicity...

mariusmssj 2012-10-22 12:21

Re: [Announce] apkenv (N900, N950, N9)
 
For those needing games

free apk Android games :)

Schturman 2012-10-22 12:23

Re: [Announce] apkenv (N900, N950, N9)
 
Ok this variation:
I mean:
Code:

Exec=/usr/bin/meego-terminal -n -e devel-su user -c "cd /home/user/apkenv && ./apkenv <apk file>"
If still not work, try to create script
Code:

#!/bin/sh

cd /home/user/apkenv && ./apkenv <apk file>

And run it:
Code:

Exec=/usr/bin/meego-terminal -n -e devel-su user -c "/path/to/script.sh"
Or
Code:

Exec=/usr/bin/meego-terminal -n -e /path/to/script.sh

Kozzi 2012-10-22 12:25

Re: [Announce] apkenv (N900, N950, N9)
 
Got it to work with the shell trick:

/home/user/apkenv/run.sh
Code:

#!/bin/sh
cd /home/user/apkenv/

case "$1" in
'fruitninja')
./apkenv /home/user/MyDocs/Downloads/Fruit_Ninja_v.1.5.4.apk;;
'angrybirdsspace')
./apkenv /home/user/MyDocs/Downloads/Angry_Birds_Space_Premium_1.0.1.apk;;
esac

fruit_ninja.desktop:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.5.4
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh fruitninja
Name=Fruit Ninja
Icon=/home/user/apkenv/Icons/fn80.png

angry_birds_space.desktop
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0.1
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh angrybirdsspace
Name=Angry Birds Space
Icon=/home/user/apkenv/Icons/abs80.png

place two desktop file into /usr/share/applications/
apk file to MyDocs/Downloads and now I can run them from homescreen without root access. My script didn't work before because I placed the desktop files into /home/user/.local/share/applications :D

yekmen 2012-10-22 12:36

Re: [Announce] apkenv (N900, N950, N9)
 
Thank guys !!

khan.orak 2012-10-22 12:37

Re: [Announce] apkenv (N900, N950, N9)
 
An solution to FRUIT NINJA segmentation error???
Pleaase :(

Sfiet_Konstantin 2012-10-22 12:47

Re: [Announce] apkenv (N900, N950, N9)
 
Guys, what about a .deb downloading the required files ? I'm gonna try to build this :)

And what about a GUI to launch apps as well ?

EDIT: alright, forgot to read thp's disclamer in deep. No package :(.

efion 2012-10-22 12:47

Re: [Announce] apkenv (N900, N950, N9)
 
anyone tried games with game data cache?
like this one?
http://android.mob.org/game/trainz_driver.html

coderus 2012-10-22 12:47

Re: [Announce] apkenv (N900, N950, N9)
 
i made some script for launching too. it's easier way =)

Kozzi, thanks for the icon =)

MFaroTusino 2012-10-22 12:58

Re: [Announce] apkenv (N900, N950, N9)
 
Successfully repackaged (& installed) Angry Birds Space. Complete with icon etc. I do not condone using illegally obtained apks, it was more a P.O.C for myself

coderus 2012-10-22 12:59

Re: [Announce] apkenv (N900, N950, N9)
 
Just wait for a while for more stable release and i'm sure thp will make game launcher.

MFaroTusino 2012-10-22 13:06

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by coderus (Post 1283901)
Just wait for a while for more stable release and i'm sure thp will make game launcher.

I know he can do it, I was doing it as a technique to learn

coderus 2012-10-22 13:10

Re: [Announce] apkenv (N900, N950, N9)
 
sorry this post not mentioned you =)

darkmoon078 2012-10-22 13:10

Re: [Announce] apkenv (N900, N950, N9)
 
Quote:

Originally Posted by Kozzi (Post 1283880)
Got it to work with the shell trick:

/home/user/apkenv/run.sh
Code:

#!/bin/sh
cd /home/user/apkenv/

case "$1" in
'fruitninja')
./apkenv /home/user/MyDocs/Downloads/Fruit_Ninja_v.1.5.4.apk;;
'angrybirdsspace')
./apkenv /home/user/MyDocs/Downloads/Angry_Birds_Space_Premium_1.0.1.apk;;
esac

fruit_ninja.desktop:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.5.4
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh fruitninja
Name=Fruit Ninja
Icon=/home/user/apkenv/Icons/fn80.png

angry_birds_space.desktop
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0.1
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh angrybirdsspace
Name=Angry Birds Space
Icon=/home/user/apkenv/Icons/abs80.png

place two desktop file into /usr/share/applications/
apk file to MyDocs/Downloads and now I can run them from homescreen without root access. My script didn't work before because I placed the desktop files into /home/user/.local/share/applications :D

Tnxxx worked like a charm

CepiPerez 2012-10-22 13:28

Re: [Announce] apkenv (N900, N950, N9)
 
Angry Birds Seasons icon please...

Kozzi 2012-10-22 13:31

Re: [Announce] apkenv (N900, N950, N9)
 
2 Attachment(s)
Quote:

Originally Posted by CepiPerez (Post 1283915)
Angry Birds Seasons icon please...

Here, just noticed this on Compability list also and in case someone need Amazing Alex.


All times are GMT. The time now is 15:32.

vBulletin® Version 3.8.8