HTC PDFviewer working on JF and Haykuro builds! - G1 Android Development

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:
savethechicken said:
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
Click to expand...
Click to collapse
Enjoy =]

Yeah, hey...does that come in a shiny noob edition?

You mean without using adb?

tr.slate said:
Yeah, hey...does that come in a shiny noob edition?
Click to expand...
Click to collapse
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.

Gonna try this later

works great!
thanks!

glad you like it thanks for the rehash smurphete, and thank you for retaining the credits

thx for this.

Works great on jf's build, thanks for sharing.
Go Lakers!!!

strazzere...
AWESOME!!!!
works great thanks!!!

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.

works great! thanks!

Awesome! Thanks guys!

Cool that he got it working on JF 1.5, but the HTC PDF viewer is so slow, RepliGo Reader on the Market render pages much faster.

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

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

Thanks for this, been wanting it. Works great.

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!

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.

Anybody try it on an HTC 1.5 f/w?

Related

HTC VK apk files - what is the diff between key.apk and HTC_CIME.apk

I have both files:
key.apk
and
HTC_CIME.apk
I found the the post advising on how to install the HTC_CIME.apk into the G build first and installed that file without a problem. I like the HTC VK version better than the G (I have big finger tips!) and I liked the predictive text feature I installed with the HTC file. It works great! And, overall, I am really happy with it...
But, it has the Chinese input key to the left of the space bar. And, if I hit it by accident it force closes.
I tried installing the key.apk over the other install to note any differences and it caused an error message - can't install. So, to install the key.apk I will have to wipe. I'm having problems with my home computer (Vista -64bit) recognizing my device (1.5 build). Until I can get that figured out I can't re-install a nandroid back up. So, can someone answer some questions for me? This will help me decide which file to keep in my archive and whether it will be worth a wipe to install the key.apk file.
I have three questions:
1) does the key.apk have predictive text with the associated library and where one can add in custom words like the HTC_IME file?
2) does the key.apk have a different input key next to the space bar that replaces the Chinese input key?
3) what is that gear key I have seen on some HTC keyboards that replaces the Chinese input key?
Thanks for the help. I would like to just figure it out by myself... But, I am at wit's end trying to get my computer to recognize my phone! That is another post for the future if I don't get any success within another week. (Yes, I have done numerous searches and tried about 12-15 different methods to get it to work.)
Thanks,
Shaneaus
Note: I attempted to attach the two files. But, it wouldn't allow me to do so (I am at work). I'll try again tonight when I get home.
1. Yes.
2. Yes, it had the gear key.
3. The gear key just pulls up the VK settings menu.
I prefer the key.apk keyboard, since I have absolutely no need for chinese input.
Thanks! Looks like I'll be wiping/re-installing tonight. :-(
Hi,
No need to wipe.
Just delete out the Chinese keyboard and reboot.
It leaves your with the htc keyboard only.
Adb remount
Rm /system/app/HTC_CIME.apk
Reboot.
shaneaus said:
Thanks! Looks like I'll be wiping/re-installing tonight. :-(
Click to expand...
Click to collapse
Adb remount
Rm /system/app/HTC_CIME.apk
Tried that and also looked for the file using Astro and couldn't find it.
Also, it won't let me install key.apk with the HTC_CIME.apk installed.
Going to try to just re-install the DudesG build and see if I can install key.apk from there.
EDIT: Didn't work... Looks like I'll have to wipe after all. I just hate having to change all of my links/settings as I have ALL of my data/apps on ext2.
it's
Code:
rm -r /system/app/com.htc.android.htcime.apk
rm -r /system/app/com.htc.android.htcime.apk
No such file or directory.
Thanks for the input though! Any other suggestions! LOL
shaneaus said:
rm -r /system/app/com.htc.android.htcime.apk
No such file or directory.
Thanks for the input though! Any other suggestions! LOL
Click to expand...
Click to collapse
Sorry, I was just running off the top of my head. I've actually checked the phone this time, and it should be
Code:
adb remount
rm -r /system/app/HTC_CIME.apk
Same result:
No such file or directory.

new scripts

Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.

Question about adding stock apps back

I have read and still don't understand how to add back apps like Sprint TV. I have them all saved on my computer I just do not know the commands to get them back into the phone. Do the apps I want to ad back need to be in a certain dir on my computer first. If someone could explain or either point me to a thread that explains this I would really appriciate it.
Seems I found an easy way to add sprints, htc's apps back into the phone once removed. I saved all of them on my computer and used HTC Sync to install the app back. I removed Nscar as a test using root manager, rebooted and it was gone, then opened up HTC synch and added it back. Not sure how to get the odex files back in but it works with apk files.
AFter testing it om HTCfootprints it would not install this. Installed Nscar with no problems.
I am also trying to figure out how to add sprint tv back onto my Hero. I see that people are saying to use adb push, but I can't seem to get it to work. I just rooted with the new fresh rom and everything is great, I just want to add back sprint tv. Any help would be appreciated, thanks
Im a total noob, but I got it the apps back on this way:
Go to the directory where the ADK Tools directory is. Then the following commands:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 777 /system
chmod 777 /system/app
exit
exit
Then I copied the .apk files that I wanted to push to the tools directory
I am in.
Then did this:
adb push Sprint_TV.apk /system/app
I found it is case sensitive, so make sure you type the filename exactly.
I rebooted my phone and the apps (such as Sprint TV) were back.
I hope this helps, like I said, I spent an hour trying to figure it out, but this worked for me.
I would not recommend doing a chmod 777 on your system or app directory. Not that anything bad will necessarily happen, but it's generally not a good idea to mess with system file permissions when you don't have to.
Your procedure would work fine without those commands at all, in fact. You don't even need to enter the shell; just adb remount and then adb push.
those instructions worked perfectly. Thanks a ton.
I tried this with HtcFootprints. I removed the widget as well. When I added all 4 back in I can see the widget for footprints, but the footprint icon does not show up in the apps section.
Another thing of intrest. When I added Nscar back using HTC Sync, it now shows up as a third party app. It is no longer a system app and I can uninstall it like a market app.
Ok scratch that I did the Footprints again and the Icon is now there Thanks a Ton
I was able to push HtcTwitter.apk and .odex. i cannot get the widget to show up in the add HTC widgets menu. Any ideas?
Well, after trying my hand at update/rom modding with some success... I'm willing to take a shot at making update.zip files to easily flash individual stock apps back onto your phone. That's if there's any interest.
obelisk79 said:
Well, after trying my hand at update/rom modding with some success... I'm willing to take a shot at making update.zip files to easily flash individual stock apps back onto your phone. That's if there's any interest.
Click to expand...
Click to collapse
That would be great and very helpful to many
Easy Peasy App Install
I just copied the files to my SD card. I then browsed to the SD card folder using Linda File Manager and "clicked" the file. It asked me if I wanted to use Linda File Manager or Package Installer. I selected Package Installer and it proceeded to installed the package for me. Not need to get into the console or use any commands.
VOILA!

Root Explorer not copying

Hi,
I tried to copy an API to /system/app, but when I did that, the screen just blinks, and the file is not pasted into the directory.
I had temp root, and had remounted R/W.
I eventually was able to do the copy by using ES Explorer, but not with RE itself.
Does anyone have any idea what might be wrong?
Thanks,
Jim
Don't know if this helps but... I recently tried to do some copying of files using AndRootFile, and RootExplorer. And like you they did not "take". I finally figured out that after I selected a file to copy, I would use the back arrow button to move to the target folder. This was the problem. When I used the Parent folder icon instead to move back out of the folder, and move to the destination folder without using the back arrow button. the file copied just fine. Hope this helps.
Reggie,
Thanks for the suggestion, but, no, I wasn't using the "back" to get to the /system/app directory. I was clicking on the parent dir, etc.
Jim
I also am having that problem. I tried both the back buttons and the parent directory. Ive tried factor data reset as well. I wander if it has anything to do with the update yesterday?
Until we/someone figures why, you can use root explorer to mount, then the built in es explorer to do the copy...
Jim
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native 'cp' command, so you have to use 'busybox cp' instead. I wonder if that's why the RE copy/paste doesn't work?
Jim
SOLVED - it was no native 'cp'
jimcpl said:
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native Cp command, so you have to use 'busybox cop's instead. I wonder if that's why the RE copynpasre doesn't work?
Jim
Click to expand...
Click to collapse
Hi,
I just tried a test, where I created a softlink for 'busybox cp':
ln -s /system/bin/busybox /sbin/cp
I then was able to use RE to copy/paste into /system/app !
CAVEAT: I don't know if busybox is on Gtab by default...
Jim
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
NMCBR600 said:
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
Click to expand...
Click to collapse
Hi,
That was a typo on my part. The 'cp' command (lowercase c) was really missing in my Gtab .
I've been experimenting w/alternate keyboards, and keep making typos ...
Jim
P.S. I fixed the typos ...
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
butchconner said:
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
Click to expand...
Click to collapse
Hi,
BTW, to create the softlink (using ln), you'll need to use adb shell. Or, you could use a terminal, if one's installed (kind of catch 22, since you'd need market to get a terminal).
Otherwise, what might work is:
- z4root to get root
- root explorer to make /system R/W
- kill then restart es file explorer and use that to copy the apks to /system/app
Jim
SIGH ... softlink doesn't survive a reboot
It looks like the softlink that I created disappears after a reboot... then RE can't copy again.
Sorry...
Jim

Root you Droid charge the Clean way (adb)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.samsung.com/us/support/downloads/SCH-I510RAAVZW
DRIVERS- Once you go to the download link you should see
"MANUALS l SOFTWARE" click on software and download those drivers! If your phone is plugged in while you are doing the download this is ideal because they will automatically sync.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://developer.android.com/sdk/index.html
DOWNLOAD SDK- (Get the zip and paste it in your C:\ Drive for less headache)
After you have downloaded and pasted in your C:\ run "SDK Manager.exe" If your on Vista I run everything as Admin so just run it as Admin so there's no mix ups.. Whenever you run a program while following this tut USE ADMIN!!
When you run the program a little black box similar to cmd pops up.. just move it out of the way because its not important.
That being said you should now see a loading box and if your computer runs pretty quick it should be about done by the time you get done reading this.
Check the very first box and uncheck the rest.. all you need is the "platform-tools option. The other stuff is irrelavent to what were trying to accomplish.
Once you have the folder "platform-tools which is going to be inside your Android folder.. (the one we pasted to our C:\ not too long ago) look inside the folder to confirm that "adb.exe" is inside.. if it is then close out of sdk if not.. figure out what you did wrong and fix it! by default the adb.exe is in your tools folder so if all else fails follow my instructions using your tools folder meaning everything I use the word "platform-tools" you would just use "tools" or wherever adb.exe is located.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This tutorial is WORD FOR WORD meaning this is exactly what you type into your command prompt
The "$"s and the "#"s are what you SHOULD see after you have typed in adb shell once you've navigated to your sdk folder.(If you have no clue what im talking about, you will just continue reading)
BEFORE WE BEGIN download GingerBreak, busybox, Superuser.apk, su
EVERYTHING IS CASE SENSETIVE so make sure your watching that.. if something doesn't work.. you prolly misspelled or
didn't put a space or didn't have the right case..
DroidChargeADB_rootKIT.rar
http://www.multiupload.com/1Z5DDP79QI
After you have downloaded the DroidChargeADB_rootKIT extract them into your /Android/platform-tools/ folder wherever it is..
Default location for platform-tools is usually this
win32- C:\Program Files\Android\android-sdk\platform-tools (wherever your adb.exe is, is where you should set your path)
win64- C:\Program Files (x86)\Android\android-sdk\platform-tools
Click start go to command line (go to "run" and type in "cmd")
after the "~~~~~~~~" is when it begins and thats when you type word for word what ive typed out
unless i have said something then I will make it obvious that you dont type that also I will put (Dont type this)
at the beginning of my text and at the end.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd C:\Android\platform-tools
adb devices
adb push GingerBreak /data/local/
adb push Superuser.apk /data/local/
adb push su /data/local
adb push busybox /data/local/
adb shell
$cd /data/local/
$chmod 700 /data/local/GingerBreak
$chmod 755 /data/local/busybox
$./GingerBreak (<~~~~Dont forget the period (Dont type this))
(DONT TYPE THIS)
THIS
BIG
LONG
LIST
OF
USLESS
INFORMATION
(DONT TYPE THIS/)
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
#chmod 777 /system/bin
#./busybox cp busybox /system/bin (<~~~~Dont forget the period(NO TYPE))
#chown root /system/bin/busybox
#chmod 777 /system/app
#chmod 755 /system/app
#chmod 4755 /system/app
#busybox cp Superuser.apk /system/app
#busybox cp su /system/bin
#chown root /system/bin/su
#chmod 755 /system/bin
#chmod 4755 /system/bin/su
#mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
#restart
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
YOUR ROOTED THE PROPER WAY!! And its a very clean root.. Hope I helped.. Dont tell me I helped! CLICK THE BUTTON! =] ty for reading all that hahahahaha..
ONE other thing. DONT BE "THAT" GUY.. haha shutup. you know exactly what I mean.
ALSO if you want stock EE1 versions of this software with cool fonts,backgrounds,de-bloated,cool ringtons, already rooted(or non-rooted) and odin ready, just let me know and Ill upload them!
That Guy u Kno said:
=] ty for reading all that hahahahaha..
ONE other thing. DONT BE "THAT" GUY.. haha shutup. you know exactly what I mean.
ALSO if you want stock EE1 versions of this software with cool fonts,backgrounds,de-bloated,cool ringtons, already rooted(or non-rooted) and odin ready, just let me know and Ill upload them!
Click to expand...
Click to collapse
I....don't......know.....how......to......respond!?
There is some useful info here but everyone just flashes stuff here. We use kernels that root the phone for us, thereby not needing to manually root it.
kernels never work for me.. i gotta do it the hard way =(
That Guy u Kno said:
kernels never work for me.. i gotta do it the hard way =(
Click to expand...
Click to collapse
You're going the very hard way if you're on anything but ED1 as none of the root exploits work on ED2/EE4 or the GB leaks.
I really don't understand why you need this...
Sent from my Droid Charge running GummyFroyo 1.9.1
Thanks for putting this out there. Its nice to know there's another way to do this.
Sent from my SCH-I510 using Tapatalk
putney1477 said:
Thanks for putting this out there. Its nice to know there's another way to do this.
Sent from my SCH-I510 using Tapatalk
Click to expand...
Click to collapse
Agreed, I personally won't use this but hey, options are always nice.
kvswim said:
I really don't understand why you need this...
Sent from my Droid Charge running GummyFroyo 1.9.1
Click to expand...
Click to collapse
I find it useful as i have had trouble with the "easy" methods as well. This could come in quite handy.
Sent from my SCH-I510 using Tapatalk
mr.terry said:
I find it useful as i have had trouble with the "easy" methods as well. This could come in quite handy.
Sent from my SCH-I510 using Tapatalk
Click to expand...
Click to collapse
This won't come in handy at all. As of ED2, which was released the day that the Charge launched, no known exploit methods work to gain temp-root access. So, unless you're keeping your phone on ED1 for the entire life of the phone, this method is useless.
imnuts said:
This won't come in handy at all. As of ED2, which was released the day that the Charge launched, no known exploit methods work to gain temp-root access. So, unless you're keeping your phone on ED1 for the entire life of the phone, this method is useless.
Click to expand...
Click to collapse
Exactly, if you root this and then boot the phone, it will unroot itself unless you are running ED1, and that's just..... pointless.
imnuts said:
This won't come in handy at all. As of ED2, which was released the day that the Charge launched, no known exploit methods work to gain temp-root access. So, unless you're keeping your phone on ED1 for the entire life of the phone, this method is useless.
Click to expand...
Click to collapse
Ahhh i see. Good to know. I come from a couple of years of playing with a rooted og droid and the charge is new territory for me. Thanks for the heads up.
Sent from my SCH-I510 using Tapatalk
One click root is the same exact concept... Its clean regardless. But thanks for the effort of typing all that up, lol.
Although the "purpose" of this tut may be worthless quite a few of the commands you learn from this are essential in all builds.. such as chmod, chown, mount... I still use these commands frequently although this is beginner level (still good )

Categories

Resources