Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,471 Members 40,285 Now Online
XDA Developers Android and Mobile Development Forum

OneFlash Init.d

Tip us?
 
lozohcum
Old
#21  
lozohcum's Avatar
Senior Member
Thanks Meter 1274
Posts: 1,444
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 774
Posts: 833
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 774
Posts: 833
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


Navigate to Your Favorite Places with LocationDetector

If you’re enjoying an active way of life, you probablytravel a lot, go fishing, … more

LifeStats Automatic Journal Keeps Tabs of Your Day

Most of us live very active lives. This is after all why we’re fans of mobile … more

Android App Review: Hide Your Files with Androignito – XDA Developer TV

Stop right now, look at your phone, and see how many pictures, … more

BrightNotes Makes Cloud Notes Simple and Easy

There are literally thousands of note taking apps available on Android, with practically every … more