[WIP-Tutorial] Installing AOSP apps in your favorite ROM - EVO 4G Android Development

Myself and apparently many others like the AOSP apps better than the sense apps. I find the interface for the AOSP messaging, calendar, browser, calculator, and dialer/contacts applications to be more attractive and in some cases more usable. I really liked Bugless Beast 0.4 since it featured these applications, but I have had a hard time with the bug that keeps disk drive from working, and there are various reports of some syncing and battery issues. The EVO-NonSense series has been great too, but I use HDMI out sometimes and like having some of the sense stuff installed. Big thanks to both BuglessPete and tjohnsonjr for their AOSP work.
(7/18/2010) I have attached some of the files I have been using, see descriptions at the bottom of the post.
So since it took a little digging for me to figure out how to do this (even though to advanced users this is easy) I thought it might come in handy for other new users. Additionally I'm hoping by posting this someone can help me figure out how to get the dialer/contacts stuff working, I have the others working fine.
I've done the below on DamageControl, and I think another (baked snack maybe, can't remember). I'll probably throw together an update.zip that can patch these in place later, but I'd rather get the dialer/contacts part figure out first.
Setup:
1. You will need a fully rooted (toast root part 2, NAND unlocked) phone, and adb up and running. There are several explanations for both parts, but the ones listed in the "useful threads" sticky are joeykrim's for adb and toast's part 1 and part 2 for root.
2. I have been using the apk's from BuglessPete's bugless beast 0.4 ROM. The thread for it is available here.
Once you unzip the file, you will find the needed apks in the /system/app folder.
Note: Please donate to pete, he doesn't even have an EVO yet and is doing some great work. Hopefully if he has a phone to work on he can get some of these small bugs squashed and keep the development for BB going.
3. Backup your phone. If you don't know how to reboot into recovery and restore from a nandroid backup, you do not want to do this yet, especially if you want to try help me figure out how to get the dialer running. The idea with the dialer is to try different things until something works. In all likelihood you will hit a point where things are FCing so much you can't do anything. You will almost certainly need to restore from a Nandroid backup at some point.
Important: More than likely anything I list here can't break a phone in a way that a nandroid restore won't fix, but I can not and will not be accountable for any problems with your phone.
Which files:
One nice thing about adding files this way is you can pick and choose what to use. If you like the stock messaging but want the AOSP calendar, you can do just that.
Calculator: Calculator.apk
Calendar: CalendarProvider.apk and Calendar.apk
Default "Navigator" application: CarDock.apk <- you can keep both
Internet: Browser.apk and HTMLViewer.apk <- doesn't show previews of each tab, but allows up to 8 instead of 4. There may be other functionality gained or lost, I dunno.
Clock: DeskClock.apk (can exist beside HTC clock, and can be installed without this procedure)
Messaging (SMS, Text): Mms.apk <- Many people have trouble with this one.
####### Not Working! See post #2 ########
# Phone: Phone.apk, ContactsProvider.apk, Contacts.apk
###################################
To install:
I think you can use adb to do this install with the files still on the computer, but I go ahead and throw all the needed apks onto my sdcard, typically in a folder. Also, if you need to be in the Android SDK's /tools directory to use adb (this depends on your configuration) do that. Connect your phone, and make sure it is in "Charge Only" so the sdcard stays mounted. To make sure adb sees the phone properly issue:
Code:
adb devices
and you should get a return listing the device ID. If so we will mount the /system partition as read-write:
Code:
adb remount
Log into the phones local shell:
Code:
adb shell
you are now on the phones command line and file system, not on your local machine. Now we can start installing files. I'll use Calculator in this example, and I have the apk in a folder on the sdcard called AOSP_apks:
Code:
install /sdcard/AOSP_apks/Calculator.apk /system/app
You can do a couple at a time, and you must do more than one at a time when installing a provider like CalendarProvider.apk and Calendar.apk.
Once you are done, exit the phone's shell, and reboot the phone:
Code:
exit
adb reboot
The change may show up immediately, but the phone and applications aren't designed to change these core functions on the fly, so make sure to reboot the phone. Once it reboots you will probably notice the AOSP icon has replaced the former, and you have the AOSP skin and/or functionality.
Post #2 will deal with progress so far on the dialer/contacts.
(added 7/17) Notes on different apks: The BB Launcher2.apk has his skin on the google search widget, or grab the apk from something else like DC for stock. Launcher.apk from BB is the one with the wide drawer and (I think) 9 screens.
Music.apk from DC is the modded music app from Cyanogen. It has some very nice UI tweaks.
Attached:
- Music.apk used in Cyanogenmod from DC
- Calendar, CalendarProvider, Browser and HTMLViewer from BB 0.4
- CarDock, Calculator, and MMS from AOSP EVO-NonSense

Contacts/Dialer Progress: I'm sure some of the more advanced developers know the answer to this, so ideally someone can fill me in. In the meantime I'll report my findings here, and if others can add feedback to the thread on what they have done, I'll update this post. Hopefully in the long run there will be a straightforward explanation for this I can add to the above post.
I have installed the three files listed above (ContactsProvider.apk, Contacts.apk, and Phone.apk) which seems to install the right bits, but I get FCs.
Later on I added Telephony.apk and FutureDialService.apk, which didn't improve anything. Finally I noticed that Bugless Beast didn't have HTCDialer.apk, so I removed that as well. I think this was the point things went from the dialer and contacts applications FCing to non-stop FCs that kept me from doing anything on the phone.
Attached are the three apps I'm sure are involved for the Contacts/Dialer, pulled from tjohnsonjr's AOSP EVO. More files may be needed, but I'm still trying to figure out which.

The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.

I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.

I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.

RikusHaven said:
The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.
Click to expand...
Click to collapse
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
warmachine69 said:
I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.
Click to expand...
Click to collapse
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
MikeBrWade said:
I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.
Click to expand...
Click to collapse
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?

laydros said:
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?
Click to expand...
Click to collapse
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.

84th hour of a battery duration test? details please?

MikeBrWade said:
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.
Click to expand...
Click to collapse
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?

davebu said:
84th hour of a battery duration test? details please?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=7154719&postcount=993
This is my post talking about it.. I am on hour ~91 of the test.. still running with 8% battery left... BBv3 rocks!

laydros said:
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?
Click to expand...
Click to collapse
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.

MikeBrWade said:
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.
Click to expand...
Click to collapse
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?

If you have the AOSP apps available, could you please post them all in .zip folder in the OP?

MikeBrWade said:
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?
Click to expand...
Click to collapse
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't run at all . Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.

MikeBrWade said:
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't. Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.
Click to expand...
Click to collapse
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back

I[E said:
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back
Click to expand...
Click to collapse
Interesting that you say that, since I had some MMS texts in my cache. Wondering if when the AOSP version couldn't deal with them so it just FC'ed instead.
So I tried that, deleting ALL my texts so it wouldn't have some MMS collision or something. But that didn't work either, HTC Mms.apk works fine.. the AOSP.apk FC's. Could the OP or something with a working AOSP Mms.apk post it maybe it's my copy. Mine has an MD5 of : 441e3b8863bc3ab88ce6ad9bc1671f22

I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App

I going to upload all the AOSP apks that I include in my ROMs when I get home tonight.

Can you tell us how you got contacts.apk to work? I'm trying with FreshRom and I pulled the Contacts.apk from your Rom and it won't recognize the file when I push it using adbshell. The file is in the app folder but android ignores it.

I[E said:
I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Does does your md5 match mine?

Related

Skinning this android!

Un so um jesusfreke if I understand all this and I'm not shure I fully do, but if I take out thr framework-res.apk un pack it edit it pack it all back up and sign it with thr sighnapk.jar utility and throw it back on my phone which has been moded with your boot recovery and update it will work....well at least in theory????? What's the worst that could happen at a failed attemtp do ya think?
worst that could happen?
brick phone. and I dont mean zack morris.
But assuming you know what everything you just typed actually does, should be fine.
VR4Stryph said:
Un so um jesusfreke if I understand all this and I'm not shure I fully do, but if I take out thr framework-res.apk un pack it edit it pack it all back up and sign it with thr sighnapk.jar utility and throw it back on my phone which has been moded with your boot recovery and update it will work....well at least in theory????? What's the worst that could happen at a failed attemtp do ya think?
Click to expand...
Click to collapse
I think you also have to re-sign all the .apk files in the /system/app folder. I just tried this last night and it all worked. I modified the default background in framework-res.apk. So now my phone is using the default background image with ugly black lines that I painted on it in gimp (see screenshot)
The only caveat is that you may have to reset the phone once you re-sign all the apks (alt+w in recovery mode). You will lose all your installed applications and data, and you'll have to re-enter your google account and password when you boot back up.
Try it without reseting, and if your phone acts weird, then try a reset and it should smooth things back out. After that point, you should be able to modify framework-res.apk without having to reset again.
The worst* that will happen is that you can't boot the phone normally. If that happens, put the modified RC30 update back onto your sd card somehow (external reader, another phone that uses miniSD cards, etc), and then boot into recovery mode and re-apply the modified RC30 update.
*I make no guarantees you won't brick your phone of course . But I can't think of anyway you would by doing this.
This isn't exactly skinning but it might help you start:
I modified the Launcher.apk so I could have my own wallpaper in the wallpaper gallery and take out the ugly stuff. Im sure you could change other resources in this and possibly other apk's as well.
I downloaded the android source from here http://source.android.com/download then slightly changed the source for Launcher.apk and recompiled it (make Launcher). My modified Launcher.apk worked fine on the emulator so I remounted my G1's /system partition as rw and replaced /system/app/Launcher.apk with my version and removed Launcher.odex then rebooted (dont forget to save the originals if you try this). So far its been working great in JesusFreke's modified RC30.
A screenshot of the modified wallpaper gallery is here: http://x8x.us/android/device.png
The signed modified Launcher.apk is here: http://x8x.us/android/Launcher_modified_wallpaper.apk
A tarball of the modified source is here: http://x8x.us/android/Launcher_modified_wallpaper.tar.gz
You can browse the modified source directory here: http://x8x.us/android/Launcher_modified_wallpaper/
The only changes I made were to src/com/android/launcher/WallpaperChooser.java and the res/drawable/wallpaper_*.jpg files.
Hopefully this will help you make similar changes on your own, at least until Google comes up with an easier method for changing skins and such. And maybe a wallpaper gallery thats not static!
Being able to do things like this are what I was hoping for when I bought the G1, sucks that they won't allow people to choose to enable root.
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
JesusFreke said:
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Click to expand...
Click to collapse
Looks alot like the method you described above... umm... there any way to backup text messages yet.. iv'e got a few hundred that i'd like to keep :*(
VR4Stryph said:
Looks alot like the method you described above... umm... there any way to backup text messages yet.. iv'e got a few hundred that i'd like to keep :*(
Click to expand...
Click to collapse
It is. He took my idea and ran with it.
Re: backing up text messages.. not sure. Let me play with it a bit and get back to you
JesusFreke said:
It is. He took my idea and ran with it.
Click to expand...
Click to collapse
lol I never ran away with your idea. I acknowledge it as yours and thanked you for the idea in the original post here.
I know we are all trying to get the best out of our G1 and stealing ideas isn't the right way to go about it. Hope I cleared all misunderstandings
I didn't mean that in a bad way I saw your article and was like "oh cool! He got it to work."
just to clarify...
the default wallpapers you see in the Wallpaper Gallery activity are embedded in Launcher.apk?
i always thought it read some directory of images.
i guess that explains why the process for converting images from the Pictures activity requires crop/resizing and the gallery activity doesn't.
JesusFreke said:
I just saw a detailed post from Living_Sword over at modmygphone on how to make the re-signing thing work. Thought y'all might be interested
http://www.modmygphone.com/forums/showthread.php?p=16871#post16871
Click to expand...
Click to collapse
If i am just modifying a pic (.png) in the apk, does the apk still have to be resigned?
yes, it does need to be resigned.
Modifying Wallpaper Gallery
ive been trying to find a way to add my own wallpapers to the gallery and it seems its no easy task, isnt there a way to redirect the path to make it look in a directory? im a linux noob (especially on devices like this) so if im asking a dumb question i dont know that i am
also.. if the only route is to modify the launcher package, is it possible to add as many as you want? or is there a limit to how many you can put in/replace?
best bet is to modify the apk (i think it's launcher but it may be framework-res) but as far as i know you can only replace the wallpapers there unless you wanna try some hex edits
Apotheo said:
I downloaded the android source from here http://source.android.com/download then slightly changed the source for Launcher.apk and recompiled it (make Launcher).
Click to expand...
Click to collapse
im trying to create my own Launcher.apk so i can include my own wallpapers into the Wallpaper Gallery. Everytime i type "make Launcher" (im in the /packages/apps/ dir) it just says:
make: Nothing to be done for `Launcher'.
so i figured i would try going into the Launcher dir, then trying it... then i get this:
make: *** No rule to make target `Launcher'. Stop.
how do you compile these things? ive also tried opening it in eclipse with the android plugin but when i try to compile it tells me to fix like 300 something errors first.

[ROM - 32B] ZeroXd 5.2r4 / JACHeroSki-v2.0 [09/11/2009 - 11:47AM EST]

I will be accepting donations if you like my work. After contacting HTC, they informed me that my device is not under warranty, as a technician determined it to be "user related" damage and that all repairs will be at owner expense.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8141983
If you follow my twitter, you know I bricked my G1. I am trying to get it repaired, but due to the long response time I had to buy a mytouch (no point having two G1s IF the other one gets repaired). Using this bad luck to my advantage, I scripted a way for hero to run on both with two simple commands.
How I rooted a brand new "perfected SPL" MT3G and installed Hero in 15 min:
http://forum.xda-developers.com/show...&postcount=154
Link to original thread: http://forum.xda-developers.com/showthread.php?p=4365404#post4365404
Updated, but still feeling slow? Back up. Try rm system/sd/app_s then reboot to recovery and wipe data. then install fresh. Before restoring your data, open the backup folder on your sd card and remove the subfolders for programs you no longer have or need to have backed up.
I noticed a 10% increase in speed and my phone was far from lagging to begin with.
Losing messages? Make sure that system/sd/app/com.android.mms.apk does NOT exist, as this was an old release. Go into settings for messaging (from the conversation list panel) and set priority to "High"
Most Recent:
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-6.0.zip
Now includes dynamic swap. Rewrote the method of apps to sd for myTouch.
Build will move system apps, user apps, and dalvik to sd on a g1 device.
Build will ONLY move user apps to the sd when using a myTouch.
This will allow the system apps and dalvik to remain on internal device.
This is a completely new method of doing a merge build so bear with me.
I am going to be rewriting things for users without a lot of user apps, like myself.
This will allow the entire build to be placed onto internal for mytouch users.
Once you have updated and are ready to use the phone, execute Terminal and enter the following commands:
su
magic
This configures the system to the specific device. This is until I finish automation.
LEDs have been restored to 93%
Bluetooth restored in MT3G
Porting my own boots for MT3G
Based on the System Image from Haykuro
Using the Kernel and Boot.img from JAC
Extensive system script edits were done
SwitchROM installs itself to system/sd/
LEDs are at about 90-100% brightness
CPU Optimization turned off by default
Enhanced Terminal included
Fixed My Account included
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-5.2r5.zip
http://twistedumbrella.slackdev.com/Resources.zip
twistedumbrella said:
MultiTouch for MT3G being patched NOW
Click to expand...
Click to collapse
Does that mean multitouch doesn't work and one more unanswered questio IS it from the latest release that modaco did, i asked it since 5.0 so please answer
White Rosie doesn't work i tried it but i doesn't show up and it doesn't even install shows parse error, can you do something about that. Really appreciate your work. Will donate as soon i finish with my exams, I came to US for a holiday for 3 months and as i came back i have exams, only 3 left, have to finish 6 books per subject (thats f*****ng 3 months syllabus) and i have exams after 2 day holidays , thats why i have been a bit inactive in the community, will be active on 24 and will provide a special version of HERO based on my favourite ZEROXD.
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
mgorman said:
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
Click to expand...
Click to collapse
For me 2.0 working fine,but cannot install ZeroXd-5.2r4-installation aborted:/
In v2.0 cannot run wifi:/somebody else?
Had to fix scripts. Check the link on original thread for download. They are the same files. The verification fail happens when your downloading as I upload. It was a last minute fix on the way to work. Sorry for the issues.
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
Thank you... h.nocturna for the fix, and nacron for the heads up...
Here is the fix for auto-complete... Worked for me on 5.1r2
Everything in
open dos prompt.
adb remount
(***back up the original***)
adb pull /system/sd/app_s/HTC_IME.apk c:\(*your directory*)\HTC_IME.apk
(***install the new one***)
adb push c:\(*your directory*)\HTC_IME.apk /system/sd/app_s/HTC_IME.apk
start your Messaging it will crash the first time you want to use the keyboard... restart Messaging and it should work...
HTC_IME.apk here: http://www.mediafire.com/?te0symyx4yz
Mms auto-rotate works for me in 5.1r2 so I dont know. But possibly you still have the old Mms.apk. Try pushing the new one from 5.0 or later rom...
Twisted are you using BFS in your new builds??? Post 5.1 that is....
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambesey's way
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
same issue as above :-(
1.8 is running pretty awesome.
i guess its safe to assume that i shouldn't try 2.0 yet? lol
zeroxd 5.2r4 seems to be faster than jacs 2.0 but i cant get auto rotate to work or multitouch and when i try the commands in first post i get "/system/xbin/su: not found''
did you try running the commands via adb ?
im not familiar with doing it that way i dnt even know wat adb is
just connect your phone to the pc
install the drivers from android SDK
start > run > cmd
cd to the android tools directory
and adb shell
that's how i did with my phone and works perfectly
im not gona risk any damage ill deal without the rotate for a day till its fixed
tq745 said:
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
Click to expand...
Click to collapse
should be under /system/bin not xbin

[PORT] Droid 2 Multi-Touch Keyboard [Froyo] UPDATE! fixed4!

Got this working on a recent nightly for cm6 (dont see why it wouldnt work on any others too) also, it will most likely work on any deodexed rom (odexed im not sure) -- Let me know what does/doesnt work and ill try and do something or point you in the right direction.
this should also work with other phones (so far just hdpi phones)
EDIT: punk.kaos got it working on all phones! good work! thread here: http://forum.xda-developers.com/showthread.php?t=764021
You must be rooted for this to work!
THEMERS: These are the fixed .xml files that you will need to re-replace while theming: http://www.mediafire.com/?nhy8hd143hk81x0
BEFORE READING ANY MORE, GO DO A NANDROID!
/queue Jeopardy music
...
....
.....
......ok
Confirmed working on:
CM6 Nightlies/Tests (inc)
jdfroyo v1.9 (inc)
Skyraider 2.? (inc)
8/1 froyo leak (inc)
aiccucs 4.2 (inc)
redemption (inc)
CM6 (evo)
THIS HAS KNOWN ISSUES CAUSING THE HARDWARE KEYBOARD TO DO WEIRD STUFF ON THE DROID 1!!!!
something with the alt key not working correctly, i do not have a moto droid, so thats making it very tough to troubleshoot anything. anyone who does and wants to test some things, pm me, probably have some time this weekend to look at it
Bugless Beast 4 (moto droid)
Ultimate Droid Extreme Froyo 6.00 (moto droid?)
CM6 (nexus 1)
modaco r21 (nexus 1)
DeFrost 2.6a (desire)
BUGS:
- &amp on one of the keys, more of an annoyance than anything, will fix eventually fixed!
- crap, another &amp error, when holding the . key...fix coming eventually... fixed!
- < symbol fixed! <-- thanks for the help enragedpaza
- vibrates too lightly fixed! <-- thanks for the help enragedpaza
- others?
Voice input works too!
Back up your stock keyboard first:
Code:
adb shell cp /system/app/LatinIME.apk /system/app/LatinIME.apk.bak
adb shell cp /system/lib/libjni_latinime.so /system/lib/libjni_latinime.so.bak
FLASH (EASY) METHOD:
flash this from your recovery or from rom manager:
http://www.mediafire.com/?9yawjq9weakbl9y
Geo411m has made a black colored one. details here: http://forum.xda-developers.com/showpost.php?p=7684399&postcount=211
install the same as the easy way, otherwise download it and pull the apk out of it and install it with the manual method
ENJOY!
MANUAL (OLD) METHOD:
get both of these files:
apk:
fixed4: http://www.mediafire.com/?7q0406gqazq8rer
(harder vibrate, < symbol fix)
if you had an older version, be sure to switch to a different keyboard, then remove the old LatinIME.apk before pushing the new one over, otherwise you will get fc's like crazy!
lib:
(you may not need this, but it shouldnt hurt anything (backup instructions below) and if the keyboard doesnt work, then definitely try pushing it)
http://www.mediafire.com/?awy84cz5t8ngx49
some have reported that for some reason or another this file downloads as a .txt (although it comes as a .so for me all the time) make sure you rename it, if need be, to libjni_latinime.so before going any further
you will need adb for this method (others have done it without a computer)
youll either want to be in recovery, with /system mounted, or remount it read-only while the phone is up (need s-off for this, thanks unrevoked!)
then push the two downloaded files to your phone: (in some roms it is called GoogleLatinIme.apk, so use that instead of LatinIME.apk if thats how your rom is)
Code:
adb push d2keyboard-signed-fixed4.apk /system/app/LatinIME.apk
adb push libjni_latinime.so /system/lib/libjni_latinime.so
choose your input method like always, and enjoy the multi-touch keyboard on froyo
ok, the screenshots really dont mean much, anyone can use gimp, but w/e thought id put them up there anyway
thanks to LegionTHEFecalExcretion for the system dump!
if you like what i do and feel compelled to donate something to me, do so here
Great thanks
Working on Skyraider 2.
" & " button showing in bold " &amp " Otherwise good.
-Michael_ said:
Working on Skyraider 2.
" & " button showing in bold " &amp " Otherwise good.
Click to expand...
Click to collapse
yea i noticed that, its going to have to wait for a bit before i go in and fix it, otherwise if someone else wants to, by all means
Works on BB v.4 for the Droid and this is sick!! Thanks so much.
Can you just install the app like you normally would?
And what's the second file for?
Thanks.
palomosan said:
Can you just install the app like you normally would?
Click to expand...
Click to collapse
try it, report results
palomosan said:
And what's the second file for?
Click to expand...
Click to collapse
force closed on me without it
it works on jdfroyo rc1 with no problems without the lib file.....now i can actually type w/o all my typos.
jdkoreclipse said:
it works on jdfroyo rc1 with no problems without the lib file.....now i can actually type w/o all my typos.
Click to expand...
Click to collapse
hmm, yea i guess it is working without the lib file...
invisiblek said:
try it, report results
force closed on me without it
Click to expand...
Click to collapse
You were right, install the app but it kept force closing. Thanks. I'm using Skyraider 2.2
I can't tell you how excited I was when I pushed this on my phone, not because of how it is a much better keyboard then the stock one. I was excited because I was able to push this system without having to be in recovery. UnrEVOked is amazing!
BTW.. I am having no issues with this so far. Excellent keyboard, good port!
tcberg2010 said:
I can't tell you how excited I was when I pushed this on my phone, not because of how it is a much better keyboard then the stock one. I was excited because I was able to push this system without having to be in recovery. UnrEVOked is amazing!
BTW.. I am having no issues with this so far. Excellent keyboard, good port!
Click to expand...
Click to collapse
i cant tell you how excited i was when the keyboard finally popped up on my screen!
thanks for the feedback
i'm running sapphire 1.0 and i was able to install with Root explorer.
Works on skyraider 2.2 - no pc required. I did have to copy over the lib file with root explorer. Btw I am typing on this keyboard now and it is amazing at correcting mistakes!
Sent from my ADR6300 using Tapatalk
I can't push the .so file to my phone, the keyboard fc's on me when I try to select it in the input method section, so I thought i would try pushing the lib, but it keeps saying the directory doesn't exist.
this is exactly what i type
adb push libjni_latinime.so /system/lib/libjni_latinime.so
cannot stat: 'libjni_latinime.so' no such file or directory
It downloaded for me as a. Txt extension. I had to change it to .so - check to see if that happened to you
Sent from my ADR6300 using Tapatalk
dude0909 said:
I can't push the .so file to my phone, the keyboard fc's on me when I try to select it in the input method section, so I thought i would try pushing the lib, but it keeps saying the directory doesn't exist.
this is exactly what i type
adb push libjni_latinime.so /system/lib/libjni_latinime.so
cannot stat: 'libjni_latinime.so' no such file or directory
Click to expand...
Click to collapse
its saying the .so doesnt exist
is it located in the directory your command prompt is in? otherwise it wont be able to find it
AMAZING work!! Thank you sir!
djkms said:
It downloaded for me as a. Txt extension. I had to change it to .so - check to see if that happened to you
Sent from my ADR6300 using Tapatalk
Click to expand...
Click to collapse
now thats weird, op updated for this
invisiblek said:
its saying the .so doesnt exist
is it located in the directory your command prompt is in? otherwise it wont be able to find it
Click to expand...
Click to collapse
Oh i thought it was supposed to be in the root of my sd card just like the apk.

[q] heeeeelllllpppp meeeeeeee pleaaasseeeeeeeee!!!!!!!

SO, let me give you a little story.
One day i came up with the lovely idea to use NinjaMorph on my stock rooted BLUR ROM. after experiencing some cool mods, i tried to make my lockscreen back to stock... bad idea. after finding some of what appeared to be stock lockscreen pngs in my framework i changed my lockscreen into what now looks like a peice of ****. i tried to get them back through like a back up but i didnt have a backup made...
SOOOOO.... does anyone have a fix for my issue OR have .PNG'S for the stock android lockscreen i could use????? I wud really appreciate it
P.S. Because of my issues i have sadly been forced into the stupidity of gummyJAR and my phone wont let me install liberty 1.5
bretth18 said:
SO, let me give you a little story.
One day i came up with the lovely idea to use NinjaMorph on my stock rooted BLUR ROM. after experiencing some cool mods, i tried to make my lockscreen back to stock... bad idea. after finding some of what appeared to be stock lockscreen pngs in my framework i changed my lockscreen into what now looks like a peice of ****. i tried to get them back through like a back up but i didnt have a backup made...
SOOOOO.... does anyone have a fix for my issue OR have .PNG'S for the stock android lockscreen i could use????? I wud really appreciate it
P.S. Because of my issues i have sadly been forced into the stupidity of gummyJAR and my phone wont let me install liberty 1.5
Click to expand...
Click to collapse
Ok a couple of things here. When you mess your own phone up because of user error, it's not polite to bash on other's work for no reason, at least that's how your last comment comes across. I'll be nice and help you out but don't be surprised if a little flammage comes your way.
Second, people aren’t going to have random .png files laying around, it would be a long shot for what you are asking for, just being realistic. You are more then likely going to have to back up all your files and do a factory reset in the event someone does not have the .png you need.
If you want to give it a try with Root Explorer or transferring the stock res.apk file to your computer, the file you need will be in your update zip file. Once you find it, go to system, framework, framework-res.apk and find the file name you need. If you are using Root Explorer to find, it will need to be extracted.
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
bretth18 said:
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
Click to expand...
Click to collapse
You can always sbf and factory reset don't play with things until you know the full extent of ur own actions
Sent from my DROIDX using XDA App
bretth18 said:
sorry i didnt mean to be insulting. i have tried a factory reset but because changed the framework.res.apk it wont change back. im actually now taking some of the pngs from gummyjar and trying to give my blur a gingerbread notification bar
Click to expand...
Click to collapse
here is another way to fix your issue....
Take the attached framework-res.apk (taken from an unmodded gummyjar 2.5) and copy it to the root of your sdcard.
Connect your phone to your computer and put it in charge only mode. Next, do the following from a command prompt in windows. At the end of each line, press enter (not trying to be insulting, just for clarity sake).
adb shell
su
mount -o rw,remount /dev/block/mtdblock4 /system
cp /mnt/sdcard/framework-res.apk /system/framework/framework-res.apk
cd /system/framework
chmod 644 framework-res.apk
next open another command prompt (done to keep the one with shell access open).
Type from 2nd command prompt:
adb remount
adb reboot
Your phone will then reboot, and you should have all your original framework... Note that any theming you have done to the framework images will be undone, but your phone will be fixed.
PS having your phone in a bad state on one ROM should not prevent you from using another ROM. When you install a ROM, most times the new ROM's will format the existing /system partition to ensure that remnants of an old ROM are gotten rid of.
And as stated above, please don't bash on the devs. Kejar31 gives a lot of his time to developing his ROMS (as does any other dev), and they give out their work for free! =)
Hope these steps work for you, post back if you have issues/questions.

DSP manager

Are there any DSP managers that work with our Motoblur 2.2 ROM other than PowerAmp? PowerAmp is fine for playing stored music; I find myself listening to Pandora more often though. Even on the treble booster audio setting everything sounds muffled.
magicCrazyThing said:
Are there any DSP managers that work with our Motoblur 2.2 ROM other than PowerAmp? PowerAmp is fine for playing stored music; I find myself listening to Pandora more often though. Even on the treble booster audio setting everything sounds muffled.
Click to expand...
Click to collapse
Not positive, but you might be able to use AudioEffectSettings.apk from CM7. Its a Moto DSP app. I've never tried, but then again, I've ran a custom rom since the 4th hour of owning a Bravo. Push\paste it into /system/app and set the permissions to either 644 or whatever the other apps have in the gui of your filemanager.
Open a terminal\command prompt in the folder with the file and use this command
Linux Version
Code:
adb remount && adb push ./AudioEffectSettings.apk /system/app && adb shell chmod 0644 /system/app/AudioEffectSettings.apk && adb reboot
Windows Version
Code:
adb remount && adb push .\AudioEffectSettings.apk /system/app && adb shell chmod 0644 /system/app/AudioEffectSettings.apk && adb reboot
Note that the only difference is ./ to .\ between the two.
The only problem I can see is Android changed the DSP framework from 2.2(stock) to 2.3(CM7\MS2\MIUI). It won't cause bootloops or anything bad to happen, but it might not work.
If you're running stock you should switch to the BravoX rom -- its a stock deodexed rom for the Bravo and it runs much faster and smoother.
If you do try this let us know if it works.
I usually just use cm7, but due to some rather bothersome problems I've had lately I decide to just use BravoX for awhile. I just tend to be a bit of an audiofile.( That was the original reason for my switch to to CM7 actually.)
which is easier to use ADB under: Ubuntu or Windows? I run both on a dual boot. Also could you point me to a tutorial of adb? I always avoided it because of how complicated it seemed.
It depends on which system you're more comfortable using the command line on really; or use the most. I'd use the linux version myself, but linux is my only OS
Go here and you'll find all the instructions you'll need for either windows or linux install.
http://developer.android.com/sdk/index.html
Its a bit complicated but really worth it in the end to have adb installed -- once you get the hang of pushing files to your device you'll never mount your sdcard again. Adb is much safer anyways; less chances of file system corruption from multiple OS's mounting and unmounting the sdcard. It happened to me a lot when I dual booted 7 and Mint 12 -- every time windows would unmount it I'd have file corruption issues. Since I quit using windows I haven't had file corruption anymore.
If you need more help than what that site has, just search the forums here (there are tons of adb tutorials) then post here if you can't find what you're looking for.
//I'm an audiofile myself. The DSPManager not working on CM9\10 really grinds my gears -- its still required to be installed for 3rd party DSPManagers to function (PowerAmp, MortPlayer, etc). There's also a paid equalizer app on the market, but I've never used it at all. Not sure if it supports Froyo, but it does support Gingerbread and up.
If I don't post back anytime soon its because my PC is on the ass end of the next PA compile and it gets really slow on the java compile for the apk's.
I forgot that I already had it all setup in windows. Now I just have to look through some of the tutorials on here.
I actually already had it installed completely under Windows. I just need to learn the commands. I know it's adb push, but from their I'm learning.
opps, My computer didn't show my previous post. so now theirs two. sorry.
I just noticed that you already had the command there. it wont let adb remount run though it just keeps telling me "remount failed: operation not permitted." my phone has android debugging enabled. what would cause that?
okay, I have it all sorted out. It sent the AudioEffectSetting.apk over and so far no problems. It's allowing me to change the audio effects, and the stock music app is working. I don't think it sounds as muffled as it did. would this allow for me to use the CM7 Dsp manager app? would that be the best way to test?
magicCrazyThing said:
okay, I have it all sorted out. It sent the AudioEffectSetting.apk over and so far no problems. It's allowing me to change the audio effects, and the stock music app is working. I don't think it sounds as muffled as it did. would this allow for me to use the CM7 Dsp manager app? would that be the best way to test?
Click to expand...
Click to collapse
Glad that AudioEffects works. Good to know if you run the stock roms.
Just push DSP and try. Worst that'll happen is you'll have to remove it.
I think it relies on the library /system/lib/soundfx/libcyanogen-dsp.so, push it if DSPManager doesn't work.
The permissions are still 0644 for these files. Most libraries and apks are.
to remove
adb remount
adb shell
rm /system/app/DSPManager.apk && rm /system/lib/soundfx/libcyanogen-dsp.so
I've been having adb issues for a while now. Enabling tethering fixes it for me. What sucks is I can't use adb in the bootmenu or pull a logcat on boot.
Something here isn't happening right. Adb says the files are pushing fine. the DSP manager is not showing up anywhere though. as a test I ran the the push command by itself and then ran the second part separately. when It goes to run that second part to set the permission though it tells me that that directory does not exist. it's listing the files as the wrong sizes too. the DSP Manager is only 42Kb, and adb is pushing something that is 660Kb. It's doing that with all of them. the sizes are always listed wrong.
magicCrazyThing said:
Something here isn't happening right. Adb says the files are pushing fine. the DSP manager is not showing up anywhere though. as a test I ran the the push command by itself and then ran the second part separately. when It goes to run that second part to set the permission though it tells me that that directory does not exist. it's listing the files as the wrong sizes too. the DSP Manager is only 42Kb, and adb is pushing something that is 660Kb. It's doing that with all of them. the sizes are always listed wrong.
Click to expand...
Click to collapse
That's weird, the file sizes. How long ago did you set up adb? Its probably been updated since the last time you used it. On my system all I have to do it type "android" and it opens up the sdk to update it. I've never used the sdk under Windows so I'm not sure the proper command to update it (my adb on windows was in a root kit).
Just use a file manager to do it. I recommend Apoonet's MiFileExplorer (here on xda) or Yaffs Explorere by TPruvot (Epsylon3) on the market. I suggest Yaffs because it also shows you the linux chmod code when you change file permissions (useful feature if you're learning chmod).
Since its related I'll add that if you've ever added an app /system/app and it didn't work properly, it requires a lib to be added to /system/lib. You have to do it manually by opening up the apk and copying the lib over (use the arm7 lib if there are more than 1 of the same name). There is no lib in DSPManager but it relies on the one mentioned earlier.
Good Luck
I think what happened with the lib mentioned earlier is that there is no soundfx folder in system/lib/. I went looking for it last night with a file manager. there is one in there called DSP though. I would have justt pushed the audio lib there, but I didn't think the DSPmanager.apk would find it.
The DSPmanager from Cm6 will start up. it won't do anything though. do you know what libs it relies on?
I guess Froyo doesn't have that folder (just checked the SBF)
Here's the soundfx folder from a Defy GingerBread SBF -- non flashable zip.
Just make a soundfx folder in /system/lib and copy all the files to it; same permissions as always.
The dsp folder is codec related, not effects
Not sure what lib is required for CM6 (never used it)
I have everything in the folders now. CM7 DSPManager still won't show up. I went in and found it in Yaff's. When I try to install it through Yaff's it just tells my that there was a problem parsing the package. Also your link isn't showing; I have one of you CM7 Kang zips that I have been pulling files from though.
magicCrazyThing said:
I have everything in the folders now. CM7 DSPManager still won't show up. I went in and found it in Yaff's. When I try to install it through Yaff's it just tells my that there was a problem parsing the package. Also your link isn't showing; I have one of you CM7 Kang zips that I have been pulling files from though.
Click to expand...
Click to collapse
I guess I forgot to upload it. I was sleepy. Its up there now.
It won't install since its a system app. The only way to use it is to place it at /system/app with the correct permissions and reboot. If it doesn't show up it might just not work on Froyo.
Try this flashable zip. Make a nandroid before flashing it. I replaced a few audio libs, changed the DSPManager.apk sdk version to froyo. There's a chance this zip will either work or cause bootloops or do nothing at all. I can't test it since I'm on PA and I don't feel like SBFing back to Froyo, then flashing BravoX.
EDIT
Forgot to add -- if the zip flashes just fine, boots fine, and DSPManager opens but does nothing, add in libaudio.so from CM7 in the zip here to /system/lib and reflash it.
I got stuck on the Red M both times I tried. The first time I was on the BravoX recovery; the second time (after SBFing) I tried under 2nd-init. i'm beginning to wonder if this is possible. I guess I'll start burring my head in lots of forums and try again tomorrow.
You're awesome for all the support you've been giving me though. I get the feeling we're really close to getting this working.
magicCrazyThing said:
I got stuck on the Red M both times I tried. The first time I was on the BravoX recovery; the second time (after SBFing) I tried under 2nd-init. i'm beginning to wonder if this is possible. I guess I'll start burring my head in lots of forums and try again tomorrow.
You're awesome for all the support you've been giving me though. I get the feeling we're really close to getting this working.
Click to expand...
Click to collapse
try removing libeffects.so.
The fourms I found added in libaudiofilinger.so and libaudio.so if needed -- I forgot that our libaudio.so on CM7 is from stock froyo so its not necessary here.
I know that the 3rd Party DSP's on the Market use their own special libraries on Froyo\2.2 roms to give them GB style DSP's. Google upgraded the DSP framework from 2.2 to 2.3.
If you looking for Pure Music functionality and awesomeness then I highly recommend changing to CM7. GB roms have the best mods for audio effects, long press the volume for track changing. The fx folder is necessary (at least in some Miui Ports its was).
That said, I'll jump back to BravoX and see if I can't get it working on my phone. I like a challenge and doing something that benefits a native Bravo rom. Unlike everyone else here, I have a rooted SBF (made it myself) so its not very hard for me to do -- flash sbf, run market enabler, install 2nd-init, flash away . If I had remembered to backup my /data partition into the sbf I wouldn't even have to do that...just sbf and install 2nd-init.
Since you're on BravoX, have you ever tried the BlurLauncher3D Walter79 uses with MS2 Ginger? I'm about to use it with BravoX so I'll find out if it works or not.
---------- Post added at 09:56 AM ---------- Previous post was at 09:05 AM ----------
Back on BravoX. I need to tweak its init scripts to load the multitouch module and overclock module. Also, no tethering sucks.
---------- Post added at 10:40 AM ---------- Previous post was at 09:56 AM ----------
Managed to disable the tethering entitlement check.....only I'm forced to tether with 3g and not my home wifi like I do on CM7 -- that needs to be fixed, but at least I can post on the forums with my Keyboard again. I'm gonna keep messing around and see if I can't get it to use my home wifi instead of 3g.
Btw, to use thethering -- open build.prop and change ro.mot.entitlement_check=true to =false -- that's it. And I was changing smali code until I saw that prop string embedded in it.
Had to jump back to PA -- tethering was eating up my 3g bandwidth.
I started using the Droid 1 CM6 libs -- they don't cause bootloops or issues, but they don't make DSPManager work either. So far I've tried libaudio.so and libaudioflinger.so.
Wow, that was a lot of explanation.lol I haven't had time to try anything. you also tried the only thing I found anything on.
I haven't used tethering so far I never had a reason too. why do you have to use it?
Also, did you ever get blur launcher 3d to work on BravoX. I tried getting it to work with CM7 before, but all I ended up with the many times I tried was everything being deleted from my homescreens and the ROM would become extremely buggy.
magicCrazyThing said:
Wow, that was a lot of explanation.lol I haven't had time to try anything. you also tried the only thing I found anything on.
I haven't used tethering so far I never had a reason too. why do you have to use it?
Click to expand...
Click to collapse
My PC is farther from the router than my longest ethernet wire so I connect to WIFI on the Bravo and tether it. I can only do it on CM7\9\10\Miui. Moto roms have an entitlement check in them. I found the build.prop string to disable the check, but I'm still working on changing the default dhcp settings for tethering -- they're set to 192.168.43.XXX and I need it set to 192.168.0.XXX. I changed the dhcp range values in the smali code of services.jar but it didn't matter. I think there might be another smali file with dhcp ranges somewhere else. I don't want to change my routers dhcp range since all my WiFi devices are set to connect to a static IP (had to for the iPhones in the house -- the iPhone dhcp bug).

Categories

Resources