31
PDFViewer (working) on JF 1.5 and other builds


So a few days ago I got an email concerning the HTC PDF viewer which apparently comes bundled with the HTC Sapphire. Saddly, there has not yet been a release of it for the HTC Dream. The original thread on xda-developers can be found here which essentially was what the person was directing me too. The problem with this apk seemed to be that it was “locked” to HTC only devices… But – the HTC Dream is an HTC device, right? Not according to this program…

What? HTC Dream IS HTC?!

What? HTC Dream IS HTC?!


Anyway – long story short, success! I’ve successfully patched the file so that it should be able to be loaded on any HTC Android device. Have a blast reading your pdfs now!

FTW

FTW

Required files for this to work;

libpdfreader.so
FilePicker.apk

libpdfreader.so must be pushed using adb (or shell) to /system/lib
FilePicker.apk must be pushed using adb (or shell) to /system/app

Note: To push the files to /system, you will need to remount it as rw with the following command:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

Finally — download and install (either through adb or your favorite package installer) the patched apk! You can download that here, PDFViewer.apk. This was tested on JF 1.5 and 1.45 and seems to work perfect. Please post your programs if any should arise.

Enjoy! :)

Tim
22 Comments
  1. Sweet work, it worked like a charm!! *thumbs up*

  2. works great. one question: the ‘about’ screen shown in the howto never displays; the app goes straight to filepicker and searches for PDFs; nor are there any options when the menu key is pressed. Is this normal behavior?

    Your blog is pretty impressive; keep up the excellent work.

  3. @arqueware

    The about section is available after you load a pdf, please menu – then you can select it. I just took a screen shot of it since it shows you can get past the “HTC Device” restriction. ;)

  4. Works on HTC Magic. well done!

  5. Wow, this is an awesome find! And great work on the patch! Works excellent on the G1, and very fast, too. (I have to admit, it’s on par with my laptop on that. XD)

  6. Could someone tell me how to do this step by step. I have a rooted phone with terminal and can not fiigure this out. Thanls

  7. Doesn’t work on htc dream. It shows a window with: “programm reagiert nicht” and a button close.
    Can anybody help me please?

  8. How do you get root permissions to change. The operation fails everytime I try the mount command. I have the RC43

  9. Excellent, worked like a charm on my HTC Magic after rooting it (http://android-dls.com/wiki/index.php?title=Magic_Rooting)

  10. Works nice!

    Note: I had to rename the FilePicker.zip to be FilePicker.apk for the PDFViewier.apk to successfully install.

  11. know how to remount using cygwin/ XP ? thanks…

  12. i had not enough free space, but the Maps.apk is useless, when you have installed the new one, so you can delete it in /system/app.

    and now it works perfect, thanks

  13. You should do the same with HTC Calendar, Flash, QuickOffice, etc…

  14. Could you do your magic and make this work with the new 4.1.999 CM. :)

    The lib requires something that’s not there:
    I/dalvikvm( 450): Unable to dlopen(/system/lib/libpdfreader.so): Cannot load library: reloc_library[1172]: 89 cannot locate ‘FT_Get_Glyph’…

  15. I have a donut 1.6 ROM and PDFViewer is Force Closing. Any chance you can update the file to work with 1.6?

  16. Hi!
    Can not make the system rw with that command. It’s said read only file system. Thanks

  17. Hi, I know this post is way outdated, but since it seems like you know how to make a workaround to get the htc pdfreader to work, I thought I would ask you to do it again for the cyanogen’s current donut build :)
    I’ve tried many ways trying to get it to work but basically, it still doesn’t. In the logcat, when I try to run the pdf viewer app, it says this:
    Caused by: java.lang.UnsatisfiedLinkError: Library pdfreader not found
    And it force closes. Maybe you can fix it? :)

  18. @yuri – you’ll need to remount the file system

    @shaneaus and tim, feel free to email me and we can try some stuff out

  19. Yeah, I’m with jeremiah….the only way I rooted was with a superly noobish guide from youtube…and the only way I got cyanogen is cause I sorta knew what to do from PSP hacking…but I’m not really sure with the commands and all.
    I have no idea why it needs to “remount”, and I have no idea how to PUSH the files. I’ve tried with Astro(file manager), but it just gives me an error everytime I try to transfer the files to the root folder. Any help? Please?

  20. Ah, and did the fix ever work for Tim? I just had to downgrade to get it..

  21. anyone found a way to make this work on donut-based cyanogenmod?

Your Name Email Website