View Full Version : A list of installed applications. Getting free drive space.
08-17-2006, 09:26 AM
I have two little questions:
1) How can I get a list of installed applications in the Internet tablet device? Can those be found in a specific directory, or is there some other way?
2) Is there a way for getting information about how much free drive space is left in the system?
I appreciate any help!
08-18-2006, 01:33 AM
Look under Tools->Application Manager
and Tools->Control Panel->Memory
08-18-2006, 04:37 AM
Sorry, I was a bit inaccurate. I meant that I'd need to get the application list and free memory from C code. I'm implementing an application that needs check those two parameters. Any ideas?
08-18-2006, 09:07 AM
The applications are maintained using dpkg, either find a library which interfaces with /var/lib/dpkg, or parse it directly, or parse the output of dpkg -l.
As for free memory, standard df-type functionality will do it, statfs(2) probably being your best bet.
08-23-2006, 04:50 AM
Thank you for the reply!
I have tried statfs, but unfortunately it doesn't give the right values. If I compare the statfs's values to the values of Control panel -> Memory, they are quite different.
08-23-2006, 07:03 AM
Remember that JFFS2 on the internal flash is compressed, so you'll always be estimating anyway.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.