porting APK from samsung Galaxy into Dream - G1 Android Development

Hi,
I'm from Israel and we have here the samsung Galaxy sold with some hebrew support.
I would like to port some application from it to Dream/Magic so other people could enjoy it but when i try to install them in the emulator I will get different error message like:
Code:
1947 KB/s (691876 bytes in 0.347s)
pkg: /data/local/tmp/Vending.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
Code:
1281 KB/s (9186 bytes in 0.007s)
pkg: /data/local/tmp/CSC.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
Code:
540 KB/s (9404 bytes in 0.017s)
pkg: /data/local/tmp/testgps.apk
Failure [INSTALL_FAILED_DEXOPT]
and even when the APK install successful it won't start:
I try to install the Gmail.apk and it just open it in the emulator and closes right on the start (no error in logcat about it)
Code:
1596 KB/s (120974 bytes in 0.074s)
pkg: /data/local/tmp/GmailProvider.apk
Success
Code:
1824 KB/s (489403 bytes in 0.262s)
pkg: /data/local/tmp/Gmail.apk
Success
any help would be great!
Thx in advance

Try adb pushing it:
adb remount
adb push testgps.apk /system/app
And you can't push the Market or install it just like that

Also there could be some libs or other files that need to be moved over that to work as well.

first - thx
market is not that interesting for me it was just a random apk i wrote
well, i push a bunch of apk into /system/app but it doesn't seems to install them, i need to restart and keep the pushed apk (i pushed hebrew fonts to check if closing the emulator will keep them - no, he doesn't)
so, how do I "restart" the emulator in order to take into account the new apks?
about the lib - they are compiled files? if so, i hope i don't need them 'cuse we don't have the source code for them

Do you know how the fonts work in galaxy? Are they from cupcake? Or are they custom made by samsung? If so, how exactly is hebrew supported? I have to replace /system/fonts/DroidSansfallback.ttf. with one from a dejavu set each time I flash a new CM rom, and it drives me crazy! I would love native hebrew support, and have PM'd cyanogen about it but haven't had a response.... do you think you could post the fonts you use?
Thanks...

yochaigal said:
Do you know how the fonts work in galaxy? Are they from cupcake? Or are they custom made by samsung? If so, how exactly is hebrew supported? I have to replace /system/fonts/DroidSansfallback.ttf. with one from a dejavu set each time I flash a new CM rom, and it drives me crazy! I would love native hebrew support, and have PM'd cyanogen about it but haven't had a response.... do you think you could post the fonts you use?
Thanks...
Click to expand...
Click to collapse
Maybe this thread could be of interest to you
http://forum.xda-developers.com/showthread.php?t=554559

you're just taking galaxy apps and pushing them to the magic.. it doesn't work like that u need to actually port it and push over the dependencies like libs and such first before u get any success. If u need any of the galaxy resources, there's a thread that has the galaxy system dump where u can pull off of. But idk why u would wanna do this as the galaxy is just the plain old cupcake we've seen for months on end with just a lil of samsung's goodies.

about the fonts - they have the same handling as the other android devices, you can push them into /system/fonts
about the apps - the regular galaxy system dump is no good here, we want to israeli application with hebrew support that they added there, that is way i'm trying to install them
are the *lib* files complied to each device or is it just binary text file? can i just insert them into /system/lib ?

Related

Changing HTC-Keyboard -> GoogleKeyoard

Hi,
I got wanted to know if someone could tell me how to change the keyboard to the old GoogleKeyboard.
What I know, and I have already done that but it failed, was to delete the HTCIME - and copy the LatinIME + libjni.* to my magic.
When I restarted I had no keyboard.
I tried to install the apk with astro
I tried to install it with adb
but it failed...
I hope someone can help me
delete juste htc_ime.apk.
Put your latinime.apk into the tools forlder from sdk, en go on dos promp :
adb install latinime.apk
and hop
same here..
how do i delete the htc_ime.apk?
astro refuses to delete the file.
same error as before
adb install latinime.apk
917 KB/s (4799691 bytes in 5.109s)
pkg: /data/local/tmp/latinime.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
I am running nk02 ION r3 lite
I feel you mate.
I did an adb shell and delete the HTC_IME.
but the latinime does not install.
I got my latinime.apk from the french rom is 4668KB
where did you get yours?
r we doing something wrong?
I had to install Scandinavian Keyboard for it to work. After that, even the original keyboard works fine. Before I didn't have any keyboard at all. I don't know what to do for those who don't want that keyboard though.
I had my files from the rootme-rom
but afaik you need the lib files in addition to the LatinIME.apk
ok. I decided to restore the htc_ime found one in my hard drive and copied it back.
surprise, I got the what I thought was the latin_ime keyboard.
Hmmmm. is there any post with pictures of the keyboards, and features/download links?
No? Maybe we should start one?
can you link me your HTC_IME with your "latin_ime" style keyboard?
the one i'm talking about is dark grey to black, with no prediction ( as far as i can see) is that the one you want?
i got it from this rom.
http://wiki.smartphonefrance.info/(...rmware-htcmagic&AspxAutoDetectCookieSupport=1

[MOD] Original Green Power Control widget for CM5.0.5.3

I'm currently running Cyanogen 5.0.5.3 and loving it, but I'm finding that the cyan color on Power Control just isn't doing it for me anymore. I think I'd much prefer the original green again.
I did a bit of research, extracted Settings.apk from some stock images and tried pushing them to system/app, but it didn't seem to work. Does anybody have any idea how to get this widget back to its original colors?
Edit: Title changed to reflect attachments in thread.
you can find it in one of the shipping roms just search and extract the GenieWidget.apk file and push it to /system/app/
j.bruha said:
I'm currently running Cyanogen 5.0.5.3 and loving it, but I'm finding that the cyan color on Power Control just isn't doing it for me anymore. I think I'd much prefer the original green again.
I did a bit of research, extracted Settings.apk from some stock images and tried pushing them to system/app, but it didn't seem to work. Does anybody have any idea how to get this widget back to its original colors?
Click to expand...
Click to collapse
Pushing Settings.apk from a stock image was on the tight track, but you'd be missing out on some of the new settings and features that have been added in.
Attached is Settings.apk compiled from 5.0.5.3 with the stock green indicators. Push it to /system/app
akifbayram said:
I'm also looking for this. Or maybe different colors besides Cyan.
Click to expand...
Click to collapse
I like the this idea, perhaps customizable? I'll look into it later, I'm just on my lunch break now...
chronzz said:
you can find it in one of the shipping roms just search and extract the GenieWidget.apk file and push it to /system/app/
Click to expand...
Click to collapse
GenieWidget.apk is the news and weather widget...
Awesome! Thank you so much!
NP.
I'd recommend changing the thread title to "[MOD] Original Green Power Control widget for CM5.0.5.3" to prevent any confusion.
Hello there,
I totally agree on the Green power Widget color thing! It's the first and only thing I disliked when I flashed CM5 for the 1st time.
Now I pushed your Settings.apk to /system/app/ using following command:
Code:
adb remount
adb push Settings.apk /system/app/
Unfortunately it didn't work, so I tried installing it with AndroidCommander and again the operation succesfully finished but it doesn't show up.
When I longpress the background and choose Widgets, then Launcher2 FC's.
This also happens after rebooting twice.
FYI: I'm using CM5.0.5.3 with kmobs UV'd kernel (2.6.33.1-cyanogenmod [email protected] #9)
In attachment you can find a logcat, I had to cut like 50% of the complete log because the .TXT exceeded the max of 19.3kb according to forums policy.
Let me know if you miss important info in the log then I'll get you the full log.
Thanks in advance to look into this matter
Keep up the good work! Much appreciated!
Did you remember "adb remount"? It didn't work for me the first time because I forgot this step but it worked the second time after the remount.
j.bruha said:
Did you remember "adb remount"? It didn't work for me the first time because I forgot this step but it worked the second time after the remount.
Click to expand...
Click to collapse
yes I did a remount first (stated in my post above). I reverted back to CM5.0.5.3 with the blue powerwidget + flashed kmobs UV'd kernel #9.
Gonna try once more now hopefully with more luck. If not then I'll post a full logcat.
In ChainsDD's post he states the following:
Attached is Settings.apk compiled from 5.0.5.3 with the stock green indicators. Push it to /settings/app
Click to expand...
Click to collapse
Does "/settings/app/" even exist? Isn't he referring to /system/app ? I am patiently awaiting feedback ^^
Thx for your reply.
Right, you did totally say you did a remount. I'm sorry, brah.
I pushed mine to /system/app as that's where all the apk's are.
j.bruha said:
Right, you did totally say you did a remount. I'm sorry, brah.
I pushed mine to /system/app as that's where all the apk's are.
Click to expand...
Click to collapse
Indeed I also tried pushing it to /system/app/ as /settings/app/ doesn't exist.
BUT
I just tried again with no luck Attached another logcat.
Which adb command did you use? "adb push" or "adb install -r" or ... ?
As far as my knowledge goes:
- push = copies the files
- install = copy+install right? The parameter -r stands for "reinstall" when the .apk already exists.
Could you provide the exact command you typed?
Thanks again for your reply.
I know it's sounding complicated, but I just pushed the file.
adb remount
adb push settings.apk /system/app
adb reboot
That's it my friend.
You're right... I screwed up... /system/app...
adb install will install the app to /data/app, use adb push when you need to push something to any other folder. apks in /system/app are automatically installed.
Ok just ran through the whole process a 3th time.. still same issue.
Is there any cache/data/folders I need to clear before trying again?
I flashed CM5.0.5.3, flashed kmobs UV'd kernel, black desire notification bar and pushed Setting.apk again... Same issue.
Microsoft Windows XP [versie 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
G:\Data\Phone\Green Power Widget for 5.0.5.3>dir
De volumenaam van station G is Elements
Het volumenummer is 2A28-4927
Map van G:\Data\Phone\Green Power Widget for 5.0.5.3
25/03/2010 14:42 <DIR> .
25/03/2010 14:42 <DIR> ..
25/03/2010 15:55 64.494 logcat.log
25/03/2010 16:42 19.712 logcat.txt
25/03/2010 21:38 2.593.630 Settings.apk
25/03/2010 21:54 6.336 logcat2.txt
4 bestand(en) 2.684.172 bytes
2 map(pen) 34.166.112.256 bytes beschikbaar
G:\Data\Phone\Green Power Widget for 5.0.5.3>adb devices
List of devices attached
HT9CPP804804 device
G:\Data\Phone\Green Power Widget for 5.0.5.3>adb remount
remount succeeded
G:\Data\Phone\Green Power Widget for 5.0.5.3>
G:\Data\Phone\Green Power Widget for 5.0.5.3>adb push Settings.apk /system/app
982 KB/s (2593630 bytes in 2.578s)
G:\Data\Phone\Green Power Widget for 5.0.5.3>adb reboot
G:\Data\Phone\Green Power Widget for 5.0.5.3>
After doing this the powerwidget, nor Settings is available and in addition Launcher2 keeps FC'ing when I longpress background and select anything there (widgets, folders,...)
Could you please have a look into the logcats I posted? This seems sucha strange issue as I completely understand the process and execute it correctly.. I'm no idiot. Could it have to do something with incompatibility with the other mods? I'm gonna get some sleep now I'll continue tomorrow
Thanks for your feedback.
If settings isn't available in your app tray, then the issue is likely happening when you push the file. Get me the logcat of that and we should be able to sort it.
Goodmorning ChainsDD,
Attached you can find the logcat of when I'm installing.
Thanks in advance.
Code:
PackageManager( 106): Package com.android.settings has no signatures that match those in shared user android.uid.system; ignoring!
This is what I thought was happening. I saw this before, but I'm not sure how I fixed it... The apk pushes fine on my phone, so it's probably an something between mods. Try reflashing 5.0.5.3, then push Settings.apk, then install other mods.
Ok thanks will give it shot as soon as i get home
I flashed CM5.0.5.3 without anything else, no other kernel, no mods, just CM5.0.5.3 and I still have the same issue..
- Is there a specific cache/temp folder that I can clear to become a complete full wipe?
- Could it have to do something with the fact that the 1st time I executed following command: "adb install Settings.apk" so it messed up something?
- I guess I'll just wait for another CM release to come where the PowerWidget will be pulled from and adapted to green so I can test once more. I'm gonna do some more research regarding the signatures thingy. This signatures stuff doesn't affect anything else, right? For example pushing other other apps etc? If so I NEED this resolved otherwise I just wait for another CM release etc.
Thanks for your assistance so far! Much appreciated.
Can somebody revert the colors of the power control and analog clock widget back to the stock green by modifying Settings.apk from Test 2? I'd like to keep all the new settings, but I really want the green color back. I posted this in the CM thread also.
j.bruha said:
Can somebody revert the colors of the power control and analog clock widget back to the stock green by modifying Settings.apk from Test 2? I'd like to keep all the new settings, but I really want the green color back. I posted this in the CM thread also.
Click to expand...
Click to collapse
http://android-theme-minus.googlecode.com/files/stock_alarm_clock.zip
http://android-theme-minus.googlecode.com/files/green_pc.zip
The first is a morph for the alarm clock widget to stock green and the second is a morph for power control widget to stock green.
Updated links to work with .thm and .xml versions of Metamorph.

[APP/TOOL] xUltimate

This is generously brought to you by a good friend Xeudoxus over on DroidForums.net Please feel free if you do enjoy his app/tool and what not definitely feel free to throw him a couple bucks for his hard work. He's definitely a huge plus to our community.
DONATE HERE
Alright xUltimate has been updated to v2 What this means is that you do not need your phone connect to your computer to deodex. So you can just manually place the .odex files in (\origi_frame\) and (\origi_app\) and it will deodex. You can also transfer the .odex files from your phone like the last version.
It should not be as buggy as before. Also some of the features still have not been updated yet for newer roms. (I will be working on this in the next couple days to try and bring the "patches" up to speed)
I have added some standalone tools (Tools that do not need to be in the main xUltimate dir)
On most of the xUltimate standalone's I have added some example files in the .zip's so you can see how it operates.
Also Ill be posting the old change log for xUltimate main (When I find it lol , I saved it from google cache after it was lost)
-Matt
--INFO--
xUltimate Main v2.1 has been updated for android 2.2 (It should be able to deodex 2.2/froyo) Tested on Nexus Froyo (Only had a problem with Bluetooth.odex <-- But thats a issue with the framework.jar) Clock colors and clock remove have been updated for froyo. Other features will be updated in time.
xUltimate Color Converter will convert hex color codes to the proper binary color code for editing colors in smali
Usage: xUltimate-CC {RRGGBB}
xUltimate Theme/MM Optimizer will opt_png and zip_align all .png's and .apk's in a MM .zip or update.zip or whatever .zip (It will also remove any .db files)
xUltimate Draw9Patch Compiler will compile correctly made .9.png's so you dont have to use eclipse or motodevtools anymore. Look at the example files in the .zip and you'll see how to process your entire theme at once if you wanted.
Go here to DOWNLOAD
This makes editing your phone super easy. You can deodex your phone, change color for text among a ton of other stuff with the add-ons. Please leave comments as to how it works for you, and any suggestions as I will be relaying this information along to Xeudoxus.
I'm going to keep my eye on this, thanks for the update.
I would... it's an incredibly useful tool and very easy to use. I'm just posting it here because he posts primarily on DroidForums.
so how exactly do I use the 9.png compiler?
This is my favorite thing ever. Time to theme that lockscreen
i tryed to use this but i have xp x32 so i get a error , does some know how to fix this ?
Thanks
I get an error when it tries to deodex the framework.jar:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at org.jf.dexlib.ItemFactory.makeItem(ItemFactory.java:43)
at org.jf.dexlib.IndexedSection.readItems(IndexedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.jav
a:216)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:14
5)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPath(ClassPath.j
ava:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:103)
at org.jf.baksmali.main.main(main.java:278)
Press any key to continue . . .
Click to expand...
Click to collapse
Any thoughts as to how to increase the heap size so it doesn't die?
anyone have an issue after deodexing?
specifics:
everything completed successful but now when mounting phone it sees the internal SD as a write protected CD drive.
I'm using xUltimate 2.3.3 for Samsung Galaxy SL GT-i9003. I'm facing the below error when running with option 3
.
.
.
.
Starting BuddiesNow.odex
*****************************************
* Deodexing... *
* Redexing... *
* Processing... *
* Compressing/Aligning... *
*****************************************
BuddiesNow.apk Finished!
Starting CallSetting.odex
*****************************************
* Deodexing... *
* Redexing... *
out\com\sec\android\app\callsetting\voicecall\CallBarring.smali[0,0] null
* Processing... *
The system cannot find the file specified.
Press any key to continue . . .
Please help me to fix the same. I've found some APK files under the origi_app with no *.odex file with the same name as the *.apk file. I've removed them from the origi_app folder to force the option 3 run to complete. But the process stops even for some APK files has ODEX files. There were 145 APK and 105 ODEX files under origi_app folder. Made as 105 APK and ODEX files, but still the option 3 run didn't succeed.
I believe I am having a problem with Xultimate. I have tried deodexing a single file (services.jar) and even with no modifications the phone will not boot. I made sure to chown and chmod it back to original but it also didn't make a difference.
I then tried to deodex with xultimate and reodex with dexopt-wrapper without making changes and not only can the phone not boot but the resulting services.odex is a different size with different contents from the original.
I believe something is wrong with the version of Xultimate I am using. You can read my thread about it here http://forum.xda-developers.com/showthread.php?p=27289379
edit: here is the explanation of the dexopt-wrapper tool for reodexing files http://themikmik.com/showthread.php...w-About-adb-odex-themes-etc&p=75225#post75225
Error while deodexing
I'm getting this error while deodexing a Samsung Exhibit II...
Starting AccountAndSyncSettings.odex
*****************************************
* Deodexing... *
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of arguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arguments of the method
at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.java:129)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:79)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:44)
at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Instruction3rc.java:145)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:84)
... 6 more
Error occured at code address 8
code_item @0x2604
Click to expand...
Click to collapse
What should i do to fix this?
just in case, i'm using version 2.4 of xUltimate
Hey Guys
I got a Question about this Tool to deodex some Stock Roms.
Can i use this Tool for my Galaxy Note with Stock "DBTLRK" ? Its a Free Provider German Stock ROM (ICS)???
And when the Answer was Yes: Can i use the same Instructions like this for the Galaxy S+? Or was Something else?
Thank you for Response
I'm getting this error as well and I've only seen that you need to set the API level to 14. How do change the scripts xUltimate is running? sounds like you just need to add a "-a 14" in the baksmali.jar command but I can't find where.
The Poetic Vampire said:
I'm getting this error while deodexing a Samsung Exhibit II...
What should i do to fix this?
just in case, i'm using version 2.4 of xUltimate
Click to expand...
Click to collapse
It support the ICS Rom files, specifically LG Optimus 3D SU-760 Korean version of P920?
hackenggr said:
It support the ICS Rom files, specifically LG Optimus 3D SU-760 Korean version of P920?
Click to expand...
Click to collapse
You could always give this version a try and see if it works for you. I am not sure if you will get any other responses on this being it seems the developer has fallen off the face of earth. It is just a shame as this was an awesome program and brought me a lot of good results in the past.
http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip
What have I to do when I see this:
ROM: GB_EUR_P735TV1.0.0B01
*****************************************
Choices: (Do not use anything here!! Press "7")
*****************************************
or is the tool just for nexus one? I have ZTE Blade II
Cannot Deodex
Excuse me, I have pulled the System/app and framework and then I try to deodex it but fail from the first. Then Run the test and got adb fail but the other are fine, but not for the deodex of course it must fail. How can I fix it? Thanks and sorry for my bad english
Why are there trojans in this?
thnsss

[APP] Droid X Keyboard Port **HOLY CRAP ITS HERE!!1!** [updated 8/13]

After seeing the sweet sweet multi-touch I went looking and found the droid x dump over on android central. Only issue is droid x dump is 2.1 and i just updated to 2.2 frf83. Can anyone repack or resign or do whatever magic needs to be done to get this out to work with froyo?
Its the LatinIME.apk in the app folder.
http://www.4shared.com/file/m8pSCMvI/droidx.html
[UPDATE 7-10]-------------------------------------------------------------------------
Unfortunately Daneshm90 isnt able to work on the Froyo port of this keyboard. If anyone is interested in helping bring this to Froyo, it would be much appreciated, and im sure you'd prob grab a few bucks in donations too.
To make the thread easier to navigate I will be posting all new info on the keyboard here as it is posted throughout the thread. AND REMEMBER ALL GLORY GOES TO DANESHM90, THE ACTUAL DEV DOING THE WORK. THANKS DANESHM90!
DESCRIPTION:
The Droid X Keyboard features full multi-touch. This is different from the multi-touch currently enabled on 3rd party keyboards-the Droid X has the capability to hold down shift and press a letter to make a capital, ie it can do more than one key stoke at once like a physical keyboard. Pretty nice.
LINKS:
2.1 Eclair-based Roms:
only thing not working is auto-captilization,auto-correct errors. Dictionary works, NOW WITH VIBRATE!! Doesnt seem to work on HTC Hero GSM or CDMA...
http://www.mediafire.com/?lumzzhdjnij​
2.2 Froyo-based Roms:
All thats not working on eclair + can't type anywhere it tries to suggest words, like the messaging body. Also voice doesnt work.
http://www.mediafire.com/?rmqzyo0ifzk​
FUTURE FIXES:
• Froyo or Bust
INSTALLATION:
To install this app, you will need a file manager of your choice. Find the apk on your sd card with your file manager and install it. From there go to your system settings-->language and keyboard--> and make sure Multi-Touch Keyboard is checked. Go back to your home screen and find a text field. Long Press and hold until the pop-up menu appears, and select "input method". Choose Multi-touch keyboard. Thats it! To disable simply long press again, select input method and choose a different keyboard. Now you know, and knowing is half the battle
Screenshot of Droid X Keyboard by Andonnguyen. &Amp has been fixed in the apk, but not in this image.
================****UPDATE 8/13/10****
Ok all you multi-touch fanatics...invisiblek over on the incredible forum has ported this to work on a variety of roms, including CM6. Find instructions and DL the files here: http://forum.xda-developers.com/showthread.php?t=753156
If you dont know ADB well, as I dont, you will be able to install this through Root Explorer, the excellent root only file manager. Basically to do this just DL the files, copy them to the appropriate places (LatinIME.apk goes in system/app, libjni_latinime.so goes in system/lib). Be careful as the .so file sometimes DL's as a .txt file, and needs to have both the extension and file name renamed to be correct before installing. It is also a great idea to rename your original LatinIME.apk to something like LatinIME.apk.bak, as well as the lib file, in case anything F's up. As a matter of fact it may even be a good idea to do a Nandroid BU, because you never know what might happen, and its prob been a while hasnt it...
Ok, so you copied them in the right places, now press and try to install your new LatinIME.apk. The first few times I tried to install this, it didnt work. However after remounting my /system as Read Only inside Root Explorer the install worked.
Thanks Invisiblek! Send this guy some donations if you can, we've been waiting for a long time on this one.
Mm, does the keyboard work on a Nexus One that's still running on 2.1, I wonder? Going to give it a try.
Here try this. Its working for me on cyan 5.0.8 on a 32a magic. I just removed the shared uid and resigned with testkeys.
Link
Brilliant, you're a gem. Thank you. Works perfectly.
doesn't work with MCR r18 (FRF72). It installs but force closes once you try to select it.
Will try when MCR r19 (FRF83) hits but I doubt that will work either.
K can u gimme the log ? thnx
Also from ur current build can u gimme ur libjni_latinime.so which can be found under /system/lib/
not the most advanced user here... tell me what to do and I'll do it.
Ok you have adb working right ?
K go start -> cmd -> adb logcat
now leave that window open and try to open swype on ur phone. Then right click the log window click select all, then press enter. Paste in this thread wht u have.
As for the lib its just adb pull /system/lib/libjni_latinime.so <wherever on ur pc>
Cant do that right now... at work. I can when I get home in a few hours.
K cool Np ill try n get vibrate working
Thanks u for great port It work well on Cyanogenmod 5.0.8
smalldroid said:
Thanks u for great port It work well on Cyanogenmod 5.0.8
Click to expand...
Click to collapse
Np. Does vibration work for u ? Doesnt for me Voice to text does though
Vibration doesn't work but I dont need vibration
force closes for me on frf83
force close on FRF72
this is the Log
http://pastebin.com/rHjF6UVn
thanks
Yeah doesn't work on stock frf83-just fc. Any way of fixing?
It seems to be the lib file. K here try this its w/o it forcing it to pull one from ur /system/lib folder
Link
I dunno if this makes a difference or not, but i completely removed the stock keyboard before installing this, i never use the stock keyboard.
These r the steps to do so
adb remount
adb shell rm /system/app/LatinIME.apk
adb shell rm /data/dalvik-cache/*Latin*
adb shell rm /cache/dalvik-cache/*Latin*
adb uninstall com.android.inputmethod.latin
I dunno if this makes a difference or not, but i completely removed the stock keyboard before installing this, i never use the stock keyboard.
These r the steps to do so
adb remount
adb shell rm /system/app/LatinIME.apk
adb shell rm /data/dalvik-cache/*Latin*
adb shell rm /cache/dalvik-cache/*Latin*
adb uninstall com.android.inputmethod.latin
Daneshm90 said:
It seems to be the lib file. K here try this its w/o it forcing it to pull one from ur /system/lib folder
Link
Click to expand...
Click to collapse
Still getting force closes on it. Can't get log since I'm at work.
Note: running froyo, using rodigezstyle's ROM

[Q] Custom Phone APK on HERO (CDMA)

hi, this is my first post here on XDA. i've surfed this site for quite a while as an guest and i love the work that's been done here. I am not new to the field of reverse engineering but most of my time has been spent on the x86 world (Windbloze)
my curiosity grew in the reversing of android applications. I've modded a few apps from the Android Market but now i'm wanting to modify my Phone.apk to get rid of a feature i find 'stupid'
every time i make a call the phone vibrates when it connects, and for me that's annoying because i have all features of my phone set to vibrate and i find myself looking at the phone to see if it was a text or something lol.
I am not asking for someone to do this for me, i will post below what i have done and what i've tried to do to get it working and hope someone can guide me along my way.
Pulled Phone.apk from /system/app
Pulled HTC Framework (com.htc.resources.apk) from /system/resources
Installed framework with apktool
decompiled phone.apk
found offending code that causes the vibrate on connect, deleted it
recompiled APK with apktool
resigned it with testsign.jar
pushed to phone using
adb shell stop
adb push
adb shell start
Click to expand...
Click to collapse
Phone.apk crashes and i get no service
now as far as troubleshooting goes i've done a few logcats on startup to see where it's failing
this line appeared intersting to me:
Package com.android.phone has no signatures that match those in shared user android.uid.phone; ignoring!
Click to expand...
Click to collapse
as suggested by another thread (over on modaco) i removed the following bolded portions of the androidmanifest.xml file
android:sharedUserId="(Text removed to obey outside link filter)"
android:sharedUserLabel="(Text removed to obey outside link filter)"
Click to expand...
Click to collapse
trying yet again with the above pushing method i then shutdown the phone and started another logcat... this time i noticed that it changed the Phone.apk's UID from 1001 to some other number and later on in the logcat i see that the package manager is refusing to give the requested permissions to Phone.apk
so starting all over i tried again with the original AndroidManifest.xml I found a thread here on XDA that states that FieldTest.apk and Telephony.apk might need to be signed with the same cert as Phone.apk so I pulled and resigned with testsign (i'm assuming it uses the same key to sign all apks) the TelephonyProvider.apk and FieldTest.apk files along with Phone.apk, pushed them all to the phone and now i'm getting all kinds of FC's...
So here I am, after hours of fighting with my phone asking for some help... if anyone could guide me to the correct way of modifying my Phone.apk file and still maintain service i would be very appreciative.
EDIT: I've also read somewhere that the framework might need to be resigned, but frankly i'm not sure how that could fix the problem, sounds to me it would cause a lot more problems...also i'm aware that there is a cutom Phone.apk v30.x but it specifically states it's not compatible with the HTC Hero

Categories

Resources