View Single Post
  #6 (permalink)  
Old 02-25-2010, 02:49 PM
Volknochi's Avatar
Volknochi
PPCGeeks Regular
Offline
 
Join Date: Jan 2010
Posts: 68
Reputation: 5
Volknochi is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

Quote:
Originally Posted by Sporkman View Post
ok after i enter

adb push asroot2 /data/local/

i get a long list of commands is this correct ?
My fault, I listed out too many commands to use. I'm assuming you're wanting to remove .apk's and .odex's? If so, try these commands instead:

Code:
cd C:\android-sdk-windows\tools
adb devices


You will see your device listed.

Code:
 adb push asroot2 /data/local/


It will list how many KB.

Code:
 adb shell
You will get a # symbol. You should have something that looks like this:
Code:
C:\Users\Volknochi>cd C:\android-sdk-windows\tools

C:\android-sdk-windows\tools>adb devices
List of devices attached
HT01DHF02325    device


C:\android-sdk-windows\tools>adb push asroot2 /data/local/
757 KB/s (74512 bytes in 0.096s)

C:\android-sdk-windows\tools>adb shell
#
Do not worry that a $ symbol didn't show. Type in:

Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
ls
Once you enter in ls, you should get a huge list of all .apk's and .odex's. You should get something that looks like this:

Code:
# su <---- when you type in su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
cd /system/app
# ls
ls
AccountManager.apk
IQRD.apk
Browser.apk
ImProvider.apk
Calculator.apk
Launcher.apk
Calendar.apk
Mail.apk
Calendar.odex
Mail.odex
CalendarProvider.apk
Maps.apk
CertificateService.apk
MediaProvider.apk
CheckinProvider.apk
MediaUploader.apk
Clicker.apk
MemMonitor.apk
CustomizationSettingsProvider.apk
Mms.apk
CustomizationSetup.apk
MySMS.apk
DCSGeocode.apk
NetworkLocation.apk
DCSImpl.apk
OMADM.apk
DCSReverseGeocode.apk
PCSCII.apk
DCSStock.apk
PCSCII.odex
DCSUtility.apk
PDFViewer.apk
DCSWeather.apk
PackageInstaller.apk
DMPortRead.apk
Phone.apk
DmService.apk
Rosie.apk
DownloadProvider.apk
Rosie.odex
DrmProvider.apk
Settings.apk
EPST.apk
Settings.odex
FilePicker.apk
SettingsProvider.apk
FlashPlayer.apk
SetupWizard.apk
GSD.apk
SocialNetworkProvider.apk
GSD.odex
Sprint_Core.apk
Gmail.apk
Sprint_Navigator.apk
GmailProvider.apk
StatusBarCleanService.apk
GoogleApps.apk
Street.apk
GoogleContactsProvider.apk
Superuser.apk
GooglePartnerSetup.apk
Talk.apk
GoogleSearch.apk
TelephonyProvider.apk
GoogleSettingsProvider.apk
Updater.apk
GoogleSubscribedFeedsProvider.apk
UploadProvider.apk
HTCAlbum.apk
UploadProvider.odex
HTCAlbum.odex
UserDictionaryProvider.apk
HTCCamera.apk
Vending.apk
HTCCamera.odex
VoiceSearch.apk
HTCNew.apk
Weather.apk
HTCSetupWizard.apk
Weather.odex
HTC_IME.apk
WeatherProvider.apk
HTC_IME.odex
WeatherProvider.odex
HtcAddProgramWidget.apk
WorldClock.apk
HtcCdmaProvider.apk
YouTube.apk
HtcClockWidget.apk
checkin.apk
HtcContacts.apk
com.htc.MusicWidget.apk
HtcContacts.odex
com.htc.WeatherWidget.apk
HtcIQAgent.apk
gtalkservice.apk
HtcLocationPicker.apk
htcbookmarkwidget.apk
HtcLocationPicker.odex
htccalendarwidgets.apk
HtcLockScreen.apk
htccontactwidgets.apk
HtcMusic.apk
htccontactwidgets.odex
HtcMusic.odex
htcmailwidgets.apk
HtcPhotoWidget.apk
htcmsgwidgets.apk
HtcSettingsProvider.apk
htcsearchwidgets.apk
HtcSettingsProvider.odex
htcsettingwidgets.apk
HtcStreamPlayer.apk
#
To remove 'em (just in case you were unsure), just punch in:

Code:
rm nameofitem.apk
rm nameofitem.odex
If the item you want to remove has both an .apk and .odex, you have to insert both. If the item has one or the other, just either. Don't worry, if you're not sure, you can still input both even if it has only one and it'll say "no such item found, cannot delete" or along those lines.

Hope this helps.

Last edited by Volknochi; 02-25-2010 at 03:02 PM.
Reply With Quote
This post has been thanked 1 times.