[Q] init.d folder permissions - Samsung Epic 4G Touch

Can anyone tell me what to set the folder permissions to when creating an init.d folder?

BigJPNut said:
Can anyone tell me what to set the folder permissions to when creating an init.d folder?
Click to expand...
Click to collapse
I believe normally it is 0755 with root:root or root:shell.
Your ROM must support run-parts however. Most stock ROMs don't and devs put in the command for it to parse init.d when they cook the ROM.
Sent from my SPH-D710 using Tapatalk

Thanks so much! Yep the kernel im using supports init.d. I believe thats all there is to it? Also, I take it the scripts inside init.d are set to 777?

BigJPNut said:
Thanks so much! Yep the kernel im using supports init.d. I believe thats all there is to it? Also, I take it the scripts inside init.d are set to 777?
Click to expand...
Click to collapse
You can probably set the scripts to 755 because nobody needs to edit them but root. Since it's not a multi-user system, the permissions aren't terribly relevant.

Related

Enable electronBeam Animation

Hey,
This recent leak of "gingerbread" from samsung does not have animation enabled by default. The code is there, they've just disabled it from the xml.
So here are the steps :
For developers :
1. Get apk manager
2. Put framework-res.apk in "modding" folder
3. Run apk manager, decompile with dependancy (option 10)
4. Drag twframework-res.apk into the script.
5. Go into projects\framework-res\res\values\bool.xml
6. Make config_animateScreenLights to false
7. Go back to script and select compile.
8. Say y
9. Say y
10. Delete resources.arsc from keep folder
11. Enter in script
12. U'll find unsignedframework-res.apk in "modding" folder
For users :
Code:
adb push unsignedframework-res.apk /data/local/tmp/framework-res.apk
adb shell
su
mount -o rw,remount /dev/block/stl9 /system
stop
rm /system/framework/framework-res.apk
cp /data/local/tmp/framework-res.apk /system/framework/
rm /data/local/tmp/framework-res.apk
reboot
Make sure settings -> display -> animation isnt set to none.
Hi Daneshm90,
Did you manage to decompile Settings.apk for GB? Funny thing now is that there is an additional apk in the /userprofile/apktool/ folder. There are now 3 apks (resoures.arsc):
1.apk
2.apk
127.apk
This is something new. Is it now the apks are tri-dependency instead of co-dependency for GB Galaxy s?
g00ndu said:
Hi Daneshm90,
Did you manage to decompile Settings.apk for GB? Funny thing now is that there is an additional apk in the /userprofile/apktool/ folder. There are now 3 apks (resoures.arsc):
1.apk
2.apk
127.apk
This is something new. Is it now the apks are tri-dependency instead of co-dependency for GB Galaxy s?
Click to expand...
Click to collapse
Hmm havent tried that. Will try and let you know.
Daneshm90 said:
Hmm havent tried that. Will try and let you know.
Click to expand...
Click to collapse
Thanks, and waiting for your good news.
Hey thnks for the screen off animation..can u also check whether the glow in end of list is presebt in the code but has been disabled....coz it works in some apps like youtube where u scroll sideways thanks!
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
galaxyS
I am Korea Galaxy S [M110S] user is using. I've tried to apply the source code does not work on framework-res.apk bool.xml config_animateScreenLights to false in a note that if you're saying?
DeHD said:
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
Click to expand...
Click to collapse
Nope these steps are standard. So you can pull your framework-res and undergo these exact modifications
g00ndu said:
Thanks, and waiting for your good news.
Click to expand...
Click to collapse
For me i need twframework-res and framework-res in order to decompile settings.apk w/o error.
So i get 1.apk and 2.apk
DeHD said:
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
Click to expand...
Click to collapse
You guys are using gingerbread leaked rom? Iirc it should be a prerequisite for this mod.
This will come in handy.
Thx.
Worked on JVK, thanks for this
EDIT: Added the resulting framework-res.apk
EDIT2: Complied wrong, all pngs are duplicated, taking up a lot of space. Please do not use this one. Use either danesh's or the one in perka's stash should be updated soon
EDIT3: The fixed framework-res.apk is in perka's stash here http://goo.gl/Lf7LF
Mothatt said:
Worked on JVK, thanks for this
EDIT: Added the resulting framework-res.apk
Click to expand...
Click to collapse
Hi mothatt
See you in IRC
v10.0 beta 4 / RC1
Sent from my GT-I9000 using XDA Premium App
when i try installing it on my phone it says application not installed. what to do?
oaiebmxxx69 said:
when i try installing it on my phone it says application not installed. what to do?
Click to expand...
Click to collapse
Its a framework installation.
Just follow the adb instructions in OP. This is a framework apk, not a user apk.
Daneshm90 said:
Its a framework installation.
Just follow the adb instructions in OP. This is a framework apk, not a user apk.
Click to expand...
Click to collapse
sorry mate but didn't understand a word...
oaiebmxxx69 said:
sorry mate but didn't understand a word...
Click to expand...
Click to collapse
Do u have adb setup ?
If not then read up on how to set it up and then execute the "user" commands i have in the main post.
Daneshm90 said:
Do u have adb setup ?
If not then read up on how to set it up and then execute the "user" commands i have in the main post.
Click to expand...
Click to collapse
i got apk manager and i select option #10 but it just disappears and it also says i don't have java but i do...please help me dude get this thing right
oaiebmxxx69 said:
i got apk manager and i select option #10 but it just disappears and it also says i don't have java but i do...please help me dude get this thing right
Click to expand...
Click to collapse
U can use ones i posted. Click my.profile n search my posts. I posted it in jvk thread
I tent to get a lot of bootloops when i try to push the unsigned framework that i compiled. Adding the resources.asc manually (first take it out the framework and manually add it again with no compression) resolved that.
Is that extra step not nessecary anymore ?

How to create flasher to replace fonts?

Is there a simple way to create a flashable zip that will run these commands :
remount
cp /mnt/sdcard/fonts/HelveticaNeueCondensed/DroidSans.ttf /system/fonts/
cp /mnt/sdcard/fonts/HelveticaNeueCondensed/DroidSans-Bold.ttf /system/fonts/
Not sure about the remount ... is that enough to overwrite a ssystem file?
Thanks!
[ Evo / SalvageMod ]
Not sure if this is what you mean but I would open up any of the font zip in this thread and change the update-script to suit your needs...
http://forum.xda-developers.com/showthread.php?t=801160&referrerid=495834
breezer260 said:
Not sure if this is what you mean but I would open up any of the font zip in this thread and change the update-script to suit your needs...
http://forum.xda-developers.com/showthread.php?t=801160&referrerid=495834
Click to expand...
Click to collapse
Good idea!
But what does the update-binary do?
[ Evo / SalvageMod ]
Great question, unfortunately not 100% sure, I believe it has something to with edify and clockwork...I used RA recovery and have flashed zip w just update scripts and they work just fine. Hopefully someone w more knowledge will chime in and explain.
Also I'm sure we can google it...
Curiosity got me to search, good info
http://forum.xda-developers.com/showthread.php?t=897026
breezer260 said:
Curiosity got me to search, good info
http://forum.xda-developers.com/showthread.php?t=897026
Click to expand...
Click to collapse
Hmmm.... so does the presence of the binary mean that it's Amend? Or edify?
[ Evo / SavagedZen ]
Edify...not sure how to make those scripts yet. Good luck! Find an old zip which doesn't have binary and you should be good to go; as long as you're using a recovery that still does amend.
I always just rename the fonts I want to use and paste them into one of the flashable zips in the 300 fonts thread using Astro.
jstalford said:
I always just rename the fonts I want to use and paste them into one of the flashable zips in the 300 fonts thread using Astro.
Click to expand...
Click to collapse
Cool, will do that!
[ Evo / SavagedZen ]
weehooherod said:
Don't waste your time flashing them. There is an application in the market that will change fonts for you. Here's an article on it:
http://www.goodandevo.net/2011/03/r...anging-system-fonts-on-rooted-htc-evo-4g.html
Click to expand...
Click to collapse
I have an app for that -- but I want to do it right when I flash a new ROM, without having to reboot after

Asking rom dev's.

What goes into making a rom? I'm not stupid. But other than theming (framework-res.apk), removing/replacing apks in /system/app, and maybe some init.d scripts, what do rom makers mess with? I'm not including the kernel.
Sent from my SPH-D700 using XDA App
Everything you see on your phone is frm a ROM if you have updated from stck, so everything can be changed, I know that's not what your looking for, but it is an answer.
Keyboard mods, rotation mods, wireless and wired tether hacks, bootanimations, pretty much anything that can be modded or hacked.....
theduce102 said:
Keyboard mods, rotation mods, wireless and wired tether hacks, bootanimations, pretty much anything that can be modded or hacked.....
Click to expand...
Click to collapse
Aren't all of those except the boot animation in the framework?
ugothakd said:
Aren't all of those except the boot animation in the framework?
Click to expand...
Click to collapse
Yeah i think but not in the framework-res.apk... im pretty sure those mods are in the .jar's from the system/framework
Init.d scripts, modifying the .jar files. Very little work is done to framework-res.apk except for themin. Then there's also changes done under the hood using source to modify the the lib files and other files alike.
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
Init.d scripts, modifying the .jar files. Very little work is done to framework-res.apk except for themin. Then there's also changes done under the hood using source to modify the the lib files and other files alike.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
But those libs can't be modified without source, right? Like with the eh06 leak...I was gonna maybe do a rom off it...no source for that means all we can do is framework/jar file edits? So what .jar files are modified? Are any of them that are usually changed that aren't in the /system/framework folder?
ugothakd said:
So what .jar files are modified? Are any of them that are usually changed that aren't in the /system/framework folder?
Click to expand...
Click to collapse
Like the AIO mod was done through the services.jar, the settings.apk, and the framework-res.apk.....
ugothakd said:
But those libs can't be modified without source, right? Like with the eh06 leak...I was gonna maybe do a rom off it...no source for that means all we can do is framework/jar file edits? So what .jar files are modified? Are any of them that are usually changed that aren't in the /system/framework folder?
Click to expand...
Click to collapse
You can modify any .jar file without source but there is only so much you can do. Smali is not legible If you don't know what your looking at.
Honestly your best bet is to use google and read up on guides.
Sent from my SPH-D700 using Tapatalk

Faster internet conmection

Copy the file to system/etc/
Change permissions
kurotsugi said:
btw, you may type 'su sysctl -p' on terminal emulator to run the script.
Click to expand...
Click to collapse
Reboot
Current speeds this used to be a lot slower
http://db.tt/gOcWI9SI
And in addition download 3g optimizer from market....
Improved 3g and wifi speeds
credits to marcusant
http://forum.xda-developers.com/showthread.php?t=1346680
here is the original thread
Sent from my GT-S5360 using Tapatalk
can you plz elaborate the steps the link opens a chunk of codes what to do with that
I'm already copy it to system/etc by create anew file but it doesn't work
Sent from my GT-S5360 using xda premium
Sorry i thought drpbox would download the file
Create the file using any editor...i used es text editor..
Save the file as
sysctl.conf
Then copy or save the file to system/etc
Then reboot. ....
Just found this on xda as well forgot the link to original...
Some say it works some doesnt for me it works....
Sent from my GT-S5360 using Tapatalk
zeusseuz said:
Copy the file to system/etc/
Change permissions
Reboot
Current speeds this used to be a lot slower
http://db.tt/gOcWI9SI
And in addition download 3g optimizer from market....
Improved 3g and wifi speeds
Sent from my GT-S5360 using Tapatalk
Click to expand...
Click to collapse
I thought I've seen these script before. but its written on build.prop file.
kurotsugi said:
I thought I've seen these script before. but its written on build.prop file.
Click to expand...
Click to collapse
yup just got it from google ...
for build prop tweaks...
i just used an app,,
the 3g optimizer form vista...
that app pushes codes to build prop..
increase 3g speeds...
this one i got from epic forums,.,
http://forum.xda-developers.com/showthread.php?t=1346680
found it,,
editing build.prop is a little bit risky since it could make our device got bootlooped. I'll try using your proposed method here. thanks
kurotsugi said:
editing build.prop is a little bit risky since it could make our device got bootlooped. I'll try using your proposed method here. thanks
Click to expand...
Click to collapse
yup that is true...
so far the build prop that 3g optimizer didnt get me onto bootloop..
and so to other buildprop edits ive made with the phone,,,
same with this one...
Copy file to: : system/etc/change permission
This is my result: :
Before:
After:
Sent from my GT-S5360 using xda premium
How to change permission?
GzC said:
How to change permission?
Click to expand...
Click to collapse
Not sure I use jrummys rom toolbox,select file hold and change permission comes up and i just mark em as rw and execute
Sent from my GT-S5360 using Tapatalk
btw, you may type 'su sysctl -p' on terminal emulator to run the script.
can I execute it through root explorer?
no, you can't. use terminal emulator instead.
Can show me the tutorial? Because I'm still newbie on this phone.

[Script][Optimizer][ZipAligner] Amestris Odexer Script V1.2

Hi, this is a script for converting the Deodexed firmware to Odex Structure.
This script is created by Mehrzad63 , ported from vLad's work.
This is for Samsung Galaxy S Official Firmwares.
Instruction:
be sure your phone is rooted and The Java Runtime packages is installed on your pc
1: Download The Attachment and Extract it to your PC.
2: Put your phone into USB Debug mode.
Code:
Settings > Application > Development
Enable The USB debugging mod
3: Connect The USB Cable into your phone
4: Run the
Code:
Framework+Applications.cmd
file from downloaded attachment.
5: Your phone will start the Odex Converting and also will Zip_align all applications.
This script will ODEX all fles on your phone:
Code:
/System/app
/System/framework
/data/app
-------------------------------------
if you just want to convert applications into Odex structure, you need to run the
Code:
Applications.cmd
command.
-------------------------------------
Always check the space of your System partition storage, because all converting processes will done through the System partition.
-------------------------------------
you can free up the System storage by removing the Bloat applications from /System/app folder.
-------------------------------------
Credits:
Mehrzad_63
M_J_Nazari
Vlad
Click to expand...
Click to collapse
Best Reagrds.
R e s e r v e d
Don't we have to change the BOOTCLASSPATH for use with ICS Roms? Or is this only GB compatible?
pwneman said:
Don't we have to change the BOOTCLASSPATH for use with ICS Roms? Or is this only GB compatible?
Click to expand...
Click to collapse
I didn't use on any ICS rom. not tested
you can Order the Odexing processes for framework files as bootclass path.
-------------------------
goto the Amestris_odexer folder, and open the odex-all.sh file.
you will see the orders as the same of the bootclasspath order.
Code:
/system/Amestris_Odexer/dexopt-wrapper /system/framework/core.jar /system/framework/core.odex
/system/Amestris_Odexer/zip -d /system/framework/core.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/bouncycastle.jar /system/framework/bouncycastle.odex
/system/Amestris_Odexer/zip -d /system/framework/bouncycastle.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/ext.jar /system/framework/ext.odex
/system/Amestris_Odexer/zip -d /system/framework/ext.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/framework.jar /system/framework/framework.odex
/system/Amestris_Odexer/zip -d /system/framework/framework.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/android.policy.jar /system/framework/android.policy.odex
/system/Amestris_Odexer/zip -d /system/framework/android.policy.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/services.jar /system/framework/services.odex
/system/Amestris_Odexer/zip -d /system/framework/services.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/core-junit.jar /system/framework/core-junit.odex
/system/Amestris_Odexer/zip -d /system/framework/core-junit.jar classes.dex
/system/Amestris_Odexer/dexopt-wrapper /system/framework/com.samsung.device.jar /system/framework/com.samsung.device.odex
/system/Amestris_Odexer/zip -d /system/framework/com.samsung.device.jar classes.dex
....
.........ans so on
you can change the orders here.
the bootclasspath file is located on init.rc file from root phone's folder.
Wow, Tanks!!!
Thank you very much, I've used it on Deoxd JW4 stock after adding the arabic patch, it works without problems.
Thanks for sharing your work.
Doesnt work for me. Gives instalation aborted. Using ics slim
Sent from my GT-I9000 using Tapatalk
M.J do you know that u're great??!!!!
my favorite developer in Iran,my country.thanks
unforgiven said:
M.J do you know that u're great??!!!!
my favorite developer in Iran,my country.thanks
Click to expand...
Click to collapse
Thank you my friend, you're welcome.
jgcaap said:
Doesnt work for me. Gives instalation aborted. Using ics slim
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
i didn't test it on any ICS ROM, but i think the Application odexing must be work.
just try the Application.cmd
I odexed my cm9 nightly 0427 finally.
thanks, here is my changed odex-all.sh.
just change the bootclasspath order.
Hi,
I got a bootloop!!!
SAUROM JW4 + GengerBlue theme.
Thanks
jiujitiancai said:
I odexed my cm9 nightly 0427 finally.
thanks, here is my changed odex-all.sh.
just change the bootclasspath order.
Click to expand...
Click to collapse
Doesn´t work for me. My phone doesn´t get recognized. It´s in debugging mode and java runtime is also installed. Any help?
Ill try this on my lag fixed device
dark_knight35 said:
Doesn´t work for me. My phone doesn´t get recognized. It´s in debugging mode and java runtime is also installed. Any help?
Click to expand...
Click to collapse
MAQ7 said:
Hi,
I got a bootloop!!!
SAUROM JW4 + GengerBlue theme.
Thanks
Click to expand...
Click to collapse
are you checked the free space on your device?
at least you need 40mb free space on your device.
clean up the system/app applications.
screamwork said:
Ill try this on my lag fixed device
Click to expand...
Click to collapse
just be sure that your device has enough free space on system partition.
Can i ask what is the benefit of odexing my rom sorry, i'm a n00b.
Odexing the APPS on your ROM will have the following effect in my experience:
Faster boot
Faster app loading time
Little performance improvement in general
Downside is that the ROM and apps becomes less customizable. Devs, please add any comment if neccessary.
Sent from my GT-I9000 using xda premium
Tried on aokp rom (with jiujitiancai version).
I'm stuck at boot anim after the operation.
Tried, applications and framework.app
Same result...
Hello M_J_Nazari.
I wonder if your script copy the signature from the original odex files. If it doesn't, then how can the script be edited to do that?
Sent from my GT-I9000 using Tapatalk 2
alkhafaf said:
Hello M_J_Nazari.
I wonder if your script copy the signature from the original odex files. If it doesn't, then how can the script be edited to do that?
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
this scripts will odex all application and jar files and the signatures will add from the original.
do you want do odex on one file?
The adb drivers I've got don't seem to work. Can someone give me working?

Categories

Resources