Set permission in updater script - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

How to set permissions for a file or folder in the updater script.
Any one can tell the script...
I know that it is
set_perm(xxx,xxx,xxx,xxx)
set_perm recursive(xxx,xxx,xxx,xxx)
I need to know the value that is placed as x. What is the value for setting permissions rwrrr.

I'm not sure, but i suppose numbers have to be placed.
rwx is 7 (binary - 111)
rw- is 6 (binary - 110)
r-x is 5 (binary - 101)
r-- is 4 (binary - 100)
**Men have become the tools of their tools**

I see in many things the number 777
Sent from my GT-S5360 using xda premium

What does the binary 777 means
Sent from my GT-S5360 using xda premium

I think it means to check all the boxes.

When we shift an app to system, we set the permissions to rw-r-r, i.e. 644. So 777 means rwx-rwx-rwx.
**Men have become the tools of their tools**

Thanks Guys....
Sent from Hyperio-CoD (mod.by.me)
Current Projects :
Xperia NxT MoD for GB.
Will be released in a.couple of days...

Related

[Guide] Expanding the limit of multitouch points (root needed)

Let's cut the crap. Seems like somebody on a Chinese forum figured out the way to apply the mod to MM2. I just translate it into English.
1. Download the attachment and unzip milestone2_more.ko to the root of sd
2. mount /system/ r/w
3. copy milestone2_more.ko to /system/lib/modules/
4. open terminal emulator
5. input the following command
su
chmod 644 /system/lib/modules/milestone2_more.ko
insmod /system/lib/modules/milestone2_more.ko touch_num=6
(the guy said if you choose a number greater than 6 the system will crash)
now you should get a 6-point-multitouch
original thread: http://bbs.gfan.com/android-1997547-1-1.html
Thank you soooooooo much! )))
Works but MT is still buggy...
oh my god.. thank you, it works.
5 is more than enough
OMG!! You made my day!
Sent from my A953 using XDA Premium App
Is this permanent? Or it'll go away when we reboot?
Sent from my A953 using XDA App
It will go away when you reboot, but its not a big deal to use the command again
Sent from my A953 using XDA Premium App
Just make a init.d script to load it up when the system boots and you won't have to worry about it again..
Just did this, but I think i wrote it wrong. Please correct me
I created a blank file and wrote inside it:
insmod /system/lib/modules/multitouchfix.ko (I replaced the name)
And saved the file as 99multitouchfix inside /system/etc/init.d/
I also fixed permissions for both files
Sent from my A953
Is it working Aragorn?
Thank you. I'll try it when I get home!
inheme said:
Is it working Aragorn?
Click to expand...
Click to collapse
Nope. The module works, but not the init.d script
you can use autostart from Market
AragornPE said:
Nope. The module works, but not the init.d script
Click to expand...
Click to collapse
Try this script:
Code:
#!/system/bin/sh
# Load 5 finger multitouch module
insmod /system/lib/modules/defy_more.ko
Also note that the first touch after reboot is delayed.
dangpzanco said:
Try this script:
Code:
#!/system/bin/sh
# Load 5 finger multitouch module
insmod /system/lib/modules/defy_more.ko
Also note that the first touch after reboot is delayed.
Click to expand...
Click to collapse
I'll try that as soon as my M2 wakes up, long day for it today =P
Actually,the patch is developed by korean , the XDA thread is http://forum.xda-developers.com/showthread.php?t=1162327
Autoload after reboot: copy install-recovery.sh to /system/etc and set rwxr-xr-x .
If you wanna change the touch point limit , open install-recovery.sh with text editor , change the number that follows "touch_num=". The range is 1~10.
My own test shows more than 6 touch points will NOT lead to system crash , but make it back to 2 points...orz. Since the same patch on D2/D2G/DEFY enable up to 10 points, why
m2 cound not
Ah, forgot to say , the autoload patch is ported from http://bbs.gfan.com/android-1997547-1-1.html
Neither autostart or init.d script worked. Going to try the install recovery
Sent from my A953
Install recovery didn't work either
Maybe I'm doing something wrong?
Sent from my A953
AragornPE said:
Neither autostart or init.d script worked. Going to try the install recovery
Sent from my A953
Click to expand...
Click to collapse
Did you set the permission properly,both milestone2_more.ko and install.sh.
All works fine, both the milestone2_more.ko and the install recovery, no problem at all, have 4 MT points now

[MANUAL] How to use S-Talk on ZSLPF

Hi !
For rooted device !
For ZSLPF Android 4.0.3 !
How to :
-Save your build.prop in /system/ (/sdcard/ for exemple)
-Copy new build.prop in /system/ rw-r--r--
-Backup youtube.apk and voicetalk.apk (if you have)
-Copy voicetalk.apk in /system/app/ rw-r--r--
-Reboot phone
-Enjoy !
Disclaimer :
Your device must be bricked, make a nandroid before !
S-voice : http://www.mediafire.com/?4vxkc43kema6moo
build.prop : http://www.mediafire.com/?1na010iwnlxze70
Don't worry, Thanks is free ^^
thanks for this... but why in development? and not lets say... apps and themes? or even in General???
edit: I requested that this be moved.....
Dont use a geneeal build prop. Just edit your own. Change device to GT-I9300
Sent from my GT-I9300 using xda premium

How to change atmel touchscreen sensitivity ?

I'm using aurora and I want the touchscreen to be a little sensitive and adjust it manually
Thks
Good question
Sent from my U8800 using Tapatalk 2
Try this with caution :
https://play.google.com/store/apps/details?id=br.shop4apps.touchscreenbooster.com
Sent from my U8800 using xda premium
But it says it's only for sgs....
Sent from my U8800 using xda premium
Look this:
#!/system/bin/sh
# Tweak Synaptics Touchsreen sensitivity, values 1 to 8, default=4
# Uncomment the following line and set your desired value.
echo 4 > /sys/module/synaptics_i2c_rmi_1564/parameters/sensitivity
You must create init.d folder with this file inside .Install scriptmanager apk.(Give it su permissions and run at boot.)
The second way is to find a patch named icsaddon2 .(you can install it via cwm recovery.After Look on init.d folder for a file 'synaptic '. and change with text editor the value from 4 to 7 or 8.(delete #)
I thing it will works.
U8800 using xda app-developers app
http://www.mediafire.com/?d2742g4zm4fg3da
Touch Screen Tune - Works with u8800
maneet21 said:
But it says it's only for sgs....
Sent from my U8800 using xda premium
Click to expand...
Click to collapse
I used it before.but that is your call
Sent from my U8800 using xda premium
is me or i dont see any difference.:S
gyankamp1 said:
Look this:
#!/system/bin/sh
# Tweak Synaptics Touchsreen sensitivity, values 1 to 8, default=4
# Uncomment the following line and set your desired value.
echo 4 > /sys/module/synaptics_i2c_rmi_1564/parameters/sensitivity
You must create init.d folder with this file inside .Install scriptmanager apk.(Give it su permissions and run at boot.)
The second way is to find a patch named icsaddon2 .(you can install it via cwm recovery.After Look on init.d folder for a file 'synaptic '. and change with text editor the value from 4 to 7 or 8.(delete #)
I thing it will works.
U8800 using xda app-developers app
Click to expand...
Click to collapse
That only works for synaptics screens.
Sent from my U8800

[TUTORIAL] How to set boot sound

You want to set a bootsound? Then here you go.
1- Download the attachment, Extract it.
Copy the bootsound to System/bin
2- Set permissions
x x x
x 0 x
x 0 x
3- Rename your boot sound in to android_audio.mp3 (Remember this file must be .mp3)
4- Set it's permissions to
x x 0
x 0 0
x 0 0
5- Go to System/etc and open init.local.rc
6- Check if those lines exist,
# Bootsound - Safe to Delete: Start
service bootsound /system/bin/bootsound
user media
group audio
disabled
oneshot
on property:init.svc.bootanim=running
# to correct timin
start bootsound
on property:dev.bootcomplete=1
stop bootsound
# Bootsound - Safe to Delete: End
If isn't just add.
7- If you need to know it's working, Restart your phone or Go to Terminal Emulator then Type su then type bootsound .
I only tried this in only a one rom. Cause I sent my phone to repair.
Try this and feedback.
Enjoy
Dont forget the edits to init_rc and build.prop
Yeah, I forget it. Thanks rohin
I will post it now.
Alright, anyone test it.
sent from my mango
ScatteredHell said:
Alright, anyone test it.
sent from my mango
Click to expand...
Click to collapse
Great work, but the sound starts too late on my x8. I use miniCM7 (7.1.0) with 2.6.29.6-nAa-14 kernel(cpu oc 748Mhz).
jagdtigger said:
Great work, but the sound starts too late on my x8. I use miniCM7 (7.1.0) with 2.6.29.6-nAa-14 kernel(cpu oc 748Mhz).
Click to expand...
Click to collapse
Sorry I tested it only on stock kernel. Maybe it's related to the kernel u use :thumbup:
Sent from using fundamental Particles π™
Working on GDX v030...
But sound plays for just 5-10 seconds
Sent from my X8 using xda app-developers app
Gogeta said:
Working on GDX v030...
But sound plays for just 5-10 seconds
Sent from my X8 using xda app-developers app
Click to expand...
Click to collapse
It depend on your sound file. Make it shorter. I doubt, u want to keep longer?
Sound file is 30 seconds
Sent from my X8 using xda app-developers app
That bootsound file you attached is already in GDX with same codes
No need to change
Sent from my X8 using xda app-developers app
Gogeta said:
Sound file is 30 seconds
Sent from my X8 using xda app-developers app
Click to expand...
Click to collapse
haha....the code is written to when boot completes then boot sound stops. You have to short it.
Sent from the HEll using fundamental Particles π™
Cool
Sent from my X8 using xda app-developers app
nice
Thanks bro
It is very important
Very good and util!,thanks!!
Not working in my xperia z3 plus 7.1.1
ScatteredHell said:
You want to set a bootsound? Then here you go.
1- Download the attachment, Extract it.
Copy the bootsound to System/bin
2- Set permissions
x x x
x 0 x
x 0 x
3- Rename your boot sound in to android_audio.mp3 (Remember this file must be .mp3)
4- Set it's permissions to
x x 0
x 0 0
x 0 0
5- Go to System/etc and open init.local.rc
6- Check if those lines exist,
# Bootsound - Safe to Delete: Start
service bootsound /system/bin/bootsound
user media
group audio
disabled
oneshot
on property:init.svc.bootanim=running
# to correct timin
start bootsound
on property:dev.bootcomplete=1
stop bootsound
# Bootsound - Safe to Delete: End
If isn't just add.
7- If you need to know it's working, Restart your phone or Go to Terminal Emulator then Type su then type bootsound .
Click to expand...
Click to collapse
pls pls pls help me... Not working on my xperia z3 plus 7.1.1

[GUIDE][ALL DEVICES + ALL ROMS] How To Add Init.d Support To Rom/Kernel

What is init.d ?
Init.d is a feature which allows you to run brunch of scripts at boot . Thats really useful while you want to set values which reset at boot or run/do any thing at every boot or install tweaks , engines and....
There are some ways to add this feature to you rom but always best way is to add init.d support directly by your kernel . I want to help you to do this
Requirements
1- Ability to unpack boot.img & ramdisk
2- Some basic linux shell knowloedge
3- Having Busybox located in /system/bin/busybox at your rom
Step 1: Making kernel ready
1- Unpack kernel then ramdisk
2- Open Init.rc with a text editor
3- Add this codes at the end , before the paragraph which there is "stop bootanim" command in it :
Code:
service sysinit /system/bin/sysinit
oneshot
4- Save , Exit and repack ramdisk and boot.img
Step 2 : Making Rom Ready !
1- Open /system/bin/sysinit
2- Add this codes :
Code:
#!/system/bin/sh
export PATH=${PATH}:/system/bin:/system/xbin
chmod 777 /system/etc/init.d/*
logwrapper busybox run-parts /system/etc/init.d/
3- Set permissions of sysinit to 777 or 755 ( rwxrwxr-x | rwxrwxrwx )
4- Make a directory at system/etc and name it init.d
Now you have init.d support !
Reserved for future changes !
Pls tell me about this '' init'' on my supersu dialog box...
It's my first time to see this and I don't know what is this for?
Is this harmful? Or very important not to loose it...
Educate me... I really don't know what is is for...
... What? why? how?
Thanks much!
Sent from my GT-I9300 using XDA Premium HD app
'' Init '' or '' init.d''
Pls differentiate....
What is this for?
Sent from my GT-I9300 using XDA Premium HD app
leio rusher said:
'' Init '' or '' init.d''
Pls differentiate....
What is this for?
Sent from my GT-I9300 using XDA Premium HD app
Click to expand...
Click to collapse
leio rusher said:
Pls tell me about this '' init'' on my supersu dialog box...
It's my first time to see this and I don't know what is this for?
Is this harmful? Or very important not to loose it...
Educate me... I really don't know what is is for...
... What? why? how?
Thanks much!
Sent from my GT-I9300 using XDA Premium HD app
Click to expand...
Click to collapse
Read in the op what is init.d section...
Inviato dal mio GT-I9070 con Tapatalk 2

Categories

Resources