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)

HtheB 2012-10-25 13:26

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

Originally Posted by KiRiK (Post 1285329)
I had a little correspondence with thp.
I understood why he had removed the binaries from the site.

So what is the reason he removed it?

coderus 2012-10-25 14:49

Re: [Announce] apkenv (N900, N950, N9)
 
i think you can remember "do not redistribute" note on thp page.

xes 2012-10-25 15:45

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

Originally Posted by HtheB (Post 1285348)
So what is the reason he removed it?

This is the REAL question.

Why open a new thread to distribute an application, remove that application after 2 days and don't reply anymore in the thread he opened?!?

Yes, for sure we should thank him for this great tool that allows to run "Angry Birds"....

But, if there is a sense in this thread and in this application, i think that thp should say something.

PS:
Please, don't misunderstand my words... i was wishing we could use this tool to run some of the missing applications not available for our beloved devices....
Now, that this wish seems dying in the middle of posts like "my game is not running" and "where is my icon?" ...i would let you know my sadness.. :(

Hariainm 2012-10-25 16:08

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

Originally Posted by knobtviker (Post 1285242)
Getting Dalvik to run with Inception would be the best path to take IMHO.

Maybe we can send a PM to "chroot master" aka qole. Is he still on TMO?

PIDk 2012-10-25 22:35

Re: [Announce] apkenv (N900, N950, N9)
 
To KiRiK.

Can you add a feature to your apkenv-qml that will make a separate backup of /home/user/.apkenv for each added apk and will load appropriate one before launch?

So, I'm talking about of some kind of wrapper for apkenv. Desktop-file will launch not the apk itself, but the wrapper that at first will search for config backup and load it back to /home/user/.apkenv, and then, finally, launch apk. And after closing apk, wrapper will backup it's config before exiting.

HtheB 2012-10-26 01:02

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

Originally Posted by coderus (Post 1285379)
i think you can remember "do not redistribute" note on thp page.

I wouldn't redistribute if he does distribute it by himself.....

KiRiK 2012-10-26 04:32

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

Originally Posted by PIDk (Post 1285584)
To KiRiK. Can you add a feature to your apkenv-qml that will make a separate backup of /home/user/.apkenv for each added apk and will load appropriate one before launch?

Yes, I have plans to add such funtion.
But it means that only a single game can be run at one moment.

vicscraft 2012-10-26 06:16

Re: [Announce] apkenv (N900, N950, N9)
 
I modified Kozzi's script to run the games with a launcher... a simple cp commands will do the trick to enable saving game progress automatically...

here's an outline

#!/bin/sh

cd /home/user/.apkenv/
case "$1" in
<game 1>)
cp <savegame path for game 1>/*.lua ./;;
<game 2>)
cp <savegame path for game 2>/*.lua ./;;
etc...
esac


cd /home/user/apkenv/
case "$1" in
<game 1>)
./apkenv ./apps/<game 1 apk>
cp ./.apkenv/*.lua <savegame path for game 1>/
;;
<game 2>)
./apkenv ./apps/<game 2 apk>
cp ./.apkenv/*.lua <savegame path for game 2>/
;;
etc....
esac

Schturman 2012-10-26 06:23

Re: [Announce] apkenv (N900, N950, N9)
 
i already did it in the last version of N9QT ;) :p

vicscraft 2012-10-26 06:25

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

Originally Posted by Schturman (Post 1285662)
i already did it in the last version of N9QT ;) :p

oooppss... never noticed that...:D

Edit: saw the update Schturman... though I prefer to save the progress automatically when game closes... :)

Schturman 2012-10-26 07:07

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

Originally Posted by vicscraft (Post 1285663)
oooppss... never noticed that...:D

Edit: saw the update Schturman... though I prefer to save the progress automatically when game closes... :)

I'm too, but i don't know how to do this.. I Don't know how i can know that game stopped and closed.. How to check this?
If can to know this, we can add automatic process..

vicscraft 2012-10-26 07:14

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

Originally Posted by Schturman (Post 1285681)
I'm too, but i don't know how to do this.. I Don't know how i can know that game stopped and closed.. How to check this?
If can to know this, we can add automatic process..

that's what i have posted... it works for me...

Schturman 2012-10-26 07:24

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

Originally Posted by vicscraft (Post 1285686)
that's what i have posted... it works for me...

Thanks, will check it later..

PIDk 2012-10-26 09:18

Re: [Announce] apkenv (N900, N950, N9)
 
If somebody is interested, here is my script to launch apkenv with config autosave/load feature:
Code:

#!/bin/sh

apkenv_dir="/opt/apkenv/"
apkenvwrp_dir="/home/user/.apkenvwrp/"

load_backup() {
        mkdir -p $apkenvwrp_dir$1
        rm -rf /home/user/.apkenv/*
        cp -rf $apkenvwrp_dir$1/. /home/user/.apkenv/
}

save_backup() {
        cp -rf /home/user/.apkenv/. $apkenvwrp_dir$1/
        rm -rf /home/user/.apkenv/*
}

if [ ! $1 ]; then
        echo "Usage: apkenvwrp.sh application.apk"
        echo "Do not run under root!"
        exit 0
fi

if [ $(whoami) != "user" ]; then
        echo "User rights required!"
        exit 0
fi

if [ ! -f $1 ]; then
        echo "File '"$1"' doesn't exist!"
        exit 0
fi

apk_path=$(readlink -f "$1")
backup_name=$(basename "$1" ".apk")

load_backup $backup_name

cd $apkenv_dir

./apkenv $apk_path

save_backup $backup_name

exit 0

Save it as apkenvwrp.sh and run it from somewhere like that:
Code:

sh apkenvwrp.sh program.apk
EDIT:
And don't forget to change apkenv_dir variable to actual directory where you have placed all apkenv files.

EDIT2:
Updated script! For some unknown (for me) reason, rm doesn't like double quotes. Now rm is working properly.

Samir_123455 2012-10-26 09:57

Re: [Announce] apkenv (N900, N950, N9)
 
hi guys I'm new here but i want to now what is the version and the date in this :
cp -R /home/user/MyDocs/apkenv.harmattan.VERSION_DATE /home/user/apkenv/apkenv

and where is the Bionic libraries ??? please help me ?

dann9 2012-10-26 10:06

Re: [Announce] apkenv (N900, N950, N9)
 
try this: https://github.com/QKit/apkenv-qml/downloads

Quote:

Originally Posted by KiRiK (Post 1284354)
deb-files of qml interface are available for download at github: https://github.com/QKit/apkenv-qml/downloads

For Harmattan (Nokia N9) is sufficient to dpkg a package, dependencies will be downloaded automatically.

For Maemo 5 (Nokia N900).. it seems, I have some chaos in repositories.
I can not install it just using dpkg - problems with dependencies.
But, please, try to do it and tell me about the result.
If the package cann't be installed, run in terminal as root:
Code:

apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
or, if the package installs with no dependencies:
Code:

apt-get install-f


Samir_123455 2012-10-26 10:47

Re: [Announce] apkenv (N900, N950, N9)
 
hi guys what i should do with this ?;
./apkenv : permission denied ?????
please help me

thedead1440 2012-10-26 10:51

Re: [Announce] apkenv (N900, N950, N9)
 
when will people learn to read the wiki :rolleyes:

Samir_123455 2012-10-26 11:08

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

Originally Posted by thedead1440 (Post 1285801)
when will people learn to read the wiki :rolleyes:


i do this ; "chmod +x apkenv", then ./apkenv
but didn't work

cddiede 2012-10-26 11:39

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

Originally Posted by Samir_123455 (Post 1285811)
i do this ; "chmod +x apkenv", then ./apkenv
but didn't work

The terminal is just text, so why don't you just copy and paste what you are actually typing and getting in reply to a forum post? Also of use would be typing:

pwd

So we know in what directory you are attempting to execute these commands since none of them include fully qualified paths.

Seriously, so many people cherry pick and transcribe partial terminal messages when asking for tech support on forums are just making more work for themselves and at the same time providing insufficient information to get any useful advise.


It's like saying: I typed foo and it no work!!!

Schturman 2012-10-26 11:46

Re: [Announce] apkenv (N900, N950, N9)
 
Hi PIDk
Can you help me please with your script?
I want to change directory for apkenv+libs files and for .apk files...
I changed first line in you script to: /home/user/apkenv/ and if I put my .apk files here, it work.
But I want change directory of .apk files to: /home/user/MyDocs/Apkenv and I don't know how to do this :(
I understand I need change somehow the line:
Code:

apk_path=$(readlink -f "$1")
and I don't know how.
Can you help me please :o

lebanez 2012-10-26 13:47

Re: [Announce] apkenv (N900, N950, N9)
 
i would like to know if all applications will work ... like viber ?? is this going to work ?!

KiRiK 2012-10-26 13:48

Re: [Announce] apkenv (N900, N950, N9)
 
I have posted new version of apkenv-qml: https://github.com/QKit/apkenv-qml/downloads
It uses own data folder for each game and loads the particular game data on start.
You should not run more than one game at the same time.

PIDk 2012-10-26 13:50

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

Originally Posted by Schturman (Post 1285828)
Hi PIDk
Can you help me please with your script?
I want to change directory for apkenv+libs files and for .apk files...
I changed first line in you script to: /home/user/apkenv/ and if I put my .apk files here, it work.
But I want change directory of .apk files to: /home/user/MyDocs/Apkenv and I don't know how to do this :(
I understand I need change somehow the line:
Code:

apk_path=$(readlink -f "$1")
and I don't know how.
Can you help me please :o

]
Script doesn't know where .apk's are placed. It uses first script parameter ($1 - variable where first script parameter is stored) as filename (or full path) for apk-file. You must place your apk-files in the same directory as script to use just filename or, if your apk-files are somewhere else, use full path to .apk when launching script. Either way, you must supply full path to .apk when launching apkenv if your .apk's are not in the same folder as apkenv - script automates this behaviour (always extracts full path) with readlink.

Samir_123455 2012-10-26 13:59

Re: [Announce] apkenv (N900, N950, N9)
 
hi guys
i want to reinstall this apkenv from the beginning because i thing i made a lot of mistakes so please someone can help me and tell me how to delete the old one and also help me to install it again without any mistakes ?

herno24 2012-10-26 14:23

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

Originally Posted by KiRiK (Post 1285880)
I have posted new version of apkenv-qml: https://github.com/QKit/apkenv-qml/downloads
It uses own data folder for each game and loads the particular game data on start.
You should not run more than one game at the same time.

This new .deb doesn't install an icon in the apps menu, and i can't run any game. What am I doing wrong?.

Samir_123455 2012-10-26 14:33

Re: [Announce] apkenv (N900, N950, N9)
 
hi , I install the last deb and it install but then what i should do to run the application i download the fruit ninja and angry bird please help me ?

Schturman 2012-10-26 14:39

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

Originally Posted by PIDk (Post 1285881)
]
Script doesn't know where .apk's are placed. It uses first script parameter ($1 - variable where first script parameter is stored) as filename (or full path) for apk-file. You must place your apk-files in the same directory as script to use just filename or, if your apk-files are somewhere else, use full path to .apk when launching script. Either way, you must supply full path to .apk when launching apkenv if your .apk's are not in the same folder as apkenv - script automates this behaviour (always extracts full path) with readlink.

Ah... Ok, thanks, now it work...
I tested it also before, but got "permission denied", don't know why :) Now it work like expected :D
Thanks.

Samir_123455 2012-10-26 14:57

Re: [Announce] apkenv (N900, N950, N9)
 
1 Attachment(s)
hi , I got this after do cd /home/user/apkenv/
./apkenv /home/user/MyDocs/APK_NAME

optimaxxx 2012-10-26 15:04

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

Originally Posted by KiRiK (Post 1285880)
I have posted new version of apkenv-qml: https://github.com/QKit/apkenv-qml/downloads
It uses own data folder for each game and loads the particular game data on start.
You should not run more than one game at the same time.


After installation nothing appears?

Kozzi 2012-10-26 15:08

Re: [Announce] apkenv (N900, N950, N9)
 
seems like the desktop file didn't make to the deb, you could run it in terminal:

/opt/apkenv-qml/bin/apkenv-qml &

darkphantom93 2012-10-26 15:08

Re: [Announce] apkenv (N900, N950, N9)
 
same here. i cant ply angry bird space that i have installed

Samir_123455 2012-10-26 15:40

Re: [Announce] apkenv (N900, N950, N9)
 
hi i add angry bird with this deb and when i open angry bird nothing happen so please you can help me ?

Samir_123455 2012-10-26 15:53

Re: [Announce] apkenv (N900, N950, N9)
 
please nothing happen when i open the apk application please help me

KiRiK 2012-10-26 16:23

Re: [Announce] apkenv (N900, N950, N9)
 
apkenv-qml goes without apkenv binaries.
You must place apkenv binaries to /opt/apkenv/bin.

cddiede 2012-10-26 16:26

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

Originally Posted by Samir_123455 (Post 1285921)
please nothing happen when i open the apk application please help me

devel-su
<enter password>

cd /home/user/apkenv

chmod 777 apkenv

exit

cd /home/user/apkenv

./apkenv <deb file name>



If that doesn't work, post the output of:

ls -al /home/user apkenv

KiRiK 2012-10-26 16:33

Re: [Announce] apkenv (N900, N950, N9)
 
sorry for icon. I'll fix it soon.

Schturman 2012-10-26 16:43

Re: [Announce] apkenv (N900, N950, N9)
 
PIDk, thank you very much ! All work perfectly and your script will be added to the next version of N9QT ;)
Thanks

Samir_123455 2012-10-26 16:54

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

Originally Posted by cddiede (Post 1285932)
devel-su
<enter password>

cd /home/user/apkenv

chmod 777 apkenv

exit

cd /home/user/apkenv

./apkenv <deb file name>



If that doesn't work, post the output of:

ls -al /home/user apkenv

chmod: apkenv : Operation not permitted ???? whats is the problem

tratrafe2 2012-10-26 17:13

Re: [Announce] apkenv (N900, N950, N9)
 
great project its what i was waiting since i bought my phone;p
for anyone finding it difficult to install i recommend using the n9-tweak method, it's a lot easier.
personally, i believe the first app that has to be made compatible is viber xD


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

vBulletin® Version 3.8.8