Init.d support in stock rom (5.1) - Sony Xperia M5

It is easy.
1. Root the phone
2. Install busybox
3. Install root explorer
4. Create the folther /system/etc/init.d
5. Change permission of the folther
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
6. Edit the file /system/etc/partition_permission.sh and type:
Code:
/system/bin/chown 0.0 /system/etc/init.d
/system/bin/chmod 0755 /system/etc/init.d
/system/xbin/busybox run-parts /system/etc/init.d/
7. Reboot the phone
Enviado desde mi E5603 mediante Tapatalk

Test file
http://cloud.tapatalk.com/s/57ae3e718e496/00test.zip
Enviado desde mi E5603 mediante Tapatalk

Enviado desde mi E5603 mediante Tapatalk

How to root phone ?

In other thead said how. This option is great for example make a partition in sdcard for big size data apks.
Enviado desde mi E5603 mediante Tapatalk

Ninoh-FOX said:
It is easy.
1. Root the phone
2. Install busybox
3. Install root explorer
4. Create the folther /system/etc/init.d
5. Edit the file /system/etc/partition_permission.sh and type:
Code:
/system/bin/chown 0.0 /system/etc/init.d
/system/bin/chmod 0777 /system/etc/init.d
/system/xbin/busybox run-parts /system/etc/init.d/
Enviado desde mi E5603 mediante Tapatalk
Click to expand...
Click to collapse
You must install the apk init.d advance to get init d folder in folder system / etc / init.d. You can using Init.d support apk too for support your handset. can also use the app init.d suport apk or you can also use the application term-init.sh run using a terminal emulator without edit partition_permission.sh

You not need apk or term-init.sh for this.
Also, edit partition_permission.sh is safe if you type well the commands.
And I don't know if apk and term_init.sh work in factory rom.
Enviado desde mi E5603 mediante Tapatalk

his method does not work although I do not worry about it because I have a init.d support which is activated by a manual commands and not automatically as in other terminals

I have this in my xperia and I can said that work fine and is autoboot.
Do you have busybox, supersu and root explorer?
Enviado desde mi E5603 mediante Tapatalk

Ninoh-FOX said:
It is easy.
1. Root the phone
2. Install busybox
3. Install root explorer
4. Create the folther /system/etc/init.d
5. Change permission of the folther
6. Edit the file /system/etc/partition_permission.sh and type:
Code:
/system/bin/chown 0.0 /system/etc/init.d
/system/bin/chmod 0755 /system/etc/init.d
/system/xbin/busybox run-parts /system/etc/init.d/
7. Reboot the phone
Enviado desde mi E5603 mediante Tapatalk
Click to expand...
Click to collapse
Just install initd_any_stock_v1.3.zip file on twrp, it's very easy support init.d and no busy box needed. :good:
http://forum.xda-developers.com/and...ript-zip-init-d-enabler-stock-kernel-t3347724

Related

Dena Theme v1.1 for I9000XXJPK

So i have modified The Dena theme from JPH for JPK
1.You need a rooted JPK
2.download root explorer and install
3.download Dena Themev1.1 and unpack it
4. Copy the unpacked files to your Galaxy s
5:Open root explorer and copy framework-res.apk and twframework-res.apk
from sdcard to system/framework directory
6.copy settings.apk from sdcard to system/app directory
7.Restart your Phone and it work perfectly
Link:
rapidshare.com/files/420925248/Dena_Theme_V1.1_For_I9000XXJPK.zip.html
No Pass
Any pics possible?
here some pics
yfrog.com/1233401109p
yfrog.com/ng74387340p
open this links and there are two pics i cant post it here i am new!!! sorry
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you very much pharaohdk!!!!!
nice theme..got other link..RS server seems to be busy atm..^_^
nice theme
thanks
hello,
auto rotation in notification bar removed ?
in stock jpk i have wlan bluetooth gps vibration autorotation
Problems with the file copy. I get a no space for copy error.
Yes, idem for me :x
Alexzander said:
Problems with the file copy. I get a no space for copy error.
Click to expand...
Click to collapse
i got the same error also..you will need to remount first..
mount -o remount, rw /system
thats should be okay then..^_^
doesn't work, cause the phone not able to boot after cping the 3 files.
it didn`t work for me either ...
I get a no space for copy error too ...
is it possibile that the one click lag fix could be causing it ?
anyway my phone booted with normal skin ... but got few odd vibrations on startup
EDIT:
Managed to get it working using Android SDK tools. ROOT needed
Connected my phone via usb with the computer ... USB debuging needs to be enabled before connecting the phone.
copy the files included in Dena Themev1.1 to your internal SD card.
1. adb shell
2. su (grant su rights on your phone when asked)
3. mount -o rw,remount /dev/block/mtdblock3 /system
3. rm system/framework/twframework-res.apk
4. rm system/framework/framework-res.apk
5. rm system/app/settings.apk (if no file is found try Settings.apk ... no ide if it matters tho)
6. cp sdcard/twframework-res.apk system/framework
7. cp sdcard/framework-res.apk system/framework
8. cp sdcard/Settings.apk system/app
Then reboot your phone manually.
Worked for me with a few minor bugs tho.
So i suggest you bacup the original *.apk`s
cp: no found
help me
Install busybox.
And a please would not have been too much
Sent from my GT-I9000 using XDA App
that is those buttons and wallpapers wearing? thanks

REQUEST: Please Create a Bootscreen with this Image

Hi all, I came across this interesting image. It's a GIF and I thought it would look great as a bootscreen animation. I would do it myself, but I'm not exactly savvy with this and I'd rather not cause trouble with my phone. So, if anyone would graciously accept my request, I'd be quite grateful.
This is the image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PS. Please create one for the resolution of the Wildfire S, which is why I'm posting in this section.
I'll make it for you when I have time.
request done
Here you go dude. delete old one first before copying and set permissions to RW,R,R or 644.
einstein.frat said:
Here you go dude. delete old one first before copying and set permissions to RW,R,R or 644.
Click to expand...
Click to collapse
how to do that??
mhrsolanki2020 said:
how to do that??
Click to expand...
Click to collapse
That comment says a lot about your rom making skills,I hope your joking.
meanmug said:
That comment says a lot about your rom making skills,I hope your joking.
Click to expand...
Click to collapse
Bro I know how to push that bootanimation.zip have been sucessful in doing so earlier but what permision are you talking about that was my exact question .. cuz i never needed to set permision for boot animations before
adb shell
chmod 644 /system/media/bootanimation.zip
Or open root explorer, navigate to to the zip file, press and hold, tap permissions and set to rw, r, r
Sent from my iPod touch using Tapatalk
vbhtt said:
adb shell
chmod 644 /system/media/bootanimation.zip
Or open root explorer, navigate to to the zip file, press and hold, tap permissions and set to rw, r, r
Sent from my iPod touch using Tapatalk
Click to expand...
Click to collapse
but my bootanimations work without it.. nvm will still do that..
can we flash this bootanimation.zip in recovery? i suppose i can since its a zip file. looks nice though
pinkypie said:
can we flash this bootanimation.zip in recovery? i suppose i can since its a zip file. looks nice though
Click to expand...
Click to collapse
:O wow. You don't flash a zip like this kind

[Q] Setting kernel parameters on startup (without using any app)?

I'm using LeanKernel 4.5 and i'd like to change governor, scheduler and some other minor parameters using sysfs. My linux understanding is quite basic.
I can easly check current values using adb (a list of sysfs options is here):
Code:
adb shell
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
I get "interactivex". However, why I can't change it using adb (first question)? This it's not working:
Code:
adb shell
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
And the governor remains "interactivex".
Second question is, how can I make them permanent? Should I modify init.rc script?
You need to be root to change those values. 'su' after 'adb shell'.
Second, your rom needs to support /system/etc/init.d/ scripts.
Sent from my i9250
bk201doesntexist said:
You need to be root to change those values. 'su' after 'adb shell'.
Second, your rom needs to support /system/etc/init.d/ scripts.
Sent from my i9250
Click to expand...
Click to collapse
Thank you for your help. I did :angel: but it doesn't work:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also, I'm using the stock factory images. So you're saying that I will not able to set this values at boot? If yes, how the app SetCPU can?
Gremo said:
Thank you for your help. I did :angel: but it doesn't work:
Also, I'm using the stock factory images. So you're saying that I will not able to set this values at boot? If yes, how the app SetCPU can?
Click to expand...
Click to collapse
Add a file at /system/etc/init.d/<filename.extension>. Chmod it to 755 and add the contents below into it(the steps can be done via adb or file manager, its easier via file manager for newbies)
Code:
#!/system/bin/sh
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
After that, reboot your phone and check whether the changes has been done or not
To enable init.d, at minimum you need to be rooted though and busybox needs to be installed
Here's a link on how to enable it(you can try whether it works or not first, if it doesn't then only try this one): http://forum.xda-developers.com/showthread.php?t=1933849

Enable init.d support on any rom [Stock] without any app

One thing that i like very much about android is init.d support which enable user to run script during the device boot up so by putting Boost script in the init.d folder which is present in /system/etc/init.d can significantly improve device performance..
So without say much here is the method :
Requirement:
1 Rooted Phone obviously
2 File Explorer like Esfile Explorer with root access option enable
3 BusyBox Latest 1.22.1
4 A Good Luck
Process:
1 Open ESFiles Explorer and navigate to /system/etc and look for init.d folder if there is no folder name [init.d] then create one by click on +new button on ESFiles Explorer, or if init.d folder present than Goto step 2
2 Navigate to /system/etc folder and look for file name "install-recovery.sh" if present then Goto step 3
3 In /system/etc folder Create one file name "init.post_boot.sh"
4 Now open both "install-recovery.sh" & "init.post_boot.sh" one by one and write down following command at the beginning of the both file
Command:
#!system/bin/sh
run-parts /system/etc/init.d/*
{Above Lines are case sensitive}
5) Download the test.init.d.zip file from the below attachment link
6) put the 0test file in /system/etc/init.d folder and set permission rwx-rwx-rwx
7) Reboot device :fingers-crossed:
NOTE after Reboot open ESFiles Explorer and navigate to /data and there you will see Test.log file meaning init.d support working perfectly
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
HIT Thanks if you like the post
Nice Turotial. But there is already an app called "Universal Init.d Support" that does all the job easily with just one click.
Here is the apk.
Credit for the app goes to its respective owner.
Yeah thats true But being a geek I like to do things by myself also uni-init v does the same thing as what I said it. uni-init enable works the same way and did the same tweak to enable init.d support
nice information,,thanks for a great script

Root permission fix for Es file explorer MM

Fix for es file explorer root permission on MM:
Download terminal emulator and type in su next to the $
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And grant permission
After you grant permission you will have a #
Them type this:
echo "BINDSYSTEMXBIN=true" >> /data/.supersu
Reboot into recovery and reflash su and reboot, then open es file explorer and now it will grant su
Sent from my SM-G928T using XDA-Developers mobile app
THX... or simply install a non bloated other root explorer without the need to bind in system for granting root...
lulli1 said:
THX... or simply install a non bloated other root explorer without the need to bind in system for granting root...
Click to expand...
Click to collapse
can you give me an example? I still cant seem to get it to work.
this is currently my root explorer... https://play.google.com/store/apps/details?id=com.rhmsoft.fm
lulli1 said:
this is currently my root explorer... https://play.google.com/store/apps/details?id=com.rhmsoft.fm
Click to expand...
Click to collapse
Thanks Appreciate it
Simpler solution
There is a simpler solution to get es file explorer working, it simply needs "su" binary in /system/xbin/ (su path is hardcoded)
1) open a terminal emulator
2) then execute "su root"
3) then "which su" (to know where is your su binary)
4) copy su to "/system/xbin/" (I used Solid Explorer to copy instead of the terminal emulator)
5) Done.
Tested on SM-N910F running Marshmallow 6.0.1
Note that some other root apps needs busybox in /system/xbin/
By the way: copying su binary to /system/xbin/ solved philz-cwm asking "Apply root" when rebooting.
MarioUnoDueTre said:
There is a simpler solution to get es file explorer working, it simply needs "su" binary in /system/xbin/ (su path is hardcoded)
1) open a terminal emulator
2) then execute "su root"
3) then "which su" (to know where is your su binary)
4) copy su to "/system/xbin/" (I used Solid Explorer to copy instead of the terminal emulator)
5) Done.
Tested on SM-N910F running Marshmallow 6.0.1
Note that some other root apps needs busybox in /system/xbin/
By the way: copying su binary to /system/xbin/ solved philz-cwm asking "Apply root" when rebooting.
Click to expand...
Click to collapse
Also works on 7.0 nougat[emoji2]
Sent from my Nexus 9 using XDA-Developers mobile app
Thank you so much for this I just got root access back on "ES File Explorer" on my Tab S3 (Nougat 7.0) It's crazy what we have to do to gain full permissions on a device we paid, Google start little by little becoming an Apple device
Edit: Just checked and I got root back on "Secure Settings" as well :good:

Categories

Resources