yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] djlucklu:
Well I dont know if someone else is working on this..so MODs spare with me. if someone is then close this thread. Moving on.

I've actually ported the Official Hero Camera/Camcorder (the one used from the Speedup Hero thread) to JF1.5 and it worked. A

LL FILES CAN BE FOUND IN HAYKURO'S HERO ROM(http://xdaforums.com/showthread.php?t=521059) EXCEPT HTCCAMERA.APK WHICH I POSTED LINK FOR.

REMOVE CAMERA.APK FROM YOUR BUILD FIRST!!!!

NOTE: Installing the HTC Camera will also remove the old Gallery app with the old Camera, So HTC Gallery has to be ported.

PUSH THESE FILES TO THE FOLLOWING PLACES. THERE ALSO FOUND IN THE EXACT LOCATION FROM HERO. HTCCAMERA.APK IS FROM TEHSEANO'S SPEEDUP FOLDER

# NECESSARY FILES

Code:

SYSTEM - FRAMEWORK FOLDER

i.) com.htc.android.pimlib.jar

ii.) com.htc.framework.jar

iii.) com.htc.resources.apk

iv.)com.htc.android.easopen.jar (Dont know if needed but still ported it)

v.) ime.jar(Cant say if needed, it already has But still can have differencs)

SYSTEM - ETC - PERMISSIONS FOLDER

i.) platform.xml (MUST BE REPLACED VERY IMPORTANT FOR HTC APP FRAMEWORK)

II.) com.htc.framework.xml(Not sure if needed but doesn't kill to port)

SYSTEM - APP FOLDER

i.) HTCCamera.apk(FOUND HERE TEHSEANO:http://xdaforums.com/showthread.php?t=521421)

SYSTEM - LIB FOLDER

i.) libcamera.so

ii.) libcameraservice.so

iii.) libqcamera.so

iv.) libcamerahal.so

v.) libc.so(dont know if needed)

HTCALBUM (Gallery) [So cant say these libraries are complete files needed]

Code:

SYSTEM - APP FOLDER

i.) HTCAlbum.apk

SYSTEM - LIB FOLDER

i.) libexif_htcalbum.so

Known Issues

1.the camera is now affected by the auto rotate sensor so when holding the phone upright, the camera is rotated oddly. (but have taken the pic, the pic is upright how its suppose in the gallery)

2. the shutter sound can't be shut off. Even with the option unclicked in the menu it still sounds off, although if I have read correctly, this is a Google bad in Android & not the actual app.

3. clicking the icon on the bottom (the gallery icon I'm guessing?) causes a force close

AS YOU CAN SEE I CANT ALL CREDIT FOR THIS BECAUSE I USED SANGEET.003 THREAD AS REFERENCE(http://xdaforums.com/showthread.php?t=515840)

WILL TRY OTHER BUILDS WITH MY SPARE G1 AND TRY DIFFERENT APPS/WIDGETS..HELP IS APPRECIATED

CREDIT GOES TO HAYKURO,SANGEET,TEHSEANO, JF, IF I FORGOT YOU THEN PM ME AND ILL ADD
[G1 Android Development] defconoi:
see if you can port the browser with flash, that would be a nice addition :)
[G1 Android Development] Darkrift:
I just posted a thread with the opposite in mind, but the same search for matching files. I am trying to find what files go to what apps so I can remove them to make rosie work even faster. you might check out my thread to see if any of those apps are on your list or vice versa.

http://xdaforums.com/showthread.php?p=3883770#post3883770
[G1 Android Development] djlucklu:
will do...reading now
[G1 Android Development] sacredsoul:
Anyway to have Rosie on Roger's?
[G1 Android Development] thelamacmdr:
Hmm if I have this correct then you and I are trying to do teh same thing =). I'm trying to find all teh necessary files to port the HtcMusic.apk from Rosie to Ion and in doing so I hope to extend this to other apps as well (possible get widgets too, dunno if it works that way though).
[G1 Android Development] djlucklu:
i think music app you will also need the .odex file. i think for everything you will need the files i posted as necessary for theme to work because it has to deal with htc framework.

try these:

libm.so

libmedia.so

libmedia_jni.so

libmediaplayerservice.so
[G1 Android Development] Rayman0625:
Try to port the Twitter widget ;).
[G1 Android Development] superg05:
oh crap does it really have flash player
[G1 Android Development] Phawkes:
This sounds like a wonderful idea. I'd love to see some of the widgets that rosie have come to the other roms. I hope this plan stays in motion!
[G1 Android Development] LatinSilEighty:
is there a reason why my gallery isnt there and wont work when i click on the gallery icon on the camera screen?
[G1 Android Development] doubleokneegro:
yeah just to give you a visual.... went to adobe on the browser to check...
[G1 Android Development] seraphimserapis:
How about the twitter widget.. i'd love it!
[G1 Android Development] defconoi:
we must port this at the least over, any idea what dependencies/libs it needs to work on 1.5 ?

hmm all the libraries wont fit on /system we may need to use the alternate spl...
[G1 Android Development] defconoi:
maybe we can just symlink the individual files wherever we have space on the device
[G1 Android Development] wwwhershcom:
i highly doubt the widgets can be ported over.

the widgets were designed specifically for the Rosie UI.

as you all know Rosie, is just a fancy home replacement, similar to aHome, or Open Home.

remember before 1.5 when each of these had there on specific widgets.

well this works the same way.

regardless, good luck.
[G1 Android Development] defconoi:
Porting the Hero Browser to DudeOfLife 1.2b

I am trying to port over the browser with flash, I spent a few hrs on it but gotta go to sleep, here is my progress...

Ok basically I moved the old framework to .bak files and copied over the htc framework from the hero rom and created symlinks to /cache/lib and /cache/framework and I still seem to be missing some libraries that I have symlinked. Note dont do any of this unless what you know what your doing, because it will cause your phone to constantly cycle while trying to load some libraries I am missing...

Here is the error im getting because im missing something:

D/dalvikvm( 137): Trying to load lib /system/lib/libwebcore.so 0x0

I/dalvikvm( 137): Unable to dlopen(/system/lib/libwebcore.so): Cannot find library

W/dalvikvm( 137): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Landroid/webkit/WebViewCore;.<clinit>

D/AndroidRuntime( 137): Shutting down VM

And below is commands I used to symlink these libraries/apks because there isnt enough space in /system so I decided to use the 66 meg free on /cache

Of course you will have to adb push or cp your files from the hero rom thats either on your pc or on a sdcard

cd /system/framework/
busybox mv com.htc.framework.jar com.htc.framework.jar.bak
busybox mv com.htc.resources.apk com.htc.resources.apk.bak
ln -s /cache/framework/com.htc.framework.jar com.htc.framework.jar
ln -s /cache/framework/com.htc.resources.apk com.htc.resources.apk
cd /system/lib/
busybox mv libwebcore.so libwebcore.so.bak
busybox mv browsertestplugin.so browsertestplugin.so.bak
ln -s /cache/lib/libflashlite.so libflashlite.so
ln -s /cache/lib/libwebcore.so libwebcore.so
ln -s /cache/lib/browsertestplugin.so browsertestplugin.so

And of course the Browser.apk needs to be copied from Hero to /system/app

What libs am I missing?

Ok its 4:45 in the morning in Colorado, and im too tired to go on, if someone can continue where I left off and possibly suprise me in the morning with the browser ported that would be great!

Peace

defcon
[G1 Android Development] defconoi:
Porting the Hero Browser to DudeOfLife 1.2b

I am trying to port over the browser with flash to dudes rom, I spent a few hrs on it but gotta go to sleep, here is my progress...

Ok basically I moved the old framework to .bak files and copied over the htc framework from the hero rom and created symlinks to /cache/lib and /cache/framework and I still seem to be missing some libraries that I have symlinked. Note dont do any of this unless what you know what your doing, because it will cause your phone to constantly cycle while trying to load some libraries I am missing...

Here is the error im getting because im missing something:

D/dalvikvm( 137): Trying to load lib /system/lib/libwebcore.so 0x0

I/dalvikvm( 137): Unable to dlopen(/system/lib/libwebcore.so): Cannot find library

W/dalvikvm( 137): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Landroid/webkit/WebViewCore;.<clinit>

D/AndroidRuntime( 137): Shutting down VM

And below is commands I used to symlink these libraries/apks because there isnt enough space in /system so I decided to use the 66 meg free on /cache

Of course you will have to adb push or cp your files from the hero rom thats either on your pc or on a sdcard

cd /system/framework/
busybox mv com.htc.framework.jar com.htc.framework.jar.bak
busybox mv com.htc.resources.apk com.htc.resources.apk.bak
ln -s /cache/framework/com.htc.framework.jar com.htc.framework.jar
ln -s /cache/framework/com.htc.resources.apk com.htc.resources.apk
cd /system/lib/
busybox mv libwebcore.so libwebcore.so.bak
busybox mv browsertestplugin.so browsertestplugin.so.bak
ln -s /cache/lib/libflashlite.so libflashlite.so
ln -s /cache/lib/libwebcore.so libwebcore.so
ln -s /cache/lib/browsertestplugin.so browsertestplugin.so

Oh and dont forget to push the Browser.apk over

What libs am I missing?

Ok its 4:45 in the morning in Colorado, and im too tired to go on, if someone can continue where I left off and possibly suprise me in the morning with the browser ported that would be great!

Peace

defcon
[G1 Android Development] jdwme:
In the hero rom there's a FlashPlayer.apk, you might need to port that over too for it to work
[G1 Android Development] LatinSilEighty:
im really interested in getting this camera and camcorder to work correctly. what files do i move over to get the gallery back? because its kinda pointless to take pictures and videos if you cant send them anywhere? i tried doing it twice and i noticed that the gallery folders werent in the HTCCAMERA.apk so anyone have an idea? and flash would be nasty
[G1 Android Development] djlucklu:
Theres instructions on porting the gallery on sangeets.003 thread. the link is in the first post.
[G1 Android Development] robpet2:
anyone have adb codes to push and install the following from hero ??

calendar

keyboard ( w/ english handwriting recognition )

flash player ( might work )

quickoffice_htc_1.0.1.apk

htc twitter.apk
[G1 Android Development] malaeus:
subscrip

bumping for subscription to this thread, would love to see how the flash player works, if it can be made functional outside of hero. especially with multitouch, could be interesting. btw, if you guys get things working and need some space to throw up files, just PM me.
[G1 Android Development] csocean:
I've been looking for a way to use the VK from Hero on Ion. No joy yet though, if anyone has any ideas, please post!

I like the idea of being able to pick & choose bits of roms to some degree!
[G1 Android Development] dubbeld00:
http://xdaforums.com/showthread.php?t=521221

Here are the requirements of the browser, I've tried to get it working a couple of times, but I really can't get it working, maybe someone else can take a look (the topic starter?). The only thing is, flash lite (flash 8) doesn't work that well in the Hero ROM...
[G1 Android Development] Killarny:
I've not used ION, but haykuro posted the HTC_IME on his site a while back. It's basically the english version of the soft keyboard that is in Hero. I've got it working right now on ADB 1.5, so I assume the same instructions he gives will work on ION.

http://haykuro.theiphoneproject.org/?p=213

Good luck.
[G1 Android Development] csocean:
That worked a treat! You sir, are a gent.
[G1 Android Development] namsir:
The album doesn't work on the Camera, plus the camera view is sided way when the phone horizontal.
[G1 Android Development] nolageek:
I'd love to see Chirp working on a non-hero build. I love that twitter app (not the widget) but Hero is so slow. :(
[G1 Android Development] Christopher3712:
Try an optimized version of Hero, mine works pretty quickly. It's still not stable, but the devs are making serious headway into a stable build.
[G1 Android Development] alritewhadeva:
i'm trying to port the camera to cyanogen's build using the method in the OP has this worked for anyone or not worked for anyone?
[G1 Android Development] chrisrj28:
Anyone have the HTCgallery.apk? I checked that thread and I couldn't find it.
[G1 Android Development] alritewhadeva:
Cool it seems to work successfully :) Will report back on this later.
[G1 Android Development] mrgomab:
ok i successfully ported the camera but not the camcorder? I thought the camcorder came with the camera apk. i am using jf1.51adp
[G1 Android Development] djlucklu:
it is supposed too automatically.. retry
[G1 Android Development] pentace:
dont forget the flashplugin.so

Dont forget the flashplugin.so
[G1 Android Development] 281:
this would be cream of crop

is there anyway that anyone can add the Hero theme to the ion rom, and not just the ion rom but any other. Like Dude for example except with nothing added because as much as i liked his build cupcake was just fine all we needed is the theme. No other unneccessary apps, 5 home screens... just the plain old theme with fast old ion :) just wondering if possible
[G1 Android Development] mrgomab:
yea i had to remove the camera apk from the theme i was using and flash, everything good now... now how to port the music app from hero:confused:
[G1 Android Development] Geniusdog254:
I REALLY want the HTC music player on my rocket fast Ion build. I've got a bit of free time so I'll give it a shot with some of what I've read here. Hero is getting better & better & if they get bluetooth up & running I'll definitely switch to it though.
[G1 Android Development] Vision77:
Yeah, if the devs get bluetooth to work, I will be a total hero convert. Currently, if I could just get the phone, people(contacts), and calendar apps on a JF or Cyanogen build I would be ecstatic.;) So my question to the devs would be is this possible or are those apps so hero/rosie dependent that it just won't work?
[G1 Android Development] Seenochino:
i dont believe the apps are dependent on rosie but they may be dependent on hero. i was running Hero Beta 4 and it doesnt come with rosie at all. i would start with that rom to try and get music/calendar. that rom didnt have flash so i would leave the browser alone. OP take a look at hero beta 4 if you havent already. i cant find the link at the moment but if you want it you can email me seenochino at gmail dot com... another great thing about hero beta 4 was the notifications. when i got multiple sms it would pop up like normal in the notif bar except it had a counter showing how many unread sms i had. same thing for voicemail. very nice touch. none of the current hero w/ rosie roms have that...

lmk if you want the rom
[G1 Android Development] adamjsays:
How hard would it be to port the hero lockscreen? Or would it just be hero at that point?
[G1 Android Development] Zarboz:
very interested in porting the people dialer/phone apps... thats really the only things i think are cool about hero
[G1 Android Development] Beast84:
This camera is pretty nice. There are a few issues I have run into. 1 is the camera is now affected by the auto rotate sensor so when holding the phone upright, the camera is rotated oddly. 2 the shutter sound can't be shut off. Even with the option unclicked in the menu it still sounds off, although if I have read correctly, this is a Google bad in Android & not the actual app. And also clicking the icon on the bottom (the gallery icon I'm guessing?) causes a force close. These are the only issues I have seen but all in all, not a bad camera. Zoom is pretty smooth on it but nothing special. I'll keep it for a while
[G1 Android Development] Beast84:
Just hit a major bump in the road! I am not able to play videos. Everytime I try to watch a video, wether it be through Astro or the gallery, the gallery app forcecloses. Anyone else?
[G1 Android Development] JazzMac251:
Wow defconoi I didn't think anyone was working on this. Well done! How's it coming?
[G1 Android Development] jmiller0526:
i am fairly dumb when it comes to linux/android stuff but i tried to follow this same method with the HTC Peep twitter program (i tried it with chirp too) to no avail....chip will install successfully but goes to white screen when its run and peep wont install....

i hope someone smarter than me figures this stuff out soon!
[G1 Android Development] JazzMac251:
Hey guys, have you seen this?

http://xdaforums.com/showthread.php?t=530572

Apparently, JF released a tool that will make porting Hero parts a lot easier. According to Stericson it can "can disassemble and reassemble dex files." I'm hoping this will make it possible for someone to port the hero browser over. I'd like to give it a shot but i don't really know anything about coding, unfortunately. :o
[G1 Android Development] dbhatesyou:
peep and chirp are htc rosie dependent
[G1 Android Development] Ted417:
So this has been worked on for about a month and no flash player on browser?... hmmm... well... its pretty hard... so... oh well... :/
[G1 Android Development] noid32:
Has anyone port HTCAlbum to other ROM?

BR
[G1 Android Development] dbhatesyou:
retracting my state ment the htc widgets that show on the rosie/sense screen seem to be dependent; looking more into the htc twitter app; its just twidroid apparently.

so for those who wanna look into that; twidroid seems to be a good start.
[G1 Android Development] imbonez9:
can we please get the calander and messages widget over!!! please!!!! mainly that messages one!!! im dying for that one
[G1 Android Development] alritewhadeva:
Widgets are dependent on Rosie UI. So ,any1 interesting in working with me to port the dialer to cupcake ROMS. The HTC Dialer that is. I've already decrypted (if thats the right word) the AndroidManifest.xml and am trying to de-optimize the Phone.apk so i can get a working classes.dex. I'll be disassembling that, making edits and assembling it again. I'm not sure how to do this and I'll need help with the necessary frameworks, permissions ,etc...Any1 interested? Hit me up on twitter, PM ,email -alritewhadeva@gmail.com or gtalk - alritewhadeva@gmail.com cmon we can get this working!
[G1 Android Development] Mast3rmatt:
I would Love to see the calendar App to be ported. I am not sure if it would be hard but its looks so clean and looks 10x better then the default.
[G1 Android Development] dgermundsen:
okay so i have all the necessary files in the right places but still nothing... am i missing something? I am running CyanogenMod 4.2.4. Could this be the reason why?

i used SUFBS and mounted the system for read write, placed the files in the appropriate places but its coming up with a force close everytime i try to open the camera or album
[G1 Android Development] persiansown:
What is up with all the noobs bumping old threads?
[G1 Android Development] nolimit78:
that's what I'm sayin!
[G1 Android Development] Pinesal:
They probably find them with a Google search.
[G1 Android Development] Darkrift:
I would like to clean up some of the junk from rosie that I will never use, but could use some help figuring out which libs are required by what apps. I dont have a way to find this other than by filename so if anyone else does, feel free to share.

So far, the apps (and their libs that ive found) that I would like to remove are:

footprints:

app:

./system/sd/app_s/HtcFootprints.apk

./system/sd/app_s/HtcFootprintsWidget.apk

libs:

./system/lib/libexif_footprint.so

Quick Office:

app:

./system/sd/app_s/Quickoffice_HTC_1.0.1.apk

PDF Viewer:

app:

./system/sd/app_s/PDFViewer.apk

libs:

./system/lib/libpdfreader.so

HTC Sync?:

/system/sd/app_s/PCSCII.apk (thanks afflaq)

Extra setup wizard??:

/system/sd/app_s/GoogleSetupWizard.apk

/system/sd/app_s/HTCSetupWizard.apk

If you know of any problems by removing any of these files, id love to know about them. Also if you know of more files or any extra useless junk that can be removed that would be great also. I already deleted the tutorial videos but those just took up unusable space and probably have zero affect on performance.
[G1 Android Development] afflaq:
HTC Sync is /system/sd/app_s/PCSCII.apk
[G1 Android Development] djlucklu:
Bcareful some apps are connected to one another and need each other.
[G1 Android Development] DMaverick50:
will deleting quickoffice improve performance or just free up space?
[G1 Android Development] Ryanmo5:
I would like to know about tutorials as well, asked but not even people putting out build could say.
[G1 Android Development] iPhotik:
So how would I remove these apps and libs?
[G1 Android Development] big nu:
Yes!

I think this would put a significant dent in the "overweight" sluggish Hero ROM ill do some research and ask some question around the way,, and try to get some info back.. but the is a big step in the right direction..:D
[G1 Android Development] thelamacmdr:
This is just a side thing, but how did you find what libs were required for what?
[G1 Android Development] Robot Teapot:
It could be quite worthwhile to compile a list of all apps in android and what their dependencies are, not just for Rosie optimization, but for porting apps to other builds and such.

A compiled list of apps from each build could be extremely helpful... i wish there was an easy way to see which apps depended on which lib files and so on.
[G1 Android Development] Darkrift:
find -iname *foot*

etc
[G1 Android Development] defconoi:
Good idea, maybe someone should create a nice thread in spreadsheet form with the dependencies, and have people only reply with the dependencies to add to the thread.

EDIT1:Add it to the android-dls wiki

EDIT2:Ha never thought of it until now but try running the apk on the G1 with hero on it, go to terminal and try using lsof | grep "theapp"

lsof lists open files

EDIT3:****... I guess busybox doesnt include lsof so we'll need to compile it
[G1 Android Development] startekee:
/system/sd/app_s/Launcher.apk

not needed since we're using Rosie
[G1 Android Development] neoobs:
Can you add your findings to the wiki As Soon As Possible and I can add this to the Round-up thread. Thank you.
[G1 Android Development] blakestimac:
I removed open office with no problems to anything else from what i have observed. Forgot the exact name Openoffice_HTC_1.0.1.apk i believe. I removed a couple other things as well, without a hitch. Will post tomorrow of what I got.
[G1 Android Development] justanothercrowd:
Weather.apk

Widgets

Stocks.Apk
[G1 Android Development] cyberaddict:
I am using the "squished" version of Hero and I removed the following things that either don't work or I don't use and I have 10mb free of internal memory after installing the main apps I use.

adb shell rm -r /data/app_s/Mail.apk

adb shell rm -r /data/app_s/HtcFootprints.apk

adb shell rm -r /data/app_s/htcmailwidgets.apk

adb shell rm -r /data/app_s/HtcPhotoWidget.apk

adb shell rm -r /data/app_s/HtcFootprintsWidget.apk

adb shell rm -r /data/app_s/teeter.apk

adb shell rm -r /data/app_s/PCSCII.apk

adb shell rm -r /data/app_s/HTCSetupWizard.apk

This freed up ~8mb internal memory for me. Adding SU and overclocking widget now has my phone is running almost as fast as the ION build (EXCEPT the ROSIE UI is still a little slow to load at first, I think Rosie.apk needs to be optimized/compressed better) Also, I haven't had a single force close window.
[G1 Android Development] AGx-07_162:
I am also using a squished version that I edited myself but I also removed things such as those useless tutorial videos, some fonts, the majority of the alarms, ringtones and notifications, the boot.mp3 (that sound that comes up with the HTC logo on boot), all of the above mentioned .apk's as well as some others.

I did not use the app_s to SD method, I need to get a new card for it, so I had to install everything to internal memory. After making my modifications I came off with about 28MB free. I did not remove any of the lib files though so it would be nice to know which ones I dont need so I could cut those out too.

((I also removed all of the Rosie dependent widgets. Only the messaging and People ones worked properly. The others all ended with Rosie/Widget force closing. I love those widgets and how Rosie looks but its not functional enough for me to use unfortunately.))
[G1 Android Development] djlucklu:
i too removed those and Stock.apk. anyone removed HtcStreamplayer.apk,HtcRingtoneTrimmer.apk and got any issues?

dont remove Stock.apk