yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Player 4.0, 5.0] roustabout:
per session disable the led lights on the cap keys

Genuinely ugly hack. The file that controls the touchkeys is nonpullable by ADB and noneditable by vi.

But i screwed up the first time I tried editing it (after chowning it and chmodding it so I could look inside it) and accidentally commited the change.

Whereupon - the touchkeys went dark! Win!

rebooted the device and up they lit again. I think the firmware rewrites the directory in question at every boot.

Please note: I *think.* I do not know.

This script basically writes garbage data to the file, whereupon your device can no longer do anything with it, and your lights are off.

I like it muchly, but your mileage may vary and if it makes all of you into two-headed warthogs just for running it, you should contact my attorneys, Dewey, Cheatam and Howe.

Also, although I tried script this, the scripted variant does not seem to work.

Don't know why.

I need to manually ADB get in and issue these commands:

c:\ adb shell

$ su

# chown root /sys/devices/virtual/sec/ts/touchkey_led

# chmod 644 /sys/devices/virtual/sec/ts/touchkey_led

# echo 0 > /sys/devices/virtual/sec/ts/touchkey_led

I had hoped to put them all in a script, like this:

#!/system/bin/sh

chown root /sys/devices/virtual/sec/ts/touchkey_led

chmod 644 /sys/devices/virtual/sec/ts/touchkey_led

echo 0 > /sys/devices/virtual/sec/ts/touchkey_led

and recommend that folks run it using gscript from the market.

However, as of now, it can't be run from gscript (and yes, I built the script out on a nix box and dealt with the linefeed problem.)

Is sudo needed / useful in Android shell scripting?
[Samsung Galaxy Player 4.0, 5.0] aillez:
Yes

when Command prompt appear you just need to type this

cd C:\Program Files (x86)\Android\android-sdk\platform-tools\

and then you must can use adb command.

hope this helps.
[Samsung Galaxy Player 4.0, 5.0] roustabout:
I don't know if there's any value to this or not, but I put an 8g card in my yp-g70 this morning and did a

dd if=/dev/block/mmcblk0 of=/dev/block/mmcblk1 to get a complete

snapshot of the state of play on the yp-g70.

I need to investigate a little more - the disk includes some readable and interesting stuff that a linux box can see, but I think there's quite a few partitions that are not visible to mount in win or lin - I'm obviously very curious about where /sys lives, and don't think I have it copied out yet.
[Samsung Galaxy Player 4.0, 5.0] dragon6767:
Anyone can confirm that successfully rooted US model YP-G70CW/XAA with combination of zergRush (which version) and SuperOneClick 2.1.1. If yes, do you have any negative consequence.

Thanks, Dragon
[Samsung Galaxy Player 4.0, 5.0] roustabout:
The model I rooted is the retail US model, model YP-G70CWY/XAA

I used zergRush, the most current one linked from my post 2 days ago, and copied over su.apk myself. If SuperOneClick is basically a way to blow in su.apk, then it will probably work also. I found it simplest to just follow the instructions here, but that's because I have the SDK installed already.
[Samsung Galaxy Player 4.0, 5.0] docfreed:
Yes, used Zergrush followed by SuperOneClick 2.1.1 - nothing negative after several days. Also nice because you can now use NoLock and get rid of the annoying "swipe to unlock" screen.

Also I notice that after the initial charge cycle, the battery life is excellent.
[Samsung Galaxy Player 4.0, 5.0] peterguk:
Problem firmware updating.

****Resolved....****
[Samsung Galaxy Player 4.0, 5.0] sc0rp1n0x:
I had tried to flash a different firmware onto mine but its now stuck in recovery mode and i can't do anything. If i go to best buy with this, would they exchange it?

---------- Post added at 08:06 PM ---------- Previous post was at 07:44 PM ----------

What country model do you have, US, or international?
[Samsung Galaxy Player 4.0, 5.0] roustabout:
"I had tried to flash a different firmware onto mine but its now stuck in recovery

mode and i can't do anything"

Don't tell them how you did it. They should be fine. I just pulled the file system off of my working unit today. I"d like to see if we can't at least get a recovery flash disk working for these devices. I saw a ROM for these posted at Woot, but flashing it left me where you are, with a unit that would not get through recovery.

But i may just shrug, send it to Samsung and let them re-image it.

Eventually they should realize that it's costing them more to fix the units for us than it would be to support rooting.

And my god, I thought iTunes was a pOs, but Kies? gaaaaaaaaaaaaaaah.

The advantage, of course, is that you don't have to use Kies for antyhing, and you have to use itunes for everything on a touch.
[Samsung Galaxy Player 4.0, 5.0] jester450:
For all who has root, take a look at this post.

http://xdaforums.com/showthread.php?p=18739721

Run it on my SGS2 and tried on on this player today. It's amazing how responsive this player is. Battery seems to be much better too.

Sent from my YP-G70
[Samsung Galaxy Player 4.0, 5.0] docfreed:
Did you run it on a Samsung Galaxy Player 5? SGS2 is a phone if I'm not mistaken.
[Samsung Galaxy Player 4.0, 5.0] jester450:
Run it on both. First tried it on the SGS2 and then on the YP-G70

Sent from my SGH-T989
[Samsung Galaxy Player 4.0, 5.0] sc0rp1n0x:
There is a way to root using zergRush.

http://xdaforums.com/showthread.php?t=1141893&page=18

---------- Post added at 08:39 PM ---------- Previous post was at 08:35 PM ----------

http://xdaforums.com/showthread.php?t=1141893&page=18

Root method for YP-G70 w/ 2.3.5
[Samsung Galaxy Player 4.0, 5.0] iJimaniac:
So, I got my device (4.0), enable usb debugging, connect it to pc then hit "connect storage to pc". I go to cmd, change the directory to where adb.exe is, Type in "adb push C:\(location of zergRush)\zergRush/local/data" and it does something (I have no idea what). I then type in "adb shell" and it gives me "device not found"? Anything I am missing?
[Samsung Galaxy Player 4.0, 5.0] BXWolf92:
You don't "connect storage to pc", you just need to plug the player into the computer with usb debugging enabled.

Second, there is a space between zergRush and the location in the phone where you are pushing it to, which should be "/data/local"
[Samsung Galaxy Player 4.0, 5.0] iJimaniac:
I tried it and now I get the "error: device not found" error on the "adb push" step.

Should my sd card not be mounted?

Should I get a notification or anything from windows when I plug it in? Because I don't.
[Samsung Galaxy Player 4.0, 5.0] chrisgtl:
Install the latest Samsung drivers without the phone plugged into PC.

I'll try find them for you now.

This is the page you want, make sure you uninstall any Samsung drivers you already have first (if any at all)

http://xdaforums.com/showpost.php?p=11498043&postcount=1
[Samsung Galaxy Player 4.0, 5.0] dragon6767:
adhoc wifi

Does anyone can recommend application or method to connect rooted G70 to adhoc wifi. I found a tread about adhoc flash zip but I'm not sure that will work on G70

Thanks

dragon6767
[Samsung Galaxy Player 4.0, 5.0] gotok:
The wpa_supplicant file in the following link works for my Froyo G70CW:

http://www.blogsolute.com/fix-connect-samsung-galaxy-s-to-ad-hoc-network/11907/

I haven't tried, but I don't think it works for Gingerbread.
[Samsung Galaxy Player 4.0, 5.0] skategeezer:
Can't you use Kies to reload your firmware. I know that non-US Samsung phones are updated that method.
[Samsung Galaxy Player 4.0, 5.0] iJimaniac:
So, it's rooted! Typping on it right now. Does anyone know of a good overclock app? (I tried overclock widget but can't figure out how to overclock, just underclock?)
[Samsung Galaxy Player 4.0, 5.0] roustabout:
@sgeezer: I could not reload my firmware with Kies, nor could I find a viable one. The new unit requires cryptographically signed firmware to boot. I was able to find Samsung firmware, but not digitally signed Samsung firmware that would boot my device.

@ijim: To overclock your device, you need an overclockable kernel. A kernel is one of the core things that Samsung has to digitally sign before it can boot this device. AFAIK, there are no flashable kernels for these yet, and you will almost certainly brick your unit if you try to flash an O/C kernel to it.

My advice is not to try o/cing until you have more experience in a safer development/testing environment. I'd actually recommend the nook color, except that it's so safe that it made me pig-ignorant about risks. The NC is essntially unbrickable - it will always boot from a bootable SD and there are clockwork images out there of the stock OS that you can reflash with if you get into trouble.

Very, very few devices are that nice for rooting. And it's cheap, 135 for a remanufactured unit.
[Samsung Galaxy Player 4.0, 5.0] jeffc83:
In regards to the overclocking and risk taking, I completely agree. I have done a lot of modding on all of my devices but not before I at least have cwm installed.

The one thing I do with the YP-G70 is use setcpu and set it to "ondemand" instead of "conservative". I believe that the default "conservative" setting is great for battery life but have not noticed any decrease when using the "ondemand" option. To me, pages and videos load faster and the device just runs smoother that way. At least until we get a few devs working on this device...
[Samsung Galaxy Player 4.0, 5.0] se7e:
I need help on rooting my device. I'm currently running on windows xp and the instruction on win 7 unfortunately does not apply.

edit: ok I got zergRush to run. Now my problem lies with superoneclick being stuck at step number 6. hmm
[Samsung Galaxy Player 4.0, 5.0] rapha.lira:
Hi, I update mine to gingerbread but I missing some options in music player. In froyo there's option to auto adjust the volume, can I have this in gingerbread ?
[Samsung Galaxy Player 4.0, 5.0] se7e:
ok for those whos having a hard time (like me) this is a useful application.

http://xdaforums.com/showthread.php?t=1319653 thanks for DoomLord :)
[Samsung Galaxy Player 4.0, 5.0] dok2005:
hey sorry im tired but can someone post a youtube video of this thank u that will save me from doing thisprocess more than once just in case im missing something

also to anybody who had rooted their device have anybody tried putting touchwiz 4.0 on their device with TB
[Samsung Galaxy Player 4.0, 5.0] jeffc83:
It sounds like you are trying out Gingerbread. Remove your USB cable then plug it right back in...that got me passed step 6 when I tried GB.
[Samsung Galaxy Player 4.0, 5.0] se7e:
well... after trying some other experiment, I've rooted my player trying different method (see my previous post) :)
[Samsung Galaxy Player 4.0, 5.0] dok2005:
hey wats the password to unzip the files from samfirmware
[Samsung Galaxy Player 4.0, 5.0] tapioco2000:
use http://xdaforums.com/showthread.php?t=1319653

it's one click root, so you don't need any video.
[Samsung Galaxy Player 4.0, 5.0] jester450:
Let's see if we can get our own forum...

http://xdaforums.com/showthread.php?t=1301121

Go here a post your vote.
[Samsung Galaxy Player 4.0, 5.0] gotok:
I'm a real novice, so I have a couple of questions on the first and last steps:

(1) make sure u have installed adb drivers for ur device

(6) skip "PC Companion Software" prompt on device

On step (1), where do I get the adb drivers for my device, YP-G70CW?

On step (6), does this prompt show up on the YP-G70, and what action needs to be taken on the YP-G70 to "skip" it?

thanks...
[Samsung Galaxy Player 4.0, 5.0] tapioco2000:
1) for adb drivers simply install android sdk (adb is in android tools)

6) pccompanion:sonyericcson=kies:samsung so if you haven't a SE phone you haven't pc companion
[Samsung Galaxy Player 4.0, 5.0] MastaMilo:
I have the 5.0 running 2.3.5 but i can't figure out how to use the zergrush root. I unzipped it only found one file, than what do i do? And what is android sdk?
[Samsung Galaxy Player 4.0, 5.0] COast94:
which setting do i use? i installed but it doesnt seem to change in terms for responsive speed.
[Samsung Galaxy Player 4.0, 5.0] glenb77:
According to the script, it would be 5,6 or 7 based on the memory. I find it best with 7.
[Samsung Galaxy Player 4.0, 5.0] jester450:
I'm not the one that developed this script. This is bar far one of the BEST tweaks for ALL Android devices made by zeppelinrox.

The original thread. What does it do? Read the post. In short, makes the YP-G70 much snappier and responsive.

This is assuming you're already rooted.

This is assuming you have the latest version of busybox installed.

Go to the market and download Script Manager here

Download the latest V6 SuperCharge script here. Once downloaded, move to a different location or remember the downloaded location.

Open up Script Manager. Navigate to the downloaded script. Check Run as root and click start

Scrolling speed options...

I use 1(fast). Tap the grey box at the bottom to bring up your keyboard and type 1. Press volume down to confirm.

Note: As long as you don't use the back button, you can keep the keyboard on the screen.

Integrated?

Type Y and press volume down to confirm.

Is Home is Locked in Memory?

I use No. Nothing to type, just press volume down to confirm.

Press Return Key... and Come Get Some!!

Just press volume down to confirm.

Please enter option [1-30]

Playing around with the settings, I find 7 to be the best option. Type 7 and press volume down to confirm.

Press Return Key...

Press volume down to confirm

Do you want to SuperClean and ReStart?

Type Y and press volume down to confirm.

Your device should now restart like normal. You should notice the difference right away. The key word being SHOULD :)
[Samsung Galaxy Player 4.0, 5.0] se7e:
I've tried that one out and it does seem to work :)

OK question on the upgrade. Do still guys have a landscape mode on the home screen? Mine does not work.
[Samsung Galaxy Player 4.0, 5.0] XBlackChaosX:
Seeing as the 4 inch version YP-G1 has the same specs except for screen size and battery can i try this when i get my samsung galaxy s wifi 4?
[Samsung Galaxy Player 4.0, 5.0] jester450:
Should work just fine, so long as you have root.
[Samsung Galaxy Player 4.0, 5.0] XBlackChaosX:
Oh no sorry I wasn't clear I meant if it's possible to root the galaxy s player 4?
[Samsung Galaxy Player 4.0, 5.0] roustabout:
Capacitive Button Lights Killed and Scriptable

My manual hack for disabling the bright lights on the buttons is now a running script.

HOWEVER: it seems as if there are some issue with the supercharge script discussed above. I'm seeing inconsistency in the behavior after installing the v6 script and updating busybox.

I would love it if folks running the v6 script took a look at this script also to see what your experience is.

So far, it seems that if you interact with your media player before the lights go out on their own, you prevent my script from running if you have the v6 script installed. If you wait until everything is fully running, the lights get killed off and you're good. I also just threw a boot loop with the V6 script. It was not a fatal, reinstall everything boot loop, but I'm not happy with what I saw. Since I've been running without the cap LEDs for a few days and no boot loops, obviously I'm curious about V6 - advice on uninstalling it, short of doing a device reset, would be appreciated.

Doing this assumes you have a fair amount of experience with your device. You are remount /system as read-write. You are then fiddling around. You may need to restore to stock if you don't get this just right. Proceed with caution.

$ and # are prompts given by the ADB shell once you're issuing commands on the device. Don't type them. They let you know if your ADB shell is in user mode ($) or root mode (#)

So,

0 you have rooted your phone

1 install busybox

2 remount system r/w and symlink busybox to ash. The script requires that there be an ash in /system/xbin, so

adb shell

$su

#remount -o rw,remount /dev/block/mmcblk0p13 /system

#ln -s /system/xbin/busybox /system/xbin/ash

3 download http://www.mediafire.com/?vy7did6ulb1vrkv - the ledkill script, as a zip file

4 unzip it and push it to your player with ADB. The owner of the script needs to be root. Samsung plays games with ownership of files on the /mnt/sdcard, so I find it best to push the script to /system/xbin also:

adb push ledkill /system/xbin/ledkill

5 Change ownership and permissions - root owns it, it is executable:

adb shell

$su

#cd /system/xbin

#chown root ledkill

#chmod 4755 ledkill

6 install script manager, browse to ledkill, and open it as a script. Set ledkill to run as root and at boot time. Save the settings.

Test it - reboot.

Once the UI finishes loading, the bright white LEDs go out and stay out. A big advantage for me. If you want them back, disable running the script at boot and restart your player.

The script is very simple:

#!/system/xbin/ash

chown root /sys/devices/virtual/sec/ts/touchkey_led

chmod 644 /sys/devices/virtual/sec/ts/touchkey_led

echo 0 > /sys/devices/virtual/sec/ts/touchkey_led

the touchkey_led file is rewritten by the firmware at every boot. This script basically breaks the file, and with the file non-functional, so are the lights.

I can not copy the file, only munge it, hence, no way to copy it off somewhere intact, then put it back and avoid the reboot process.
[Samsung Galaxy Player 4.0, 5.0] Spectre-7:
After upgrading to 2.3.5 Gingerbread, my home screen no longer switches to landscape. After a bit of research, it turned out that this is an intended feature on Samsung's part and not a bug. Why'd they decide to do this? God only knows.

Some other differences I've noticed:

The haptics (rumble) are almost entirely gone, and that might be a bug. For instance, after long-pressing an icon on the home screen, the device used to rumble to let me know I was now moving the icon; this is no longer the case.

The compass seems a bit less reliable after the update (it's jerky, and occasionally jumps around erratically), but the GPS lock-on takes a fraction of the time it used to.
[Samsung Galaxy Player 4.0, 5.0] docfreed:
Will it be simpler to do one of the following:

Using Root Explorer (or similar) just write a zero-bite file to touchkey_led so that the light can be turned off?

Or freeze the touch_key led by renaming it?

Just wondering
[Samsung Galaxy Player 4.0, 5.0] roustabout:
"Using Root Explorer (or similar) just write a zero-bite file to touchkey_led so that the light can be turned off?

Or freeze the touch_key led by renaming it?"

Either would be simpler - but I was unable to do either.

Perhaps I need a different chmod command? My impression is that this file is aggressively managed by Samsung to be hard to change, per a Google directive that the cap buttons always be illuminated.

I know it's regenerated with each boot, so any changes to it don't persist across a boot cycle.
[Samsung Galaxy Player 4.0, 5.0] docfreed:
Just thinking out loud here:

I tried to use some apps from the Market like Leds Hack and Color Tweaks - neither worked but Color Tweaks gave me a message of "could not access build.prop". Do you think that somewhere in build.prop there's a pointer to the led's?

I've also looked in settings.db (using the Sqlite3 editor) - nothing about the led's there but again, I wonder if adding a line somewhere in settings.db with a value of "false" could turn the lights off - I just don't know the proper syntax.
[Samsung Galaxy Player 4.0, 5.0] tapioco2000:
Great news! The new version of skype on the market works like a charm with gingerbread!
[Samsung Galaxy Player 4.0, 5.0] roustabout:
@doc: I hoped build.prop would have a couple of things in it which, in Gingerbread, it doesn't. The first thing I looked for was screen rotation (and it may be that I need to look at a vanilla rather than a Samsung gingerbread build.prop - it would be oh-so-nice to enable screen rotation for the homescreen.)

The other was any reference to the keys. Didn't find anything; here's what I tried:

# cd /system

# cat build.prop | grep led

# cat build.prop | grep light

# cat build.prop | grep touch

# cat build.prop | grep cap

# cat build.prop | grep key

ro.build.tags=release-keys

ro.build.description=YP-G70-user 2.3.5 GINGERBREAD UEKI8 release-keys

ro.build.fingerprint=samsung/YP-G70/YP-G70:2.3.5/GINGERBREAD/UEKI8:user/release-keys

keyguard.no_require_sim=true

I stumbled onto my hack after seeing documentation for how the led hack script works, and looking at the directory it ran in. Its targets simply don't exist on the media player, but I found a target which exists and gives me what I want in terms of the LED behavior.
[Samsung Galaxy Player 4.0, 5.0] docfreed:
OK, I tried several of those - no joy at all. This light thing is a PITA cause I can't read ebooks unless I use Moon Reader in autoscroll mode (does work well tho).

BTW, I use Zeam launcher - rotates nicely around 360 degrees - no issues at all.
[Samsung Galaxy Player 4.0, 5.0] roustabout:
well, from the command line or from my script, you can douse the lights - take ownnership of the file, tell it it's writeable and then corrupt it. Until you power down next (not shut off the screen, but do a reboot) the LED lights are out.

What was really fun figuring out was that I absolutely had to invoke ash, not sh, to script the behavior.

As I mentioned, the device was quite stable for several days with that file being tampered with, and it's recreated at boot so AFAICT, it's a pretty safe mod. I'll look at the alternate launchers, thanks for suggesting that.
[Samsung Galaxy Player 4.0, 5.0] COast94:
Hello.. is there a way to completely undo/wipe root/customization/non-factory files?

I was looking around with script manager.. seems like my device is loaded folders/files.

do I simply factory reset? or does flashing completely rollback to 'factory' state?
[Samsung Galaxy Player 4.0, 5.0] roustabout:
Restoring will restore you to absolute stock, unrooted.

(Power button and volume up at boot time.)

Before you do that, download Titanium Backup and put an SD carrd in your player. Titanium can back up your apps and settings (batch mode) and you can selectively restore once you re-root. Titanium backs up only to SD card as far as I know (although the player handles the user-accessible storage very strangely; titanium might write to it, if asked, since it's called /mnt/sdcard by the OS... when I backed up this morning, in case I need to get rid of V6 using a restore to default, I just tossed in an SD card rather than testing.)

---------- Post added at 06:31 AM ---------- Previous post was at 06:19 AM ----------

@doc: I just tried downloading Zeam, and it's saying it's not compatible with the media player. Grrr. I have a copy elsewhere, I think I can install from that.
[Samsung Galaxy Player 4.0, 5.0] docfreed:
Zeam is available right here: http://xdaforums.com/showthread.php?t=664149&highlight=zeam I am using Zeam 2.88.
[Samsung Galaxy Player 4.0, 5.0] roustabout:
@doc: hm. OK, I've tried all of the zeams I have access to (2.8.8, 2.9.2 and 3.1.6)

None supports home screen rotation on my device. I'd be interested to see your build.prop if you're willing to upload it.

are you using the 2.3.5 that was shipped on US devices, or an upgrade on a wooted or other vendor's pre-Oct 16 release date device?
[Samsung Galaxy Player 4.0, 5.0] docfreed:
I'm on 2.3.5 that came with a Galaxy 5 purchased from Best Buy about 3 weeks ago. I just PM'd you my build.prop, dated Sep 16th (came from System directory) - let me know if this is the correct file.

I am on a rooted Galaxy - used Zergrush followed by SuperOneClick 2.1.1 per this thread.