Porting HTC Sense - G1 Android Development

OK so maybe my post isn't for the G1 but I had to post this somewhere in a high-volume area so someone would look at it.
I'm trying to actually port HTC Sense to the Samsung Galaxy Spica (i5700). I have a HTC Hero System dump to play with.
I have gone so far as to manage to be able to see HTC Sense as one of the options when I press the home button. On clicking HTC Sense, i see a black background with the HTC word. Then, force close.
Any other HTC app would force close. I have made sure that i have the com.htc.framework.jar in my system/framework and the permissions.xml file.
Could a dev or someone be so kind as to tell me what I am missing?
Thanks!

ryanswj said:
OK so maybe my post isn't for the G1 but I had to post this somewhere in a high-volume area so someone would look at it.
I'm trying to actually port HTC Sense to the Samsung Galaxy Spica (i5700). I have a HTC Hero System dump to play with.
I have gone so far as to manage to be able to see HTC Sense as one of the options when I press the home button. On clicking HTC Sense, i see a black background with the HTC word. Then, force close.
Any other HTC app would force close. I have made sure that i have the com.htc.framework.jar in my system/framework and the permissions.xml file.
Could a dev or someone be so kind as to tell me what I am missing?
Thanks!
Click to expand...
Click to collapse
you are missing the reason for the FC, it will be in the logcat

sounds to me like you're trying to push HTC's framework components and Rosie to your stock android rom. It won't work. The htc framework has other dependencies on changes that they made to the stock framework, so, at the very least, I think you also need htc's framework and core jars. Those also depend on some libs. Your best bet is to port the whole thing and drop your base build completely. Then you only have to replace about less than 10-15 hardware-related files.
I guess a teardown to examine which parts are really necessary would be helpful. We could eventually see which classes we actually need to get sense running over stock android and use smali to pull those and push them to our stock builds.
Anybody feel like wasting that much time?

I will attach the log... here View attachment log.txt
But it never boots when i copy all files, adb logcat says:
*** EXCEPTION IN SYSTEM PROCESS. System will crash.
E/AndroidRuntime( 1948): java.lang.NullPointerException
E/AndroidRuntime( 1948): at android.content.ContentQueryMap.<init>(ContentQueryMap.java:65)
E/AndroidRuntime( 1948): at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:508)
E/AndroidRuntime( 1948): at com.android.server.PowerManagerService$1.onLooperPrepared

idk if the galaxy spica has a dedicated call button, but see if phone launches when you push it.
Also, what happens when you choose home?
and, are you dealing with 1.5 or 2.1?

jcarrz1 said:
idk if the galaxy spica has a dedicated call button, but see if phone launches when you push it.
Also, what happens when you choose home?
and, are you dealing with 1.5 or 2.1?
Click to expand...
Click to collapse
Hi, Galaxy Spica does have a dedicated call key and the stock android dialer launches when I open it.
Dealing with 2.1 here

ryanswj said:
Hi, Galaxy Spica does have a dedicated call key and the stock android dialer launches when I open it.
Dealing with 2.1 here
Click to expand...
Click to collapse
ok bro, obviously you're pushing frameworks/apks on top of stock galaxy rom... not gonna work. If that phone supports roms, then make a dedicated hero, not a hybrid, cuz those don't work.

jcarrz1 said:
ok bro, obviously you're pushing frameworks/apks on top of stock galaxy rom... not gonna work. If that phone supports roms, then make a dedicated hero, not a hybrid, cuz those don't work.
Click to expand...
Click to collapse
So basically start the phone in recovery mode and zip everything up then apply the zip?

Aaannnnnnnnnnnnnnnnnnnnndddddddddd cut! That's a wrap!

ryanswj said:
So basically start the phone in recovery mode and zip everything up then apply the zip?
Click to expand...
Click to collapse
not really.... you have to have at least:
galaxy kernel that deals with moved directories (idk how much space the galaxy has internal, it might fit without moving app or something)
ALL files have to be from a sense device. pretty much.
-libs and kos and extra apps and keyboard layout (in etc) are exceptions.
And you need an update script, and a data folder with extra apps, etc.
Have fun, good luck!

Related

HTC_IME for Nexus One [Pixelated Version]

http://drop.io/p12auxn#
I'm not 100% sure this is it since I don't have my Nexus One yet so I need someone willing to test.
I found it here: http://www.youtube.com/watch?v=0dFh9RKsN6w&feature=player_embedded
This is the same one that's pixelated on the Nexus One. Also, doesn't stretch the full screen in landscape mode.
It is still the pixelated version. That wouldn't even bother me that much if the correction bar on the top fit on the screen and wasn't horribly warped.
Damn sorry then. The one in the video looks good though.
do you need to be rooted for this? Because I tried it using an appinstaller. It shows up in the clicker, but when I create new messages, it reverts back to the stock google keyboard.
You have to go into the settings and enable it, then when you're in a message box click the box and hold, then select "input method". You can alternate between the 2.
haha ya i forgot to do the "hold" part in the message box. thanks!
pixelated...but at least i don't have to switch back n forth for numbers and punctuations. can't wait for the non-pixelated version w/ microphone key =)
snofrandy said:
haha ya i forgot to do the "hold" part in the message box. thanks!
pixelated...but at least i don't have to switch back n forth for numbers and punctuations. can't wait for the non-pixelated version w/ microphone key =)
Click to expand...
Click to collapse
We'll need a high-res 2.1 SenseUI device to come out - probably need to wait for a Bravo leak.
Yep, works fine on N1 running MCR1.1 but pixelated. Will have to live with that for a while as it still beats the hell out of the standard Android keyboard...
Is the file linked from youtube the same as this file?
http://forum.xda-developers.com/showthread.php?t=567294
So I emailed HTC to find out if they will update the htc_ime.apk so that it will work on the nexus or look properly I should say. I am currently waiting for a response... let you guys know when I get a reply. I will post it.
newjaruz said:
So I emailed HTC to find out if they will update the htc_ime.apk so that it will work on the nexus or look properly I should say. I am currently waiting for a response... let you guys know when I get a reply. I will post it.
Click to expand...
Click to collapse
Ha good luck with that. They won't update it until they release a phone with the Hi-Res Sense UI.
Most likely we'll have to wait until a bravo dump is leaked or another sense UI device w/ a hi res screen's dump is leaked.
I'm running HTC_IME on the N1.... its great to have it back, only complaint is the lack of the dedicated 'microphone' key thats in the default keyboard... so AFAIK once you install HTC_IME you can NOT dictate text messages and the like
Does anyone know how to edit the dictionary for htc ime?
I don't know about editing words but you can erase it by going into your settings > applications > keyboard > clear data.
I installed this and it works great but my only issue-request would be to add more languages. The option is there, when you go to settings from inside the keyboard, but unfortunately, only english is available.
In the past, people have made language packs...could someone do on for this? pleeeeeeeease?
Thanks,
Lou
I used to change com.htc.android.htcime_preferences.xml file to enable dual language on my htc ime. I was wondering if this can be changed in the apk before installing. I dont want to root my nexus.
Thanks
Anyone have any idea what that task killer widget is he uses in the video? Basically its sitting on the homescreen and kills the tasks with one click, no need to open an app...
technogecko6 said:
Anyone have any idea what that task killer widget is he uses in the video? Basically its sitting on the homescreen and kills the tasks with one click, no need to open an app...
Click to expand...
Click to collapse
Its "taskiller", find it in the market.
ah ha... all along I was looking for "task killer" thanks!

REQUEST: HTC Hero Flip clock w/ animation

Ive seen the 1st Hero with real animation on the Home flip clock, I know devs took it of as a memory hogger, Is it me? but I dont recall seeing the home flip clock's animation even when I had all stock apps. I;d like to get it from GSM Hero and use it over here.. if any one can get it please post apk files.
Thanks in advance.
Clock animation and i think certain weather animation too was taken out for us to reduce lag. I dont care though, i'd like to have the animated flip too.
I just want the weather animation lol, that crap is cool on a winmo phone.
i want the weather animations and the clock!!!!
http://forum.xda-developers.com/showthread.php?t=583288
I'm pretty sure nobody has this widget anymore. Sense no longer includes this. I'm pretty sure the only way to get it is to find an early unreleased build of Sense. Haykuro's old builds would work but I was never able to get one from him.
702DROID said:
http://forum.xda-developers.com/showthread.php?t=583288
Click to expand...
Click to collapse
did you ever get that to work? it doesn't work when i try it..
justinisyoung said:
did you ever get that to work? it doesn't work when i try it..
Click to expand...
Click to collapse
Same here. When installing, it says...
"Clock widget could not be installed on this phone."
i tried installing through package installer, adb push, and i also tried to figure out the differences between the apk's of the one that kendong included in the linked post and the one on our heros. i tried to put some files that looked like handled the flip animation work, but its not working. D:
Got the file.. here it is if anyone else wants to look into it.
http://www.filesavr.com/htcclockwidget
make it work please o.o D:lol
chuckhriczko said:
I'm pretty sure nobody has this widget anymore. Sense no longer includes this. I'm pretty sure the only way to get it is to find an early unreleased build of Sense. Haykuro's old builds would work but I was never able to get one from him.
Click to expand...
Click to collapse
It was released - the original pre.2.73 (1.7x) had the flip clock. 2.73 was a "performance" update that removed the flip. Personally, I'm of the opinion that it wasn't the flip per se that caused the lag, just that it was seen to be.
You can find the ROMs here.
Regards,
Dave
i'm thinking that this isn't possible. not sure though.
after messing around with 4 different htcclockwidget.apk s, i've noticed that there's not actually a difference between the one that doesn't flip and the one that does. i think the differences lie in the AndroidManifest.xml, which is doing some sort of weird thing because when i place the old AndroidManifest.xml in the widget we have, Clock doesn't show up under the HTC widget menu to add. i have the feeling its got to do with the version numbers that are stored in the AndroidManifest.xml, but i can't seem to open the file because there's some sort of a syntax error. if i could access it the chances of making it work are probably 1% higher anyways, cause i don't know xml
Justinisyoung, tell me what I would need to change in it. My desktop runs Linux, so I may be able to open it somehow
mrinehart93 said:
Justinisyoung, tell me what I would need to change in it. My desktop runs Linux, so I may be able to open it somehow
Click to expand...
Click to collapse
i'm really not quite sure, which is why i'd like to take a look. but i have an idea that it's the operating system versions, for example, the old clock widget was probably made for 1.73 or whatever the first version was. we have to probably change it so it works with our version... cause apps have to be version consistent.
bump
10 characters...
magicalan said:
i want the weather animations and the clock!!!!
Click to expand...
Click to collapse
yeah so do i tbh, even the winmo sense port has the animation.
Android XML files are NOT standard XML files, they're compiled binary. I'll refer to Stericson's post here on why you can't simply edit these.
i don't see how it could be a resource hog when there are other animated clock widgets?
Hopefully they'll have it figured out and fixed in the 2.1 update.

[QUESTION] Replace Launcher with Home Replacement?

Is it possible to (and believe me I have little to no idea what I'm talking about) replace the stock launcher with one of the home replacements (Home++)?
If so, would there be any complications?
I feel like it should be as simple as just renaming a file or two, but like I said I have zero knowledge.
Thanks in advance!
Just install the one you want from the market, press the home key and take it from there! It really is as simple as that.
The Jones said:
Just install the one you want from the market, press the home key and take it from there! It really is as simple as that.
Click to expand...
Click to collapse
I'm pretty sure launcher is still running behind it, is it not? I want launcher ixnayed completely.
thisiskyleadams said:
I'm pretty sure launcher is still running behind it, is it not? I want launcher ixnayed completely.
Click to expand...
Click to collapse
I'm pretty sure it doesn't either way the N1 has enough memory and processing power to handle it without you noticing any hiccup.
iVisionX01 said:
I'm pretty sure it doesn't either way the N1 has enough memory and processing power to handle it without you noticing any hiccup.
Click to expand...
Click to collapse
obviously. that doesn't mean I want processes and/or applications on my phone when they don't have to be. hence why 90% of the people on this forum root their phones.
thisiskyleadams said:
obviously. that doesn't mean I want processes and/or applications on my phone when they don't have to be. hence why 90% of the people on this forum root their phones.
Click to expand...
Click to collapse
No that's why people use task managers.
iVisionX01 said:
No that's why people use task managers.
Click to expand...
Click to collapse
which are only but so useful. no sense in being condescending. just trying to optimize
Just rename home++ as Launcher2.apk and push it in /system/app/
It works for me when i do this in G1...
home++ was awesome when it started... but it hasn't seen an updated for ages!
seems like the dev abandoned it
Awesome! thank you kind fellows!
shmigao said:
home++ was awesome when it started... but it hasn't seen an updated for ages!
seems like the dev abandoned it
Click to expand...
Click to collapse
His last site update was Jan 15 2010. Not ages, but even apart from that, in its current state it's really quite good (OpenHome's too inelegant for me, I prefer my home replacement minimalistic)--plus, it lets you use live wallpapers, so I'll take what I can get.
Why not just adb shell rm -r /system/app/Launcher2.apk ? That would get rid of the launcher2.apk and keep the home replacement. Though depending on what kind of home replacement it is, that could disable it entirely. I know some home replacements are kind of like an overlay of the launcher app and aren't completely stand alone, so deleting the entire the launcher would be detrimental.
Though if you want to try it out, make a nandroid, then do that command, or even more simple, just pull the Launcher2.apk out of the current ROM you are using and if it fails just push Launcher2.apk back to /system/app/
david1171 said:
Why not just adb shell rm -r /system/app/Launcher2.apk ? That would get rid of the launcher2.apk and keep the home replacement. Though depending on what kind of home replacement it is, that could disable it entirely. I know some home replacements are kind of like an overlay of the launcher app and aren't completely stand alone, so deleting the entire the launcher would be detrimental.
Though if you want to try it out, make a nandroid, then do that command, or even more simple, just pull the Launcher2.apk out of the current ROM you are using and if it fails just push Launcher2.apk back to /system/app/
Click to expand...
Click to collapse
I'll try these both out! Thanks!
update: removing Launcher2.apk didn't work. caused force close and basically death.
thank jesus for nandroid.
I haven't used the N1 launcher since day one as there is a known bug that causes it to crash when too many apps are installed (actually, running but it's really only happens as you start to install a million apps like I do). Anyway, I use Launcher+ from the makers of Home++. Simply set it as your default and kill the default launcher task. I've been doing this since day one and it has worked perfectly for me. And even if you don't kill the task, which you should absolutely do since there's no reason to keep it running, the N1 has more than enough processing power and speed to handle home replacements. It's not like the G1. Launcher+ feels like it came with the phone and I like it better than the stock N1 launcher.

[Q] Genius Button on HTC Sensation...

Hi, I'm trying to replace the Voice Search of my HTC Sensation with the Mytouch 4g Genius Button app because of the fact it open apps and it has hands free mode, I extracted the apk's and lib files from my wife MyTouch and after moving the lib files to the lib folder and installing the apk's I could manage to get the call,send,handsfree,show me and check messages to work but the search, find and get directions option are not working everytime I try using them it gives me the "Sorry Connection Lost message" Please try again when you have service. Can someone please help me sort this out because it's driving me crazy I want to set this in my lock screen. Im going to post the files I extractedin the post below. any help would be greatly appreciated. Ican be contacted thru here or tweet me @eL_inc
Download link:
http://dl.dropbox.com/u/6767376/Perfect Sense/GeniusButton.zip
The files will be up soon, first I need to have at least eight post to be able to post external links. PM me if you need the files in the meanwhile. thnx in advance
Just zip them up and attach them here
Btw there are two apks. You got them both right? And two libs.
I cant because they exceed the size limit... The only way is dropbox so i'll have to wait until i get to eight posts.
Yep... Two Apk's vmode.apk and vsuite.apk and the lib's are libvsuite.so and libvsuite_sharedlib.so
http://dl.dropbox.com/u/6767376/Perfect Sense/GeniusButton.zip
This from the 4g or 4g slide?
Stock TMOUS 4g... Let me know if you need any file man & Thanks
Try flashing the Genius App that's posted in my sig. But, I think that app requires the actual phone to be a "Glacier"(board reference), and I'm certain the Sensation's board isn't glacier.
Just flashed your file, unlike any other file I tried this one flashed successfully but still the same problem, what else can it be, because everything else works except the ones that require internet/gps. I already have the file in the lock screen and is awesome just unlocking and say show me twitter and ta-dan!
Did you guys try " Launchkey" application? It gives you option of changing your Search key to any application or shortcut you want and works with long press.. Short press still opens search functions
Btw.. I have set it to Lock screen after installing " lock screen" application..(not widget)
Is there any way I could get my hands on the Genius button software for the myTouch 4g Slide, do you think it will mean any difference?? also, I was working rescaling the app and while I was working the XML's I tought to myself that it could be something with the permitions... If someone can tell me if there is any difference between the one from the 4g and the 4g Slide it would be greatly appreciated
It would be better to get the newest version from the mytouch by lg or the mytouch q by lg.
ajtorres14 said:
Is there any way I could get my hands on the Genius button software for the myTouch 4g Slide, do you think it will mean any difference?? also, I was working rescaling the app and while I was working the XML's I tought to myself that it could be something with the permitions... If someone can tell me if there is any difference between the one from the 4g and the 4g Slide it would be greatly appreciated
Click to expand...
Click to collapse
I don't know the exact differences...But, the one in my sig is from the MT4G's 2.3.5 update...And I think the MT4GS is also on same firmware...However it has sense 3.0 w/ mySense. I doubt they have major differences, but they're probably coded for specific phones. And when you should use button shortcut app, which is included in the .zip you guys dl'ed.
Ace42 said:
I don't know the exact differences...But, the one in my sig is from the MT4G's 2.3.5 update...And I think the MT4GS is also on same firmware...However it has sense 3.0 w/ mySense. I doubt they have major differences, but they're probably coded for specific phones. And when you should use button shortcut app, which is included in the .zip you guys dl'ed.
Click to expand...
Click to collapse
It sounds like you think you need the hardware buttons to use the genius button apk the fact is you don't! There is no need for the button at all. It is merely a shortcut, so that's not an issue. The mytouch by lg (not the mytouch q) doesn't even have the hardware button (the q does). Also I never downloaded the attachment in your sig. I pulled my own files from a system dump. I DID use the libs and apks from the slide, same issue.
Behold_this said:
It sounds like you think you need the hardware buttons to use the genius button apk the fact is you don't! There is no need for the button at all. It is merely a shortcut, so that's not an issue. The mytouch by lg (not the mytouch q) doesn't even have the hardware button (the q does). Also I never downloaded the attachment in your sig. I pulled my own files from a system dump. I DID use the libs and apks from the slide, same issue.
Click to expand...
Click to collapse
I know you don't need the Genius button, on AOSP Roms, that button is just search, and Genius still works. That's why I think the app checks the phone being used, just like apps on the market; someone may need to decompile the app or w.e.
Ace42 said:
I know you don't need the Genius button, on AOSP Roms, that button is just search, and Genius still works. That's why I think the app checks the phone being used, just like apps on the market; someone may need to decompile the app or w.e.
Click to expand...
Click to collapse
I'm still trying to figure this one out until the I will have to used the non-internet based functions, like call, send txt, show me app, and hand free. BTW Yesterday I used apktool to decompile it to check the xml's and the smali files but I ended up with a massive headeache... psst

Alter Cyanogen mod Settings

Hey everyone,
i have removed apps that i don't think i will ever use, E.G themes, and would like to alter the Cyanogen mod Settings to remove the entires that are no longer needed, as i have never done this before, i will most likely need to be helped step by step, or if you have a link to a guide already made that will be great
This is probably more involved that you would like to go.
That is part of "ROM" itself and can't be removed like a apk in system app.
Do you want to remove it from the source and compile it yourself? Think that is the way you have to go to accomplish what you want. Maybe it can be edited out in the ROM.zip prior to flash but I don't know
dam, i hoped it would be simple, i may have to re-compile it as you say, cause since i removed themes, it obliviously crashes if i accidentally hit the theme button in settings, i'll go looking to see if i can find something relating to that, thanks
kenpachizero said:
dam, i hoped it would be simple, i may have to re-compile it as you say, cause since i removed themes, it obliviously crashes if i accidentally hit the theme button in settings, i'll go looking to see if i can find something relating to that, thanks
Click to expand...
Click to collapse
Hi,
You can always just try a launcher that allows u to hide the apps u do not want to use....
And you can also disable some of those hidden apps under "manage applications" but be careful since some of the main apps are used by other system apps like gallery, email, etc. I just hide them and its like they do not exist.
This way if a force close happens due that app being disabled u can always reenable it so it fixed the force closures.
Or find a ROM that slim/minimal so u dont have worry about those apks in the first place.
Good luck
Vs Nexus S4G using tapatalk2
He is actually referring to the stuff in the settings menu.
So when he deletes the theme manager apk for example it also disappears from the settings.
At least that's what I think he is talking about.
albundy2010 said:
He is actually referring to the stuff in the settings menu.
So when he deletes the theme manager apk for example it also disappears from the settings.
At least that's what I think he is talking about.
Click to expand...
Click to collapse
After reading the post again..
I believe ur correct since it seemed to easy of a question to ask and answer.
But I just wonder why those settings are even a bother to the phone or its performance.
Vs Nexus S4G using tapatalk2
Minimalist approach. I can see how it can annoy somebody very easily.
Decompile and edit the smali files which is a huge pain in the ass or do it from source, those are generally your only 2 options. I did it for my GS2, it's much, MUCH, easier to do it from source. Understanding smali makes me want to rip my hair out. Stick to the source, haha trust me.
Try your luck. Here are some resources to help you out.
http://code.google.com/p/smali/w/list
http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html
http://s.android.com/tech/dalvik/dalvik-bytecode.html
Look for something called dex2jar, it'll convert the classes.dex in an apk file to a jar which you'll be able to read/understand with jd-gui.

Categories

Resources