PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android HTC Devices > Legacy HTC Android Devices > HTC Hero
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2010, 12:35 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
ADB Shell ... then i get No $ SU found

im a noob to this but im slowy learning

i finally got the adb to work but when going to the next step

i get no Su found

i did

cd\
cd AndroidSDK\tools\

from there i went

ADB shell

the

$ su

and i get no Su found ?


what am i doing wrong
Reply With Quote
  #2 (permalink)  
Old 02-25-2010, 01:04 PM
Volknochi's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Hero
Carrier: Sprint
 
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

The only way I know is this:

cd C:\android-sdk-windows\tools
adb devices
adb push asroot2 /data/local/
adb shell
chmod 0755 /data/local/asroot2
/data/local/asroot2 /system/bin/sh


Which'll result in this:
$ /data/local/asroot2 /system/bin/sh
[+] Using newer pope_inode_info layout
Opening: /proc/857/fd/3
SUCCESS: Enjoy the shell.
#


Which you follow up with:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4755 su


Which'll give you the $ line you're looking for. I tried it the other way (the way you did it, to test) and all I got was the # symbol.
Reply With Quote
  #3 (permalink)  
Old 02-25-2010, 01:12 PM
athlet1c's Avatar
Kind of a BIG Deal
Offline
Pocket PC: HTC EVO
Carrier: SPRINT
Location: NEW YORK - NORTH CAROLINA
 
Join Date: Aug 2007
Posts: 1,021
Reputation: 950
athlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuffathlet1c knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to athlet1c Send a message via Yahoo to athlet1c Send a message via Skype™ to athlet1c
Re: ADB Shell ... then i get No $ SU found

So I take it your trying to Root . sorry . You can also use the Fresh Kitchen to do so , unless your doing it for knowledge purposes
__________________
I can do all things through Christ who strengthens me
Have a listen to my music as well tell me what you think
http://www.myspace.com/siremusicgroup
Thank a Fellow Geeker If you have been helped by hitting the button below
Reply With Quote
  #4 (permalink)  
Old 02-25-2010, 01:19 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Threadstarter
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

Quote:
Originally Posted by Volknochi View Post
The only way I know is this:

cd C:\android-sdk-windows\tools
adb devices
adb push asroot2 /data/local/
adb shell
chmod 0755 /data/local/asroot2
/data/local/asroot2 /system/bin/sh


Which'll result in this:
$ /data/local/asroot2 /system/bin/sh
[+] Using newer pope_inode_info layout
Opening: /proc/857/fd/3
SUCCESS: Enjoy the shell.
#


Which you follow up with:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4755 su


Which'll give you the $ line you're looking for. I tried it the other way (the way you did it, to test) and all I got was the # symbol.


ok after i enter

adb push asroot2 /data/local/

i get a long list of commands is this correct ?
Reply With Quote
  #5 (permalink)  
Old 02-25-2010, 01:21 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Threadstarter
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

Quote:
Originally Posted by athlet1c View Post
So I take it your trying to Root . sorry . You can also use the Fresh Kitchen to do so , unless your doing it for knowledge purposes


root no im rooted have been for a while

trying to remove some stuf from the rom i dont want or need
Reply With Quote
  #6 (permalink)  
Old 02-25-2010, 02:49 PM
Volknochi's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Hero
Carrier: Sprint
 
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.
  #7 (permalink)  
Old 02-25-2010, 03:20 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Threadstarter
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

big help ! ill give it a shot and post back
Reply With Quote
  #8 (permalink)  
Old 02-25-2010, 03:34 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Threadstarter
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

after i put put the adb push asroot2 /data/local/

i still get the loooong list of commands instead if the KB
Reply With Quote
  #9 (permalink)  
Old 02-25-2010, 03:44 PM
Volknochi's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Hero
Carrier: Sprint
 
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

Would you copy and paste what your command prompt shows after you put in that command?
Reply With Quote
  #10 (permalink)  
Old 02-25-2010, 04:46 PM
Sporkman's Avatar
Just a NooB
Offline
Pocket PC: ZoOm ZoOm EVO Time
Carrier: Sprint
Threadstarter
Location: in a locked dark room
 
Join Date: Feb 2009
Posts: 1,530
Reputation: 1245
Sporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on repSporkman is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ADB Shell ... then i get No $ SU found

lol i didn't copy and paste it i typed it .
Reply With Quote
Reply

  PPCGeeks > Android > Android HTC Devices > Legacy HTC Android Devices > HTC Hero


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 07:18 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com