What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Godmode Script

KpAtch3s

Member
Since sapphire doesn't have a godmode script I decided to attempt creating one myself, but what I'm doing doesn't seem to work properly.

I know that chmod 777 [some directory] gives permissions, but my script gets permission denied.

In fact this pretty much Pete's script i got off BB. Anyway, I used adb to push it to /system/xbin and like I said earlier, permision denied. Any ideas?


#!/system/bin/sh
# godmode - Temporarily Allows Editing Of Any File

mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
chmod 777 /system/build.prop
chmod 777 /system/app
chmod 777 /data
chmod 777 /data/app
chmod 777 /data/app-private
chmod 777 /data/dalvik-cache
chmod 777 /data/data
 
Since sapphire doesn't have a godmode script I decided to attempt creating one myself, but what I'm doing doesn't seem to work properly.

I know that chmod 777 [some directory] gives permissions, but my script gets permission denied.

In fact this pretty much Pete's script i got off BB. Anyway, I used adb to push it to /system/xbin and like I said earlier, permision denied. Any ideas?

Possible problems:
1). You need to run the script as root, by typing su first
2). The script itself needs to be marked executable (chmod 755 or 777), you only need to do this once.

Code:
su
chmod 755 /system/bin/godmode
godmode
 
Last edited:
Back
Top