[SOLVED] Reinstall Launcher.apk after Root? - XPERIA X10 General

Hey can someone please tell me how to reinstall the original home (Launcher.apk) i tried installing via astro with no luck.
where do i have to push the file too? can someone post instructions, thanks.
EDIT: NVM this is what i did and it worked:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/Launcher.apk of=/system/app/Launcher.apk
adb shell dd if=/sdcard/apps/Launcher.odex of=/system/app/Launcher.odex
adb shell chmod 644 /system/app/Launcher*
adb shell reboot

Mod. edit: not dev related, moved to general
changed your title to signal an available solution, hope you don't mind

BULL3TPR00F said:
Hey can someone please tell me how to reinstall the original home (Launcher.apk) i tried installing via astro with no luck.
where do i have to push the file too? can someone post instructions, thanks.
EDIT: NVM this is what i did and it worked:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb shell dd if=/sdcard/apps/Launcher.apk of=/system/app/Launcher.apk
adb shell dd if=/sdcard/apps/Launcher.odex of=/system/app/Launcher.odex
adb shell chmod 644 /system/app/Launcher*
adb shell reboot
Click to expand...
Click to collapse
Where do have I to enter those command line please ?

in any cmd prompt

Draken Korin said:
Mod. edit: not dev related, moved to general
changed your title to signal an available solution, hope you don't mind
Click to expand...
Click to collapse
yeah sorry about the wrong section, i figured it would be helpful in the dev section for people who had just finished rooting and wanted to reinstall the original home.
but thats cool, and no problem with the title change.

I don't know if you want it or not, but the free ADW launcher is quite a lot nicer. More features and feels really fast.

BULL3TPR00F said:
in any cmd prompt
Click to expand...
Click to collapse
I get a adb not found...
I'll try with another terminal app...
And the ADW launcher with the root is horrible (and the icon to show all hap is deleted when I put my finger on T_T)), I installed zeam launcher for the moment...
There isn't a way to exec all those command live at one time ? (like .bat for windows)

Vilam said:
I get a adb not found...
I'll try with another terminal app...
And the ADW launcher with the root is horrible (and the icon to show all hap is deleted when I put my finger on T_T)), I installed zeam launcher for the moment...
There isn't a way to exec all those command live at one time ? (like .bat for windows)
Click to expand...
Click to collapse
You will need the Android SDK to be able to use adb... and your phone has to be in 'debug' mode (Settings>Applications>Development>USB Debugging should be checked)

Hi i just used root explorer and copied the two files to system/app/
then changed permission to rw-r--r--
then rebooted phone and it worked

Related

[How To] Install new voice search and quick search

ONLY WORKS WITH ANDROID 2.2 (FROYO)
For those of you that don't know, Google released a new Voice Search that allows "actions". For more info go Here.
First off, I wanna thank Tsenru, klinster, devlogic, BinaryMan, and Synchromatic @ the CM forum for all the info.
This is instructions for ubuntu so make the proper adjustments for windows if needed.
From ADB
Code:
adb pull /system/app ~/Desktop/app/
adb remount
adb shell rm -f /system/app/VoiceSearch.apk
adb shell pm uninstall com.google.android.voicesearch
adb shell rm -f /system/app/GoogleQuickSearchBox.apk
adb shell pm uninstall com.google.android.googlequicksearchbox
Once this is done you can search market for "voice search" and "google search" then after they're installed, reboot.
Now for the next step.
If the search hard key doesn't bring up the quick search box (keyboard input), do this.
Code:
adb remount
adb shell ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
adb reboot
Now all should work!
I had a wierd name for quick search box (com.google.android.googlequicksearchbox-1) so keep that in mind if you have any issues.
Now enjoy you fancy new voice search!
tried everyone's suggestions so far, with your suggestions I get:
rm failed for -f, Read-only file system
Worked for me, thanks!
beyondinferno said:
ONLY WORKS WITH ANDROID 2.2 (FROYO)
Now for the next step.
If the search hard key doesn't bring up the quick search box (keyboard input), do this.
Code:
adb remount
adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
adb reboot
Now all should work!
I had a wierd name for quick search box (com.google.android.googlequicksearchbox-1) so keep that in mind if you have any issues.
Now enjoy you fancy new voice search!
Click to expand...
Click to collapse
Rather then using the command adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
I suggest the command ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
ln -s creates a symbolic link to the file rather then moving the file. It keeps the google search file where the installer put it. If you move the file are you causing an issue in the future when the next upgrade comes around?
mmace said:
tried everyone's suggestions so far, with your suggestions I get:
rm failed for -f, Read-only file system
Click to expand...
Click to collapse
adb remount first... and when using rm try busybox...
busybox rm <<file>>
painter_ said:
Rather then using the command adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
I suggest the command ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
ln -s creates a symbolic link to the file rather then moving the file. It keeps the google search file where the installer put it. If you move the file are you causing an issue in the future when the next upgrade comes around?
Click to expand...
Click to collapse
Thanks for the tip!
Changing how to now.
Can't wait to try this tonight.
Sent from my HERO200 using XDA App
Worked great! thank you!
This worked for me as well. Thanks.
Not having much luck reactivating the search button.
I can confirm that it got the job done cause when I tried again, it popped up an error that the file already exists, so it succeeded in creating the link... any suggestions?
Just tried it, works great. Thanks!
what does adb shell PM uninstall do as opposed to adb shell uninstall
If you have TB, uninstall voice search and google search from backup/restore, then reboot phone and go to market install both, worked for me
andygu3 said:
If you have TB, uninstall voice search and google search from backup/restore, then reboot phone and go to market install both, worked for me
Click to expand...
Click to collapse
thanks that worked and it was way easier than adb.
I'd love to have this feature, but I get "failure" when I enter the adb shell pm uninstall com.google.android.voicesearch command. I can't figure out what I'm doing wrong, except that I have no idea what the difference between Ubuntu and Windows commands are.
Thanks for all the hard work. Any help is greatly appreciated.`
EDITED: I got it working. Not sure how. Even though I got a "failure" during the adb uninstall, the old voice search appears to have uninstalled already. Went to the market and downloaded the new app and it works!
Perilousp69 said:
I'd love to have this feature, but I get "failure" when I enter the adb shell pm uninstall com.google.android.voicesearch command. I can't figure out what I'm doing wrong, except that I have no idea what the difference between Ubuntu and Windows commands are.
Thanks for all the hard work. Any help is greatly appreciated.`
Click to expand...
Click to collapse
I should add I'm running FROYO 2.1, vanilla based on Cynogen's Aug. 13 mod
Working!
10chars
DirtyShroomz said:
Working!
10chars
Click to expand...
Click to collapse
Can you tell me how you did it? I noticed you had problems earlier.
Perilousp69 said:
Can you tell me how you did it? I noticed you had problems earlier.
Click to expand...
Click to collapse
Used SUFBS (or any file explorer). Went to system/app and deleted voicesearch.apk, rebooted, went to market and downloaded voice search
Sorry for bumping the old topic, but does anyone know the difference
between:
com.google.android.voicesearch.x and
com.google.android.voicesearch ??

Im sorry

Hello,im sorry for asking all theese questions lately but i am really confused.could someone post how to adb push and adb shell from like the first cmd line.because i do
cd C:\android-sdk-windows\tools
adb remount
Remount failed no such file or directory
extra info. i am rooted i have recovery and su i have samsung driver installed usb debugging checked.thank you everyone i really appreciate all the help.
Can Any1 Help?
II5StarII Swag said:
Can Any1 Help?
Click to expand...
Click to collapse
Adb push is to send something to the phone. You needt to put that file in your tools directory on the computer, then navigate there as you demonstrated properly.
Adb push FILENAME /Location/
To access the shell
Adb shell
$ not root access
# root access
To mount the file system with th adb remount command, you need busybox installed. Otherwise you have to mount it from the shell (sorry don't have the long ass command memorized, but its all over here)
Sent from my SPH-D700 using XDA App

Remount Failed: Operation Not Permited

Hey guys. I've done commands in adb many times. I'm still new to it, but I never remember having this issue.
I've ran CM6 for months, and nightly's as well. I'm running a custom compiled CM6 right now though.
adb remount I get
remount failed, operation not permitted.. and in default.prop ro.secure is set to 1. I changed to 0 but still can't do remount. Any other suggestions?
Thanks!
For a workaround, try remounting through shell - mount -o rw,remount /system, or the full command (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
is that a temporary fix, or for good. or just a work around?
Just a workaround. It's a command in OS itself that does the same job as "adb remount" - which is, remounts.
I just can't think of anything that would cause adb remount to fail, so I have no suggestions for you to try. But in case you want to be able to do something without getting stuck, and wait for the solution without being in a hurry - I've posted the workaround.
I don't have a solution to solve it once and for all, but every time you want to remount, use
PHP:
adb root
before your commands
excellent.
adb root
adbd is being restarted
adb remount succeeded .
Thanks dude! that will work for now til cooker fixes that. lol
Jack_R1 said:
For a workaround, try remounting through shell - mount -o rw,remount /system, or the full command (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Click to expand...
Click to collapse
Tried this and it appeared to succeed but I didn't get the results I wanted.
After doing this I tried push c:\com.amazon.mp3.apk \system\app\ and it repeated it back to me, but when I look in that directory, it's not there. What am I doing wrong?
Wrong direction of slashes:
push c:\com.amazon.mp3.apk /system/app/
And you shouldn't be doing it from the ADB shell. The remount is done in the shell, the push is done outside of it.
Jack_R1 said:
Wrong direction of slashes:
push c:\com.amazon.mp3.apk /system/app/
Click to expand...
Click to collapse
Ahhhh, I was wondering about that! Thank you!!
And you shouldn't be doing it from the ADB shell. The remount is done in the shell, the push is done outside of it.
Click to expand...
Click to collapse
So once I perform the remount I exit out of the shell?
operation not permitted.
"adb push" gets you "not permitted"?
try "adb root" first, as suggested above.
Jack_R1 said:
"adb push" gets you "not permitted"?
try "adb root" first, as suggested above.
Click to expand...
Click to collapse
adb root gets me something along the lines of "not supported on a stock build."
EDIT
ok...
adb shell
su
mount -o rw,remount /system
then i get this:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
So it appears it's not actually registering the command?
Then I try
push c:\com.amazon.mp3.apk /system/app/
and I get: failed to copy 'c:\com.amazon.mp3.apk' to '/system/app/com.amazon.mp3.apk' : Read-only file system.
You need to use the full command, since you're running sh, not bash.
Look for the full command in my post.
Yes, currently it doesn't do a thing.
Jack_R1 said:
You need to use the full command, since you're running sh, not bash.
Look for the full command in my post.
Yes, currently it doesn't do a thing.
Click to expand...
Click to collapse
So I tried the full command and exited out to "dos" command prompt and tried again. This time I got "failed to copy.... ....permission denied."
Ok, try without exiting. I'm not sure it'll do anything useful, though.
There is some problem with either your ADB setup or the ROM you're using. Or you're just not rooted.
Jack_R1 said:
Ok, try without exiting. I'm not sure it'll do anything useful, though.
There is some problem with either your ADB setup or the ROM you're using. Or you're just not rooted.
Click to expand...
Click to collapse
Found another thread on another board. I just flashed amon ra's recovery and booted up from there, and it appeared to let me copy!
But then it wouldn't let me cd to system/app. It let me cd to system, but not to app. Weird... I booted back up and there's no evidence of the "copied" apk, anywhere.
What...
the...
****.
Thanks to all for your patience with my super-noobish ass, I'm hoping you're not as frustrated with me as I am with this.
When you're in the recovery, your system isn't mounted. You need to mount it first.
Use almost the same command as for remount, but leave out the "remount" option. Just "-o rw".
Your copy went to void.
Jack_R1 said:
When you're in the recovery, your system isn't mounted. You need to mount it first.
Use almost the same command as for remount, but leave out the "remount" option. Just "-o rw".
Your copy went to void.
Click to expand...
Click to collapse
lol, awesome, thanks. I'll fiddle with it some more in the morning.
Why isn't there a link somewhere to a simple instruction manual? It would be so much easier if I could read up on this myself without bugging all of you guys.
Of course there is. My sig has it in bold, and you can find everything there. It's just that people tend to rush asking questions instead of reading
Jack_R1 said:
Of course there is. My sig has it in bold, and you can find everything there. It's just that people tend to rush asking questions instead of reading
Click to expand...
Click to collapse
I've seen a couple of the basic noob guides to adb and I've seen the google definition of adb functions but it doesn't include instructions on how to do the stuff you're walking me through.
Will take a look at those links shortly. Btw, I'm on a MT3G though I don't think that makes a difference at this level.

[MOD] [LG P500] CRT Screen Off for Optimus One

Hello All.
Here are the framework-res.apk and build.prop files for the Optimus One, Stock 2.3.3 firmware. All you need to do is replace those files and you will get the CRT ScreenOff effect
I used the post by Skynet28, modified a little to only use adb commands.
This was the first thing done after rooting the phone.
-NEEDED:
Rooted phone
.7Z file View attachment 949259
5 Minutes of your time
NOTE: YOU WILL MOST PROBABLY LOOSE YOUR PHONEBOOK, I DID WHILE DOING ALL THIS. PLEASE BACK THAT UP.
The procedure to install is as follows:
You must set the /system on the phone with RW permision
From a Command Prompt:
First we locate where /system is mounted
Code:
adb shell
su
cat /proc/mounts
Locate /system in the mount and write down the mountpoint (mtdblock1 or similar)
the type
Code:
mount -o rw,remount /dev/block/[I][COLOR="Purple"]MOUNTPOINT[/COLOR][/I] /system
exit
exit
Then we push both files to the phone with the folowing adb command
Code:
adb push framework-res.apk /system/framework
adb push build.prop /system
Finally we chmod those 2 files
Code:
adb shell
su
cd /system/framework
chmod 664 framework-res.apk
cd /system
chmod 664 build.prop
exit
exit
Thanks to this post
http://forum.xda-developers.com/showthread.php?t=1185231
If you like this post, buy me a beer!!
Does it workss ???????? Reply anyone
Do you lose contacts on phone or sim?
Kvidli said:
Do you lose contacts on phone or sim?
Click to expand...
Click to collapse
I Brickked my fone.. STUCK ON ANDROID LOGO !!
stupid post! not working..
chrisdf said:
Hello All.
Here are the framework-res.apk and build.prop files for the Optimus One, Stock 2.3.3 firmware. All you need to do is replace those files and you will get the CRT ScreenOff effect
I used the post by Skynet28, modified a little to only use adb commands.
This was the first thing done after rooting the phone.
-NEEDED:
Rooted phone
.7Z file View attachment 949259
5 Minutes of your time
NOTE: YOU WILL MOST PROBABLY LOOSE YOUR PHONEBOOK, I DID WHILE DOING ALL THIS. PLEASE BACK THAT UP.
The procedure to install is as follows:
You must set the /system on the phone with RW permision
From a Command Prompt:
First we locate where /system is mounted
Code:
adb shell
su
cat /proc/mounts
Locate /system in the mount and write down the mountpoint (mtdblock1 or similar)
the type
Code:
mount -o rw,remount /dev/block/[I][COLOR="Purple"]MOUNTPOINT[/COLOR][/I] /system
exit
exit
Then we push both files to the phone with the folowing adb command
Code:
adb push framework-res.apk /system/framework
adb push build.prop /system
Finally we chmod those 2 files
Code:
adb shell
su
cd /system/framework
chmod 664 framework-res.apk
cd /system
chmod 664 build.prop
exit
exit
Thanks to this post
http://forum.xda-developers.com/showthread.php?t=1185231
If you like this post, buy me a beer!!
Click to expand...
Click to collapse
You cant use this on anything but stock LG 2.3.3!
That means Cyanogenmod, AOSP, etc
kunnaliskinng said:
I Brickked my fone.. STUCK ON ANDROID LOGO !!
stupid post! not working..
Click to expand...
Click to collapse
Flash stock v20g using KDZ then root and do what this post says right away, i assure you it works.
This is only for STOCK 2.3.3
Kvidli said:
Do you lose contacts on phone or sim?
Click to expand...
Click to collapse
On your phone, but if you have it linked to your gmail account, when you sinc you will have them back.
you should still back up anyway, its safer that way
Only stock Rom
I want use on oxygen Rom .
Sent from my LG-P500 using Tapatalk 2
Are there any available screenies?
doesn't work for me..
kotobodj said:
Only stock Rom
I want use on oxygen Rom .
Sent from my LG-P500 using Tapatalk 2
Click to expand...
Click to collapse
If you want it on any GB Rom, follow the tutorial i followed, check at the end of the post there's a link.
kunnaliskinng said:
I Brickked my fone.. STUCK ON ANDROID LOGO !!
stupid post! not working..
Click to expand...
Click to collapse
i think nothing to angry for this. just read carefully before do anything :laugh:
)
cool!)

Need System files from Kindle Fire HD 2013 model (no camera)

Hello Everyone. I bricked my device and need the following files to fix that. Please, can someone with a rooted device provide this files?
Thanks much:
/system/framework/services.odex
/system/app/DownloadProvider.apk
/system/app/DownloadProvider.odex
/system/app/DownloadProviderUi.apk
/system/app/DownloadProviderUi.odex
Thanks again
MarcoJoo said:
Hello Everyone. I bricked my device and need the following files to fix that. Please, can someone with a rooted device provide this files?
Thanks much:
/system/framework/services.odex
/system/app/DownloadProvider.apk
/system/app/DownloadProvider.odex
/system/app/DownloadProviderUi.apk
/system/app/DownloadProviderUi.odex
Thanks again
Click to expand...
Click to collapse
hey don't feel bad I need boot img and system img to get my running again....or I just need to pop it in the microwave and call amazon and ask for a new one and start over
My Kindle is alive. If someone need this files too, they can be found in the Update.bin at Amazons website.
@crzyjoker13. Good luck with your device.
Here you go, pulled straight from the latest update...
It's just the files you requested, the file structure should be correct.
crzyjoker13 said:
hey don't feel bad I need boot img and system img to get my running again....or I just need to pop it in the microwave and call amazon and ask for a new one and start over
Click to expand...
Click to collapse
You can get them from Amazon's website. That's your best bet at this time.
really lost
NighthawkXL said:
Here you go, pulled straight from the latest update...
It's just the files you requested, the file structure should be correct.
Click to expand...
Click to collapse
ok this is a start but how do I get them to /system/app
crzyjoker13 said:
ok this is a start but how do I get them to /system/app
Click to expand...
Click to collapse
Your need to get the device to be picked up by ADB and then push the files if your not able to boot into the actual system itself. Your have to ask someone else for the commands... but here's a snippet for services.odex the rest the files should be similar pieces of commands.
Code:
adb shell
su
mount -o rw,remount /system
chmod 777 /system/framework
exit
exit
adb push services.odex /system/framework
adb reboot
step in the right direction
NighthawkXL said:
Your need to get the device to be picked up by ADB and then push the files if your not able to boot into the actual system itself. Your have to ask someone else for the commands... but here's a snippet for services.odex the rest the files should be similar pieces of commands.
Code:
adb shell
su
mount -o rw,remount /system
chmod 777 /system/framework
exit
exit
adb push services.odex /system/framework
adb reboot
Click to expand...
Click to collapse
well hey this is a step in the right direction but all I need now Is to gain read write acess to /system and system/app abd I should bea able to push the old files back...my problem lies in the fact that es explorer tried to update and it messed up so I went to remove and just install the new version at the same time I was following the directions to put play market on the dev so now I can download and I have no file explorer
or if anyone know how I can push and execute an apk to the kindle I would be happy
thanks in advance
crzyjoker13 said:
well hey this is a step in the right direction but all I need now Is to gain read write acess to /system and system/app abd I should bea able to push the old files back...my problem lies in the fact that es explorer tried to update and it messed up so I went to remove and just install the new version at the same time I was following the directions to put play market on the dev so now I can download and I have no file explorer
or if anyone know how I can push and execute an apk to the kindle I would be happy
thanks in advance
Click to expand...
Click to collapse
I was having the same problem as you are and was able to fix it by doing the following.
Download and extract the files NighthawkXL has provided.
From within the folder that you saved the files run command and do the following
adb shell
su
mount -o rw,remount /system
chmod 777 /system/framework
exit
exit
adb push services.odex /system/framework
adb push DownloadProvider.odex /system/framework
adb push DownloadProviderUi.odex /system/framework
exit
adb shell
su
mount -o rw,remount /system
chmod 777 /system/app
exit
exit
adb push DownloadProvider.apk /system/app
adb push DownloadProviderUi.apk /system/app
adb reboot
I think this will solve your problem with the downloads not working. Please keep in mind I have small amount of knowledge when it comes to rooting, but figured that it couldn't do more damage to it since it wasn't working.
LinearEquation said:
You can get them from Amazon's website. That's your best bet at this time.
Click to expand...
Click to collapse
can you provide a link to the system images please
thanks cant seem to find them
davethebrave14 said:
can you provide a link to the system images please
thanks cant seem to find them
Click to expand...
Click to collapse
https://s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin
Just downloaded .bin gonna check this out also. I didn't brick mine its usable but I screwed it up trying to take things off to get more memory and easier on battery. Runs ok now but I took off the system keyboard thinking the android keyboard file would be it the asop or whatever. So had to add Google keyboard which is better and the main navigation is gone with the back and menu key. ROFL. Using all in one gestures and omega status bar as a rig lmao.
adb install package.apk works fine after adb start-server with linux.
Theres app in 1 mobile market for moving .apk to /system/app folder.

Categories

Resources