[Q] Can't delete Mms.odex, "No such file or directory" - HTC Sensation

I'm trying to use my new Sensation with the SIM from my Japanese iPhone, which requires replacing the stock Mms.apk with one that works with Softbank. That much I managed to do. Now when I try to open the Messaging app it crashes immediately, which is apparently normal and means I need to delete the old Mms.odex. But when I try, the command prompt window tells me:
rm failed for /system/app/Mms.odex, No such file or directory
I've made sure the folder isn't read-only (I managed to copy the new Mms.apk to it after all). Not sure what else could be going wrong. Thanks in advance for any help.

Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Sent from my Sensation using Cyanogenmod

dr.m0x said:
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Click to expand...
Click to collapse
I know it's not ideal, but this method seems to work just fine; I've read a bunch of Japanese blogs that explain this is how to get MMS working with Softbank, and people on forums elsewhere say it's worked for them.
dr.m0x said:
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Click to expand...
Click to collapse
How do I do that? I'm pretty new to all this, two days ago I was Googling where to find my Sensation's settings menu

If you want to ensure the mms.apk has correct permissions you can simply run:
adb shell chmod 644 /system/app/mms.apk
This will set the correct permissions for apps in the /system/app folder, although its worth reading up on linux permissions to understand what the command is actually doing.

Permissions didn't help, but I've managed to track down another Mms.apk file that works well enough - messages don't integrate properly with HTC's Messaging app, but I can send and receive MMS. I'm going to keep looking for a better apk but at least this one functions!

Related

Help signing Apk?

I had a mod done to my widgetlocker apk , but i cant adb push it. Can someone please sign it for me so i can install using root explorer? Im not sure how difficult it is , so if its insanely hard or something im sorry for asking haha . Thanks .
Get apkmanager and it will sign it for you. Plus apk manager will let you decompile and recompile then sign so you can mod anything and it's a whole lot easier.
Sent from my Incognito Droid using Tapatalk
1. Add your JDK Directory to the Path variable (Right click on My Computer, Properties, Advanced, Environment Variables)
2. At the command prompt, navigate to the containing folder
3. keytool -genkeypair
4. jarsigner -verbose APPNAME.apk mykey
5. Push the signed app
sorry guys but im not real sure what a JDK directory is or anything. I didnt do the mod myself. i made a donation and had it done by someone on here. Once they returned it to me via email they told me to adb push it.. but i do not have any exp doing that and was hoping someone could help me out... there would be a nicely themed widgetlocker.apk in it for you haha
Different problem, same answer.
I have been trying to install a custom framework res for a while now. I am on a Mac. I simply have been changing ext to zip, unzipping, making changes, rezipping, using mv command in terminal to change to apk, and pushing to phone. It hasn't even kind of worked. Could someone please help? Are there any steps I'm missing? Do I need to sign the framework res apk?
Please help
lucas.scott said:
I had a mod done to my widgetlocker apk , but i cant adb push it. Can someone please sign it for me so i can install using root explorer? Im not sure how difficult it is , so if its insanely hard or something im sorry for asking haha . Thanks .
Click to expand...
Click to collapse
Post it or post a link to it and I'll sign it.
That said, if you modify one apk it is highly unlikely you will not modify others (which is a good thing). Therefore, I would highly recommend getting acquainted with the proper tools.
First you will need to install the Android SDK on your computer. Here is the link:
http://developer.android.com/sdk/index.html Bear in mind that to use it you will also need to install the JDK (Java Developers Kit) on your computer but the links are in the instructions so it is very easy.
In addition to the SDK download 7zip if you do not already have it. It is a free archive utility that enables opening and editing the contents of archives without extracting them.
Lastly, if you just plan on editing images download Stericson's autosign tool so that once you finish changing images you can resign the apk which is necessary to install. However, if you want to delve a little deeper into apps I highly recommend Apk Manager. Not only does it include a signing tool but can also decompile apks so that you can do deeper editing.
dkdude36 said:
I have been trying to install a custom framework res for a while now. I am on a Mac. I simply have been changing ext to zip, unzipping, making changes, rezipping, using mv command in terminal to change to apk, and pushing to phone. It hasn't even kind of worked. Could someone please help? Are there any steps I'm missing? Do I need to sign the framework res apk?
Please help
Click to expand...
Click to collapse
The framework-res.apk does not need to be resigned. In fact, there are few, if any, reasons why any system app would need to be resigned. Therefore, that should not be your issue.
That said, in the steps you listed above I see several areas which could problems so, it would be beneficial if you provided more information. Here are my initial comments:
1)When you are rezipping the apk are you recompressing the folder created when you unzipped the apk OR, are you selecting the contents of the folder (e.g. AndroidManifest.xml, res folder, etc. ) and compressing them? It is important to do it the second way I described.
2)No need to bother with the mv command as you are using it. Once you've rezipped the apk (it will likely be named Archive.zip) you will need to rename it "framework-res.apk" at which point you should only need to push the apk back to the phone. The process would go like this:
a)put modified framework-res.apk into the tools folder (located in the SDK folder)
b)open up terminal.app
c)type "cd " (without the quotes) and drag the tools folder located in the sdk folder into the terminal terminal window, and press Enter
d)type "./adb remount" (without the quotes) and press Enter
e)type "./adb push framework-res.apk /system/framework/" (without the quotes) and press Enter
f)type "./adb reboot" (without the quotes) and press Enter. (The phone will reboot which is necessary to see your changes)
g)Marvel at your accomplishment
Obviously, you should make a nandroid backup of your phone first so that in case you mess anything up you can restore it as if nothing happened.
If you have any more questions simply post them and I'd be happy to answer them. I bought and rooted my EVO the day it first came out which was before there were any Mac tutorials and have since become fluent in adb due to lots of trial and error.
could you possibly help me with my widgetlocker apk? i have adb pushed ( finally learned how to do that on mac) and it still wont install . have contacted ultralynx (he did the mod) but im not getting a response...thank you .
lucas.scott said:
could you possibly help me with my widgetlocker apk? i have adb pushed ( finally learned how to do that on mac) and it still wont install . have contacted ultralynx (he did the mod) but im not getting a response...thank you .
Click to expand...
Click to collapse
Hmmm... If ultralynx did the mod for you it is probably already signed. I've seen some of his threads and he clearly knows what he is doing. And, signing is apk-modding-101.
Where did you ./adb push the widget locker to? /system/app/ or /data/app/? Adb push does not install the apk if you push to /data/app/
My recommendation would be to do the following:
1)Using root explorer, find and delete the widgetlocker.apk from wherever you adb pushed it on your phone. Exit out of Root Explorer.
2)Reboot phone
3)Confirm that you don't have any previously installed versions of WIdget Locker on your phone. From your home screen press the menu button and navigate to Settings-->Applications-->Manage Applications-->All and look for Widget Locker. If you find it select and uninstall it.
4)Assuming the modified widget locker.apk was signed you should not need to mess with adb. You certainly can but it is not necessary and I'd hate to confuse you with the commands. So... Instead, connect the EVO to your computer and mount as disk drive. Put the widget locker.apk you want to install on your sdcard. Personally, I would recommend creating a folder named Apps and putting it in there.
5)Unmount phone as disk drive and unplug phone from computer
6) Using any file manager (Root explorer is fine) navigate to the apk on your sdcard and select install.
If that doesn't work let me know
Found problem, need answer
okolowicz said:
The framework-res.apk does not need to be resigned. In fact, there are few, if any, reasons why any system app would need to be resigned. Therefore, that should not be your issue.
That said, in the steps you listed above I see several areas which could problems so, it would be beneficial if you provided more information. Here are my initial comments:
1)When you are rezipping the apk are you recompressing the folder created when you unzipped the apk OR, are you selecting the contents of the folder (e.g. AndroidManifest.xml, res folder, etc. ) and compressing them? It is important to do it the second way I described.
2)No need to bother with the mv command as you are using it. Once you've rezipped the apk (it will likely be named Archive.zip) you will need to rename it "framework-res.apk" at which point you should only need to push the apk back to the phone. The process would go like this:
a)put modified framework-res.apk into the tools folder (located in the SDK folder)
b)open up terminal.app
c)type "cd " (without the quotes) and drag the tools folder located in the sdk folder into the terminal terminal window, and press Enter
d)type "./adb remount" (without the quotes) and press Enter
e)type "./adb push framework-res.apk /system/framework/" (without the quotes) and press Enter
f)type "./adb reboot" (without the quotes) and press Enter. (The phone will reboot which is necessary to see your changes)
g)Marvel at your accomplishment
Obviously, you should make a nandroid backup of your phone first so that in case you mess anything up you can restore it as if nothing happened.
If you have any more questions simply post them and I'd be happy to answer them. I bought and rooted my EVO the day it first came out which was before there were any Mac tutorials and have since become fluent in adb due to lots of trial and error.
Click to expand...
Click to collapse
Thanks for the help okolwoiz. I am fluent in adb and have been hacking for a while. I think I know the problem. The mod I was trying to theme (drop down notifications bar) is a .9.png, which means it is automatically resized to fit the phone. These are different than normal .png files. I know i need to use a draw9 something file in the sdk, but I don't know how. Any help would be great. Thanks
Dk
yeah i have tried all of that . It always just says "Application not installed" . No matter how i get it on the phone . ore than happy to send it to you to see if its the file or my phone .
Thanks this thread has helped me and I was just wondering through aimlessly.. And stumbled upon tis thread.
Sent from my netarchy_toast, froyo beast of a machine evo!
glad it helped someone haha

Froyo Rom Manger fix permissions fix?

I have spent all morning trying to get rom manager to fix permissions and have finally tracked down the culprit. the fix_permissions script is looking for /data/system/packages.xml. At least with perception 4 it is in /dbdata/system/packages.xml
I have edited the file and attached it.
First the rename and drop the .txt. the actual name of the file is fix_permissions
Copy to sdcard.
Using root explorer copy it to /data/data/com.koushikdutta.rommanager/files
(good idea to back up the other one first.)
Issue I have is after I reboot, the file resorts back to the old file.
Not sure why.
If you want to edit the file directly in root explorer, there were 4 instances of the /data/system/packages.xml
!!All credits go to the developers of rom manager and associated programs within it!!
I for the life of me cannot figure out why the file keeps changing.
So the best thing i can think of is to load it to the sdcard.
Using terminal emulator cd /mnt/sdcard and then sh the file.
Quickest diretiest way to get it to work.
I hope it helps someone out there.
Code:
su
cd /mnt/sdcard
sh fix_*
Thank you--if it helps, I simply copied the packages.xml file into /data/system/ in order to run fix_permissions, and then just deleted the .xml file.
A temporary fix, yes, but I was just trying to fix a specific problem with ending phone calls causing an FC (see http://forum.xda-developers.com/showthread.php?p=9943863#post9943863).
Thanks, your fix worked for me as well...
jnagar said:
Thank you--if it helps, I simply copied the packages.xml file into /data/system/ in order to run fix_permissions, and then just deleted the .xml file.
A temporary fix, yes, but I was just trying to fix a specific problem with ending phone calls causing an FC (see http://forum.xda-developers.com/showthread.php?p=9943863#post9943863).
Click to expand...
Click to collapse
--Much appreciate the suggested fix. Worked like a charm.
do you have to delete the packages.xml afterwards?
what will happen if I just leave it in the data/system folder instead of copy/pasting it every time?
Oh ant thanks SO much. Really needed to be able to fix permissions after Nero v5 started to act crazy yesterday.
pushabutton said:
what will happen if I just leave it in the data/system folder instead of copy/pasting it every time?
Oh ant thanks SO much. Really needed to be able to fix permissions after Nero v5 started to act crazy yesterday.
Click to expand...
Click to collapse
I haven't played with this in awhile, but it seemed that it was overwritten every time Rom manager started.
I'll play around with this and see what I can come up with as a more permanent solution.

How do i add apk to custom rom?

Hi,
I have a few apps and would like to add into custom rom. I read and google but no help.
Using winrar and open custom rom, i create a folder /data/app and place all apk in "app" folder. non of the apps in that folder installed. Do i need to do more then just add the apk?
I read here http://forum.xda-developers.com/showthread.php?t=1198035 and no use. maybe OP not don't with the guide yet.
thx
cat2115 said:
Hi,
I have a few apps and would like to add into custom rom. I read and google but no help.
Using winrar and open custom rom, i create a folder /data/app and place all apk in "app" folder. non of the apps in that folder installed. Do i need to do more then just add the apk?
I read here http://forum.xda-developers.com/showthread.php?t=1198035 and no use. maybe OP not don't with the guide yet.
thx
Click to expand...
Click to collapse
Reread that thread. The answer is in there.
Hint: ROM flash packages never put anything in /data
you can preinstall apps to /data/app but it takes update script modding. if you havent figured it out it is a lot easier to add them as system apps in /system/app
@Dani897: I try adding apk to /system/app or /data/app but none are working. When I add apk to /system/app; after the rom flashed and reboot, Samsung kept on flashing forever.
cat2115 said:
@Dani897: I try adding apk to /system/app or /data/app but none are working. When I add apk to /system/app; after the rom flashed and reboot, Samsung kept on flashing forever.
Click to expand...
Click to collapse
check your permissions!
the data/app way need adition work in the update script. im not gonna get into that.
Dani897 said:
check your permissions!
the data/app way need adition work in the update script. im not gonna get into that.
Click to expand...
Click to collapse
Thanks. How do i check permission? in CWM? In cwm (red) v2.5.1.3 -->Install zip from sdcard --> toggle signature verification-->disable'
In advance, all i see is fix permissions.
cat2115 said:
Thanks. How do i check permission? in CWM? In cwm (red) v2.5.1.3 -->Install zip from sdcard --> toggle signature verification-->disable'
In advance, all i see is fix permissions.
Click to expand...
Click to collapse
no in a terminal emulator or in linux. they get screwy sometimes if you do editing in windows. i cant even seem to get ownership of one of my flash drives on my linux machine after i formatted it with windows.
if you are on a mac you can do it by clicking and choosing "get info" from the context menu apparently but i dont own a mac so i dont know.
i never used it but check out cygwin and do some googling on permissions in terminal/console. it might be best if you are not ready to install a new os. but you can also install ubuntu with the wubi installer inside windows of use a vm with osx or the linux distro of your choice pretty easily. please dont ask for support questions on doing those things.
you can find permissions of files in a directory with ls -l
you can change them with chmod an ususally one of the numbers below but there are others, google is your friend
666 is rw-rw-rw
644 is rw-r--r-
777 is rwxrwxrwx
755 is rwxr-xr-x
644 or 755 are the most likely that they should be.

[MOD] Black & white Emoji on system font

If you ever wondering what your iPhone/Mac friends were sending you, wonder no more.
To install: You need root! Download the .ZIP attached to this thread. Make a backup first of the following fonts under your /system/fonts folder! If you don't find some of these in your /system/fonts folder, don't worry.
DroidSansArabic.ttf
DroidSansFallback.ttf
DroidSansHebrew.ttf
DroidSansThai.ttf
gcsh00d-hkscs.ttf
Then, extract the zip to the /system/fonts folder and replace all fonts it tells you to replace. That's it!
For those of you who have your phone plugged in to your computer and prefer a command line, extract the ZIP to an ADB folder. Open a command prompt in the directory and then type:
adb shell
su
mount -o remount rw /system
chmod 777 /system/fonts
adb push DroidSansArabic.ttf /system/fonts/
adb push DroidSansFallback.ttf /system/fonts/
adb push DroidSansHebrew.ttf /system/fonts/
adb push DroidSansThai.ttf /system/fonts/
adb push gcsh00d-hkscs.ttf /system/fonts/
I'm thinking of modding some other system fonts with these files I found, I will update this thread if I ever do. Enjoy.
Nice. Thank you so much, this kicks all sorts of ass.
This is amazing.
Does this replace the stock smileys or is there a way for us to insert them?
Mms.apk with Emoji support
I lifted the MMS apk from AOKP, which is modified from cm9. Has full emoji support baked right in.
https://www.dropbox.com/s/0btrygelu5004f2/Mms.apk
You have to go in to settings and enable emoji support.
how do i install it. when i try to it says an existing package by the same name with a conflicting signature is already installed
Darealshht said:
how do i install it. when i try to it says an existing package by the same name with a conflicting signature is already installed
Click to expand...
Click to collapse
I used es file explorer. The messaging app is stored in /system/app
Just backup the old messaging app by renaming the file extension to .apk.bak or something, and then drop the mms.apk in to the /system/app folder. Make sure permissions are set to -rw-rw-rw. Reboot the phone when finished.
Edit: You'll need to have root access, and have "Root Explorer" and "Mount File System" enabled in es file manager.
thanks works well
Thanks! I tried changing the fonts but it did not change anything for me. I replaced the MMS.apk and it looks great.
im having problems sending MMS when i try it just doesnt even show up it just disappears as soon as i hit send
Darealshht said:
im having problems sending MMS when i try it just doesnt even show up it just disappears as soon as i hit send
Click to expand...
Click to collapse
Blast, you're right. I hadn't tried sending an MMS yet but the same thing happens when I try. I'll mess around with it a bit when I'm off work and see what I can do.
Edit: I didn't do anything, and it seems to be working now. I sent a couple of test MMS messages, and they just straight up disappeared...but then when the person I sent them to replied they all just magically reappeared. Now it seems to be working fine.
Mine is working fine too. Try reinstalling the app.
Sent from my HTC One X using Tapatalk 2
its still not working for me after the person replied :/ did u reboot your phone?
---------- Post added at 01:54 PM ---------- Previous post was at 01:47 PM ----------
reinstalled rebooted and still nothing :/
There was a second file called message with an extension ".odex" I moved that one out as well. I reboot the phone too.
After putting the new mms.apk in make sure you reboot the phone. Good luck.
Sent from my HTC One X using Tapatalk 2
still not working idk what else to do
Can you send regular sms messages? If not try downloading tha apk again. Force stop the app and clean cache.
Sent from my HTC One X using Tapatalk 2
Darealshht said:
still not working idk what else to do
Click to expand...
Click to collapse
Try this - it didn't work for me until I tried inserting a picture from an app other than the gallery. I tried sending two pictures from the gallery, neither of them appeared. I then tried attaching a image using ES file explorer instead, and that one didn't appear immediately, but it did show up after a moment. After that, I had no trouble attaching an image from the gallery app.
Just wanted to say thanks to you guys. I got it to work after reinstalling it thru the download manager. I have a question. There's a software update for my phone from at&t but when I try to install it it says there was a problem with my software. I'm new to android so is it because I'm rooted? If so can I unroot to upgrade?
Do not update, unless you do not want root again.... Well at least for a while.
Sent from my HTC One X using Tapatalk 2
Either way I can't because it won't update for someone reason
I have follow all the steps and now can type emoji but there is another problem: My HTC One X can't display traditional chinese and korean character Could you help me with a solution?

[Q] Boot Animation doesn't change (with ES or TWRP)

Hi. I tried changing the boot up (and down) animation on my One S (S3). And it just doesn't seem to work. I don't get how. Here's all the things I did:
1. Copied the zip file to my phone, through USB. Renamed it to hTC_bootup_one.zip (as mentioned here: http://forum.xda-developers.com/showthread.php?t=1637870). Then moved it to /system/customize/resource using ES file manager.
2. Copied it to my phone. Booted into TWRP recovery. Moved the file from there.
3. Tried replacing the bootanimation.zip and hTC_downanimation.zp with the same zip file.
All three times, it moved the file just fine. ES asked me everytime if I wanted to replace the original file. And after I replaced it, I went into the zip file with the archive viewer, and checked the files, and they were the right ones.
But every time I shut down and restart, I still get the original animation. What am I doing wrong? Is it the wrong location? Please, please help!
I'm running TrickDroid v5.0.0. Could this be the issue?
Finally, this is the file I'm trying to use: http://forum.xda-developers.com/showthread.php?t=1732732
Did you set the permission correctly?
Goatshocker said:
Did you set the permission correctly?
Click to expand...
Click to collapse
Sorry, but what exactly do you mean? Permission for the zip file? Or permission to write onto the system folders? I've got the latter covered. I do have permission to write in the root folders. But if you're talking about permission for the zip file itself, I'm not sure how to do that!
Im talking about the step "- Set permissions to rw-r--r--"
Its done through a terminal or adb shell witrh the command 'chmod'. Im not sure what number rw-r--r-- translated to though, maybe 766 or something.
Goatshocker said:
Im talking about the step "- Set permissions to rw-r--r--"
Its done through a terminal or adb shell witrh the command 'chmod'. Im not sure what number rw-r--r-- translated to though, maybe 766 or something.
Click to expand...
Click to collapse
I just checked that. And yep, it's set to the correct permissions. rw-r-r. The odd thing is though, the original boot animations aren't even there anymore. Since I replaced them with the new one. So how it it even showing me the original one still? Am I doing this in the right location for the One S (S3)? /system/customize/resource?
No idea where its located actually... Try a search for the file and see if it pops up elsewhere (ES Fileexplorer can search, other explorers can probably too)
Goatshocker said:
No idea where its located actually... Try a search for the file and see if it pops up elsewhere (ES Fileexplorer can search, other explorers can probably too)
Click to expand...
Click to collapse
Right so I gave up, relocked, reflashed stock recovery, got the official JB update, unlocked, flashed TWRP, and viola, boot animation works. So basically the problem was with TrickDroid. I'm not sure what. But, there you go. Thanks anyway.

Categories

Resources