PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Hero (http://forum.ppcgeeks.com/forumdisplay.php?f=114)
-   -   ADB Shell ... then i get No $ SU found (http://forum.ppcgeeks.com/showthread.php?t=112091)

Sporkman 02-25-2010 12:35 PM

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

Volknochi 02-25-2010 01:04 PM

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.

athlet1c 02-25-2010 01:12 PM

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

Sporkman 02-25-2010 01:19 PM

Re: ADB Shell ... then i get No $ SU found
 
Quote:

Originally Posted by Volknochi (Post 1590082)
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 ?

Sporkman 02-25-2010 01:21 PM

Re: ADB Shell ... then i get No $ SU found
 
Quote:

Originally Posted by athlet1c (Post 1590107)
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

Volknochi 02-25-2010 02:49 PM

Re: ADB Shell ... then i get No $ SU found
 
Quote:

Originally Posted by Sporkman (Post 1590123)
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.

Sporkman 02-25-2010 03:20 PM

Re: ADB Shell ... then i get No $ SU found
 
big help ! ill give it a shot and post back

Sporkman 02-25-2010 03:34 PM

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

Volknochi 02-25-2010 03:44 PM

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?

Sporkman 02-25-2010 04:46 PM

Re: ADB Shell ... then i get No $ SU found
 
lol i didn't copy and paste it i typed it .


All times are GMT -4. The time now is 09:53 AM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0