View Single Post
Old 08-27-2015, 06:11 PM   #188
normanr
Junior Member
normanr began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2015
Device: Kindle PW2
PW2 with 5.6.5:
Quote:
lrwxrwxrwx 1 root root 11 Aug 1 00:53 /usr/lib/libpng.so -> libpng16.so
lrwxrwxrwx 1 root root 19 Aug 1 00:53 /usr/lib/libpng16.so -> libpng16.so.16.15.0
lrwxrwxrwx 1 root root 19 Aug 1 00:53 /usr/lib/libpng16.so.16 -> libpng16.so.16.15.0
-rwxr-xr-x 1 root root 158032 Aug 1 00:50 /usr/lib/libpng16.so.16.15.0
I tried binary patching matchbox keyboard to use libpng16.so, and got the following instead:
Quote:
/mnt/us/extensions/kterm/bin/matchbox-keyboard: /usr/lib/libpng16.so: version `PNG12_0' not found (required by /mnt/us/extensions/kterm/bin/matchbox-keyboard)
More binary patching just produces:
Quote:
/mnt/us/extensions/kterm/bin/matchbox-keyboard: /usr/lib/libpng16.so: version `PNG16_0' not found (required by /mnt/us/extensions/kterm/bin/matchbox-keyboard)
My process:
Quote:
mv matchbox-keyboard matchbox-keyboard.libpng12
cat matchbox-keyboard.libpng12 | sed -e 's/png12/png16/' -e 's/PNG12/PNG16/' > matchbox-keyboard
dd if=/dev/zero of=matchbox-keyboard bs=1 count=2 seek=4496 conv=notrunc
diff <(hd matchbox-keyboard.libpng12) <(hd matchbox-keyboard)

Last edited by normanr; 08-27-2015 at 06:52 PM.
normanr is offline   Reply With Quote