yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] derfolo:
Dangit. I tried through the terminal and through adb, and I keep getting this error:

"failed to copy 'libpdfreader.so' to '/system/lib/libpdfreader.so': No space left on device"

The thing is, I have 11MB free on the phone and 220MB free on the sdcard. libpdfreader.so is only 2.5MB. What gives?
[G1 Android Development] chief2842:
Try rebooting your phone then go back and do it.
[G1 Android Development] knoxbrder:
I installed the one apk and the .so ok, but when trying to install the main apk it says "PDF viewer could not be installed on this phone."

JF 1.5
[G1 Android Development] pascanu:
Amazing!!! Works much better than repligo pdf viewer.

Thank you strazzere for another "meravigliosa" job!

(and thank you HTC for my G1 AND this wonderfull viewer :-)
[G1 Android Development] cal3thousand:
Gonna try this now...

BTW. SUNDAY and it's ON! I want to another 40+ pt beating at Staples.
[G1 Android Development] strazzere:
Make sure you don't have it installed previously. This showed when I was testing - and you already had it previously installed (and maybe htc attempted to remove itself) Goto settings and manage apps then remove it.
[G1 Android Development] uherrera:
works like a charm. thanks a lot.

Edit: I'm using haykuro's latest version as of today.
[G1 Android Development] Master Loon:
Good looks on the forward Smurphete..

MAD props goes out to Strazzere.

Greatly appreciated.

Now can someone get the H camera or did I miss that too?:o
[G1 Android Development] knoxbrder:
I found an empty com.htc.pdf... installed.

I removed it and the new one installed correctly.

I don't remember installing it before, but that must be my old age!

Everything is fine now. Thanks!
[G1 Android Development] savethechicken:
Awesome working on the JF1.5. This was really the only reason why I was not using the JF1.5 great find and awesome work.
[G1 Android Development] strazzere:
Glad we could figure it out then ;)

Edit: Master loon - does that package complain about the device? Or just crash on the device?
[G1 Android Development] Linuxslate:
Thanks strazzere.

I did get it installed on a ADP 1 running the Stock HTC 1.5.

There is no cp, so I had to use dd, and then fix permissions. Basic steps:

1. Install App via adb:

adb install <pathto>/PDFViewer.apk

2. Copy 2 files to sdcard via adb

adb push <pathto>/FilePicker.apk /sdcard

adb push <pathto>/libpdfreader.so /sdcard

3. Get Shell:

adb shell

4. Enter the following commands: *Warning* You are root. These are from memory, not cut and pasted from when I was actually doing it.

su

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

dd if=/sdcard/libpdfreader.so of=/system/lib/libpdfreader.so

dd if=/sdcard/FilePicker.apk of=/system/app/FilePicker.apk

chmod 644 /system/lib/libpdfreader.so

chmod 644 /system/app/FilePicker.apk

reboot

It works fine with a pdf that I copied to the sd card. Speed is not as fast as I would like, but OK for a phone. It looks good, and zoom works. Even has search. Auto rotation also works.

Biggest problem is that is does not seem to open pdf's that are attached to email (tested using email app, not Gmail app). I can't even seem to be able to save the attachment, and then open it.

Without being able to open attachments, this is pretty much useless, except perhaps as a book reader.

Thanks to those that made the effort to bring this to us, and I would not go back to an iPhone if Apple/AT&T paid me (unless they really paid me *alot*), but the Apple Fanboys must love stuff like this. 11 lines of UNIX commands to install a PDF reader ?!

I sure hope this is working in the official G1 release next week (including email attachments). If not, Google needs needs to write HTC (or somebody) a check real fast.

I show my ADP 1 to several people a week that are considering iPhones.
[G1 Android Development] cjesse:
nice job!,it's faster then JETCET PDF on my G1.
[G1 Android Development] rasturn:
Great job!!!
[G1 Android Development] hongquan7389:
when I punch the command:

adb push libpdfreader.so /system/lib

I get this error:

"failed to copy 'libpdfreader.so' to '/system/lib/libpdfreader.so': No space left on device"

then I punch

adb shell df /system/lib

the message I received is:

"/system/lib: 69120k total, 69120k used, 0k available (block size 4096)"

Is there any way to copy this file to a folder on sd card and link that folder to /system/lib?
[G1 Android Development] k0mpresd:
thanks for the guide, but i have a question. my apps are on the sd card. i did the above commands and pdfviewer works perfect. im wondering though, should i run any other commands to move the app from the phone to the sd card? or did it install on the sd card automatically? i mean the commands are obviously copyong to directories on the phone. but does the link from the phone to the sd app set up forward my cp from sd card > phone > back to sd card? if that makes sense. sorry, im a linux n00b and thanks. :)

edit: nevermind. ls /system/sd/app gave me the answer.
[G1 Android Development] malaeus:
love it, ive been looking for a good PDF viewer. the only other things that work are ~20$

thanks guys.
[G1 Android Development] hongquan7389:
how can you set up the link from the phone to the sd app?
[G1 Android Development] majatt:
Great Work

I just wanted to say thank you from the bottom of my boot partition. The effort you guys put in here is phenomenal!
[G1 Android Development] savethechicken:
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
[G1 Android Development] chunga:
works fine on haykuros 1.5h3 with the new spl, great Job! :)
[G1 Android Development] Slimgym20:
Do I also install the FilePicker? I followed the directions on the first page through terminal. I went into my manage applications and I don't see it anywhere, but if I save a file to my sd card I can pull up a pdf through the viewer.
[G1 Android Development] tama82:
great work!!
[G1 Android Development] nyayo99:
Thanks! This works for Haykuro's ADP1.5h3 with haykuro's latest spl
[G1 Android Development] Velhinho:
Im getting Parse Error when Im trying to install the PDFViewer.apk... I also tryed download the file again, but unsucessfull... :mad:

Theres anything that I missed? :confused:

Sorry ... my english is so poor.

:o
[G1 Android Development] strazzere:
Like what has been said before in this thread, try downloading it on your PC and transfering it over your usb cable. It sounds like you apk file is corrupt.
[G1 Android Development] gimiento:
Works! Easy as pie, awesome. Thx!
[G1 Android Development] Velhinho:
Thanks... I dowloaded it again (now as .zip), rename it for .apk and DONE!

Working great!
[G1 Android Development] derfolo:
I ended up having to wipe, and then it worked. Bummer. I hate having to reinstall all the stuff and losing all my app data.
[G1 Android Development] Velhinho:
I got an error msg...

Sorry!

The application PDF viewer (process com.htc.pdfreader) has stopped unexpectedly.

Please try again.

[Force close]
[G1 Android Development] savethechicken:
For those who use GSCRIPT (can be found here) you can do the following.

Download above files either from a computer or phone and then put them in the pdfviewer folder(If you dont have one make one and put the files in it) on your sdcard.

Then save the below code as a pdfviewer.sh file onto your sdcard in the gscript folder, can do this on the computer.

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd sdcard/pdfviewer/
busybox install PDFviewer.apk /system/app/
busybox cp /sdcard/pdfviewer/libpdfreader.so /system/lib/
busybox cp /sdcard/pdfviewer/FilePicker.apk /system/app/

Then open GSRIPT > Menu > Load File > Select your pdfviewer.sh > save

Then you can run this and it will install for you. It also give you a way to install it on the file if for some reason you need to.
[G1 Android Development] johnowa636:
I was getting same error when I increased the partition with Haykuros mod, I had to do step 4 again and now its working.
[G1 Android Development] strazzere:
I'd try reinstalling it -- are you using any other mods?

I personally only use this on a rooted JF 1.5 - without any other mods. However i'd been told it works with everything else and most mods...
[G1 Android Development] smurphete:
Yup definitely sounds like the library files are linked properly. Make sure the files are copied over in step 4. Updates front page.
[G1 Android Development] texanman:
WOOT thanks for finding this OUT!!!

I can read my pc gamers now on my phone!
[G1 Android Development] Phlogiston:
An improved install way:

1) get the files in one directory and change to that

2)

adb remount
adb push libpdfreader.so /system/lib
adb install FilePicker.apk
adb install PDFViewer.apk
[G1 Android Development] GRRemlin:
Using JF1.5

Pushed both libpdfreader.so and FilePicker.apk with adb

Then:

C:\android-sdk-windows-1.1_r1\tools>adb install PDFViewer.apk

375 KB/s (0 bytes in 258056.000s)

pkg: /data/local/tmp/PDFViewer.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

:confused:
[G1 Android Development] Phlogiston:
You don't need to push the apk, you need to install it. And update your sdk to match the phone version (1.5).
[G1 Android Development] ldp_punkt:
i had the same problem with jf 1.5. i removed the apk manually from /system/app/ then installed it again. that worked.

now i'm trying to install it in jf 1.51 but it seems there isn't enough free space. any tips?

EDIT:

I copied libpdfreader.so to /system/sd/lib and then created a ln. works fine.
[G1 Android Development] DOHCtor:
put the 3 files into your "tools" folder where adb.exe and fastboot.exe is located

Then start adb

adb remount

adb push libpdfreader.so /system/lib

adb push filepicker.apk /system/app

adb install pdfreader.apk

adb shell

reboot
[G1 Android Development] predo:
finally decent pdf reader on g1! top work!
[G1 Android Development] oldsk00lz:
Just an FYI... it's working well with JF ADP1.51, but I did have an initial hurdle to get over.

I had copied files to sdcard and then copied libpdfreader.so and FilePicker.apk to their system directories via terminal.

When installing the PDFViewer using Apps Installer, I got a warning that it couldn't install on my phone.

Resolution: I manually copied the PDFViewer to the /system/app directory, and then using Apps Installer, i installed over the existing (same) file and it actually reinstalled with no error.

adb probably handles the /system/app install fine.

-oldsk00lz
[G1 Android Development] legaleye2005:
I'm a noob. How do you copy files to places in the phone? Do I have to download a file viewer? Please help a noob. Thank you.
[G1 Android Development] Roadmasta01:
Thank you very much, I really appreciate the hard work.
[G1 Android Development] mer6:
You have to use either ADB or the Terminal on your phone for system files.
[G1 Android Development] TDMaster:
finally a PDF Viewers that works gr8 thanx for all for working on that find appz
[G1 Android Development] Paul22000:
Ok, some massive problems here...

First, trying to copy the libpdfreader.so file to the /system directory:

1. I tried using adb shell -> su -> mount line -> cp

Result: failed to copy 'libpdfreader.so' to '/system/lib/libpdfreader.so': No space left on device

2. I tried using the terminal on my phone -> su -> mount line -> cp

Result: cp: write error: No space left on device

3. I tried installing DroidSans Tweak Tools and remounting as Read/Write.

Same error, for both methods.

So I tried using the dd copy posted in #35, and it worked!

Finally, everything should be installed. So I launch PdfViewer and BAM, Force Closes every time.

The instructions in the OP are far outdated and don't work. Anyone know how to resolve this??
[G1 Android Development] WiredAnim:
Can some one help?

I have just installed a semi-fresh version of ion and I'm trying to get this work I have to have my pdfs. I have gotten it to work on other builds but idk. Anyways the only thing I have changed is I'm running Apps2SD with the lucid script. Here's what I have tried :

su

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

cp /sdcard/FilePicker.apk /system/app

cp /sdcard/libpdfreader.so /system/lib

On both I get "cp : write error : No space left on device" I decive to cd over to /system/app and /system/lib inside both I see the files that should have copied. So I install PDF Reader through Astro and launch it... it opens... it waits... then closes... I try to open a pdf with Astro and the same thing happens. I am at a loss any help would be awesome and thanks in advance.
[G1 Android Development] ckrest:
Pretty sure this was accomplished about a month ago in earlier threads here.. Could have saved yourself some man hours doing a search.
[G1 Android Development] strazzere:
Save yourself from doing what?

This method of getting it to work had not be posted previously - others did not involve direct patching of the apk file.
[G1 Android Development] WiredAnim:
almost there

Ok I did over look where it talked about deleting what was there restart and try to copy again. Well I deleted both files did a reboot. I tried FilePicker and it moved over just fine but when I try libpdfreader it only moves about 1.5 mbs of the files and gives the same error. In my settings I have like 71mbs free right now so have plenty of space. I have no idea what to try.
[G1 Android Development] tbgreen:
tq so much

installed errorless and now work flawlessly

:)
[G1 Android Development] smurphete:
The error is what it says, you are out of disk space.

The free memory you see in settings is about total internal memory. What the error message is saying is that you are out of disk space on your /system/ mount.

Ie. go to your emulator and type in "df" you should see something like

/system: 69120K total 62160k Used xxxk available.

Because you are trying to move the file into this mount and if the file is > than the available then it wont fit. Haykuro clearly stated that the ion rom if you dont not have new SPL you will have really low system memory to play with.

How you can get around this is, the most obvious solution (assuming you dont want to risk upgrading SPL) is to make more space!

What's in the system folder that you can delete? Well if you delete all your notifications and ringtones then you will roughly be able to fit those 2 files in. I think there are some lib files that you can probably delete. I hold no responsibility for whatever it is that you delete and if you delete something critical it may not boot.

Other option, upgrade to new SPL. I think cyna's ROM offers more disk space and is even faster so you can try that too.
[G1 Android Development] WiredAnim:
I see

That makes sense Smurphete. I don't think I have the guts to start deleting files so I'll give that other Rom a try. I'm still trying to learn how Linux and Android work and I appreciate the explanation.
[G1 Android Development] xenues:
Thank you very much. I think that PDFViewer is one of the most important aplication, and now it works with a non HTC Rom!!
[G1 Android Development] marshallladd:
Awesome. I wish more things on here had terminal instruction vs. the pc ones.
[G1 Android Development] Linuxslate:
Does not seem to work on Donut. (HTC Official 1.6 for the Dev Phone)

D/dalvikvm( 394): Trying to load lib /system/lib/libpdfreader.so 0x437438e0
I/dalvikvm( 394): Unable to dlopen(/system/lib/libpdfreader.so): Cannot load library: reloc_library[1172]: 50 cannot locate 'FT_Get_Glyph'...
[G1 Android Development] shaneaus:
I receive a FC on Cyanogen 4.1.999 - donut. :(

I was SO HOPING this would work!

received same error as above:

D/dalvikvm( 804): Trying to load lib /system/lib/libpdfreader.so 0x44093988

I/dalvikvm( 804): Unable to dlopen(/system/lib/libpdfreader.so): Cannot load library: reloc_library[1172]: 129 cannot locate 'FT_Get_Glyph'...
[G1 Android Development] Archont:
The explanation is simple: If a library is compiled for 1.5 (cupcake) it is likely not to work on 1.6 (donut). APKs may work, some do, most of them are updated for donut. But libraries need to be recompiled to work.
[G1 Android Development] Noojin:
I am having a slight issue when going into the adb shell.

when I type in,

$ su

# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

# cp /sdcard/libpdfreader.so /system/lib

# cp /sdcard/FilePicker.apk /system/app

at "# cp /sdcard/libpdfreader.so /system/lib," CMD prompt is telling me that there is no such file or directory but I did check my SDcard and it is definitely in there.
[8525, TyTN, MDA Vario II, JasJam General] Timo-man:
hi every body, i'm novice in this domain so i really need your help

i have an HTC HERM300 and while flshing its rom i got a white screen where is writen

---------------------------------------------------

xdadev xbow vanilla ROM 1.0

BRING BACK THE ROM ARCHIVE!!

by anonymous ROM cooker for the HTC community

---------------------------------------------------

and so i can't connect it and get a 260 error

please help me what shall I do????

thanks!!!
[Touch HD Windows Mobile ROM Development] kashifraza34:
does the RUU effect the simlock
[Touch HD Windows Mobile ROM Development] Fallen Spartan:
What is Sim lock?

In order that carriers can insure that you stay with them have imposed a sim lock on the deivice that they have sold you. You are thus unable to use any other SIM from any other carrier. The only way to overcome this is through a sim unlock tool that is available via the internet. Flashing a different rom version or a different language will not change the SIM lock status.

Hope this helps
[Wing, P4350 ROM development] ivanmmj:
Version 2: Changelog:

4MB pagepool - almost 33mb of free RAM

Based off of JustStableV2's Build 5 (unreleased) - Everything updated in JustStableV2 Build 4 also in this build

Based off of 5.2.21048

More of the ULDR partition removed. Now it's COMPLETELY gone.

Still LZX compressed and stripped on non-essentials

Also included: IS versions. (Internet Sharing)

This is a version of JustStable with the following changes:

1. Stripped of ALL non-essential programs. (Including NetCF.)

2. LZX compressed

3. ULDR removed!!! A first for the Herald. This saves around 3MB that is normally used as storage for “windows updates” which are never released. lol

All in all you get:

74+mb FREE of Storage Space!

29-30MB FREE of RAM WITH a 6mb pagepool

Due to the removal of the ULDR, the pagepool CANNOT be changed. (Although, I haven’t tried using the old way of changing the pagepool…)

Get the newest version here. (Click on the JustROMs link.)

Warning: This HAS to be flashed through an SD card.
[Wing, P4350 ROM development] unknown123456:
Let me be the first to say Thank you so much Ivan. This is the micro ROM I've been waiting for. I can't even describe this ROM in words yet. It's an extremely fast installation because it's so clean. With the latest ioLite Manila2D installed, it still runs 22MB of free RAM. This is the best you'll get I assure you with the Herald if you are into the Manila2D thing like myself.

Question: Have you tried using 4MB Pagepool with your JustStable, Ivan? How well did it run? Will the Herald get more free RAM if so?
[Wing, P4350 ROM development] zcink:
Micro ROM

Ivan this is super. I love this micro rom. Wow its super fast. Thanks!

I love it cuz I can put on just what I want. How the Hell did you get soooo much Memory? Awesome!
[Wing, P4350 ROM development] ivanmmj:
Yes. I ran fine. I chose 6mb to cover myself from people running huge programs.

Just use a pagepool changer on the NBH file and you can set it to 4mb before you flash it.
[Wing, P4350 ROM development] ivanmmj:
lol. Secret sauce.
[Wing, P4350 ROM development] nikmel420:
i love how u didnt say anything abought it then when i went for the lzf version this morning theres this teany tiny file saying micro made my day i just flashed it saw the storage and had to say bravo i love surprises and this right up there with finding the cop handcuffin you is realy a girl your friends got u on your birthday(sry its the only good surprise that i could think of in a hurry) well off to check out what 75mb can handle :D
[Wing, P4350 ROM development] unknown123456:
Yeah, I tried using a PagePool Changer but it didn't work. It's grey out and you mentioned it on your post prior to my download and attempt to changing it. That is why I'm requesting a 4MB PagePool if possible. But even at 6MB, it's has incredible amount of free RAM for the herald with the latest Manila2D that is a resource hog compared to older versions like in Tran's OTP.
[Wing, P4350 ROM development] ivanmmj:
Manila2D has always been a memory hog. ;)

Are you using the newest version of pagepool changer? The first time I did it, it didn't work, the second time, with a different version, it worked.
[Wing, P4350 ROM development] unknown123456:
Thanks Ivan. I downloaded the newer version of PagePool Changer from Sept 08 and it worked. With just Manila2D installed, it's at 26MB! A clean install with JustStable at 4MB PagePool gives 31MB of free RAM. This is the most free storage/ram anybody has ever created for this phone. You are a true asset to this forum and HTC/Micosoft should be paying you if they keep selling the Herald/Wing :) .
[Wing, P4350 ROM development] ivanmmj:
Haha, thanks. Yea, I plan to release a similar version of WM6.5.
[Wing, P4350 ROM development] zcink:
4 mb Pagepool

yes thats what I'm talkin about. Awesome even more so.
[Wing, P4350 ROM development] kristopherson:
Love love love love this micro rom and I can't wait for the micro 6.5. I can't get mms or the tmo oz im to work tho... anyone else have this issue or have a suggestion for me?
[Wing, P4350 ROM development] ivanmmj:
Did you install Arcsoft and a connection wizard (or write the settings in by hand)?
[Wing, P4350 ROM development] kristopherson:
yes i did. everything else works really really well. except the " ; " key for some reason. mms and sms im'ing are huge for me. i average 10,000 text a month. without a data plan i like oz because it works with my unlimited msging plan

using arcsoft mms 5.0.31.7
[Wing, P4350 ROM development] lennyjaxn:
Is there a list anywhere that tells the difference between the "full" version and the "micro" version? I know the Micro is JUST what comes with WM6.1, but since I don't know what that is, I'm not sure what's been added for the full version. I guess I could get both and write down a list myself of the differences, but since I'm lazy I figured I'd ask first to see if this had been done anywhere.
[Wing, P4350 ROM development] buru898:
Hey Ivan LOVE this ROM... damn you are amazing man mad props to you.

Just one problem... I don't know if it's just me but some programs won't open. I don't get an error or anything. The little busy icon appears then quickly disappears then... nothing. I can't open Advanced Config or Ing Change Font...

I reinstalled Advanced Config and reseted and turned off the phone but... still nothing... Any reason why it wouldn't be working?

EDIT:

Oh haha nevermind I needed to install .net compact framework.