I messed up my stock Music app, needing some stock files. - Galaxy S 4 Q&A, Help & Troubleshooting

I installed a Walkman port that turned out to be nonfunctional, and since I was stupid and didn't make a backup before, I had to remove it manually, but I must have deleted something that was related to the Music app, because now it crashes when I try to open it. Can someone be nice enough to extract some files from the stock kitkat rom the following folders so I can check out which files I'm missing?
The stuff that I must have accidentally deleted was in one of the following folders:
system/etc/permissions
system/etc/surround_sound
sustem/framerwork (something with "sony" in the filename)
system/lib
system/soundfx
Alternatively I'd like to know if there is any way to extract these folders from the odin flashable firmware file I downloaded so I can restore these folders without having to reflash everything. There is a system.ext4 in the tar file but I can't seem to find a way to open it.
And finally, is there some way to troubleshoot what's making the app crash? It's probably missing a file, is there some way to tell which one?
Reflashing the firmware is a last resort because I already customized a lot on this phone and I don't feel like doing all of that again.
Update: I half-fixed it by deleting Dalvik Cache a few times. Now the app works but I don't see the notification with music controls anymore. Instead there's a notification that says "Music is running. Tap for more info or to stop the app", and if I tap it it brings me to the app info screen where I can force stop, clear data, etc. Also I click "play" and the music doesn't play anymore, it stays stuck at 00:00.
What's up with that?

Related

Re-installing the Gallery and Odex for it

Ok, made a slight error on my end. I was having gallery issues and clearing the cache did nothing. I moved some files via Root Explorer instead of thru the gallery so the thumbnails are messed or whatever. Tried clearing the cache no dice. Tried to force it to rescan files, no dice. Said, ok i have solved this before by removing the gallery, and re installing it. So i copied the MediaGallery.apk file to my SD card and used Titanium Backup to uninstall the gallery.
Now i can't re install it. It keeps failing the reinstall. I have tried doing it from the SD card with Root Explorer, i have tried copying it to the /system/app/ folder and still no dice. Still fails install. Have it set to RW, nothing.
How do i go about re installing this app and the odex for it? I was stupid and didn't copy the odex. Yes i know, stupid. I have re-installed it before. I don't think i did anything different. I even changed all it's permissions to everything can be done(checked everything off), just in case it was that. Still nothing
Any help would be greatly appreciated. Yes i know i did somehting very dumb, feel free to remind me, but only if you can offer some sound advice first.
Why don't you just try the 3d gallery?
my only issue there is what happens when an OS or software update comes up? I would brick my phone because i lost a critical file that is needed for the update. Not a good thing.
I think i might just use Titanium backup to backup all my apps and such, make sure all my normal app settings are backed up too, then just do a factory reset. I read elsewhere that the reset would put the gallery back, in some other thread, i just am worried about how long it would take to put everything back the way it was. I will keep dicking around today trying to get it to install and if i can't figure it out by the time i wake up tonight (work third shift) then i will just wipe and reload.
Flash this, kind sir.
http://www.mediafire.com/?4ncc844g9pngsdz
One...You are awesome. Thank you very much.
two...how do i "flash" it? Just install the APK or do i need to move the META-INF files too? Or do i just execute the zip file in something like Root Explorer?
Sorry, never done OS flashes either.
Legato Bluesummers said:
One...You are awesome. Thank you very much.
two...how do i "flash" it? Just install the APK or do i need to move the META-INF files too? Or do i just execute the zip file in something like Root Explorer?
Sorry, never done OS flashes either.
Click to expand...
Click to collapse
You have to use the "Install zip from SD card" option in ClockworkMod Recovery.
Sent from my DROIDX using XDA App
In case that wasn't clear enough...
You can either download "Droid X Bootstrap" from the market (It's like $2, I think)
Or you can download "Rom Manager" (the free version works).
If you downloaded Droid X Bootstrap...
Open it up and click "Bootstrap Recovery"
When an "ok" dialog pops up...click "Reboot Recovery."
You'll now be in Clockwork.
_____________________
If you download "Rom Manager" there will be an option to install bootstrap.
Simply do that...
Power your phone off...
And hold the VolumeDown+Power buttons until you boot into clockwork.
______________________
From clockwork:
Choose install zip.
Choose zip from sdcard.
Find the .zip
Click yes.
Click Reboot.
Awesome, thank you all very much. I already had the bootstrapper program and ROM manager, i wanted to get into flashing ROMs but never got around to it. LOL
Just flashed it and it doesn't show in the app drawer, but i can find it in /system/apps/ with the proper app permissions. But still no dice on the app drawer. I Rebooted twice more and reinstalled it each time, with no success. It has no Odex file with it in the /system/app/ directory. Should it?
Thank you all again very much for your help
http://www.chadhaney.com/droidXDefault/
Thank you SOOOO Much.
Got the gallery to show up, occasionally. LOL Every other reset it dissappears, but if i reboot again, it reappears. Neither the original or 3d work, still won't see any files on the SD Card. Whatever, i got it to show, can worry about using stock gallery later. Everything else can read it fine. Still need to figure out how to get it to stick permanently so i don't lose every other reboot. Never had this happen. I can even check titanium backup and it wont be listed in the apps installed on times it isn't in the app drawer. But the times it is in the app drawer i can find it in active apps in titanium backup...

[Q] question on a rom....

I'd post it in the rom's thread, but with less than 10 post...
i've got an issue on the rom liberty3 v2.0 (link at bottom). Under every app where i need to choose a sound (handscents, stock messaging, even under the sound settings page) when i choose to customize the sound, the usual pop-up shows my folder choices to get audio from. problem is, my "complete action using" folders are the "android system" and "handcent sms." there's no music file, no ringtones, alarms file, hell, not even a root explorer option. this one has me baffled. any help?
any help would be greatly appreciated.
http://forum.xda-developers.com/showthread.php?t=1368049
Try getting rom toolbox if you can. You can move the tones to a folder accesible by another app if you can get to one. Or maybe it wil let you use rom tool box to complete the action. I love this app, its so handy!
Can you simply download a file explorer and have that option pop up?
not quite...
i appreciate the input, but i already had root explorer installed, as well as downloading the legacy rom toolbox. the problem was there regardless. it's not showing the other usual options, such as root explorer, music, etc. wondering if a reinstall is in order. the rom works flawless other than this.
yup, that did it
i reinstalled the rom and instead of downloading all previous apps via my titanium backup on file, i did them individually and for whatever reason, the matrix was ok with this. the file options are there along with each of the actual files being present. other than that, this is the best rom i've used so far.

[Problem] No "sdcard", only "root" folder :(

Hello,
it's a little bit difficult to explain my problem. it started few days ago when my 7.7 didn't turn on.
Then i read about the trick to press the power button longer than 10 seconds and it really worked. First I was glad but then i found out, that my picture gallery and my mp3 player was empty!
First I thought that everything was deleted, but that wasn't true. The files are still there. In fact it seems that the system has changed the "/sdcard" area to "/root". So the apps can't find the files.
I uploaded a file where you can see what i mean. On my Smartphone is also a "/sdcard" instead of the "root".
My 7.7 is rooted, no other modifications have been made...
Who can help me to solve this problem without doing a reset to factory setting..
That's just how the stock file browser shows it, it's not actually mounted at /root.
If the gallery and music player are empty you could try giving it a little time for the media scanner to add your media. If it doesn't show up, then wipe the data of the media storage app and restart your tab. You may have to restart it again after it has built its database to get everything working properly.
i wiped the data, didn't work
what if the internal storage is really mounted as /root now? what can i do to change it?
because the empty gallery and mp3player aren't the only problems now. if i take a picture, i cannot use the preview to look at it. it says "no elements" then. so i think its a problem more deep in the system...
i really dont understand how this could happen, i just turned the tab on..
If you have ES File Explorer, it should show that same "root" folder as actually being the internal "sdcard" folder. I don't think it has anything to do with actually being rooted, it is just how the built in File Manager lists the folder.
Another option, perhaps Fix Permissions in Recovery may fix your issues.
can i find a tutorial to fix permission in recovery mode?

[Q] Permissions

Hi there, sorry if this has been covered but I couldn't find too much about the problem. I am also new with this for the most part.
The other day I restored my N7 from PA back to stock to rule out a YouTube buffering problem (and turns out that didn't work, still same issue regardless). I decided to go back to PA 2.54 and while everything works, I can't save images from chrome into the downloads folder nor can I delete folders.
Do I have to reroot again? Assuming yes but if there are additional processes I have to go through please let me know.
Also, is there any fix available for my youtube problem? Thanks in advance.
Okay, so I rerooted and I was able to save the image I wanted finally. However, I still cannot delete files, specifically in the sdcard/ folder. There is a folder called "downloadttt" (I renamed it this purposely for testing purposes). There is one file in there (PA 2.54.zip) and it refuses to delete, same as the "downloadttt" folder.

Can't Modify SecContacts_M_OSup_Note_Legacy_USA.apk

Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
ForestCat said:
Background: Really not loving the default New Contact icons and the random colors. Should be easy enough to change. What I tried (and failed miserably...)
MODest ROM 11 (Twiz/stock 6.01-based)
Flashpoint 5 Kernel
Copied SecContacts_M_OSup_Note_Legacy_USA.apk from
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
to my Win7 PC.
Used 7-Zip to unpack the file to a temporary folder.
Found the .qmg files I didn't like.
Found a .qmg that would be a passable replacement for the ones I didn't dig.
Made 11 copies of that image in a working folder.
Renamed each copy to the exact name of each of the 11 files I wanted to replace.
Dragged those 11 files back into the open .apk in 7-Zip
On the Phone, in Root Explorer:
Made a copy of SecContacts_M_OSup_Note_Legacy_USA.apk in the same folder:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
deleted the original
Copied my mod'd apk back into this folder and set the perms.
Rebooted.
No Phone or Contacts on home screen or in Apps
Tried to 'install' the apk from Root Explorer.
Wouldn't install
Tried to delete cache & Dalvik from TWRP.
No Joy.
Tried to do a partial Nandroid restore of Contacts and sec.phone from Titanium (nothing there called /systempriv-app/SecContacts_M_OSup_Note_Legacy_USA)
No Joy.
Nandroid restore from TWRP.
Back to normal.
Okay, what did I do wrong, and how can I change the icons?
Should I have used APKTook instead of 7-Zip, created a new signature, etc?
Should my mod'd apk somehow be flashed from recovery rather than copied to a system folder?
Is this some perverted Samsung-ism that would have worked fine on any other phone on the planet?
Thanks for reading.
Click to expand...
Click to collapse
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
I don't know if 7-zip has this option, but with winrar you can change the compression to "store". You should know right away whether or not it worked. You'll see the little phone icon in the bottom left of the lock screen. You may still have to do a factory reset to see your changes (probably not though) but the app should work without it.
By the way, you can swap those image files for .png files if you'd like. Just delete the corresponding .qmg or .pio file.
I saw your post in the rom thread about theming TouchWiz. You should check out @supergrobi94's theming threads. He's put together an impressive collection of options for 6.0.1 and 5.1.1 and there's also a [how to] section that uses the vrtheme zip that will modify the res folder of a specific app without having to break it down. I'm not sure how active he is these days but he's always been very helpful with requests and questions in the past if you need it.
Supergrobi94's theming threads:
This one has all the themes
This is the [how to] thread
kevintm78 said:
That apk took me a long time to figure out too. It's one of the apps you I had to modify for multi dpi. The only way I know of is to change the compression when you're putting the app back together and even then it took a couple tries. There's probably a better way but the compression change seems to work well enough.
Click to expand...
Click to collapse
Ah, that makes perfect sense. But I'd never have figured it out myself, lol.
I'll dig into those theming threads, thanks.
kevintm78 said:
☆☆Edge Panel for ModestRom v11☆☆
DOWNLOAD-This will change your Contacts app to the S6 version and the IncallUI app to the Note 7 version because the people stripe will not work with the N4 contacts.
Click to expand...
Click to collapse
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
ForestCat said:
OK, this is from the MODest ROM thread, but I think it's germain here.
SO.....
If I want to 'try out' that Edge Panel, is there a way to revert back to the stock apps in question other than restoring a nandroid backup or re-flashing the ROM?
I ask because I'm thinking that, at least in the case of the Note 4 and its well known memory problems, 'bulk' memory writes like ROMs, nandroid retores, etc., stress the device, so I'm trying not to do it more than I have to.
Click to expand...
Click to collapse
No, it doesn't look like I ever made an easy way to go back. I had thought I did but I'm either overlooking it or it's not there. Feel free to rifle through my androidfilehost folders if you want to double check. All of my stuff is very organized so it could be buried in there somewhere.
If you still need a recovery zip let me know and I'll get one together. I'm actually going to make one anyway but if you need it right away I can get on it. I didn't realize that there wasn't a way back to stock.
ForestCat said:
During my last episode(see above) putting the stock apk back in its original folder didn't work.
Is there a standard procedure for either android generically, or touchwiz specifically, for safely reverting back to the stock system apps after experimenting w/ custom stuff?
EDIT: Just tried something. In Root Explorer, went into:
/system/priv-app/SecContacts_M_OSup_Note_Legacy_USA/
and simply renamed the .apk to .foo
Rebooted.
No Contacts, as expected, but no Phone either??? Not sure why.
Anyway, back into Root Explorer.
Rename .foo back to .apk
Reboot.
Still no Contacts or Phone, so something bigger at work here.
Before I have to restore Nandroid anyway (unless there's a better way???),
I flashed your EdgePanel.zip in TWRP to see if it would restore the Phone/Contacts apps.
Wiped the cache. Reboot.
Edge Panel is now there, but still no Phone or Contacts. WTF???
Last resort-TWRP- Factory Reset.
Now the Contacts/Phone are back (and all my other stuff is gone, lol)
So is whacking the Data a necessity here?
If so, it makes trying out things related to the phone/contacts a LOT more tedious...
Any workaround???
Thanks again.
Click to expand...
Click to collapse
That is strange that they are not coming back. You may just want to double check your permissions and that there isn't two of the same apps in your folder. At the time of making that Edge zip I was still using other programs to make zips for me and the major downside to that is having to name the new apps the exact same as the old so it would get overwritten so if it doesn't match you'll end up with two active apps in one folder.
Now I think the best way to do that is to use a binary script (osm0sis has great tutorials for this) to change the app getting replaced to a .bak file and then just copy the new app to the system, set perms, and reboot (dalvik cache/ cache needs to be wiped if it's a framework .jar file). But to each their own. If you can get the job done a better way then I would use what you're comfortable with.
My system to test apps isn't much difference than yours. I think the only thing I do differently is change the app to be replaced to .bak instead of .foo although I can't imagine there's much difference. There's been a few apps like the Contacts app that gave me a bunch of trouble when modifying them but I can't remember ever having trouble bringing back the stock app. I wish I had more insight on that situation for you. If push comes to shove I would reflash the rom zip over factory reset only because the factory reset won't correct the system partition problem, if that's what's going on in this case.
kevintm78 said:
If you still need a recovery zip let me know and I'll get one together..
Click to expand...
Click to collapse
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
ForestCat said:
First, Merry Christmas!
Thanks very much. No rush on that, I'm OK on the Edge version for the minute.
What would be extremely useful if you have some time/curiousity would be to replicate my steps, ie renaming the untouched apk in a fresh MODest flash (i.e. break the contacts/phone function), and then see if you can get the whole thing working again without a factory reset, or if not, why. I see on xda, you & I are not the first ones to be tripping over this contacts.apk issue.
The other thing that would be telling is after successfully installing the Edge.zip, whether you can modify something (like a picture) within the contacts apk within the zip, reflash the zip and have contacts/phone still working with the change active.
I think there just HAS to be abetter way than Factory Resets.
Thanks so much again for the insights. I really want to become at least minimally competent at hacking my own ROMs together so I don't have to feel like such a noob/mooch on here, but I really do appreciate the help.
What are your weapons/platform of choice, or, if there are better tools for noobs learning the ropes, I'm all ears.
EDIT: Just found this. The last post is interesting...
https://forum.xda-developers.com/galaxy-s5/devs-only/recompile-seccontacts-apk-t3377142/page2
Click to expand...
Click to collapse
I'm not exactly sure what's going on with your contacts app not showing back up. Ever since modestrom v8 (I think) I've been doing the multi dpi on SecContacts_M_OSup_Note_Legacy_USA and every time I would test it doing the same as your way. After a reboot if the modified app was no good, then I would just delete that new app and change the name of the old app back to .apk, reboot and it would work again. I can't remember running in to any problems where I would have to factory reset or reflash the rom to get things working again.
There has been a couple times where I've had to factory reset to get a color change to show up or if you're adding toggles to the QS drop down that also (sometimes) requires a factory reset to show up.
As far as the post you linked, that is exactly how I do it except I use winrar to open the newly compiled app and drag the changes to the original. When I drag the changes over I change the compression method from "normal" to "store". If I don't change the compression the app doesn't work for me. The apps that I've ran into where I had to change the compression are: secContacts, secCamera, secSettings, and framework-res.apk. Any other app that I've worked on can be dragged and dropped without compression changes.
Jar files don't need an original signature though (so long as signature verification has been disabled, which it has in modestrom). They can be decompiled, edited, recompiled, and copied to the system. It does require a dalvik cache/cache wipe though on all framework files except for the framework-res.apk and twframework-res.apk
If you get a chance, you should start using apktool to decompile/recompile. It will make things easier for you in the long run and most of the time if you've made any mistakes in your edits apktool will catch it. If you're not familiar with apktool you can try using Tickle My Android or Advanced Apktool. You may also want to get Apktool by itself. I use all three of them. Android can be fickle and sometimes what works with one app won't work with another. What's nice about TMA and Advanced Apktool is that they'll do the drag and drop method for you, but when the compression needs to be changed that's when I use apktool by itself.
Sorry for the word vomit. Hopefully, this all makes sense.

Categories

Resources