Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Opkg on Android (or, make your own app store)

OP inportb

21st October 2010, 08:53 AM   |  #1  
OP Retired Recognized Developer
Thanks Meter: 181
 
433 posts
Join Date:Joined: Dec 2008
I posted in a different thread because it had similar content, but I figured I'd stop hijacking someone else's thread.

This is quite rough at the moment, but I have compiled a statically-linked version of Opkg for armv5tel-compatible devices, which I believe includes most Android phones. So far, I have successfully installed packages from files and from repositories, and I'm still evaluating the possibility of using Opkg to maintain all sorts of things on the phone.

Opkg is a package manager not unlike Debian's dpkg/apt system. With this tool, we could easily install software from third-party repositories and keep it up-to-date. For now, there are some barriers against deploying Opkg on phones. Firstly, there are almost no Opkg packages for Android phones (though I do have some in my personal repository). Secondly, there is no GUI, and everyone loves shiny graphics. But I think these problems can be overcome, since Opkg is a pretty awesome little tool.

I posted this for a couple of reasons (other than to promote the use of Opkg on Android). So far, I know it works with HTC Dream and HTC Hero on CyanogenMod, but I'd like to know how it works on other types of phones if possible. I'd also like ideas and suggestions. Are there any Android developers or end-users out there who are interested in trying Opkg?

Anyhow, here're the links: [more info] [how to make a package] [how to make a repository] [downloads]
If you want to build it yourself, go ahead and knock yourself out ;p
Thanks for your time!
Last edited by inportb; 21st October 2010 at 09:02 AM.
The Following User Says Thank You to inportb For This Useful Post: [ View ]
telekenesis2011
1st November 2010, 02:29 AM   |  #2  
Guest
Thanks Meter: 0
 
n/a posts
Hey, great to see im not the only person who had this idea. Thanks you for the links. I will try that on my Tattoo and play around with it.
3rd November 2010, 02:33 AM   |  #3  
OP Retired Recognized Developer
Thanks Meter: 181
 
433 posts
Join Date:Joined: Dec 2008
I'm glad to see that you've figured out what was wrong, and I hope you managed to get it working! Nevertheless, someone asked how to configure the preferred architectures, so here's my /cache/etc/opkg/arch.conf file:
Code:
arch all 1
arch any 6
arch noarch 11
arch arm 16
arch armel 21
arch apk 26
arch apkmdpi 31
Now, a hdpi device might have:
Code:
arch all 1
arch any 6
arch noarch 11
arch arm 16
arch armel 21
arch apk 26
arch apkmdpi 31
arch apkhdpi 36
Of course, these architecture names should be standardized. And while we're at it, we should also come up with sensible paths for configuration files and such; I don't imagine sticking everything in /cache would be a good long-term solution.
telekenesis2011
8th November 2010, 02:47 PM   |  #4  
Guest
Thanks Meter: 0
 
n/a posts
Yes its working fine.

I would prefer to put the config under /data/local/etc/opkg it should be save there.
There is allready a tmp folder. So tmp goes like this: /data/local/tmp and for usr: /data/local/usr/opkg

Sections for apk-apps:
Code:
vendor/google
vendor/htc
vendor/acer
vendor/...
But we could also adapt the debian sections, so we havent to figure out this, and its already its well documented.

EDIT2:
According to the open moko wiki, there is only a feed.conf for the repository and a arch.conf for the architecture...

http://wiki.openmoko.org/wiki/Opkg/D...guration_files
Last edited by telekenesis2011; 11th November 2010 at 06:49 PM.
11th November 2010, 07:59 AM   |  #5  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Oct 2009
I like your idea and would like to try this, but right now I have a Garmin Asus M10 which is on Win 6.5, I would like to install android on this. I understand that A10 has android and it is compatible with M10. Any help in getting an android ROM would be appricitated. Once I have the android loaded I would love to use Opkg.

Regards,
Rajesh
13th November 2010, 05:00 PM   |  #6  
anurag09's Avatar
Member
mysore
Thanks Meter: 10
 
74 posts
Join Date:Joined: Oct 2010
search for a10 update in google. its there. i think u can get rom from there.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes