View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#1
The localized files can be found on the device here:

Code:
/usr/share/osso/boot/rle/disclaimer-openmode_*.rle
Has anyone found a description of the file format?

Also, editing the files does not change the image on boot - maybe there is some part that writes the data to a specific memory area so that it's directly accessible on bootup (and this happens only once, when open mode is first "detected")? disclaimer-call fails for me when i tell it to write a different .rle file to the openmode area in mtd1 (config area).

Interesting files and binaries:

Code:
/etc/init/xsession/disclaimer-lng-set.conf
/usr/bin/disclaimer-cal
However, trying to remove it manually results in an error:

Code:
~ # disclaimer-cal remove View-openmode
CAL ERROR: nand_write: write (4096 bytes at around 001e2000): Input/output error
disclaimer-cal: Failed to write to CAL
Some interesting snippets from running disclaimer-cal under strace:

Code:
...
open("/proc/mtd", O_RDONLY)             = 3
...
open("/dev/mtd1", O_RDWR)               = 3
...
lseek(3, 1974272, SEEK_SET)             = 1974272 
write(3, "ConF\2\1\1\0View-openmode\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = -1 EIO (Input/output error)
...
The idea would be to add some nice graphic or contact info there (where to bring the device/whom to call when the phone gets lost and is found, ...).

Possibly interesting tool to inspect mtd1: https://dev.openwrt.org/browser/pack...src/calvaria.c

Last edited by thp; 2012-03-22 at 22:28.
 

The Following 10 Users Say Thank You to thp For This Useful Post: