[Q] Most installed apps gone [Insertcoin 1.0.8 Gingerbread] - Desire Q&A, Help & Troubleshooting

I was trying to update to latest version of Google Maps modified by ownhere, running following in the terminal:
Code:
andreas-macbook-pro:platform-tools Andreas$ ./adb remount
remount succeeded
andreas-macbook-pro:platform-tools Andreas$ ./adb uninstall com.google.android.maps
Failure
andreas-macbook-pro:platform-tools Andreas$ ./adb uninstall maps
Failure
andreas-macbook-pro:platform-tools Andreas$ ./adb uninstall com.google.android.apps.maps
Success
Wrote the wrong package name first times, so uninstallation failed.
Time to push the apk to the phone:
Code:
andreas-macbook-pro:platform-tools Andreas$ ./adb push /Users/Andreas/Downloads/maps5.8.0-ownhere.apk /system/app
failed to copy '/Users/Andreas/Downloads/maps5.8.0-ownhere.apk' to '/system/app/maps5.8.0-ownhere.apk': Out of memory
andreas-macbook-pro:platform-tools Andreas$ ./adb push /Users/Andreas/Downloads/maps5.8.0-ownhere.apk /system/app
failed to copy '/Users/Andreas/Downloads/maps5.8.0-ownhere.apk' to '/system/app/maps5.8.0-ownhere.apk': Out of memory
andreas-macbook-pro:platform-tools Andreas$ ./adb push /Users/Andreas/Downloads/maps5.8.0-ownhere.apk /data/app
776 KB/s (9317013 bytes in 11.722s)
/system was almost full (3 MB free) and realized that maybe /system/app is not the correct location when using insertcoin, changing to /data/app where my installed apps were located according to the app Quick system info.
I tried to navigate to /data/app with Astro but it could not open that folder. Attempted to delete the file from /data/app using adb:
Code:
# pwd
/
# rm /data/app/maps5.8-ownhere-resign.apk
rm: can't stat '/data/app/maps5.8-ownhere-resign.apk': Not a directory
# rm ./data/app/maps5.8-ownhere-resign.apk
rm: can't stat './data/app/maps5.8-ownhere-resign.apk': Not a directory
# rm data/app/maps5.8-ownhere-resign.apk
rm: can't stat 'data/app/maps5.8-ownhere-resign.apk': Not a directory
Could not browse the /data/app directory either ("can't cd to app").
Astro crashed and kept crashing, so I rebooted the phone. Now, almost all of the apps that has been installed from the market were gone, and those on the home screens were displayed by generic android icons.
How can I get my apps back?

titanium backup or my backup root ??
if apps are still there, back them up, then do a factory reset and restore the backup

I got backups from when I first installed a custom ROM, but no daily fresh (didn't think updating google maps would mess up anything). All applications are still showing up under settings>applications>manage applications, most of them with gray generic android icons with a small SD card in the lower right corner.
Titanium is one of the apps that I cannot start anymore.

Related

Now that we have root access...

Hello,
Now that we have root access it is possible to remove preinstalled apps like :
- Peep
- Stock
- Stock Widget
- Quick Office
- PDF Reader
- etc.
And how it is possible to do this?
Thanks a lot for the futur answers and have a nice day with your rooted HTC Desire!!!
http://forum.xda-developers.com/showthread.php?t=672352
This ROM has those applications removed. If you want to remove them yourself, you can just try mv'ing the APKs out of the way and see if the phone detects them, but I haven't tried this so advice is issued without warranty. If the apps are in /system you'll need to use the recovery + adb shell mount /system to modify it (try in the OS and the phone will just reboot), if they're not in /system or any other protected dirs, you should just be able to mv them straight.
I haven't rooted my phone yet, but I will later on so this is just ideas at this point.
Thanks for the ROM but I want to customize my phone myself^^
Is there a step by step guide that explain what you say because I'm just starting with android.
Thanks for the answer
Sebacestmoi said:
Is there a step by step guide that explain what you say because I'm just starting with android.
Click to expand...
Click to collapse
+1 on that!
I moved to Desire from a Touch HD, and while I never got into ROM cooking for WinMo, I wouldn't mind dabbling a bit with Android, mostly to remove some of the bloatware that comes with the stock ROM. Trouble is... I have no idea where/how to start Such a 'beginner's guide' would be great to get hold of, if anything exists!
EDIT - found these guides here on XDA:
http://forum.xda-developers.com/showthread.php?t=532719 - ADB, Fastboot and Nandroid for Noobs
http://forum.xda-developers.com/showthread.php?t=502010 - ADB for dummies
(I would have expected to see these in the Android section, not in a device-specific forum; oh well... )
And if we delete the .apk and .odex in the "system/app" folder from the "rootedupdate.zip" that Paul from MoDaCo has given to us before flashing?
Does the ROM will flash and work correctly but without these annoying apps?
Sebacestmoi said:
And if we delete the .apk and .odex in the "system/app" folder from the "rootedupdate.zip" that Paul from MoDaCo has given to us before flashing?
Does the ROM will flash and work correctly but without these annoying apps?
Click to expand...
Click to collapse
Try and find out
Personally I would just delete (rename) the odex + apks from your current installation by rebooting into recovering and using a variation of these commands:
Code:
adb shell
At your PC to get a root shell. Then
Code:
cd /system/app/
Code:
mv theapp.apk theapp.bye.apk
Code:
ls
You will need to use a variation of the above commands, "ls" is list files in this directory, "cd" is change directory, and "mv" is rename file.
All the .apk are readonly so I can't uninstall or rename them...
Waht can I do?
The phone has to be in recovery mode in order to get write permissions to the /system partition.
Pretty obvious, I know, but I missed this and I kept banging my head against the keyboard when getting 'read-only' errors (with the phone in USB Disk Drive + debugging)
So I turn on my phone with the "Sound Down" button and I go on the Recovery screen (with red triangle).
Then I connect my HTC Desire to my computer.
But after that I can't go to system partition...
What command are you writing in the shell to load the system partition and do some stuff on it?
I'm sorry I'm very good with Windows but I'm a total noob wit Linux
I have tried the adb shell command (don't know if it's useful for me...) and the computer return me :
- exec '/system/bin/sh' failed: No such file or directory (2) -
and adb remount return me :
remount failed: Invalid argument
Wait... you tried adb with the phone still showing the red triangle?
First you need to bring it to recovery (the screen with green text).
This is how I do it:
- boot off the .iso provided for rooting
- mount the cdrom as described in the guide, but skip ./step1.sh
- put phone in HBOOT (to get the screen with the red triangle) then connect it to the machine
- run 'sudo ./step2.sh' which will push the files needed for recovery to the device - then you'll get the green screen, just like when you flashed the ROM
- then, on the computer:
'sudo ./adb shell' - brings you to the shell prompt of adb
'mount /system' - mounts the protected partition, but you have write permissions
'cd /system/app/' and then delete whatever I want
when done, 'cd /' and 'umount /system' and 'exit'
Clear the cache so that you won't get dead links in the menus later...
Perfect thanks, I had it in recovery mode, but it couldn't locate the app folder under /system/
but after the mount /system it appeared
Tahnk you a hundred times cezarL.
Now I have cleaned my phone from everything I don't need.
For those who are interested by my work I've done the following commands from the recovery screen :
cd C:\AndroidSDK\tools
adb shell
mount /system
cd /system/app/
rm com.htc.NewsReaderWidget.apk
rm com.htc.NewsReaderWidget.odex
rm com.htc.StockWidget.apk
rm com.htc.StockWidget.odex
rm com.htc.TwitterWidget.apk
rm com.htc.TwitterWidget.odex
rm Facebook.apk
rm Facebook.odex
rm Flickr.apk
rm Flickr.odex
rm HtcFMRadio.apk
rm HtcFMRadio.odex
rm HtcFootprints.apk
rm HtcFootprints.odex
rm HtcFootprintsWidget.apk
rm HtcFootprintsWidget.odex
rm HtcRingtoneTrimmer.apk
rm HtcRingtoneTrimmer.odex
rm htcsearchwidgets.apk
rm htcsearchwidgets.odex
rm HtcSoundRecorder.apk
rm HtcSoundRecorder.odex
rm HtcSyncwidget.apk
rm HtcSyncwidget.odex
rm HtcTwitter.apk
rm HtcTwitter.odex
rm MagicSmokeWallpapers.apk
rm MagicSmokeWallpapers.odex
rm Mode10Wallpapers.apk
rm Mode10Wallpapers.odex
rm NewsReader.apk
rm NewsReader.odex
rm PDFViewer.apk
rm PDFViewer.odex
rm PicoTts.apk
rm PicoTts.odex
rm Quickoffice.apk
rm Quickoffice.odex
rm RSS.apk
rm RSS.odex
rm Stk.apk
rm Stk.odex
rm Stock.apk
rm Stock.odex
rm VpnServices.apk
rm VpnServices.odex
rm WidgetDownloadManager.apk
rm WidgetDownloadManager.odex
cd /
umount /system
exit
Then a reboot with a Clear Storage and every app listed above are gone an there is no bug at all with the phone.

I need to create an update.zip please help

i want to create an update.zip i can install via the recovery console.
i have the apk which is
com.lookout.apk
i have created folders system/app
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to install the app to system/app
If you have the apk, why not just install it via a file manager (Astro), adb install (adb install <path:\package.apk>), or adb push (adb shell -> mount /system -> exit -> adb push <path:\package.apk> /system/app) in recovery?
Plenty of ways to install without needing a flashable zip if it's just for you.
If you really need a zip, I'd find somebody else's who is doing the same thing and just replace the APKs and resign it.
Just thoughts.
Hi,
I´m kind of in the same situation. I want to install Sim Checker Pro as a system App.
It is currently installed.
The author told me to copy the simchecker15.apk from /data/app/ to the sd card. Then delete the original. Then copy it over to /system/app/ and finally delete the apk on the sdcard.
Code:
adb remount
adb shell cp /data/app/org.ajeje.locservice15.apk /sdcard
adb shell rm /data/app/org.ajeje.locservice15.apk
adb shell cp /sdcard/org.ajeje.locservice15.apk /system/app
adb shell rm /sdcard/org.ajeje.locservice15.apk
Since I´m not able to write to /system unless I mount it in (pauls) recovery mode can anyone tell me how to do this on the Desire exactly.
I get adb working in recovery and can also mount /system but how do I push the files from /data/app/ to sd and from there to /system/app?
Edit: I got it sorted out
it was
Code:
adb shell mount /system
adb shell cp /data/app/org.ajeje.simchecker15.apk /sdcard
adb shell rm /data/app/org.ajeje.simchecker15.apk
adb shell cp /sdcard/org.ajeje.simchecker15.apk /system/app
adb shell rm /sdcard/org.ajeje.lsimchecker15.apk

Uninstalling WaveSecure from Modaco ROM

I just installed the Modaco ROM on my Desire (It is awesome BTW) but i don't like the WaveSecure program and i can't seem to be able to find it in /system/app to remove it!
Is there a way to delete this program off the phone!?
I would like to learn how to do this also
Don't think you can unless you use the online kitchen (I don't like it so removed it from mine)
I believe:
adb remount
adb shell rm /system/app/com.wsandroid.apk
Click to expand...
Click to collapse
Doesn't seem to work mate.
Code:
C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded
C:\DevTools\android-sdk-windows\tools>adb shell
# rm /system/app/com.wsandroid.apk
rm /system/app/com.wsandroid.apk
rm: can't remove '/system/app/com.wsandroid.apk': Directory not empty
#
plasmafire said:
Doesn't seem to work mate.
Code:
C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded
C:\DevTools\android-sdk-windows\tools>adb shell
# rm /system/app/com.wsandroid.apk
rm /system/app/com.wsandroid.apk
rm: can't remove '/system/app/com.wsandroid.apk': Directory not empty
#
Click to expand...
Click to collapse
Running as admin?
Same here. Running as admin - nevertheless "Directory not empty"
Edit: solved. Run SUBFS on phone and mounted /system RW. After that tried again in cmd - voila!
Insomnious said:
Same here. Running as admin - nevertheless "Directory not empty"
Edit: solved. Run SUBFS on phone and mounted /system RW. After that tried again in cmd - voila!
Click to expand...
Click to collapse
+1
For noobs like me: It's actually SUFBS, not SUBFS. Google for the apk, install the app, in the menu there's an option "mount /system RW". Activate and then run the adb commands above in a cmd window on your PC. Et voila!
(Just realised this is a Desire thread, this worked for me on my Nexus too)

ADB Remount not working on AT&T ICS Port

I can't get an adb remount to work so I can push trebuchet launcher as a system app.
I'm able to perform a adb shell
and then # to get su and my phone shows SU granting root permissions
what am I missing?
and please don't say install it as a regular app, because you'll be ignored
martialbob said:
I can't get an adb remount to work so I can push trebuchet launcher as a system app.
I'm able to perform a adb shell
and then # to get su and my phone shows SU granting root permissions
what am I missing?
and please don't say install it as a regular app, because you'll be ignored
Click to expand...
Click to collapse
i had the same problem. you can put the apk on your sd card, then use adb to copy it, but you'll have to mount the filesystem rw still.
to do this:
Code:
adb shell
su
cd sdcard #or wherever the apk is
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot
that gets the Trebuchet.apk in the right folder. however, it's still not letting me use it...
i've also ran chmod on the apk and still no go.
I'm pretty sure it's a kernel issue.. Working on it..
funeralthirst said:
i had the same problem. you can put the apk on your sd card, then use adb to copy it, but you'll have to mount the filesystem rw still.
to do this:
Code:
adb shell
su
cd sdcard #or wherever the apk is
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot
that gets the Trebuchet.apk in the right folder. however, it's still not letting me use it...
i've also ran chmod on the apk and still no go.
Click to expand...
Click to collapse
adb shell
su
cd sdcard
cd external_sd
busybox mount -o rw,remount /dev/block/mmcblk0p24 /system
busybox cp Trebuchet.apk /system/app
reboot (this still doesn't work on my phone even from shell or app, have to battery pull to restart... bloody annoying)
YOUR AWESOME!!
Used the above commands and it worked perfectly!!
Was able to change to trebuchet launcher after reboot, and was able to add widgets to home screen without it crashing (which when you install trebuchet as a regular app it freezes on adding a widget to home screen)

Google Wallet Help (ADB Shell related)

I'm going through these instructions but they are pretty complicated for me.
lukegb said:
Instructions for getting rid of ZIP version only <4.0.3:
Open ClockworkMod Recovery
Download the correct files from http://googlewallet.lukegb.com/stock/system/ that match your Android build and system - ICL53F is Android 4.0.2, yakju is GSM and mysid is LTE.
You'll need:
NfcGoogle.apk
com.android.nfc_extras.jar
Open an adb shell from your computer to your device from the directory you've just downloaded those files to
Run (on device via adb shell):
Code:
mount /system
mount /data
rm /system/app/Wallet.*
rm /system/app/NfcGoogle.*
rm /system/framework/com.android.nfc_extras.*
exit
Run (on computer):
Code:
adb pull /data/system/packages.xml packages.xml
Make a backup of the newly-created packages.xml file which is on your computer
Open packages.xml in a text editor (which isn't notepad)
Copy ALL the content
Open http://googlewallet.lukegb.com/gn_packages_xml_fixer.html in a web browser
Paste the content into the left-hand "Input" box
Click "Fix it"
Copy ALL the content from the right-hand "Output" box
Delete all the content in the text editor with packages.xml open
Paste the content
Save packages.xml
Close your text editor
Run (on computer):
Code:
adb push NfcGoogle.apk /system/app/NfcGoogle.apk
adb push com.android.nfc_extras.jar /system/framework/com.android.nfc_extras.jar
adb push packages.xml /data/system/packages.xml
adb shell chmod 644 /system/app/NfcGoogle.apk
adb shell chmod 644 /system/framework/com.android.nfc_extras.jar
You're done.
EDIT (28/12/11)
Important notice for all those who have already attempted to remove the ZIP version to replace with the APK version
Read this if NFC has disappeared from your more menu, you get crashes in the More menu, Wallet now forcecloses where it didn't before after removing the ZIP
I have just (idiotically) noticed a blindingly obvious flaw with the files I had previously uploaded to the stock folder on http://googlewallet.lukegb.com - they were the odexed versions of the files, crucially WITHOUT the .odex files. I've replaced them with pseudo-stock (same signatures) versions of the apks and if you replace the NfcGoogle.apk, Android should correctly take this into account.
Don't forget to chmod 644 the NfcGoogle apk and the com.android.nfc_extras.jar files!
Click to expand...
Click to collapse
I'm stumped here: Open an adb shell from your computer to your device from the directory you've just downloaded those files to
I can open cmd and open adb shell but i don't understand how to open adb from the directory where i donwloaded said files.

Categories

Resources