yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] _alexndr:
My script (as it is in post #1) is designed to be standalone installer. If you want to enable init.d by a sh script called from the updater-script - please try as follow:

#!/sbin/sh
# Init.d enabler by ALEXNDR (_alexndr @ XDA)

set_perm() {
chown $1.$2 $4
chown $1:$2 $4
chmod $3 $4
if [ -z "$5" ] ; then
chcon u:object_r:system_file:s0 $4
else
chcon u:object_r:$5:s0 $4
fi
}

# These files are prefered to trigger init.d scripts (in following order, if exists):
# /system/etc/init.*.post_boot.sh
# /system/etc/*.post_boot.sh
# /system/etc/init.*.boot.sh
# /system/etc/*.boot.sh
#
# /system/bin/debuggerd is used if there is no suitable *.sh file in /system/etc

BOOTFILE=$(ls /system/etc/*.sh 2>/dev/null | grep -m 1 "/init\..*\.post_boot\.sh$") ||
BOOTFILE=$(ls /system/etc/*.sh 2>/dev/null | grep -m 1 "\.post_boot\.sh$") ||
BOOTFILE=$(ls /system/etc/*.sh 2>/dev/null | grep -m 1 "/init\..*\.boot\.sh$") ||
BOOTFILE=$(ls /system/etc/*.sh 2>/dev/null | grep -m 1 "\.boot\.sh$") ||
BOOTFILE=/system/bin/debuggerd

BOOTCON=$(ls -Z $BOOTFILE 2>/dev/null | grep "u:object_r" | cut -d: -f3)
if [ -z "$BOOTCON" ] ; then
BOOTCON=system_file
fi

cat $BOOTFILE | grep "^exit 0" >/dev/null && EXIT=true || EXIT=false

if [ -z "$(cat $BOOTFILE | grep "[Ii]nit\.d")" ] ; then
if [ "$BOOTFILE" = "/system/bin/debuggerd" ] ; then
if [ ! -f /system/bin/debuggerd_real ] ; then
mv -f $BOOTFILE /system/bin/debuggerd_real
echo "#!/system/bin/sh" > $BOOTFILE
else
sed -i '/debuggerd_real/d' $BOOTFILE
fi
else
mv -f $BOOTFILE "$BOOTFILE.bak"
cp -pf "$BOOTFILE.bak" $BOOTFILE
if ($EXIT) ; then sed -i '/^exit 0/d' $BOOTFILE ; fi
echo "" >> $BOOTFILE
fi
echo "# Init.d support" >> $BOOTFILE
echo 'SU="$(ls /su/bin/su 2>/dev/null || ls /system/xbin/su) -c"' >> $BOOTFILE
echo 'mount -o rw,remount /system && SU="" || eval "$SU mount -o rw,remount /system"' >> $BOOTFILE
echo 'eval "$SU chmod 777 /system/etc/init.d"' >> $BOOTFILE
echo 'eval "$SU chmod 777 /system/etc/init.d/*"' >> $BOOTFILE
echo 'eval "$SU mount -o ro,remount /system"' >> $BOOTFILE
echo 'ls /system/etc/init.d/* 2>/dev/null | while read xfile ; do eval "$SU /system/bin/sh $xfile" ; done' >> $BOOTFILE
if [ "$BOOTFILE" = "/system/bin/debuggerd" ] ; then
echo '/system/bin/debuggerd_real $@' >> $BOOTFILE
set_perm 0 2000 755 $BOOTFILE $BOOTCON
else
if ($EXIT) ; then echo "exit 0" >> $BOOTFILE ; fi
chcon u:object_r:$BOOTCON:s0 $BOOTFILE
fi
mkdir -p /system/etc/init.d
echo "#!/system/bin/sh" > /system/etc/init.d/00test
echo "# Init.d test" >> /system/etc/init.d/00test
echo 'echo "Init.d is working !!!" > /data/initd_test.log' >> /system/etc/init.d/00test
echo 'echo "excecuted on $(date +"%d-%m-%Y %r")" >> /data/initd_test.log' >> /system/etc/init.d/00test
echo "#!/system/bin/sh" > /system/etc/init.d/99SuperSUDaemon
echo "/system/xbin/daemonsu --auto-daemon &" >> /system/etc/init.d/99SuperSUDaemon
set_perm 0 0 777 /system/etc/init.d
set_perm 0 0 777 "/system/etc/init.d/*"
fi

exit 0
[Android Software/Hacking General [Developers Only]] WILMANS2M:
Thanks for the answer. Will try it asap and give you feedback.

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] WILMANS2M:
hello [MENTION=5150393]_alexndr[/MENTION]

So tried again with the sh modified script, but same thing. Same error and no initd installed unfortunately :(

If you have any other advice, i really thank you in advance.
[Android Software/Hacking General [Developers Only]] WILMANS2M:
i tried something different. I keep your original zip file, and put it in tools/initd folder in my custom rom

Then i added this in the updater script:

ui_print("@ Add init.d support");

package_extract_dir("tools/initd", "/tmp/initd");

run_program("/sbin/busybox", "unzip", "/tmp/initd/initd.any.stock.1.3.zip", "META-INF/com/google/android/*", "-d", "/tmp/initd");

run_program("/sbin/busybox", "sh", "/tmp/initd/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/initd/initd.any.stock.1.3.zip");

ui_print("--> Init.d Installed");

IT WORKS with this :)

Thanks ;)
[Android Software/Hacking General [Developers Only]] rony raj:
great job
[Android Software/Hacking General [Developers Only]] sins07:
You sir are an animal. This script is intelligently designed
[Android Software/Hacking General [Developers Only]] Has.007:
Hey, Firstly thanks for all your work!

I've not tried this yet but I'm working on stock based ROM nd I want to enable to init.d support in it.

I've used the SuperR's Kitchen to enable the init.d support in the kernel nd I could find the script in the kernel too. Not sure if it'll work or not as I haven't tested in yet. So I hope you can tell me if I need to enable this way too or not,

Thanks.
[Android Software/Hacking General [Developers Only]] yash92duster:
[MENTION=5150393]_alexndr[/MENTION]

Thanks a lot:D:D

Confirmed Working on Samsung Galaxy S5 G900H

OS: Stock Deodexed Marshmallow 6.0.1 with GreenApple Kernal
[Android Software/Hacking General [Developers Only]] venomxob:
It is working on xperia z2, 6.0.1 the latest build, but the problem is that after flashing the temp of the device is increased dramatically and battery is being drained very quickly.
[Android Software/Hacking General [Developers Only]] Shimizux:
Thank you, working fine w/ my MTK device.
[Android Software/Hacking General [Developers Only]] 3DSammy:
Thanks @_alexndr, this worked on a AOSP Nougat ROM for My Galaxy TabS SM-T800. See this credited post for your work.

The one small hassle I had was that my init.d scripts expected the "/sdcard" to be mounted when run but that was not the case. I ended up using the mounted "/data/log" directory for logging. Interesting as my previous init.d solution also called "Universal init.d", but from playstore, always had the "/sdcard" mounted when the scripts ran, but that app does not work on android Nougat, while yours does.

Thanks again.
[Android Software/Hacking General [Developers Only]] Emre67511:
It didn't worked for me :(

I have no sbin/sh file can someone upload it for me ?
[Android Software/Hacking General [Developers Only]] Emre67511:
If I flash again it says that init.d support is already enabled but I have no init.d log file in data :S
[Android Software/Hacking General [Developers Only]] Gourangaputhal:
I already use universal int.d enabler apk.... So is it need to use this zip...
[Android Software/Hacking General [Developers Only]] core720:
Dont Work A5 2016 MM
[Android Software/Hacking General [Developers Only]] coolbeans2016:
Lenovo TAB 2 A10-70F (Wi-Fi Only)

running MarshMellow 6.0 designed for the TAB 2 A10-70L

cfSuperSU SR3 & Steriksons BusyBox Pro

Worked perfect, init.d support ready to roll

Thanks,

zach
[Android Software/Hacking General [Developers Only]] joke19:
Thanks. Look like work on Huawei G6-U10 Emui 3.0 Android 4.4.2. Thanks
[Android Software/Hacking General [Developers Only]] Kellicros:
Doesn't seem to work on Lenovo(Tab3 7) TB3-730X, Marshmallow stock kernel rooted with magisk, it says enabled successfully during flash but there is no test log in /data/.
[Android Software/Hacking General [Developers Only]] ku4eto:
Okay, tried this, tried https://xdaforums.com/showthread.php?t=2711680 and some APK, which confirms that init.d was successful.

But, putting ANY scripts in the init.d folder, doesnt run them actually at boot (with the post-boot.sh editted), all changes have been made with remounting into RW.

Phone is XPeria Z3, 6.0.1, rooted.

I am trying to have a simple script to run at startup, its:

setprop net.hostname XXX

After using all mentioned options, nothing happens. Script is not executed. Run it manually - it works fine. Am i doing something wrong?
[Android Software/Hacking General [Developers Only]] raystef66:
Thanks for your help !

[MENTION=5150393]_alexndr[/MENTION]

EDIT: This script will NOT work with Magisk! However, notice that using Magisk you do not need init.d support at all (you can put your scripts in /magisk/.core/post-fs-data.d OR /magisk/.core/service.d, depending on your needs).

Indeed, very important to follow for Magisk (see OP).

Btw, imo from v14.5 beta the location is /sbin/.core/img/.core
[Android Software/Hacking General [Developers Only]] jineshpatel30:
[MENTION=5150393]_alexndr[/MENTION]

Doesn't work for me on Nexus 5 , LOS rom 7.1.2

It modified attched file in /system/bin

But i don't see test_run.log file in data partition.
[Android Software/Hacking General [Developers Only]] Droidtricks:
Worked ,Nice
[Android Software/Hacking General [Developers Only]] slimcyril:
This seemed to work on older device but failed on newer device.
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
_alexndr

your init.d is unique and working well...

please remove

rm -Rf /system/etc/init.d

in remover...

all valuable init.d scripts are removing after flashing your remover...
[Android Software/Hacking General [Developers Only]] mocarela:
Unfortunately doesn't work with the latest stock ROM (6.0.1) for Samsung Galaxy S5 mini (SM-G800F). It successfully modifies init.sec.bot.sh, but it looks like this file doesn't run at boot. Instead I used /su/su.d/000000deepsleep and there it works.
[Android Software/Hacking General [Developers Only]] cobra1111new:
android 8.1.0 android tv box X96 Max amlogic s905x2 - init.d not working
[Android Software/Hacking General [Developers Only]] neekzz:
Works!

Thanks for the great work !! For a long time I was looking for a support solution without editing the kernel. I use on android tv. Android 6.0.

You have opened new frontiers in setting up TVs! Gratitude knows no bounds !!!

Huge greetings from Russia :)

LeEco super TV 4x50pro android 6 with Mstar 938 processor.
[Android Software/Hacking General [Developers Only]] DarkBader:
Thank you! Worked like charm using zip3 + chainfire )

Device LG Stylo H635 Android 5.0.2

.

Just some remarks:

--Chainfire crashed just in the beginning, the workaround was changing date to 2013

--First attempt without mounting options failed due to mounting error

--Second, option to flash mounting read/write, failed with the same

--Third, option to auto mount, suceeded
[G3 Q&A, Help & Troubleshooting] wesley_vbv:
Hello guys, I have a problem with my lg g3 d855p hope help.

The device connects to the download mode more makes no sound in the USB, and not install driver.

I can enter the recovery to make hard reset, only that is infinite and have some errors when I press vol + and power.

The device is in the home screen lg only and does not pass it.

I wanted a solution.

I think it has no problems with the g3 usb why need it to enter the correct download mode?

I look forced guys
[Galaxy S6 General] JoeFCaputo113:
From 1st to 4th... New lock screen, new recents, new notification shade (2 pics).

7/8/16-

Download latest version of Good Lock app (v24.0.11)
[Galaxy S6 General] abdelha:
what is this? it doesn't look like anything out right now....how did you get it?
[Galaxy S6 General] wazedn:
Apparently you can download the apk from sammobile but it's not working for me... I get a parsing package error. I'm on 5.1.1 when I tried this so you probably need 6.0.1 for it to work. On sammobile, the post was towards s7/s7e users through...
[Galaxy S6 General] Diaze:
Give the dowbload link
[Galaxy S6 General] jack allen:
could u post link please
[Galaxy S6 General] abdelha:
i think it's for the S7...at least for now

EDIT: i installed it on my s6 with MM....and it works
[Galaxy S6 General] doxiarski:
http://www.sammobile.com/2016/03/29...screen-for-your-galaxy-s7-and-galaxy-s7-edge/

Here's link :)
[Galaxy S6 General] abdelha:
quick review:

1. it looks nice, but you can't change the color of the notification panel and toggles

2. the recent apps screen reminds me of older android versions, no picture or tabs, just the name of the app

hope they update it with some more settings
[Galaxy S6 General] NickS4:
You can change the colours by editing the default routine, or creating a new one.
[Galaxy S6 General] jack allen:
thank u buddy
[Galaxy S6 General] doxiarski:
Well maybe it's because I've got custom ROM but my device suddenly restarted and application has been uninstalled O.o
[Galaxy S6 General] abdelha:
thanks, but it's a bit annoying, if you make your own profile it needs to have the location toggle on, if you cancel it everytime you wake up the device it asks to enable location toggle, and pressing the recent apps button is slow, and when you press the home button to get to the home screen there is a delay....i guess it's not ready yet
[Galaxy S6 General] NickS4:
Just edit the default one. Doesnt need location.
[Galaxy S6 General] adrimarti15:
how did you manage to change the color in the s6?
[Galaxy S6 General] Isus <3:
I dont like the design, looks pretty bad.
[Galaxy S6 General] abdelha:
thanks, but still, like i said there are more problems...at least for me, it's a bit slow, recent apps being only title is not something good....
[Galaxy S6 General] Jhayzt:
I kind of like it. :D I love the lockscreen and notification shade. the only thing that worries me is the recent view.
[Galaxy S6 General] abdelha:
yeah me too, i like the style and animation, but i don't like the recent apps view....and it's slow...
[Galaxy S6 General] JoeFCaputo113:
Same problems as you. Uninstalled....... for now. Hopefully it gets lots of updates with new features, bug fixes, etc. That'd be really awesome. Can't wait to see how this develops.
[Galaxy S6 General] tintinez:
[MENTION=6501238]adrimarti15[/MENTION] Te vas a la aplicación llamada Good Lock y ahí te vas a Routines, seleccionas default, ahi se cambian los colores.

Going to the application called Good Lock and there going to Routines, select default, there are change the colors.
[Galaxy S6 General] 85Christian85:
There is a new update available.
[Galaxy S6 General] tazaga:
Link
[Galaxy S6 General] 85Christian85:
It isn't uploaded to apk mirror now and I can't download it from Samsung store because I'm from Germany. However there is a update hint in the good lock settings since today.
[Galaxy S6 General] serdel_elo:
What are the changes?
[Galaxy S6 General] corb06:
No update here...

---------- Post added at 09:01 AM ---------- Previous post was at 08:50 AM ----------

Changelog:

Supporting Note 7

Add option to include or not Keep notifications when using Backup

Supporting center aligned Clock Widget on Lockscreen

Display the status bar icons of categorized notifications into one category icon

Supporting Iris concept (Note 7)

Enhanced swipe up interaction of Widget List for closing it

Supporting Routine location radius setting

Add unlock animation of Lockscreen

Supporting option to remove or not Apps when remove all on list type Recent Apps
[Galaxy S6 General] serdel_elo:
Thanks
[Galaxy S6 General] serdel_elo:
http://www.apkmirror.com/apk/samsun...lease/good-lock-24-0-12-android-apk-download/
[Galaxy S6 General] wazedn:
For everyone who is installing it on your s6, do you have MM or lollipop?
[Galaxy S6 General] guigoab:
MM here, and I installed with no problems. But after restarting the phone and played around with the app for a bit, it suddenly restarted again my s6 and uninstalled itself.
[Galaxy S6 General] Archmag3:
Uninstalled only because it keeps on asking location thing on lockscreen every moment.
[Galaxy S6 General] toole:
Uninstaller for now. I'll reinstall when it's more polished.
[Galaxy S6 General] Diaze:
It s amazing. I like the android n style .great
[Galaxy S6 General] orcunilbeyli:
I really can't understand how a big company that dominates mobile industry makes the ugliest UI. Maybe we should discuss taste of Asian people with ours. Because I see this kind of UX/UI ugliness in sony and lg too.

Regards.
[Galaxy S6 General] jack allen:
the design i dont mind and the fact u can change the colour n lock screen affect is cool only thing i dont like is if u disable location it keeps askin u to turn it on so iv uninstalled because of that annoyin thing

---------- Post added at 08:42 AM ---------- Previous post was at 08:41 AM ----------

exactly same reason iv uninstalled if it wernt for that id prob keep it
[Galaxy S6 General] flekinjo:
Is it possible for somebody to dissect the .APK and only keep the notifications and toggle pulldown (with AOSP colors), and remove new multitasking scheme? Seems great to be able to only install the .APK and have the system layout change (without rooting, custom ROMs, etc...)
[Galaxy S6 General] bardh8:
Doesn't require location anymore

The solution is to restart the device after having set it to "everywhere"
[Galaxy S6 General] adrimarti15:
Si pero cada vez que lo intento se desinstala la app.

Yes but every time y try the app uninstalls itself.
[Galaxy S6 General] the Doctor:
As I understand it, this is merely an optional change to the UI, not a change in direction.

I hope they do this for more TouchWiz "features" so some of us can have a UI closer to AOSP while others can add the TW stuff they like.
[Galaxy S6 General] Diaze:
How do you uninstall this?
[Galaxy S6 General] KennethHau:
the s-view feauture on the s6 doesnt work after enabling the new interface...
[Galaxy S6 General] hasdroid:
Open application and hit uninstall... ??☺

PRESS THANKS BUTTON IF I HELPED YOU..??
[Galaxy S6 General] XxM4tzexX:
I think samsung should add this to Galaxy Labs.

I agree that it lacks of features in the current state but it's not intended to be used as daily driver. Just a preview of something that might be coming.

I like that it is more aosp like but very difficult to understand what they mean by routines and creating custom routines. But again nothing has to be ready in anyway in this state of development.
[Galaxy S6 General] afsx10:
Simply...search in Galaxy app store "good lock".

worked well on MM G920i
[Galaxy S6 General] tintinez:
Es raro, yo pienso es porque no lo soporta la ROM que tienes.

It's rare, I think it's because it doesn't support your ROM.
[Galaxy S6 General] hasdroid:
All is good in this but... please the resent apps menu is so ugly... can any body hack this and just make this like the old one or sone thing just don't like this "joke" ???

PRESS THANKS BUTTON IF I HELPED YOU..??
[Galaxy S6 General] :
Post in English

Quote:

Originally Posted by tintinez [MENTION=6501238]adrimarti15[/MENTION] Te vas a la aplicación llamada Good Lock y ahí te vas a Routines, seleccionas default, ahi se cambian los colores.

Going to the application called Good Lock and there going to Routines, select default, there are change the colors.

Si pero cada vez que lo intento se desinstala la app.

Yes but every time y try the app uninstalls itself.

May I remind you both this is an English speaking forum and all posts must be in English

Thank You

Moderation Team
[Galaxy S6 General] Niks321:
I like this new UI. Maybe not for a long run but its good for a little change especially when everything is polished.

Only thing that is bothering me is location popup. Is there any way to use this UI without constantly having location turned on?

I pressed everywhere when setting location when making new profile, but still every time I unlock phone location popup comes again. With default profile I cant change my location as in custom profile but popup comes also every time I unlock my phone. Its very irritating and I dont want to have location turned on all the time.

Hope there is some way to disable that :)
[Galaxy S6 General] jazenf:
How can I give this new Ui a try, and does this work on S6 5.1.1?
[Galaxy S6 General] JoeFCaputo113:
Been trying to figure out the same thing man! I couldn't though, and the location consent pop up was too annoying so I had to uninstall, plus recents menu looks weird too. Will wait for updates/more customization options to reinstall.
[Galaxy S6 General] gamepro602:
MM only
[Galaxy S6 General] jazenf:
[emoji19] that sucks. .
[Galaxy S6 General] Jhayzt:
If you're still looking for an answer on how to remove the location pop-up thingy, you have to create your own routine first, then choose everywhere when it asks for your location. Follow through the steps. After you're done, restart the phone. When it boots up, disable location immediately. The pop-up won't bother you anymore and you can safely turn location on and off. :D Hope it helps!
[Galaxy S6 General] amresmael:
I like the new Ui but don't like the recent app panel

I prefer the current marshmallow recent app

I hope they made the new ui with the current marshmallow recent
[Galaxy S6 General] DJ_Jedi:
Very nice, i hope they will make it the default TouchWiz style in a future update, for now it's too buggy, it uninstalled a couple of times by itself lol
[Galaxy S6 General] phate89:
If someone doesn't like it graphically just change the color.. That purple is simply terrible.. I switched to something more similar to my wallapaper and it's great..

Recent apps page is ugly but that's the only con so I'm going to keep it installed

edit:also the missing option to reorder toggles is annoying
[Galaxy S6 General] koihia:
It's amazing.

I like the blurred effect.
[Galaxy S6 General] episode96:
I hope they add a lot more customization if that's going to be the case. Not being able to choose or reorder the toggles would be a huge step back for me. I'm not too convinced by the recent apps view either, though I have to say I've never been a fan of the stock one anyway.
[Galaxy S6 General] chris_morcos:
This only works on marshmallow
[Galaxy S6 General] tarunvats33:
Hi all,

Good lock v24.0.6 update is released.

Can someone please upload the apk.

Thanks in advance
[Galaxy S6 General] Ptfocore:
sammobile.com/wp-content/uploads/2016/04/Good-Lock-24.0.6.rar
[Galaxy S6 General] devilsadidas:
That looks like absolute crap... Bland and boring
[Galaxy S6 General] Jhayzt:
Blame the Android Purists who loves bland and boring stock Android. They are the reason.
[Galaxy S6 General] devilsadidas:
Maybe instead blame samsung... Who made this garbage.. Stock android is way better but I will stick with apex
[Galaxy S6 General] theronlas:
The notification pull-down at least looks very similar in stock android...
[Galaxy S6 General] mosespl:
hmm I like this new look... nice change from stock Samsung UI only change I will made is new color pretty blue or something

Wysłane z mojego SM-G920F przy użyciu Tapatalka
[Galaxy S6 General] Jhayzt:
Its the same thing with a little addons. Samsung is now trying to experiment with Stock Android looks.
[Galaxy S6 General] Ave666:
Option to enable the navbar without root that would be great for some user
[Galaxy S6 General] sebster718:
I like the nav bar with the white icons that are not transparent. Lock screen looks good. Recents could be more efficient vs card view (less scrolling to select app), doesn't bother me, but don't like app drawer that comes with it. Like the notifications, wish it was theme-able or they allowed dark/inverted colors to match the theme (using Card UI from theme store) on the rest of the UI. Performance wise it runs pretty good and doesn't use too much battery
[Galaxy S6 General] Ave666:
Yeah. It should have more option on selectable icon at notification drawer just like cm not on stock aosp. Also with more color option to choose.
[Galaxy S6 General] Jizzylax:
Anyone else experiencing a bug where you can't pull down notifications?
[Galaxy S6 General] snascentef:
I have no bugs, but when down the notification panel, the blur effect doesn't appear.
[Galaxy S6 General] Jizzylax:
They removed the blur effect from the last update.
[Galaxy S6 General] snascentef:
When samsung will turn this default on touchwiz?
[Galaxy S6 General] wazedn:
Love the UI except for a few things...

- the recents should resemble stock mm or vanilla android

- the shortcut for apps in the recents should be optional (i.e. there should be a toggle to turn it off)

- the lockscreen should show 3 notifications instead of 2 (normal lockscreen shows up to 3)

- the notification shade and quick settings should be allowed to be a dark colour with a light text (kind of like in vanilla android)

I would use it again if at least the 1st issue is fixed.
[Galaxy S6 General] troby86:
Heads up, if you are running stock 6.0.1, it is already installed on your device. You can go into Galaxy Apps, search for Good Lock, and update it, to get it to show up.
[Galaxy S6 General] Jhayzt:
There's a new update again?