HTC PDFviewer working on JF and Haykuro builds!

Search This thread

smurphete

Senior Member
Feb 9, 2009
51
0
I"ve been whinging about this for awhile. A champion called strazzere has managed to patch the pdfviewer.apk. And has been tested on the JF build and Haykuro builds and also the latest SPL

Check it out his awesome work - http://strazzere.com/blog/?p=266

Original thread at apps forum - http://forum.xda-developers.com/showthread.php?t=506595&page=4

Instructions

1. Download referenced files
http://www.strazzere.com/android/libpdfreader.so
http://www.strazzere.com/android/FilePicker.apk
http://www.strazzere.com/android/PDFViewer.apk

2. Copy all files to your sdcard

3. Install the patched pdfviewer.apk either using your standard file explorer (Astro, Lina, etc) or using:
adb install /location_of_your_file/PDFviewer.apk

4. Copy the refenced files to the correct location, either adb shell or terminal emulator punch in:

$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cp /sdcard/libpdfreader.so /system/lib
# cp /sdcard/FilePicker.apk /system/app

Enjoy =]

Problems and Fixes
--------------------
If you have any initial problems, try redownloading the files because they may be corrupted.
FilePicker does NOT need to be "installed (going through Linda/Astro file manager or adb install)" so to speak, just following the above steps and copying it to correct place is sufficient.


A JF complete image with Pdfviewer included:
if anyone wants it I have compiled JF1.5 with this Pdfviewer and the new Better Terminal (old one removed) app already installed you just have to ALT + S. I have tested it on my device and it works perfect. I didn't do anything special and am taking no credit for the ROM as I just copied the files into the right spots and resigned the .zip file.
I tested it twice... both times flashed without any problems

If you choose to use it just like any other ROM update.
Rename update.zip
boot into recovery
alt+s
home+back
**should not have to wipe**

PDFJF1.5.zip


Enjoy =]
 
Last edited:

cloverdale

Senior Member
Feb 9, 2009
1,597
147
Eugene, OR
www.jbthemes.com
Yeah, hey...does that come in a shiny noob edition?

Follow the link and download the 3 files: libpdfreader.so, FilePicker.apk, PDFViewer.apk.
Open the terminal and enter the following:

$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cp /sdcard/libpdfreader.so /system/lib
# cp /sdcard/FilePicker.apk /system/app
# reboot

When the phone restarts, use a file explorer of your choice to find and install PDFViewer.apk via package installer.
 

rigamrts

Senior Member
Apr 12, 2009
331
3
thanks alot

Thanks for the great I used download crutch and the second set of instructions using the terminal worked fine. Never undertood using adb when all can be done right from the phone no pc needed.
 

smurphete

Senior Member
Feb 9, 2009
51
0
I was using repligo before this came out...I think repligo and htc pdfviewer render pretty much the same speed. Biggest annoyance about repligo is that it renders one page at a time. Look at one lecture slide. Next page....wait....wait...wait....rendered...damn not the slide i want...maybe its page 5.....go to page 5.....wait...wait...wait....

Whereas pdfviewer renders multiple pages at a time. But repligo is completely pwns pdfviewer when you zoom in and out, no loading time at all.

And repligo costs $$$ && think of us poor souls in countries without paid apps...well legitimately anyways :p
 

octoberriot

Member
Apr 12, 2008
47
6
Seattle
Im sorry, did i miss something? the pdf viewer i pulled from either a haykuro build or one from thedudes a long time ago has been working fine on any build ive used. im on jf1.5 now and it works with no problems
 

daveid

Senior Member
Jan 5, 2009
1,894
356
Samsung Galaxy S21 Ultra
There is yet another way to do this from your PC, maybe easier for some.
1. Download the files to your /sdk/tools folder.
2. At a command prompt enter the following commands:
a. adb remount
b. adb push libpdfreader.so /system/lib
c. adb push FilePicker.apk /system/app
d. adb push PDFViewer.apk /system/app
All done.

Thanks to all who contributed to this, it actually opened a pdf that I couldn't previously view on my phone!
 

cyanogen

Retired Recognized Developer
Jan 4, 2009
2,515
5,751
Seattle
cyanogenmod.com
Nice work on this. I messed around with the bytecode of this thing for hours trying to remove the calls into com.htc.protection but eventually got frustrated and gave up. Glad someone with more patience picked this up.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone