I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
g1junky said:
I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
Click to expand...
Click to collapse
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Why don't you adb install them all, not push.
for %%f in ("[folder with apps]\*.apk") do adb install -f "%%f"
You don't need the -f, that only forces the install/upgrade if app is present.
Did you push them to /system/sd/app or /system/sd/ ?
And did you reboot? lol sorry sometimes its the simplest answers. when you push that many files, it may take a while to dexopt them
Apaca1ypse said:
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Click to expand...
Click to collapse
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Naimand said:
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Click to expand...
Click to collapse
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
B-man007 said:
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
Click to expand...
Click to collapse
Ahh true I didn't think about that. Alright well I learned something new tonight and figured out that I am too tired to think clearly so helping people should be called quits tonight.
Related
I'm looking for the best app for batch uninstalls for root or non-root. As for batch installs I'm looking for the best non-root app since I use backup for root.
ADB
10char
How about an app? Also I know you can do 'adb install asdf.apk' but how can I do it batch? Like what specific command is it?
ThR1LL said:
How about an app? Also I know you can do 'adb install asdf.apk' but how can I do it batch? Like what specific command is it?
Click to expand...
Click to collapse
I dont think there is an app right now in the market that can do batch install/uninstall. you have to do it on your pc. I also use backup for root, and i backup all my apps. since i dont use apps2sd on my magic, i have everything internal, so after a wipe/flash i need a fast way to reinstall all my apps. found this on the forum and works great.
create a batch file.
1. open up notepad n copy and paste this code: for %%f in ("LOCATION_OF_APK_DIRECTORY\*.apk") do adb install "%%f"
2. replace with the location to your actual APK folder.
3. save as a a batch file (.bat)
For example, mines is like this:
for %%f in ("F:\Backup\Files\Mobile_Stuff\Android\HTC_MAGIC\01_CupCake\apk\*.apk") do adb install "%%f"
and I saved as apkinstall.bat
So now, whenever you want to install batch apks, just drop the apks into the folder you selected above, and double click the batch file.
Gphonemanager
It does batch uninstall. You just have to select 'ok' one by one until you've uninstalled all the apps that you wanted to.
put all your apps in a folder called
app
app-private
depending on which one it was
open command prompt in the folder containing those two folders and use the commands
Code:
adb remount
adb push app /system/sd/app
adb push app-private /system/sd/app-private
adb shell reboot
Is there any way to relink an .apk (coming from a backup, usually) with its origin on Market ?
I have hundreds of market-installed apps and after each reset I have to reinstall one by one, if would keep the market download update feature...
Thanks
I want to use switchrom.sh and are unsure of how to copy the file into the /system/sd folder. Is there a way to view the root files in Windows? How do you go about it?
ryantomo said:
I want to use switchrom.sh and are unsure of how to copy the file into the /system/sd folder. Is there a way to view the root files in Windows? How do you go about it?
Click to expand...
Click to collapse
There are two ways. The best is to push it through ADB (Just search for ADB, I don't have the time to walk through it and it has been already done better)
Or you can move it to the root of your sdcard and type in the terminal:
$su
#cp /sdcard/switchrom.sh /system/sd
Hey guys, I just used root explorer v 2.2 to delete the annoying apps built into the system (amazon mp3)
I am now trying to move my apps into the system so that they cannot easyly be removed. I want to send over lookout and sim checker. That way a theif would not be able to easily delete the apps.
when I select the "move" option (with sim checker) then go to the system apps dirrectpry and then select "paste", it says paste and shows a progress indicator for like 1 second then when I check to see if it actually did the move, it hasn't can anyone help me out
I know I have full root access as I have clicked to allow it and am remounted as r/w so that's not the problem.
Any help to get those two apps into my read only system directory would be greatly apprecaited.
Oh ya I think ill add that I have also tryed to simply change the permissions of the app to readonly (with root explorer) but that did not stop the basic android app manager from uninstalling it.
Try to use adb to move it.
so i went and installed adb, i know its working as well with a little test, could someone please write out a sample command for me to use for this purpose of moving an app out of the apps to sd location and into the system apps.
asb123 said:
so i went and installed adb, i know its working as well with a little test, could someone please write out a sample command for me to use for this purpose of moving an app out of the apps to sd location and into the system apps.
Click to expand...
Click to collapse
mv /system/sd/app/*lookout* /system/app
mv /system/sd/app/*checker* /system/app
It really depends on the name of the file though, if it has lookout in it, then it will be moved to /system/app. The * tells it to move anything with that in the file name
type adb and it will give you the commands + switches
adb pull
adb push
In response to your first attempt, it sounds like system is not being mounted as rw. If it were, the copying would work (I do this all of the time with SUFBS). Try to mount the system as rw via the terminal then copy.
JAguirre1231 said:
mv /system/sd/app/*lookout* /system/app
mv /system/sd/app/*checker* /system/app
It really depends on the name of the file though, if it has lookout in it, then it will be moved to /system/app. The * tells it to move anything with that in the file name
Click to expand...
Click to collapse
so i have the command prompt cd to andorid adk\tools
when i now type in the above :
mv /system/sd/app/*lookout* /system/app
it doesnt recognize the command
so i have C:\android-sdk-windows\tools> mv /system/sd/app/*lookout* /system/app
and it doesnt recognize mv as a command
cloverdale said:
In response to your first attempt, it sounds like system is not being mounted as rw. If it were, the copying would work (I do this all of the time with SUFBS). Try to mount the system as rw via the terminal then copy.
Click to expand...
Click to collapse
hey, sorry for the noob question but could you tell me the command for this. I know in the app i was using it says remount as rw and i do have access to change the system app folder (delted apps) but how can i remount as RW in terminal whats the command? And after, do i need to manually remount back to what i was so that it is back to being unchangeable?
asb123 said:
so i have the command prompt cd to andorid adk\tools
when i now type in the above :
mv /system/sd/app/*lookout* /system/app
it doesnt recognize the command
so i have C:\android-sdk-windows\tools> mv /system/sd/app/*lookout* /system/app
and it doesnt recognize mv as a command
Click to expand...
Click to collapse
If you have the tools directory in your PATH (as you should) no need to cd to the directory. Anyways, sorry to move it in adb do
adb remount
adb shell
*previous commands*
exit
Bingo!
it says failed on /systen/sd/app/com.lookout.apk - cross-device link
asb123 said:
it says failed on /systen/sd/app/com.lookout.apk - cross-device link
Click to expand...
Click to collapse
Ou have 2 android phones plugged in or an emulator running ath the same time
i dont have two phones plugged in and i dont have an emulator that i know of...
but on the bright side i mannaged to solve my problem using droid explorer. I successfully have gotten lookout entrenhed into the system so that it cannot be uninstalled from the menu.
BUT when i tried the same thing for sim checker it did not work, it would not copy into system\apps
i did manage to get it inot system\app but using the copy rather than move option in root explorer, after reinstalling using the simchecker in system\app
but it is showing up as still uninstallable. I have no idea why simcheck is not working but it worked for lookout...
Recently I've been trying to install the HTC Footprints .apk on to my phone.
I've tried using multiple file managers to install the app, they get to the installation screen and fail to install (yes unknowk sources is turned on), I've also tried installing it via adb but I get errors such as
adb push method:
Code:
Code:
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app/
failed to copy 'HtcFootprints.apk' to '/system/app//HtcFootprints.apk': Read-only file system
Using the adb install method:
Code:
C:\android-sdk-windows\tools>adb install HtcFootprints.apk
1080 KB/s (1054762 bytes in 0.953s)
pkg: /data/local/tmp/HtcFootprints.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\android-sdk-windows\tools>
Any Ideas on what my problem could be?
I orginally roted my phone manully but I had to reset back to stock due to technical issues, but I re-rooted it using the flash recovery method located http://forum.xda-developers.com/showthread.php?t=584029
Another tid bit of information is that yesterday I could not use my SU (super user permissions) until I installed other roms and wiped it and did a nandroid restore.
did you
adb remount
adb push Footprints.apk /system/app
?
I found that using the fresh kitchen is much easier especially when I'm trying out many different Roms. Have you tried it yet i know that i have all my .apks setup in the designated folder makes it really simple if I've just flashed a new ROM and need to push all my apps. Hope I was helpful.
Check out Root Explorer in the market. Worth the money in my honest opinion.
"The ultimate file manager for root users. Access the whole of android's file system(including the elusive data folder!). Includes Text Editor, multi-select, zip files, execute scripts, search, re-mount, permissions, bookmarks, email, home, APK binary XML file viewer."
Root Explorer saves me so much time that I wasted putting in all the adb commands to do the same things. It is also the fastest way to remove Sprint's bloatware.
DJAscendance said:
did you
adb remount
adb push Footprints.apk /system/app
?
Click to expand...
Click to collapse
I tried this and nothing happend, I also tried
Originally Posted by bonesy
Try
adb remount
adb push HtcFootprints.apk /system/app/HtcFootprints.apk
adb push HtcFootprints.odex /system/app/HTcFootprints.odex
Click to expand...
Click to collapse
from http://forum.xda-developers.com/showthread.php?t=551240
and it worked, sort of I got the files to move
Code:
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app/HtcFootprint
s.apk
1173 KB/s (1054762 bytes in 0.878s)
C:\android-sdk-windows\tools>adb push HtcFootprints.odex /system/app/HtcFootprin
ts.odex
816 KB/s (581976 bytes in 0.696s)
C:\android-sdk-windows\tools>
But after I did this, I rebooted my hero but I could not get it to load past the boot screen.
most likely, your system memory is full. try removing another system apk of similar size (something you dont use such as stock, twitter facebook, etc)via adb and reinstall footprints the same way. I have had this happen before as well, and doing what I just stated worked for me
troyboytn said:
most likely, your system memory is full. try removing another system apk of similar size (something you dont use such as stock, twitter facebook, etc)via adb and reinstall footprints the same way. I have had this happen before as well, and doing what I just stated worked for me
Click to expand...
Click to collapse
Would removing the voicemail app work the same? adb shell rm /system/app/Voicemail.apk (not sure if this is the code or not)
you can remove all the ringtones and put them on your SD card... I know RegawMOD uses that trick to save space.
Noirad said:
Would removing the voicemail app work the same? adb shell rm /system/app/Voicemail.apk (not sure if this is the code or not)
Click to expand...
Click to collapse
Yes that would work as well as what mrinehart93 just stated about moving ringtones, etc to the sd which will free up nearly 6 mb of system memory(actually did that myself but didnt think of it). here is a link to accomplish that http://forum.xda-developers.com/showpost.php?p=5936137&postcount=3236
Alright, Moved the ringtones and alarms to my Sdcard, but I'm still getting the same errors
Code:
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb install HtcFootprints.apk
783 KB/s (1054762 bytes in 1.314s)
pkg: /data/local/tmp/HtcFootprints.apk
Failure [INSTALL_FAILED_DEXOPT]
C:\android-sdk-windows\tools>adb shell rm HtcFootprints.apk /system/app
rm failed for HtcFootprints.apk, Read-only file system
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb shell rm HtcFootprints.apk /system/app
rm failed for HtcFootprints.apk, Read-only file system
C:\android-sdk-windows\tools>adb remount
remount succeeded
C:\android-sdk-windows\tools>adb push HtcFootprints.apk /system/app
619 KB/s (1054762 bytes in 1.662s)
C:\android-sdk-windows\tools>adb shell
# reboot
reboot
C:\android-sdk-windows\tools>
Try,
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push HtcFootprints.apk /system/app
See if that helps. Reason it wont boot up is because if you're on a newer rom that doesnt have .odex files, then it wont work.
VinceOB said:
Try,
adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push HtcFootprints.apk /system/app
See if that helps. Reason it wont boot up is because if you're on a newer rom that doesnt have .odex files, then it wont work.
Click to expand...
Click to collapse
I have the .odex files, but I'm not quite sure where Im supposed to put them.
Noirad said:
I have the .odex files, but I'm not quite sure where Im supposed to put them.
Click to expand...
Click to collapse
What Rom are you running?
If adb is successfully pushing the files (like it is in your posts) then the phone is successfully being mounted, so that's not your problem. You also have enough system space, because if you did not it would tell you that you didn't, and I didn't see that error message in any of your posts either.
Most likely, you're using a ROM that doesn't use .odex files (almost all of the 2.1 ROMs that are out now don't, with the exception of DarchLegend I believe) so the .apk isn't compatible because it's missing the classes.dex file and the .odex file won't work because it's not compatible with the ROM.
If you are using a ROM that uses .odex files, then you need to be sure that the APK you're using is the right version for your ROM. If you try using HtcFootprints.apk from a 1.5 ROM on a 2.1 ROM, it more than likely will not work, due to different frameworks and all that fun stuff.
Gregalous said:
If adb is successfully pushing the files (like it is in your posts) then the phone is successfully being mounted, so that's not your problem. You also have enough system space, because if you did not it would tell you that you didn't, and I didn't see that error message in any of your posts either.
Most likely, you're using a ROM that doesn't use .odex files (almost all of the 2.1 ROMs that are out now don't, with the exception of DarchLegend I believe) so the .apk isn't compatible because it's missing the classes.dex file and the .odex file won't work because it's not compatible with the ROM.
If you are using a ROM that uses .odex files, then you need to be sure that the APK you're using is the right version for your ROM. If you try using HtcFootprints.apk from a 1.5 ROM on a 2.1 ROM, it more than likely will not work, due to different frameworks and all that fun stuff.
Click to expand...
Click to collapse
Ahh, that could be my problem, Im currently using a Fresh Rom by Flipz running 2.1, but I just found a post by him of the applicastions that he removed and how to reinstall them, I'll try that and let you guys know how it goes
Success! My problem was that I was trying to install the 1.5 files onto my 2.1 ROM
Ahhh. Glad it worked.
all of these apps you can push or install using flips kitchen so you know!
fixxxer2008 said:
all of these apps you can push or install using flips kitchen so you know!
Click to expand...
Click to collapse
Haha thanks! Installing it right now
footprints
Noirad said:
Ahh, that could be my problem, Im currently using a Fresh Rom by Flipz running 2.1, but I just found a post by him of the applicastions that he removed and how to reinstall them, I'll try that and let you guys know how it goes
Click to expand...
Click to collapse
Noirad,
can i have the link to the post you were talking about. I also need to install footprints on a 2.1 rom. thanks
hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
thanks for answering, thats all i wanted to know
make a bat
open note pad and paste this:
Code:
adb remount
adb shell rm system/app/*Stock*
adb shell rm system/app/IM.apk
adb shell rm system/app/*Facebook*
adb shell rm system/app/Flickr.apk
adb shell rm system/app/Sprint_Navigation.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/HTCNew.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
adb shell rm system/app/com.htc.FriendStreamWidget.apk
adb shell rm system/app/com.damaged.DConfig.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/FriendStream.apk
the add or remove lines accordingly, substitute one apk for another if you want then save as a .bat file (mine is named removeapks.bat) place in the tools folder if you wish, flash a rom once booted run the .bat file and poof theyre gone
alexnaoumi said:
thanks for answering, thats all i wanted to know
Click to expand...
Click to collapse
There's a tool written in Java that makes signing zip's really easy. It's included in a suite of apps called AndroidMod.zip
Once you have it, the syntax to sign the new zip is simple. Just:
java -jar signapk.jar testkey.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
Or you can get "root manager" from market which does a lot including removal of unwanted system apps.
Sent from my HERO200 using XDA App
I think Fresh Pre kitchen does it also.
Titanium backup is what I use. Haven't had any trouble using it.
Moved to Q&A.
alexnaoumi said:
hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
Click to expand...
Click to collapse
I like Root Manager also because there is a "multi-select" option so you can select all of the files you'd like to delete. For the "/system/app" folder you can mount as "read/write", then delete the files. I then reboot into recovery, wipe the cache and Dalvick cache, and reboot. I've had no issues doing this. It's not so much how you delete, rather than what you delete. The forums here at XDA (as well as others that you can Google) that tell you what apps are safe to delete and which should remain untouched. As long as you don't delete an apk that is critical to ROM, you should be okay.
bombaatomica said:
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
Click to expand...
Click to collapse
Since this is my first post, and I cannot post links, do a search on "modaco zipsigner". This is the utility I found for re-signing zip files, and it has worked flawlessly for me.