Rooted, trying to reinstall deleted Stock.apk - EVO 4G Themes and Apps

I had a questions about restoring the deleted Stocks app. I rooted with the new unrevoked last night and then installed Titanium to remove apps. I prematurely removed the Stocks app and I have been trying to get it back since.
I've tried multiple routes, from this Wildefire thread http://forum.xda-developers.com/showthread.php?t=738147 I tried the apk via adb and Root Explorer. Neither worked.
Then I downloaded the stock odexed EVO rom from this thread http://forum.xda-developers.com/showthread.php?t=874251, grabbd the stock.apk and moved it to my \system\apps folder with Root Explorer. I've restarted, tried clearing the Dalvik Cache, pushing it via adb, none have worked.
Right now it's still sitting in the \system\app folder.
I wanted to see if there was anything else I can try to get it back? Or am I doing something wrong?
Thanks in advance.

I take it you are running stock Rom. I think the best way is to make a nandroid of the stock Rom that you are running, with ClockworkMod. Once done download Myn's Rom or sprint lovers. Both of this Rom's have the stock Sprint apps. When flashing the Roms, please, make sure to use Rom Manager and flash ClockworkMod, than flash Amo-ra; is located at the buttom as an alternate recovery. Than once you flash the Rom, let it load, than flash clockworkMod again, than go into recovery, than restore,advance restore, select the newest nandroid, and just restore data. This will give you all the stock apps. OR just try this.
http://forum.xda-developers.com/showthread.php?t=832388

Here are some more apk's.
http://forum.xda-developers.com/showthread.php?t=901393

grab the apk out of the stock rom you have, then in adb do this
adb remount
adb push Stock.apk /system/app
if you need to push the odex do this also
adb push Stock.odex /system/app
the important thing is the remount to make the system/app read write

you can go to the rom file open the file then open system then open app and add the apk you want and reload the rom into the phone that sit more simple

ifly4vamerica said:
grab the apk out of the stock rom you have, then in adb do this
adb remount
adb push Stock.apk /system/app
if you need to push the odex do this also
adb push Stock.odex /system/app
the important thing is the remount to make the system/app read write
Click to expand...
Click to collapse
I did the above while booted in recovery mode with the system mounted. It successfully went in the system/app folder. I see it in Root Explorer, although it still doesn't show up in the apps menu. Oh well.

baker2gs said:
I did the above while booted in recovery mode with the system mounted. It successfully went in the system/app folder. I see it in Root Explorer, although it still doesn't show up in the apps menu. Oh well.
Click to expand...
Click to collapse
Yeah it doesn't work right if you are in recovery because it messes with permissions I heard. Just do it with phone plugged in to computer and on. If that doesn't work you can try deleting the apk and then using
Adb remount
Adb install stock.apk
Don't know if these will work but worth a try. Last resort is find a flashable zip that writes something to system/app and drop the apk in there.
Evo Sent

ifly4vamerica said:
Yeah it doesn't work right if you are in recovery because it messes with permissions I heard. Just do it with phone plugged in to computer and on. If that doesn't work you can try deleting the apk and then using
Adb remount
Adb install stock.apk
Don't know if these will work but worth a try. Last resort is find a flashable zip that writes something to system/app and drop the apk in there.
Evo Sent
Click to expand...
Click to collapse
When I run that command with the phone on charge mode with debugging on plugged into the computer I get a "remount failed: Operation not permitted".
I installed the Sync drivers and tried it with that but it didn't work either.
Any suggestions? Thanks for your help by the way.

baker2gs said:
When I run that command with the phone on charge mode with debugging on plugged into the computer I get a "remount failed: Operation not permitted".
I installed the Sync drivers and tried it with that but it didn't work either.
Any suggestions? Thanks for your help by the way.
Click to expand...
Click to collapse
I can't help with that, never ran in to that problem before, are you nand unlocked and s-off?

ifly4vamerica said:
I can't help with that, never ran in to that problem before, are you nand unlocked and s-off?
Click to expand...
Click to collapse
Yes to both, I have been trying to do research on it. It may be the stock rom...
I tried some workarounds but they didn't work. Thanks for your help.

baker2gs said:
Yes to both, I have been trying to do research on it. It may be the stock rom...
I tried some workarounds but they didn't work. Thanks for your help.
Click to expand...
Click to collapse
No problem, sorry I couldn't help.
Evo Sent

Just an update, I tried the .zip route you suggested. I created a Titanium back up and threw the Stock.apk in the zip. I ran the update.zip in recovery. It placed Stock.apk in the system/app folder but the app still does not appear in the apps menu. Thanks again.

Related

Clockworkmod for the Mesmerize WORKING!

With the help of jt1134, we managed to get clockworkmod installed and functional on a Samsung Mesmerize. This will assume you have the android SDK installed and some knowledge of how to use adb.
First off you need to have your phone rooted. This can be done with SuperOneClick. You will also need a couple of files, recovery.bin and redbend_ua, both of which are attached to this post.
You will need to install redbend_ua first extract the zip file then;
Code:
adb push path/to/redbend_ua /sdcard/redbend_ua
then you need to make it executable
Code:
adb shell
su
chmod 777 /sdcard/redbend_ua
Now you need to move it to the /system/xbin
Code:
adb shell
su
mv /sdcard/redbend_ua /system/xbin/redbend_ua
Extract the recovery.zip and then we push the recovery.bin to the sd card.
Code:
adb push path/to/recovery.bin /sdcard/recovery.bin
Finally we need to flash the recovery.bin
Code:
redbend_ua restore /sdcard/recovery.bin /dev/block/bml8
After this the only thing left to do is download Rom Manager from the market and install the clockworkmod for the Fascinate. This is working on my Mesmerize. Please leave feedback!
Nice! now if only I had a Mesmerize...
Congrats! Hope this gets US Cell folks more active...
hey guys this worked great for me! thanks. I ran into a problem though when trying to make the redbend_ua file executable while it was on my sdcard so i moved it to the root of my phone memory using root explorer, than I ran the command
adb shell
su
chmod 777 /redbend_ua
than to move the file I used the command
adb shell
su
mv /redbend_ua /system/xbin/redbend_ua
and than follow the remaining steps that thescorpion420 has posted up, it shouldnt take more than 5 minutes for the process, I am flashing a rom to my USCC mesmerize as we speak and I will report back!
Enjoy guys
And thanks to the devs for figuring this out.
rom
ok so i was able to install a rom and not get an error, however I am stuck on the samsung screen when the phone boots up, it makes the power on noise, however it wont start up. any suggestions?
I tried to reflash the phone with a different rom and here is what happens when I go to install the rom
Finding update package
opening update package
installing update
deleting files
formatting system
copying files
deleting files
deleting files
deleting files
deleting files
deleting files
deleting files
deleting files
deleting files
deleting files
deleting files
installation complete
install from sdcard complete
Any ideas??
working
hey guys, I freaked out and didnt think I had made a successful backup of my rom before messing with it but I found it and I got the phone to go back to stock. So now I'm going to try a few things to see if I can get some roms to install on this thing.
Wow... Awesome news. Subbed for updates. Now to read some tutorials on how to get through the whole process... Won't be doing any flashing until I see someone confirm they got it up and running.
help
i getting failed on redbend _ua cross device link please help lol what am i doing wrong
You could try
Code:
cat /sdcard/redbend_ua > /system/xbin/redbend_ua
more help lol
now i get permission denied on the last step any hints as to what the heck im missing her sorry ima noob
Nice. Very nice.
mesmerbelly said:
now i get permission denied on the last step any hints as to what the heck im missing her sorry ima noob
Click to expand...
Click to collapse
Did you chmod 777 redbend_ua?
mesmerize
Scorpion 420 I sent u a pm please read
hey guys, so after trying different roms by different devs none of them are working with my mesmerize, I keep having to revert back to the original rom on the phone. Does anyone have any idea whats going on? I hate the stock rom and I want to change it.
reply
Ill start flashing roms as soon as I get this recovery installed I need help with it in okc anyone need some extra cash in okc help me out ill pay
ok, so Im able to recover my phone back to stock all the time so what I'm looking for is someone who has a custom rom installed and has done a backup with clockworkmod and if they can upload the backup they made, I think this is going to be the easiest way to install roms on the mesmerize for now.
Thanks
help
why do i keep getting permission denied on the last step of the recovery prosess
Originally Posted by mesmerbelly:
now i get permission denied on the last step any hints as to what the heck im missing her sorry ima noob
Click to expand...
Click to collapse
make sure you're using the root prompt # rather than the standard prompt $. This is why you're getting permission denied.
OKAY. So I have clockworkmod installed but when I try to backup my ROM it reboots into the recovery thing and then fails to update using the update.zip that clockwork downloaded. What should I do?
Just because you can get Clockwork Recovery for the Fascinate working with Rom Manager does not mean that you can start flashing Fascinate specific ROMs and/or kernels to your Mesmerize. You still have a Mesmerize and until the ROMs are made for the Mezmerize, or at least compatible, you can't use them. This is a great first step, though.
People are already pulling ROMs apart to make some of them compatible so it won't be too much longer.
Sent from my SCH-I500 using XDA App
I'll just leave this here . . .
Flash in clockworkmod not made by me, thanks jt1134.

[Q] Installing System Apps

Hi! I searched the forums, but didn't see any answers regarding to this.
I'm trying to install the moded versions of SMS and Phone/Contact apps found in Cyanogenmod ROM over stock 2.3.4.
What I did was to extract Contacts.apk, Mms.apk, and Phone.apk from one of CM releases and copied the APK files to /System/Apps/ via Root Explorer (set it from R/W to R/O) and rebooted the phone, but there was no change.
I then tried to install them (from the same /System/Apps/ location) through Root Explorer, but it doesn't let.
Any help would be much appreciated.
If you are trying this you need to check/change permission on each app...the phone.apk will not work though I've tried and got force closes. The dialer and mms apks will work though. The best way to do this is to push via adb. If you don't have sdk and knowledge of the basic adb and shell commands I would highly reccomend becoming familiar with them.
Sent from my Nexus S 4G using Tapatalk
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
umbrae said:
I have sdk and worked with adb before to root my phone. I'll do some research on how to install apps via adb.
Thank you.
Click to expand...
Click to collapse
Just put the apps on your tool folder and enter the following commands....
adb push "your.apk" system/app
Sent from my Nexus S 4G using Tapatalk
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
umbrae said:
Thanks again. I did that and got confirmation that the files were copied, but the new Mms, for example, wasn't installed.
I tried using "install" command after, but it wouldn't let me. I got a message saying that the file already exists.
I changed the permission and everything, too.
Any ideas?
Click to expand...
Click to collapse
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Sent from my Nexus S 4G using Tapatalk
sunder74 said:
That's odd...I usually don't have to change permissions when I push an app. What version of the cm7 mms apk are you using? I used it from the stable 7
Click to expand...
Click to collapse
I was using Nighties, but I'll try the latest stable 7. Downloading now.
Just to clarify what I did:
First, used the "adb push" method you suggested and the apk files were copied to system/app. I rebooted, but nothing had changed. I then tried to install the copied files via Root Explorer, but it wouldn't let me. I changed R/O and then Permissions, but still couldn't install.
Then I tried "adb install", but it said file already exists. I changed R/O then Permissions, but still couldn't.
After that, I deleted Mms.apk and Contacts.apk and tried all the methods described above again, but still nothing. The apps weren't installed and I kept getting FC.
Lastly, I manually copied the files again via Root Explorer (changed R/O then changed Permission), but still no change and couldn't install.
Hopefully CM 7 packages I'm downloading would work.

[Q] Is there a way to "install" system apk's?

Let's say, for example, I uninstalled some apps in Titanium Backup. System apps such as MMS.apk or Contacts.apk, etc. How would I go about installing these apps back to my phone? I know that Titanium Backup does not restore them if you uninstall them. So is there another way? Because trying to install the normal way does not work.
Yes, use Root Explorer (or similar file manager app) to put them back in /system/app.
Alternatively, you can always use ADB to push the files back.
Sent from my SCH-I510 using XDA App
kelmar13 said:
Yes, use Root Explorer (or similar file manager app) to put them back in /system/app.
Alternatively, you can always use ADB to push the files back.
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
I tried this method and neither worked. I've literally tried everything. It's not that I can't flash any ROM I want to get it back its just that I'm trying to change up some of the theming of the stock apk's.
Syn Ack said:
I tried this method and neither worked. I've literally tried everything. It's not that I can't flash any ROM I want to get it back its just that I'm trying to change up some of the theming of the stock apk's.
Click to expand...
Click to collapse
That's how you install them. Is /system mounted as RW when you're trying?
So is it safe to assume you deleted the backups in TiBu, then?
tcollum said:
So is it safe to assume you deleted the backups in TiBu, then?
Click to expand...
Click to collapse
Right before I uninstalled MMS.apk, I backed it up with TiBu. When I tried restoring, it would just sit there "restoring" for several minutes and would never do anything. It never restored.
As funny as this thread is. Dude. go to your rom .zip and extract the files from the /system/app directory and reinstall them.
dragonstalker said:
As funny as this thread is. Dude. go to your rom .zip and extract the files from the /system/app directory and reinstall them.
Click to expand...
Click to collapse
That's has been discussed already, no luck. Thanks though.
Syn Ack said:
That's has been discussed already, no luck. Thanks though.
Click to expand...
Click to collapse
then extract the entire /system directory.
adb push /\system /system
dragonstalker said:
then extract the entire /system directory.
adb push /\system /system
Click to expand...
Click to collapse
So you say I should pull /system then put in the MMS.apk and then push /system back with the MMS.apk in it?
Syn Ack said:
So you say I should pull /system then put in the MMS.apk and then push /system back with the MMS.apk in it?
Click to expand...
Click to collapse
no. i'm saying take the /system from the .zip of whatever rom you have downloaded and push it to your phone.
It will overwrite whatever you screwed up. From what you are saying, you have done more then just delete some apk's. If all you did was delete them, then you should be able to put them back. The fact that you cannot tells me you have been doin more then what you are letting be known.
Alternate suggestion.
REFLASH YOUR PHONE.
kelmar13 said:
Yes, use Root Explorer (or similar file manager app) to put them back in /system/app.
Alternatively, you can always use ADB to push the files back.
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
If you do the root explorer and it didnt work, you might have to go into the app's settings and give yourself permission to edit these directories......
dragonstalker said:
no. i'm saying take the /system from the .zip of whatever rom you have downloaded and push it to your phone.
It will overwrite whatever you screwed up. From what you are saying, you have done more then just delete some apk's. If all you did was delete them, then you should be able to put them back. The fact that you cannot tells me you have been doin more then what you are letting be known.
Alternate suggestion.
REFLASH YOUR PHONE.
Click to expand...
Click to collapse
Yes I know of these ways, I was trying to figure out a way to do it for a single app as opposed to flashing the whole system back on. It's not that I have a problem and can't get these back. Thanks for your input.
Did you reboot after you put the apk(s) in /system/app so that they'd be re-populated in the list?
imnuts said:
Did you reboot after you put the apk(s) in /system/app so that they'd be re-populated in the list?
Click to expand...
Click to collapse
Yeah. I've literally tried everything. Maybe my flash of the new leak, 2.3.4, was no good. Thanks for the help though. I'll reflash the full package and start fresh with someone elses EP1F, maybe the one I downloaded was a fail.
Just making sure... but you have removed the apps completely and are just trying to add the old backups back in, right?
Do you have the apps somewhere other than Titanium Backup?
kelmar13 said:
Just making sure... but you have removed the apps completely and are just trying to add the old backups back in, right?
Do you have the apps somewhere other than Titanium Backup?
Click to expand...
Click to collapse
When I removed the apps, I uninstalled them completely, they were nonexistent in /system/app
Please keep the Thread Clean and on Topic or the Thread will get Deleted
I just tried doing this AGAIN with a legit stock Browser.apk. It did the same exact thing. Won't install after reboot. This seems to be a problem with the EP1F leak.
Syn Ack said:
I just tried doing this AGAIN with a legit stock Browser.apk. It did the same exact thing. Won't install after reboot. This seems to be a problem with the EP1F leak.
Click to expand...
Click to collapse
if you have adb run a logfile while you are doin the install so i can see the error.

ApkMultiTool

Anybody know how to change the destination folder when installing the modified apk?
wileout said:
Anybody know how to change the destination folder when installing the modified apk?
Click to expand...
Click to collapse
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
santod040 said:
What do you mean exactly?
Are you installing using a flashable zip or the application?
A flashable zip is the easiest way so you can edit the installer script to place it in whatever directory you wish.
I never use the apk tools themselves for installing.
You can also boot to recovery and mount system.
Then from terminal, EX:
Code:
adb push MyCoolMod.apk /system/app
Let me know if that helps, or if you need more info, or are deadset on using that app to install and we can go from there.
Click to expand...
Click to collapse
I was trying to use the tool to push iy becaude i cant get adb to push it at all...but the tool keeps trying to push it to data/app or something like that and i need it to go to system/priv-app
ok tried adb pushing it again and no go even doing it with your command. any ideas?
wileout said:
ok tried adb pushing it again and no go even doing it with your command. any ideas?
Click to expand...
Click to collapse
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
santod040 said:
My bad, forgot a slash, try it again.
Code:
adb push MyCoolMod.apk /system/priv-app/
Click to expand...
Click to collapse
I did that man it just restarts adb like i put in a bad command or it says cannot stat blah blah blah file or directory not found
Ive had tigerstown tryin to help me out too and he has no idea whats going on
well got adb to push it but I lost my clock widget all together lol
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
Using stock data cable? Had that be a problem on other devices when pushing files.
Sent from my HTC6525LVW using Tapatalk
wileout said:
well got adb to push it but I lost my clock widget all together lol
Click to expand...
Click to collapse
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
jsaxon2 said:
You need to do:
adb remount /system rw
adb push test.apk /system/priv-app
Click to expand...
Click to collapse
Do i replace test with the name of the file?
wileout said:
Do i replace test with the name of the file?
Click to expand...
Click to collapse
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
jsaxon2 said:
Yes sir.
You also need to have the file in your adb directory and start the command prompt from there.
There are other ways to do it, but this should work for you.
Click to expand...
Click to collapse
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
wileout said:
I got the widget back by going into the priv-app folder and clicking it and installing it but now it force closes so im assuming its something on my end with how it was signed and stuff
Click to expand...
Click to collapse
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Ok ill try that...thanks for your help ill report back
jsaxon2 said:
After you push to the /system/priv-app folder, did you reboot? That should have installed it for you. Might also be a permissions problem. Make sure the permissions on your file are the same as the permissions on the rest of the files in that folder.
Click to expand...
Click to collapse
Tried that and im still getting force closes so its something on my end im assuming

Stock lollipop+root can't copy data back from pc

When I try, it says that its been disconnected, if I use a file manager on the phone it won't let me delete anything off, any ideas on this?
Did you push any data by adb or mtp via recovery?
I copied data via recovery, I take it that's where my problem came from?
you used
adb push backup /data/media/0
Click to expand...
Click to collapse
right?
lowsnamebrand said:
I copied data via recovery, I take it that's where my problem came from?
Click to expand...
Click to collapse
TO your device?
If so, yes that is where the problem came from. If you PUSH data TO your device via recovery (not single files but folders) It screws permissions. There is a zip to fix it which I can link to, if you can confirm that is what you did.
rootSU said:
TO your device?
If so, yes that is where the problem came from. If you PUSH data TO your device via recovery (not single files but folders) It screws permissions. There is a zip to fix it which I can link to, if you can confirm that is what you did.
Click to expand...
Click to collapse
please share the link
kamilmirza said:
please share the link
Click to expand...
Click to collapse
In this thread:
http://forum.xda-developers.com/showthread.php?t=2239421
is a sdcard fix permissions script (flashable zip)
Of course if you can't write to sdcard, you'll either need to adb push / MTP via recovery or using a root explorer, set all permissions to read, write for /data/media/0/Download
That's exactly what I did sir, so I reflashed everything, now (of course) everything is running like a champion, appreciate the info,won't be making that mistake again
lowsnamebrand said:
That's exactly what I did sir, so I reflashed everything, now (of course) everything is running like a champion, appreciate the info,won't be making that mistake again
Click to expand...
Click to collapse
Yeah, MTP and ADB via recovery are fine if you need to get a backup on there to restore or some zips to flash, but as soon as you start pushing actual folders, permissions screw up.
Choice is to go through setup wizard and then use Android MTP or push that zip too and flash every time.
Thanks for the info, won't be making that mistake again Lol, side not lollipop is snappy and responsive as all hell

Categories

Resources