Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,802,957 Members 38,468 Now Online
XDA Developers Android and Mobile Development Forum

OneFlash Init.d

Tip us?
 
lozohcum
Old
#21  
lozohcum's Avatar
Senior Member
Thanks Meter 1,288
Posts: 1,471
Join Date: Jan 2013
Location: Internety
Quote:
Originally Posted by kurotsugi View Post
I thought that you originally develop this tweak but it now becomes clear that you're not the one who create this tweak. the inconsistence between how this tweak work and your explanation suggest that you take someone's work without knowing how it works. what you do was modifying the installer script to make it fit with your device. I think I shall take my leave now :3
.
that happens many times in this forum (j-e)
I don't reply PM if the answer is on the forum.



Development Devices
Sony Xperia J (jlo)

CyanogenMod 11 for Low-end Sony Xperia 2012 (Tamsui) devices
tamsuicm11.github.io
 
UltraGamerHD
Old
#22  
UltraGamerHD's Avatar
Senior Member - OP
Thanks Meter 810
Posts: 865
Join Date: Aug 2013
Quote:
Originally Posted by kurotsugi View Post
if that true it means you have messed up the init.d implementation :3
luckily, it isn't. you do nothing with the ramdisk. your updater-sript honestly say that your tweak has nothing related with the ramdisk
Code:
ui_print("One Flash Init.d");
ui_print("UltraGamerHD @ XDA-Developers");
mount("ext4", "EMMC", "/dev/block/mmcblk0p11", "/system");
package_extract_dir("system", "/system");
set_perm(0, 2000, 0755, "/system/bin/sysinit");
set_perm(0, 2000, 0777, "/system/xbin/run-parts");
set_perm_recursive(0, 0, 0777, 0777, "system/etc/init.d");
ui_print("Update Complete. Enjoy!");
unmount("/system");
anyway, what I do was giving suggestion to improve it and make it better but it seems that you think that I'm offending you. at the first, I thought that you originally develop this tweak but it now becomes clear that you're not the one who create this tweak. the inconsistence between how this tweak work and your explanation suggest that you take someone's work without knowing how it works. what you do was modifying the installer script to make it fit with your device. I think I shall take my leave now :3

NOTE: for other user who found this thread
1. don't use it on CM/AOSP rom. they have different init.d implementation and this tweak will ruin it.
2. if you're using superSU, check if you have /etc/install-recovery.sh. don't use it if you already have that file in your system
3. this tweak only tested on E. be cautious if you're using tipo, miro, or J.
Haha

Your not going to find it in the zip file. You have to decompile the kernel specifically Zues Kernel. Then check in the file init and that is what executes sysint. Just the Way in Vengeance Kernel. This just copy's sysint which executes install-recovery.sh which in turn executes the init.d scripts. Don't assume things.

Sent from my C1505 using Tapatalk
My Device

Sony Xperia E (C1505)

Bootloader Status: Yes

ROM: Cyanogen Mod 11 (4.4.2)
 
UltraGamerHD
Old
#23  
UltraGamerHD's Avatar
Senior Member - OP
Thanks Meter 810
Posts: 865
Join Date: Aug 2013
Quote:
Originally Posted by kurotsugi View Post
if that true it means you have messed up the init.d implementation :3
luckily, it isn't. you do nothing with the ramdisk. your updater-sript honestly say that your tweak has nothing related with the ramdisk
Code:
ui_print("One Flash Init.d");
ui_print("UltraGamerHD @ XDA-Developers");
mount("ext4", "EMMC", "/dev/block/mmcblk0p11", "/system");
package_extract_dir("system", "/system");
set_perm(0, 2000, 0755, "/system/bin/sysinit");
set_perm(0, 2000, 0777, "/system/xbin/run-parts");
set_perm_recursive(0, 0, 0777, 0777, "system/etc/init.d");
ui_print("Update Complete. Enjoy!");
unmount("/system");
anyway, what I do was giving suggestion to improve it and make it better but it seems that you think that I'm offending you. at the first, I thought that you originally develop this tweak but it now becomes clear that you're not the one who create this tweak. the inconsistence between how this tweak work and your explanation suggest that you take someone's work without knowing how it works. what you do was modifying the installer script to make it fit with your device. I think I shall take my leave now :3

NOTE: for other user who found this thread
1. don't use it on CM/AOSP rom. they have different init.d implementation and this tweak will ruin it.
2. if you're using superSU, check if you have /etc/install-recovery.sh. don't use it if you already have that file in your system
3. this tweak only tested on E. be cautious if you're using tipo, miro, or J.
BTW it does say in the OP stock JB

Sent from my C1505 using Tapatalk
My Device

Sony Xperia E (C1505)

Bootloader Status: Yes

ROM: Cyanogen Mod 11 (4.4.2)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Speed Up Jenkins Configuration Process with TSJ

When you are theleader of a largedevelopment project, Gerrit isn’t the only tool that … more

AutoData Regulates Your Connectivity to Save Battery Life

It’s absolutely no secret that battery life is somewhat of anundoingformany … more

Tale of the Great Recoveries

About a week ago, our fantastic writer and my esteemed colleague Tom embarked on a mission to learnthe vast and … more

How to Make Your GPS Lock Faster – XDA Developer TV

Nothing is more frustrating than opening up Google Maps and it taking way to long … more