[Q] How to disable logcat in shell - gingerbread - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi fellow developers, is there any way to disable logcat in gingerbread rooted rom JVK with CF root 3.1.
thanks in advance.
Sent from my GT-I9000 using XDA App

Why would You want to do that?

why not to improve performance?
Sent from my GT-I9000 using XDA App

You could try:
logcat-disable
That probably wouldn't work, though, with a stock kernel.
You could also try deleting the folder /dev/log (delete 'log'. Do NOT delete /dev/)
You would have to be rooted:
Code:
adb shell
su
mount -o remount rw /dev/
rm /dev/log/*
The mount line may need to be different in order to actually mount, since it varies by device.
If that works, it would most likely be lost after any reboot.
It's worth trying, anyway.

Related

Unrooted but unable to remove superuser.apk

Hi all,
I've successfully unrooted in order to return the phone for a replacement but I'm still seeing the superuser permissions app.
My method for unrooting was opening up terminal on my phone and using this code:
Code:
su
rm -r /system/app/Superuser.apk
rm -r /system/xbin/busybox
rm -r /system/bin/su
Now it all worked fine and dandy except it was unable to find Superuser.apk
**Forgot to mention that I'm on Tmobile with the Samsung Vibrant**
Found a fix. Had to re-root and remove it with the following code in the phone's terminal application:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm Superuser.apk
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Then just proceeded with another unroot and factory reset.
I know, this is very old but... Nobody said thanks, and i really needed to remove the FrEaGiN application, i tried everything but this solution was the only one wich helped me out, thank you!
dabigserver said:
I know, this is very old but... Nobody said thanks, and i really needed to remove the FrEaGiN application, i tried everything but this solution was the only one wich helped me out, thank you!
Click to expand...
Click to collapse
I'm with you; not trying to dig up an old thread, but there's no "Thanks" button and I need to express my gratitude as well... thank you ^Fs! =)
Easier to flash stock rom from odin goodbye root.
Sent from my GT-I9000 using XDA App
THANK YOU
^Fs said:
Found a fix. Had to re-root and remove it with the following code in the phone's terminal application:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm Superuser.apk
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Then just proceeded with another unroot and factory reset.
Click to expand...
Click to collapse
Thank you for posting this info. This was a needle in a hay stack. I did not want to ODIN back and I needed Superuser removed from my device for the company Zenprise app. Does not work on Rooted phones.
faldiin
very useful, I saved it for the future. If any app gets hard to eliminate, now i have the solution, thanks
Yeah, you can also use Titanium Backup or any of the other "Uninstallers" around.
And how to only remove Superuser data?
I mean, I want Superuser to ask me again if I grant or not superuser-permision.
I need this because I have in Superuser 5 times Titanium Backup.
All has the same id but only one has the Titanium Backup icon and the other doesn't.
And if I try deleting the app from the list... the app just go to "Denied" but still there.
So, I want to delete the whole data so I get a clean list of apps.
Thanks a lot!
pepemosca said:
And how to only remove Superuser data?
I mean, I want Superuser to ask me again if I grant or not superuser-permision.
I need this because I have in Superuser 5 times Titanium Backup.
All has the same id but only one has the Titanium Backup icon and the other doesn't.
And if I try deleting the app from the list... the app just go to "Denied" but still there.
So, I want to delete the whole data so I get a clean list of apps.
Thanks a lot!
Click to expand...
Click to collapse
Try going into Superuser and deleting what you want. Or simply change it to granted
Sent from my GT-I9000 using xda premium
PaulN543 said:
Try going into Superuser and deleting what you want. Or simply change it to granted
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
It did work when I deleted Supeuser data from Settings>App>All.
Thanks for your idea... but that did not work.
Just had a thought. Re-root your phone then try using a root explorer to remove it from /System/apps.
Sent from my GT-I9000 using xda premium
Help
^Fs said:
Found a fix. Had to re-root and remove it with the following code in the phone's terminal application:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm Superuser.apk
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Then just proceeded with another unroot and factory reset.
Click to expand...
Click to collapse
Hi, I know this was posted a long time ago but I was wondering if you could help me. I bought a rooted Sprint evo a while ago and now I can't unroot it. I can't uninsured Superuser and it's not even listed in my downloaded apps. Do you know of anyway that I'd be able unroot?

[Q] adb remount

Hi guys,
sorry if my english isnt so good...
i'm in trouble with ADB..
i want to upgrade my swype keyboard on my NEW M1 rom eu....i got the 1.58 and i want to try the 1.60..
i found a thread on this forum with commands for upgrading the swype like this way:
Code:
adb remount
adb shell
su
pm list packages -f | grep swype
rm /system/app/<restOfApkPathFoundInAboveCommand>
pm uninstall <value after apk= found in result of 2 commands above>
exit
Install normally. If you want the apk in the rom:
adb push <newSwype.apk> /system/app/<newSwype.apk>
adb remount
adb shell
pm install <newSwype.apk>
(found here-> LINK)
I'm stuck at the beginning:
Code:
C:\android\tools>adb devices
List of devices attached
9000ec2a228b device
C:\android\tools>adb remount
remount failed: No such file or directory
my phone is rooted and in debug usb mode..I dont understand how can I go ahead...
what can I do?
thanks
ivan
Same here.
gbates said:
Same here.
Click to expand...
Click to collapse
oh..i'm not the only one! : >
we need to find the solution...but it's not easy..
are u using the NEW M1 rom too?
Rooting doesn't automatically give you remount permissions AFAIK.
i just use this command
Code:
adb push test.txt /sdcard/test.txt
and the copy is ok....i found the file in the sgs sdcard...
The command adb remount is for the /system directory (for set write permission) .... i think it cant find the directory /system on the phone......why?!?!
danmullen said:
Rooting doesn't automatically give you remount permissions AFAIK.
Click to expand...
Click to collapse
mmmm what do u mean? i need to do something else? thanks
Are you using the internal ext2 lagfix? I think that causes problems with the adb remount command. It doesn't work for me either.
Same results using a different ROM?
psychedelic'd said:
Are you using the internal ext2 lagfix? I think that causes problems with the adb remount command. It doesn't work for me either.
Click to expand...
Click to collapse
No lagfix installed at the moment..i installed lagfix when i was on M2 but i think that reflashing removed the lag fix...is it right?
harold4 said:
Same results using a different ROM?
Click to expand...
Click to collapse
Not yet but i think i'm gonna try it this afteroon if i dont find a solution.
Sent from my GT-I9000 using XDA App
adb remount as well
Trying to remap hard keys, adb remount along with push and pull do not work. Depending on whether im in shell or not I get no such file or directory or file not found errors. I can change into directory of each of the folders im trying to work with, and look at the file but I can't push it from my tools folder(locally) or pull it from the system folder. Every tutorial I see has adb remount command first, which fails every time.
Samsung Fascinate
Blackhole-build your own rom
(also tried on jt's latest rom, same issue
Crazy
I'm having the same issue here too. I'm trying to get a custom boot screen on my rooted Samsung Infuse and I've tried every way I can think of and it wont take. Clockworkmod says successfully installed, but its not. Soon as I reboot I see the At&T stock boot. I've fixed all of my permissions and still no luck.
So I saw a solution to do it via adb by typing "adb remount" and I get the same thing u guys are getting. I've got a headache now. Done all I could, even typing "shell", "su", that all goes well then when I tried to push it "adb push bootanimation.zip system/media" I get adb: not found. Smh, is it a device issue?
i think ive got the solution
flash a new kernel..................................worked for me................

[Q] Trying to use adb to mount /system as Read/Write and it's not working.

Currently I'm trying to gain access to /system and mount it as read/write. I've tried using
adb shell
mount -o rw,remount /dev/block/mtd3 /system
Click to expand...
Click to collapse
but it's not working. It says nothing afterward. I've noticed that it now says "sh-3.2#" instead of just "#" or "$" as it used to... Could this be the problem? What does it mean?
This is what I see:
C:\Users\Sam>cd C:\android-sdk-windows\tools
C:\android-sdk-windows\tools>adb shell
sh-3.2# su
su
sh-3.2# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Help?
Just typing adb remount (while not in shell) will mount system read/write. The other command is for terminal on the phone mostly
And you won't get any confirmation but an echo
Sent from my HERO200 using XDA App
danaff37 said:
Just typing adb remount (while not in shell) will mount system read/write. The other command is for terminal on the phone mostly
And you won't get any confirmation but an echo
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Hopefully not thread-jacking but I have a similar problem. I get:
remount failed: Operation not permitted.
Now what?
Sounds like adb isn't granted su permissions. Adb shell, do you see a # prompt? If not, type su, then watch your phone to allow. Then type exit, then adb remount
Sent from my HERO200 using XDA App
danaff37 said:
Sounds like adb isn't granted su permissions. Adb shell, do you see a # prompt? If not, type su, then watch your phone to allow. Then type exit, then adb remount
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Yup, already did all that. Still no dice. Wtf, right?
open the superuser app and 'forget' adb to redo it maybe?
I did get some kind of error that set something about root access not being allowed in the production version of adb/sdk or something? I'll have to reproduce that error so I can post it here.
Phateless said:
I did get some kind of error that set something about root access not being allowed in the production version of adb/sdk or something? I'll have to reproduce that error so I can post it here.
Click to expand...
Click to collapse
Found another thread on another board. I just flashed amon ra's recovery and booted up from there, and it appeared to let me copy!
But then it wouldn't let me cd to system/app. It let me cd to system, but not to app. Weird... I booted back up and there's no evidence of the "copied" apk, anywhere.
SOOOO confused now...
Wait...what rom are you on?
Sent from my HERO200 using XDA App
danaff37 said:
Wait...what rom are you on?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
OEM 1.6, Androoted and overclocked. That's it.
You may need to update busy box. Our try a third party rom
Sent from my HERO200 using XDA App
danaff37 said:
You may need to update busy box. Our try a third party rom
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
But I need the oem rom to receive the OTA update to Froyo, lol. I have busybox through titanium backup but maybe i should download it on my own. Available in the market, correct?
For now I'm going to flash the tmus rom (ota update cm6 remix) to see if this tmo froyo thing is even worth the trouble. Oy vey...
I bet cm6 will still beat out your official update
danaff37 said:
I bet cm6 will still beat out your official update
Click to expand...
Click to collapse
Can your rom beat up my rom?
Now I'm not trying to be like that. Lol just saying. I installed it on my buddy's mt3g and he loves it. Runs smooth as butter.
Sent from my HERO200 using XDA App
Haha, I know, I just couldn't resist.

voltage control settings not sticking on boot.

I have phoenix with setirons kernal I believe 1.5.6, and have voltage control. Each time I go to save as boot setting and.reboot, it goes back to stock. The newest voltage app doesn't shoe all the frequencies this one.does either. The one im running is 2.0 rc2. Thanks
Sent from my SGH-I897 using XDA App
Remount system as r/w. Then using Terminal Emulator run:
Code:
su
chmod 777 /system/etc/init.d
Tell me how this goes (I didn't include the remount command, as it seems to differ among phones/ROMs or something, you can remount the system as r/w using SGS Tools, Super Manager, or similar apps). You can also run the chmod command from adb.
Alright. Will do when I get home!
Sent from my SGH-I897 using XDA App
GGXtreme said:
Remount system as r/w. Then using Terminal Emulator run:
Code:
su
chmod 777 /system/etc/init.d
Tell me how this goes (I didn't include the remount command, as it seems to differ among phones/ROMs or something, you can remount the system as r/w using SGS Tools, Super Manager, or similar apps). You can also run the chmod command from adb.
Click to expand...
Click to collapse
Omg you're a genius! Thanks soooo much!
Sent from my SGH-I897 using XDA App
goob1284 said:
Omg you're a genius! Thanks soooo much!
Sent from my SGH-I897 using XDA App
Click to expand...
Click to collapse
No problem

[IDEA][Vivid] Possible Tethered Perma-Temp-Root Solution (Devs only!)

So, I just got this phone.
Not having permanent root is killing me, but I think this should solve the issue of disappearing su and busybox.
The general idea is to move all our root binaries to /data/local/bin, and remount /data to accept suid binaries (the 'su' binary requires sticky bit, aka chmod 4755). After you set that, you bind mount /system/xbin to /data/local/bin. Bind mounts stay in memory, and aren't cleared like mods to /system are.
This won't solve the issue of stuff in /system going away, but it will solve the issue of having your root utilities go away after a short amount of time.
This section would be run from the desktop PC on the first time of 'rooting' the phone:
Code:
adb install superuser.apk
adb push zergRush /data/local/tmp/zergRush
adb shell "chmod 755 /data/local/tmp/zergRush;/data/local/tmp/zergRush"
adb shell "mkdir /data/local/bin"
adb push su /data/local/bin/su
adb push busybox /data/local/bin/busybox
adb push temproot.sh /data/local/tmp/temproot.sh
adb shell "chmod 755 /data/local/tmp/temproot.sh;/data/local/tmp/temproot.sh"
and the 'temproot.sh' file would contain:
Code:
#!/system/bin/sh
mount -o remount,suid /dev/block/mmcblk0p34 /data
chmod 4755 /data/local/bin/su
chmod 755 /data/local/bin/busybox
cat /system/xbin/dexdump > /data/local/bin/dexdump
cat /system/xbin/wireless_modem > /data/local/bin/wireless_modem
/data/local/bin/busybox mount --bind /data/local/bin /system/xbin
on a reboot, all you'd have to run from the desktop PC would be:
Code:
adb push zergRush /data/local/tmp/zergRush
adb shell "chmod 755 /data/local/tmp/zergRush;/data/local/tmp/zergRush"
adb shell "mount -o remount,suid /dev/block/mmcblk0p34 /data"
adb shell "/data/local/bin/busybox mount --bind /data/local/bin /system/xbin"
and you'd be back to working.
let me know what y'all think, hopefully this solves something or isn't something already been done before
Thanks for looking!
EDIT:
upon discussing some other possibilities with a friend, he suggested "why not have this all happen on-device?"
it appears there may be a way to temproot/do the above all on the device without the need for a PC!
(dev details: adbd listens on localhost:5037, run zergrush then take adb client on phone connect to adbd on phone and run the temproot scripts)
exciting stuff here, folks!
This should work. If the device is killing any mods in the system folder just move it to the data folder. Just install superuser in the data/app.
Sent from my Sensation using XDA App
Sounds like an interesting idea. I've played around with moving su to different places with no luck, but I hadn't tried moving everything to /data. I'll try it and see if it helps!
Sent from my HTC PH39100 using XDA App
This works for my phone-- I've rooted it with this method, and rebooted then ran my 'on reboot' script, and the phone is good to go again.
Right now I'm working on a method to do all this on-device and at boot.
The process should work, since the zergRush exploit restarts the adb server as root, so in theory connecting to the adb server from the phone itself should give it root privileges.
Once you've got root privileges, the app can decide whether it's been 'rooted' before or not, and apply the proper script (either install busybox and su, or just re-mount the necessary partitions).
Hopefully this all makes sense, I'll try to make a proof of concept sometime soon... but I'll probably make a windows GUI first.
What about running a script that gives root on each boot
Sent from my Sensation using XDA App
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Script Manager by devwom
Pirateghost said:
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Click to expand...
Click to collapse
Sent from my Sensation using XDA App
Pirateghost said:
you might talk to the guys that wrote the visionary root app that we used on the G2/desire z. i think it was paul obrien. it was an app that would do this on reboot for you.
Click to expand...
Click to collapse
Speaking of visionary, has anyone tried that route yet?
malickie said:
Speaking of visionary, has anyone tried that route yet?
Click to expand...
Click to collapse
Tried Visonary no go.
So nice of thecubed to up and leave the revo community and not say anything. Great job thecubed!
I've been Supercharged and Gingervolted!
RootedUser said:
So nice of thecubed to up and leave the revo community and not say anything. Great job thecubed!
I've been Supercharged and Gingervolted!
Click to expand...
Click to collapse
Why you mad 4 bro?
Sent from my HTC PH39100 using xda premium
Not mad at all! "Bro"
I've been Supercharged and Gingervolted!

Categories

Resources