Related
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.
hi All,
i just wana share to all how to change bootsound in our Stock ROM. Your phone must be rooted.
1. Choose your any short music (~8sec) and convert it to ogg format in your PC. Save it as 'poweron.ogg' and copy to your sd.
2. go to root. Look for folder 'etc'. Use root explorer or file expert. Change permission to r/w first.
3.Find file named 'poweron.ogg'. Rename it as 'poweron.ogg.bak' so that you wont overwrite the original sound. Copy the audio file you created before and paste in here. put permission as r/w r- r-
4.Reboot your phone. Your new music will play nicely. Enjoy..
ravin_jr said:
hi All,
i just wana share to all how to change bootsound in our Stock ROM. Your phone must be rooted.
1. Choose your any short music (~8sec) and convert it to ogg format in your PC. Save it as 'poweron.ogg' and copy to your sd.
2. go to root. Look for folder 'etc'. Use root explorer or file expert. Change permission to r/w first.
3.Find file named 'poweron.ogg'. Rename it as 'poweron.ogg.bak' so that you wont overwrite the original sound. Copy the audio file you created before and paste in here. put permission as r/w r- r-
4.Reboot your phone. Your new music will play nicely. Enjoy..
Click to expand...
Click to collapse
Appreciated
Sent from Galaxy Ace GT-S5830 using Grif's Cyanogenmod & allinone ram script.
Dont jus say thanks, use d 'THANKS' button. [XDA RULE]
Hi i am new here to the android world. I lyk changing my phone stuff but i dont know Nything bout my phone some one pm me pls.
Sent from my GT-S5830 using xda premium
x3kaien said:
Hi i am new here to the android world. I lyk changing my phone stuff but i dont know Nything bout my phone some one pm me pls.
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Ask ur questions in general section.
Sent from Galaxy Ace GT-S5830 using Grif's Cyanogenmod & allinone ram script.
Dont jus say thanks, use d 'THANKS' button. [XDA RULE]
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.
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?
PORTING GUIDE By kD
Disclaimer : I'm not responsible for any damage caused to your phone due to this guide or me! if you will point over me. I will simply laugh at you!
This isn't gonna make fully functional rom port for you! it is just the start!
Prerequisites :
1.You need one ROM of LG P350 and Other ROM from the device you want to port it
2. ADB [ Please google for that! it is Universal android package ]
3. Little Mind
Now Let's start the Port
First of all
EXTRACT Both ROMS ZIP One should be P350 ROM and Other should be the ROM you want to port!
Name P350 ROM as BASE and Other Device ROM as PORT
CHANGE KERNEL:
1. Open both BASE and PORT Folders
2. Copy & Replace Boot.img file from BASE TO PORT
3. You're Done
Click to expand...
Click to collapse
NOTE NOW BELOW DONE ALL THE FOLDERS ARE LOCATED IN SYSTEM FOLDER
CHANGE BIN FILES
1. Open BASE AND PORT Bin Folders
2. Copy the below written bin files from BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
3. You're done
Click to expand...
Click to collapse
CHANGE ETC FILES:
1. Open ETC Folder in
2. Now Delete the Below written etc files from PORT
3. Now Get these etc files from BASE and Copy them to PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
4. You're done
Click to expand...
Click to collapse
CHANGE LIBS:
1. Open lib folder in Both PORT and BASE
2. Delete the below written libs from PORT
3. Now Copy ALL the Folders and libs which are written below from BASE TO PORT
Code:
hw
egl
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
libinput.so [ it is only needed for ics and above based roms ]
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
4. Yeah! You're done!
Click to expand...
Click to collapse
CHANGE USR Files
1. Open USR folder in both PORT and BASE
2. Now Change the below given folders from BASE to PORT
Code:
keylayout
keychars
3. You're done!
Click to expand...
Click to collapse
CHANGE XBIN FILES
1. Open xbin folder in both PORT AND BASE
2. Change below given xbin files from BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
3. You're done
Click to expand...
Click to collapse
CHANGE BUILD.PROP File
1. Open both Build.prop file with Notepad of PORT AND BASE
2. Now change the below given lines from BASE TO PORT
Code:
ro.product.board=
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.manufacturer=
ro.build.product=
ro.sf.lcd_density=120
ro.sf.hw_lcd_density=120
3. You're done
Click to expand...
Click to collapse
Now Just make zip of PORT Folder contents! Now you need to sign it!
You can sign your rom with [TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
If you don't sign your rom you can disable signature verification in recovery!
Now you've finished porting your first rom! I'm not 100 % that it will boot but most likely it should boot up! if it don't boots! Adb logcat is still there!
Hit thanks if you liked my work!
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Will do that soon thanks for recommdation :d
And yeah don't say thanks press thanks is sexy
rom2maru said:
And yeah don't say thanks press thanks is sexy
Click to expand...
Click to collapse
LOL. i already press it. sory for that .
Sent from my LG-P350 using xda premium
Anyway plz have a try porting with this menthdod :d
rom2maru said:
Anyway plz have a try porting with this menthdod :d
Click to expand...
Click to collapse
i will try it later. for now im too busy with my work.
Sent from my LG-P350 using xda premium
ohh ok no problem ;D
n1ck018 said:
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Click to expand...
Click to collapse
yes please, some pics and links
pd: may pass this rom to p350?: http://forum.xda-developers.com/show....php?t=1836116
rom2maru said:
THIS IS THE PORTING GUIDE FOR YOU ALL. SO GUYS YOU CAN ALSO BE ANDROID DEVELOPER.....
NOTE : THIS GUIDE IS FOR PORTING P500 ROMS TO P350 BUT ONLY OLD BASEBAND. YOU CAN TRY WITH VARIOUS DEVICES LIKE GT540 BUT P500 IS BEST FOR PORTING..
IMPORTANT : I'M NOT RESPONSIBLE FOR ANY HARM CAUSE TO YOUR PHONE. IT WILL NOT DO ANY HARM BUT THEN ALSO SAFETY IS NECCESSARY...
'''''''''''''''''''''''''''''''''''THIS WILL NOT MAKE A FULLY FUNCTIONAL ROM'''''''''''''''''''''''''''''''''''''
Code:
FIRST OF DOWNLOAD The Rom You Want to Port and One Rom For Base
NOW COPY BOTH THE ROMS SOMEWHERE
NOW EXTRACT BOTH THE ROMS
''''''''''''''''''''''''''''''''''''SO NOW THE PORTING STARTS'''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''
Code:
OPEN BOTH THE FOLDERS
NOW RENAME BOTH THE FOLDER AS The rom you want port AS PORT
AND The ROM Which u take as base AS BASE
NOW OPEN BOTH PORT AND BASE FOLDER
SO GUYS NOW PORTING STARTS :
Code:
first copy this boot.img from base folder to port folder. boot.img is main
NOW OPEN THE SYSTEM > BIN FODLDER AND COPY THIS FILES FROM BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
NOW OPEN SYSTEM > ETC FOLDER AND COPY THE FOLLOWING FILES FROM BASE TO PORT BUT FIRST DELETE THIS FILES FROM PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
THIS WERE THE ETC FOLDER FILES NOW GO TO SYSTEM > LIB FOLDER AND COPY THIS FILES FROM BASE TO PORT. BUT FIRST DELETE THAT FILES FROM PORT
Code:
modules
hw
egl
THIS THREE WERE FOLDER NOW THE LIBS. COPY IT FROM BASE TO PORT
Code:
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
THIS WERE THE LIBS THAT WERE NEEDED FOR PORTING
NOW OPEN THE SYSTEM > USR FOLDER NOW COPY THE TWO FOLDERS FROM BASE TO PORT BUT FIRST DELETE THAT FOLD FROM PORT
Code:
keychars
keylayout
THIS WERE THE USR FILES NEEDED FOR PORT
NOW OPEN THE SYSTEM > XBIN FOLDER AND COPY THE THREE FILES FROM BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
SO GUYS NOW THE LAST PART OF PORTING THAT IS BUILD.PROP. OPEN THE BUILD.PROP FROM SYSTEM > BUILD.PROP OPEN IT USING NOTEPAD. OPEN BOTH BASE ND PORT BOTH BUILD.PROP
NOW U NEED TO CHANGE THE FOLLOWING FROM BASE TO PORT
SO GUYS JUST CHANGE THIS FIELDS FROM BASE TO PORT AND ADD ONE LINE AT THE END
SO GUYS SAVE IT AND CLOSE BOTH THE FOLDERS. NOW YOU JUST NEED TO CREATE ZIP OF IT (DONT MAKE FOLDER ZIP MAKE CONTENTS ZIP)
AND GUYS FOR SIGNING DOWNLOAD ZIP SIGNER FROM HERE AND SIGN IT
[TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
IF NOT SIGNED THEN AT THE TIME OF FLASHING TURN OFF ZIP VERIFICATION. SO GUYS YOU HAD GOT UR OWN ROM. NOW YOU ARE ANDROID DEVELOPER
Enjoy Porting !
Click to expand...
Click to collapse
your tutorials are always awesome :good:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
pkprasanna said:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
Click to expand...
Click to collapse
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Re: ICS
gabripop said:
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Click to expand...
Click to collapse
I have the same problem ...
prachetas13 said:
I have the same problem ...
Click to expand...
Click to collapse
I do not think there is a kernel that works legally in the CM9 p350 must be why the system does not start ...
Its a problem of updater-script.
There is a line starting with assert(getprop(.....
Delete this line...
If you find any other line starting with this then delete them also.
And you can only port roms only with same version . Like if the port rom is cm9 than base should also be cm9.
I will try this. I have bad exeperience whith another thread, only get kernel pannic and don't boot.
But your thread look s with more details.
Sent from my LG-P350 using xda app-developers app
Sir can i port
Sir Can i port CM9 From P500 or AOKP or Slim based I mean any ics based rom ? to p350 from gt540 or p500 ? If yes i would surely like to try ;D
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Porting Rom's whith you guide.
Your_girlfriend_cheats_us said:
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Click to expand...
Click to collapse
View attachment 1457794
View attachment 1457795
this are the logcat s of both Roms, I hope not being abussing you.
Thanks for all man, U R cool.
LuisAkira2301 told me that I must add libs:
libui
libsurfarcefinger
And it really works. So, It's fixed now, Thanks man, you too.
So Release it !!!!!!!!!! Man !! and Don't Forgot to Add Credits