how to clear all data on ext2 SD Card partition? - G1 General

can anyone help me out with this? i tried to search but couldnt find anything

Please search and post in the right thread/forum. Thank you.

rsweepe said:
can anyone help me out with this? i tried to search but couldnt find anything
Click to expand...
Click to collapse
Do you get error messages when you try to delete?

either format it again through your partition manager (i.e. gparted, paragon) or through ADB using these commands:
adb remount
adb shell
busybox rm -r /system/sd/app
busybox rm -r /system/sd/app-private
busybox rm -r /system/sd/dalvik-cache
busybox rm -r /system/sd/data
reboot
Click to expand...
Click to collapse
or through terminal emulator using these commands:
su
busybox rm -r /system/sd/app
busybox rm -r /system/sd/app-private
busybox rm -r /system/sd/dalvik-cache
busybox rm -r /system/sd/data
reboot
Click to expand...
Click to collapse
if you have other folders in there (with the exception of lost+found), just use the same commands above but replace it with the name of the folder within /system/sd.
i.e. busybox rm -r /system/sd/nameoffolderyouwanttodelete

Related

Adding and removing apps from ROMs

I wasnt sure and couldnt find this anywhere but, I was looking through a zip folder of a rom and noticed the apk folder. Am I able to delete different apk's and add apps as well? And If I delete the browser apk can I add dolphin browser to work as my default browser?
Thanks in advance
I´m interested in this too.
I guess that the main problem will be to sign the new zip file once added or removed the apps
Yes, but it won't do you any good unless you also do something else. Ask the same question again in the right section, and I'm sure someone will tell you what it is. I'm not going to here, though. Not to be a jerk or anything, but we can't answer questions here, as posting these question threads clutters the dev section. Besides, you can't get a very good answer here anyway--a mod will lock this thread soon. If you want answers, you have to ask in the Q&A section.
carnegie0107 said:
Yes, but it won't do you any good unless you also do something else. Ask the same question again in the right section, and I'm sure someone will tell you what it is. I'm not going to here, though. Not to be a jerk or anything, but we can't answer questions here, as posting these question threads clutters the dev section. Besides, you can't get a very good answer here anyway--a mod will lock this thread soon. If you want answers, you have to ask in the Q&A section.
Click to expand...
Click to collapse
Thanks. I just figured since it was kinda about a rom it would be okay. But yeah you are right
Yeah, but you know how some people are.
You can remove unused/uneeded files by using a Root Manager. Deleting the apk file associated with the particular program you don't want works for me. Make sure you do a Nandroid backup in case you delete something you really needed. Don't for instance delete your virtual keyboard if you only have one.. you will be faced with forced closes.
just push or pull the application through the adb that you want to add or remove from the rom
Amazon MP3 app
I'd love to ditch the US-only Amazon MP3 app from ROMs. Can't uninstall it. Probably need to SU to where it lives & delete it.
linuxluver said:
I'd love to ditch the US-only Amazon MP3 app from ROMs. Can't uninstall it. Probably need to SU to where it lives & delete it.
Click to expand...
Click to collapse
There are instructions on how to and what app you are able to delete without it becoming unstable over at http://wiki.cyanogenmod.com/index.php/Barebones.
Use ADB.
Or Terminal:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/app
rm -r appname.apk
rm -r appname.opex
E.g. appname = com.amazon.mp3
ID# said:
Use ADB.
Or Terminal:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/app
rm -r appname.apk
rm -r appname.opex
E.g. appname = com.amazon.mp3
Click to expand...
Click to collapse
Simply deleting the apk files will leave the data directories, and entries in packages.xml. Someone suggest command [pm uninstall XXXXX], but I cannot get it work.
ID# said:
Use ADB.
Or Terminal:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/app
rm -r appname.apk
rm -r appname.opex
E.g. appname = com.amazon.mp3
Click to expand...
Click to collapse
This, OP use this and next time use QnA for your questions
Help?
Whats the instructions to install apk? Yours shows how to install. I have SuperD and need intstall the IM.apk Thanks 8)
ID# said:
Use ADB.
Or Terminal:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/app
rm -r appname.apk
rm -r appname.opex
E.g. appname = com.amazon.mp3
Click to expand...
Click to collapse
install over ADB
adb install <filename>
deafptl4ever said:
Whats the instructions to install apk? Yours shows how to install. I have SuperD and need intstall the IM.apk Thanks 8)
Click to expand...
Click to collapse
You would be smarter to leave it out, he did it since that app ate alot of ram.
Goto the market and get one of the free im apps instead.The tmo version has no feats like custom mess and stuff
ID# said:
Use ADB.
Or Terminal:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/app
rm -r appname.apk
rm -r appname.opex
E.g. appname = com.amazon.mp3
Click to expand...
Click to collapse
I finally find the proper way to uninstall the system apps.
Step #1 - Find the package names of the apps (e.g. IM.apk=com.android.im)
In console, type
su
pm list packages -f
Step #2 - Delete the apk files from /system/app
In console, type
su
mount -o remount,rw /system
rm /system/app/IM.apk
Step #3 - Uninstall the package
In console, type
su
pm uninstall com.android.im

Any way to write a batch script to remove apps in Clockwork?

This is a list of the apps I remove while in clockwork, with /system mounted etc... My question is, is there a way to have it do these commands automatically? I hate having to copy from notepad the commands as i have them saved, then right click in my cmd, paste, enter each and every single one
rm -r amazonmp3_1.6+24_signed_zipaligned.apk
rm -r AppPack2.0.apk
rm -r YouTube.apk
rm -r IM.apk
rm -r Mail.apk
rm -r vvm-signed.apk
rm -r Faves.apk
rm -r mytouchmusic-signed.apk
rm -r HtcTwitter.apk
rm -r com.htc.TwitterWidget.apk
rm -r FavesWidget.apk
rm -r htcmailwidgets.apk
rm -r HTCSetupWizard.apk
rm -r SelfHelp.apk
rm -r Hoops.apk
rm -r NatureTheme.apk
rm -r Palazzo.apk
rm -r Surf.apk
rm -r Wildflower.apk
rm -r com.htc.FriendStreamWidget.apk
rm -r com.htc.NewsReaderWidget.apk
rm -r com.htc.StockWidget.apk
rm -r com.htc.WeatherWidget.apk
You could create a batch script and put adb shell before each line, then when you have mounted /system just type in the name of the script IE remove.bat
sent from my *ROOTED* myTouch 3G Slide
adb does have an "uninstall" option. I'm not sure it would work in this situation. You could try a batch file that has "adb uninstall AppPack2.0.apk" for example and see if it works.
^ Will that work on the Slide?
<--- ADB newb
I tried removing apps using root explorer but when I mount the system again the phone reboots and the app is still there. Im just trying to find a way to remove some of the pointless apps.
You have to be in recovery mode because the /system NAND is protected otherwise.
Here's what I do:
1. Reboot the phone in recovery.
2. Run Clockworkmod (by applying update.zip in recovery).
3. Mount /system in Clockworkmod.
4. Now using adb shell, you can remove the apps in /system/app.
Thankyou very much

[Q] Question about unlocking SGS Vibrant

Hey
So Ive been trying to unlock my phone using this thread..
http://forum.xda-developers.com/showthread.php?t=913681
I get stuck here..
Copy your nv_data.bin to temporary folder on your phone:
adb shell "mkdir /sdcard/efs"
adb push nv_data.bin /sdcard/efs
adb shell
su
ls -l -a /efs
If there is an nv_data.bin.md5 file in the directory, all is well. You should continue with these commands:
mv /efs/.nv_data.bak /efs/.nv_data.bakk
mv /efs/.nv_data.bak.md5 /efs/.nv_data.bakk.md5
rm /efs/nv_data.bin
rm /efs/nv_data.bin.md5
rm /efs/.nv2.bak
rm /efs/.nv2.bak.md5
busybox cp /sdcard/efs/nv_data.bin /efs/nv_data.bin
chmod 755 /efs/nv_data.bin
chown radio.radio /efs/nv_data.bin
exit
exit
Click to expand...
Click to collapse
How do i get to this adb shell thing?
Sorry Im just new to this android stuff. Help would be appreciated!

sl4a shell script help

Hi all,
I'm trying to run a shell script in sl4a but I'm running into problems. Here's what I want to do: change ADW configuration files in one click (since the app doesn't yet do it natively). There are two files that need to be changed for this to happen:
Code:
/data/data/org.adwfreak.launcher/databases/launcher.db
/data/data/org.adwfreak.launcher/shared_prefs/adw_ex_preferences.xml
I'm trying to delete those files and copy in new files from a stored location on the SD card but I can't get the sl4a script to run the following rm commands:
Code:
rm -rR /data/data/org.adwfreak.launcher/databases/launcher.db
rm -rR /data/data/org.adwfreak.launcher/shared_prefs/adw_ex_preferences.xml
I use
Code:
su -c
before the rm commands to run them as root, but the error then is that the /data partition is not mounted (which I find strange since it should be rw anyway...). I've tried using
Code:
mount -o remount,rw /dev/block/userdata /data
and it looks like it runs but then it doesn't work and I can't rm the files anyway.
Am I running into a limitation of sl4a or shell scripts in sl4a? I can rm the files from the terminal, so I'm not sure what the issue is. I'm very new to this (obviously) so any tips would be helpful. Thanks!
Here is my full script currently:
Code:
#!
kill android.process.acore
kill org.adwfreak.launcher
busybox rm -R /data/data/org.adwfreak.launcher/databases/*
busybox rm -R /data/data/org.adwfreak.launcher/files/*
busybox rm -R /data/data/org.adwfreak.launcher/shared_prefs/*
cp /sdcard/adw_ex_launcher.db /sdcard/ADW/Honeycomb/adw_ex_launcher.db
cp /sdcard/adw_ex_settings.xml /sdcard/ADW/Honeycomb/adw_ex_settings.xml
cp /sdcard/ADW/Portrait/adw_ex_launcher.db /sdcard/adw_ex_launcher.db
cp /sdcard/ADW/Portrait/adw_ex_launcher.db /data/data/org.adwfreak.launcher/databases/launcher.db
chmod 664 /data/data/org.adwfreak.launcher/databases/launcher.db
cp /sdcard/ADW/Portrait/adw_ex_settings.xml /sdcard/adw_ex_settings.xml
cp /sdcard/ADW/Portrait/adw_ex_settings.xml /data/data/org.adwfreak.launcher/shared_prefs/adw_ex_preferences.xml
chmod 664 /data/data/org.adwfreak.launcher/shared_prefs/adw_ex_preferences.xml
exit
When I test the rm commands in the sl4a shell, they don't remove the files even when the /data partition is mounted. I've tried all that I know. Help please!
Sent from my DROIDX
I don't know what you are trying in your second post, but from your first post I would say:
Code:
su
busybox rm -r /data/data/org.adwfreak.launcher/databases/*
busybox rm -r /data/data/org.adwfreak.launcher/files/*
busybox rm -r /data/data/org.adwfreak.launcher/shared_prefs/*
cp /sdcard/adw/prefs.xml /data/data/org.adwfreak.launcher/shared_prefs/
..
kill org.adwfreak.launcher
If you do "chmod 664" on the files, you also have to do "chown & chgrp" or the launcher won't be able to write into the settings xml's/db's.
And /data ist mounted rw, everything else would be senseless.
Thanks for the response.
I'm trying to change ADW configuration with one click. I'm going to use Tasker to create a widget that, when clicked, runs a script. That script will:
1. delete the current ADW configuration files (launcher.db and adw_ex_preferences.xml)
2. copy the target configuration files to the proper places (and set permissions, owner, group)
3. restart ADW so that the configuration is loaded
OR
3. open the ADW settings page so that I can click "restore desktop" and "restore preferences" and have the configuration loaded in an almost-one-click solution.
The script in the 2nd post is my best effort at that. I have tried the busybox part of the script, but I don't believe it makes a difference. I will try again, though, and report back.
As far as chown and chgrp goes, I'll add in what I think that should be and post that back later, too.
Fr4gg0r said:
I don't know what you are trying in your second post, but from your first post I would say:
Code:
su
busybox rm -r /data/data/org.adwfreak.launcher/databases/*
busybox rm -r /data/data/org.adwfreak.launcher/files/*
busybox rm -r /data/data/org.adwfreak.launcher/shared_prefs/*
cp /sdcard/adw/prefs.xml /data/data/org.adwfreak.launcher/shared_prefs/
..
kill org.adwfreak.launcher
If you do "chmod 664" on the files, you also have to do "chown & chgrp" or the launcher won't be able to write into the settings xml's/db's.
And /data ist mounted rw, everything else would be senseless.
Click to expand...
Click to collapse
Progress update: Success! More or less.
I realized I wouldn't need to remove the files since the ones I was copying in would just overwrite them anyway, so that cleared up that issue.
I did add chown and chgrp (a piece of information I'm sure I'll find useful in the future) so I'm sure that helped. Making sure to get the group and owner right PER YOUR OWN SETUP was key. When I changed ROMs I had to redo it... so check properties with Root Explorer or whatever.
I revised my script a little to add the background wall paper, too.
The true key, however, was using Lua in SL4A and using the 'sush' script in this post here:
http://code.google.com/p/android-scripting/issues/detail?id=184 (comment #9). That allowed me to run my script in the 'sush' format and do what I wanted.
I also had to add a line to kill the launcher process (android.process.acore) so it would restart itself.
I now have a one-click solution to changing between two ADW desktop configurations/settings!
I've attached my script if anyone would like it. Just get SL4A, the Lua interpreter, and put the pieces together! (Use a custom shortcut on the desktop and not a widget and the desktop setup will be preserved; widgets aren't supported in any method...)

[CWM][SAMSUNG]Remove more than 100 MB of bloatware in 10-15 seconds

Hello all.
This script is my first contribution to this section.
THIS ZIP removes more than 100 MB of samsung apps.
I have made a similar thread here, but I wanted more people to try and test my work .
This is not SPAM , but I have no regrets if this thread is closed.
It removes the following apps-
AccuWeatherDaemonService
SamsungWidget_WeatherClock
install_flash_player
Dlna
SamsungWidget_News
BuddiesNow
CarHomeGoogle
ChocoEUKor
AnalogClock
PressReader
PRUI DualClock
Email
EmailWidget
FmRadio
HelvNeueLT
SamsungIM
KiesAir
kieswifi
Kobo
Memo
Microbesgl
MiniDiary
PostIt
MusicHub_
MusicHub_U
GenieWidget
PolarisOffice
PhotoRetouching
ReadersHub
signin
SamsungApps
SamsungAppsUNA
ShareApp
SnsProvider
SnsDisclaimer
SnsAccountFb
SnsAccountLi
SnsAccountMs
SnsAccountTw
SevenEngine
SocialHub
Kies
wssyncmlnps
SamsungWidget_StockClock
Thanking you in advance for testing it.
This removes all bloatware from samsung JB firmwares for all devices.
Just go to CWM and flash.
If you think something is wrong in the script or you have any suggestions please do reply.
Hit thanks if you like it.
<<<<<DOWNLOAD HERE>>>>>
Credits------>
broadways----> original script and the innovative idea. I have used his script as a base.
ME :silly:
You----->For testing and more suggestions.
Hi, like the look off this. Just checking will this remove the S-Pen functionality? Thanks
http://forum.xda-developers.com/showthread.php?t=2417773
Consider the above thread to know which bloat can be removed from note's tw jb
Sent from my GT-N7000 using Tapatalk 4
ccpezza said:
Hi, like the look off this. Just checking will this remove the S-Pen functionality? Thanks
Click to expand...
Click to collapse
SPen is the only feature which has made note so popular.
This script will not remove SPen functionality.
Look out for version 2 (Coming Soon ) of the script which will do so.
Did not work for me.
Tried on both internal and external SD. Installation aborted.
Can you elaborate please
Status __: Installation aborted
Fill in the blanks
Sent from my GT-S5360 using Xparent Cyan Tapatalk 2
Tesla said:
Did not work for me.
Tried on both internal and external SD. Installation aborted.
Click to expand...
Click to collapse
this is for touchwiz not cm based roms. lol
run this in terminal. Adapt with new package names and remove what you want to keep:
set permissions as you like
#!/system/bin/sh
mount -o remount, -rw /sbin
mount -o remount, -rw /system
mount -o remount, -rw /system/xbin
mount -o remount, -rw /system/app
# enable the adbd daemon and busybox
chmod 777 /sbin/adbd
chmod 777 /system/xbin/busybox
rm -f /system/app/Browser.apk
rm -f /system/app/VoiceSearchStub.apk
rm -f /system/app/QuickSearchBox.apk
rm -f /system/app/VoiceSearchStub.apk
rm -f /system/app/Talkback.apk
rm -f /system/app/Talk.apk
rm -f /system/app/Email2.apk
rm -f /system/app/Exchange2.apk
rm -f /system/app/HoloSpiralWallpaper.apk
rm -f /system/app/MagicSmokeWallpapers.apk
rm -f /system/app/VoiceDialer.apk
rm -f /system/app/VpnDialogs.apk
rm -f /system/app/Apollo.apk
rm -f /system/app/BasicDreams.apk
rm -f /system/app/CMFileManager.apk
rm -f /system/app/CMWallpapers.apk
rm -f /system/app/Development.apk
rm -f /system/app/DSPManager.apk
rm -f /system/app/LiveWallpapers.apk
rm -f /system/app/LiveWallpaperPicker.apk
rm -f /system/app/LockClock.apk
rm -f /system/app/MagicSmokeWallpapers.apk
rm -f /system/app/MediaUploader.apk
rm -f /system/app/NoiseField.apk
rm -f /system/app/Phasebeam.apk
rm -f /system/app/SoundRecorder.apk
rm -f /system/app/DashClock.apk
rm -f /system/app/GenieWidget.apk
rm -f /system/app/LiquidPapers.apk
rm -f /system/app/Talk.apk
rm -f /system/app/Talkback.apk
###remove dalvik and cache
###rm -f /data/dalvik-cache/*
###rm -f /cache/dalvik-cache/*
###rm -f /cache/lost+found/*
###reboot
chmod 740 /sbin/adbd
chmod 740 /system/xbin/busybox
mount -o remount, -ro /sbin
mount -o remount, -ro /system/xbin
mount -o remount, -ro /system/app
mount -o remount, -ro /system
exit 0

Categories

Resources