maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Reading an .so file.. (https://talk.maemo.org/showthread.php?t=70551)

SavageBrat 2011-03-02 11:22

Reading an .so file..
 
1 Attachment(s)
Hi I've searched the web but without much luck as I'm a kind of learning linux but this has become my pet project ..been hunting for some time to find the background image for personal ip address as want to change it to a clear one and I've search nearly every darn file trying to find the image but today I got alittle closer when I found this file personal-ip-address.so but I can't read it all the way as towards the bottom of the file it says default background image is there away to read the file on a widows cpu.. or if someone smarter than me could point me in the direction with QB to get it to do the same thing as personal ip address..tia

peterjb31 2011-03-02 12:02

Re: Reading an .so file..
 
Hi

A .so file is a compiled bit of C/C++ code which forms a library. There is no way to realistically read it and it is unlikely to contain the background image.

Sorry for the lack of help.

Peter

TA-t3 2011-03-02 12:15

Re: Reading an .so file..
 
You can however check the .so file for interesting paths used by the code.
Simply run 'strings personal-ip-address.so' and look for interesting stuff.

I just did, and found this:
Quote:

/usr/share/icons/hicolor/64x64/hildon/personal-ip-address.png
So I would start by looking for that file on your N900 and see if that's the one you want to change. If yes, then just change that file and it will be used by the application.

Edit: But the canonical way of finding files included in an application is simply to use 'dpkg' (the Debian package tool). Like so, from an xterminal:
Code:

dpkg -L personal-ip-address
You'll get a nice list of files, including that previously mentioned .png icon file.

AlMehdi 2011-03-02 13:01

Re: Reading an .so file..
 
If you want to look for files on the n900 (and linux). You could also use the find command. Root access is needed for the root system.

Code:

sudo find / -name "personal-ip*png"
sudo = as it will look in the root system
/ = where. you could also specify it more.. like /usr/share/
* = wild card. In the example it will look for everything that starts with "personal-ip" and ends with "png".

SavageBrat 2011-03-03 09:07

Re: Reading an .so file..
 
Thanks for the answers.. the png in the icon folder is for when using personal ip address in non-compact mode.. was able to few some of the file with word pad..so I need to find the "DefaultBackgroundColor" that is mention in the file...the hunt continues...lol

nicolai 2011-03-03 09:29

Re: Reading an .so file..
 
The DefaultBackgroundColor is the system defined color from the current theme.
But this won't help you. As the alpha value is hardcoded in the source code.
The source code for this widget is available (http://maemo.org/packages/view/personal-ip-address/).
Just change the program yourself or ask a developer if he can make a
customized version of this widget.

Nicolai

SavageBrat 2011-03-03 10:06

Re: Reading an .so file..
 
@ nicolai ,, well coding is way over my head but I did as you suggested and sent a note to the developer..thanks for the idea..

pelago 2011-03-03 14:16

Re: Reading an .so file..
 
Quote:

Originally Posted by AlMehdi (Post 958821)
If you want to look for files on the n900 (and linux). You could also use the find command. Root access is needed for the root system.

Code:

sudo find / -name "personal-ip*png"
sudo = as it will look in the root system
/ = where. you could also specify it more.. like /usr/share/
* = wild card. In the example it will look for everything that starts with "personal-ip" and ends with "png".

You shouldn't need sudo or root access if you are just looking for filenames, or even to read the contents of most files, at least not on Maemo.


All times are GMT. The time now is 14:59.

vBulletin® Version 3.8.8