(L5 II) CWM for Locked Bootloader(Beta 2) - LG Optimus L3 II, L5 II, L7 II, L9 II

Hey guys
I finished building CWM Recovery for locked bootloaders.
its still in the beta phases.... actually there was no alpha tests because no one on my team has a l5 II.
Due to forum rules I cannot choose who I want to give this recovery or exclude anyone from using it. so if you are a noob I cannot stop you from using it but please dont blame me if you brick your device!!!!!
The recovery as far as I know has no errors.
I have tested flashing Mother of all ad blocking and it worked perfectly.
How Does It Work?
the recovery uses 2nd int.
when your phone boots It is hacked to load scripts from init.d folder.
inside the init.d folder there is a script called 1.unsecure
this stops the system an kills process and launches the recovery.
How Do I Install?
Busybox must be installed
Extract the zip(attached)
Run the init.bat
Enjoy
How Do I Enter Recovery?
Reboot
after the lg logo before your boot animation starts repetitively hit the Vol + key
or run the reboot recovery app
Who do I thank?
ME for all the hard work testing and retesting
@IGGYVIP for giving me hope that its possible and all the support he has given me so far.
Optima Team for being such a great team
Can I port this to my device?
Yes!!
Port this to as many devices as possible. If you need advice or need to know how to port feel free to PM me.
It doesnt work for me?
some user experience problems when the script applies permissions
to fix this
Change permissions to all files in /system/bootstrap/* to 775
Download
DOWNLOAD

Great work man! Optima Team is proud of you!!!
Sent from my GT-I9300 using Tapatalk

slipsystem said:
Hey guys
I finished building CWM Recovery for locked bootloaders.
its still in the beta phases.... actually there was no alpha tests because no one on my team has a l5 II.
Due to forum rules I cannot choose who I want to give this recovery or exclude anyone from using it. so if you are a noob I cannot stop you from using it but please dont blame me if you brick your device!!!!!
The recovery as far as I know has no errors.
I have tested flashing Mother of all ad blocking and it worked perfectly.
How Does It Work?
the recovery uses 2nd int.
when your phone boots It is hacked to load scripts from init.d folder.
inside the init.d folder there is a script called 1.unsecure
this stops the system an kills process and launches the recovery.
How Do I Install?
Busybox must be installed
Extract the zip(attached)
Run the init.bat
Enjoy
How Do I Enter Recovery?
Reboot
after the lg logo before your boot animation starts repetitively hit the Vol + key
Who do I thank?
ME for all the hard work testing and retesting
@IGGYVIP for giving me hope that its possible and all the support he has given me so far.
Optima Team for being such a great team
Can I port this to my device?
Yes!!
Port this to as many devices as possible. If you need advice or need to know how to port feel free to PM me.
Download
https://dl.dropboxusercontent.com/u/51036208/Android/Stock/cwm.zip
Click to expand...
Click to collapse
why not mod one of the 2nd-init recovery apks with this?? Make much simpler for n00bs as well as give the reboot to recovery option.
Modding the apk I have exp with, I just never had any success building a working 2nd-init binary.

PlayfulGod said:
why not mod one of the 2nd-init recovery apks with this?? Make much simpler for n00bs as well as give the reboot to recovery option.
Modding the apk I have exp with, I just never had any success building a working 2nd-init binary.
Click to expand...
Click to collapse
The apk pushes the script to a different location and only executes on the l3 ii. So the app doesn't work on the l5 ii. I would have to do allot of editting. Enable init.d and change where the files get pushed to.
But it's pretty simple for noobs.
And this is not ment for noobs as I said on my thread its still on beta testing.

slipsystem said:
The apk pushes the script to a different location and only executes on the l3 ii. So the app doesn't work on the l5 ii. I would have to do allot of editting. Enable init.d and change where the files get pushed to.
But it's pretty simple for noobs.
And this is not ment for noobs as I said on my thread its still on beta testing.
Click to expand...
Click to collapse
ahh, I've just messed with 2nd-init on the LG Motion & Spirit and the same apk works on the F3, F6, & F7 (I think). The Spirit no longer needs 2nd-init tho.

PlayfulGod said:
ahh, I've just messed with 2nd-init on the LG Motion & Spirit and the same apk works on the F3, F6, & F7 (I think). The Spirit no longer needs 2nd-init tho.
Click to expand...
Click to collapse
Ya I think the apology works on most devices. If not then mine should work pr you will just have to change the key. It's pretty simple to port. I will try make. A guide tommorow

Awesome Work Mate !!!
@slipsystem
Great Job
You have made so much more out of that apk then i ever would
I can see Newsworthy thread when porting to other devices works

I can't reboon in recovery mode
Hello, I can not reboot in recovery mode, I was run the init.bat, then, reboot my L5 II (e450f) and pressed repetitively the Vol + key. But I never reboot in recovery
Could you help me?
PS. Your team is awesome!!

jamonazo3000 said:
Hello, I can not reboot in recovery mode, I was run the init.bat, then, reboot my L5 II (e450f) and pressed repetitively the Vol + key. But I never reboot in recovery
Could you help me?
PS. Your team is awesome!!
Click to expand...
Click to collapse
Check
/data/local/tmp
There is a file called init.d_log_test
Check if you have that file
Open it check if the date and time matches your last reboot.

Great! Now we only need custom roms and android updates.

jamonazo3000 said:
Hello, I can not reboot in recovery mode, I was run the init.bat, then, reboot my L5 II (e450f) and pressed repetitively the Vol + key. But I never reboot in recovery
Could you help me?
PS. Your team is awesome!!
Click to expand...
Click to collapse
Sorry its dues to permissions
Change permissions to all files in /system/bootstrap/* to 775

slipsystem said:
Sorry its dues to permissions
Change permissions to all files in /system/bootstrap/* to 775
Click to expand...
Click to collapse
the init.sh has chmod rules to 755
the attached one has 775

Updated Version in first post!
Now Includes Reboot Recovery app
and hopefully fixed permission problem.

slipsystem said:
Check
/data/local/tmp
There is a file called init.d_log_test
Check if you have that file
Open it check if the date and time matches your last reboot.
Click to expand...
Click to collapse
Hello, I was open /data/local/temp/ and only can see a file recoverylog.txt
I will check your new update.
Thanks for all

IGGYVIP said:
the init.sh has chmod rules to 755
the attached one has 775
Click to expand...
Click to collapse
sorry my math is bad. the permission are meant to be 755. for some reason when shell is changing permissions it gets permission denied.

I think that the script 001unsecureboot doesn't kill the bootanimation, in fact when I reboot to recovery there is the bootanimation (deformed and with strange colors) on the screen, and only when I press a key the recovery appears for one second.
After adding the line "$BB killall bootanimation" after "$BB mount -o remount,rw /system /system", the issue is solved.

ownership ?
slipsystem said:
sorry my math is bad. the permission are meant to be 755. for some reason when shell is changing permissions it gets permission denied.
Click to expand...
Click to collapse
May be try changing owner to root before changing permissions ?
in the .sh add this code before chmod but after the remount,rw
Code:
chown -R root /system/bootstrap
in theory as its owner it must allow change of permission
Let me know

IGGYVIP said:
May be try changing owner to root before changing permissions ?
in the .sh add this code before chmod but after the remount,rw
Code:
chown -R root /system/bootstrap
in theory as its owner it must allow change of permission
Let me know
Click to expand...
Click to collapse
I actually had the script setting permission for
/System/etc/bootstrap
And not
/System/bootstrap

@HandyMenny
Thanks For that. I added that in a update.

slipsystem said:
I actually had the script setting permission for
/System/etc/bootstrap
And not
/System/bootstrap
Click to expand...
Click to collapse
with system as System? never had em capped b4.

Related

Insecure ADB for PLAY

Modaco made it:
http://android.modaco.com/content/s...-com/339300/insecure-adb-for-the-xperia-play/
But be warned: This methode isn safe for 100% so if you're a "beginner" (aka Noob) dont lay your fingers on it. You should wait for a real recovery release.
......awsome
GScript Insecure ADB Install:
Link: Click here to download
Instructions:
1) if you already use gscript skip to step 3
2) install gscript from market, create a folder on sdcard called gscript
3) extract files from archive to gscript folder on sdcard
4) load gscript press menu, select add script, then select load script
5) Select "install modaco insecure adb.sh"
6) MAKE SURE SU is ticked, then run script
7) Enjoy adb remount
8) THANK PAUL AT MODACO
WARNING: AS PAUL HAS ADVISED THIS MAY BRICK YOUR DEVICE... Maybe.. Although I would think flashing a system.img from fastboot would repair.
WARNING: RECOMMENDED ONLY FOR UNLOCKED BOOTLOADER
FrAsErTaG said:
WARNING: RECOMMENDED ONLY FOR UNLOCKED BOOTLOADER
Click to expand...
Click to collapse
That's not entirely true mate ;-)
"To that end, i'm releasing here a method for getting Insecure ADB on any rooted Play (with or without unlocked bootloader)"
Regards Dousan...
The gscript will work on any play its just recovering a problem that's Why I recommend this for unlocked boot loader
Sent from my R800i using XDA Premium App
Paul has released an APK to do it all for you now
FrAsErTaG said:
Paul has released an APK to do it all for you now
Click to expand...
Click to collapse
can we get a link to the download on modaco please?
*edit* DM i found it lol
Can you please explain to me what this does for us?
emann56 said:
Can you please explain to me what this does for us?
Click to expand...
Click to collapse
If you don't understand what it does don't worry about it...
It basically allows you to use adb with full write access to the device.. including adb push to /system
emann56 said:
Can you please explain to me what this does for us?
Click to expand...
Click to collapse
yeah as FrAsErTaG said it allows you to use commands like adb remount, this remounts /system as R/W, its more usefull for devs atm. than standard users
Can someone reupload the gscript somewhere please
When i press install my phone reboots what should i do?
ThePerfectBitch said:
When i press install my phone reboots what should i do?
Click to expand...
Click to collapse
Nothing, That means it's finished
Can you revert the changes applied by this ?

DELETE ME

Edit: Delete me
Heh, adding bootanim support to my kernel was something I was thinking of this weekend.
It needs initramfs hacks - check the commits for my I777 initramfs.
Entropy512 said:
Heh, adding bootanim support to my kernel was something I was thinking of this weekend.
It needs initramfs hacks - check the commits for my I777 initramfs.
Click to expand...
Click to collapse
I'm confused... I checked out your commits. It seems like essentially, what I did in my 2nd senario up there should have worked with a "bootanimation.zip". You pulled the switcharoo in initramfs and I pulled it at the file location. You off loaded execution to a shell script and I executed from the call in the initramfs.
Is there a difference in offloading to the shell script verses directly calling from init.rc?
Is there some reason I can't just make up an arbitrary name for a service? Like: I can't just call it "serviceA" and point at some daemon; in init.rc?
It seem like as long as you retain the service name "samsungani" you can point it anywhere you want? So like, the service names are set in stone?
Your solution is definitely more elegant, I think I would have gotten there if I could have just gotten a custom boot animation to load..
Thank you for the reply by the way.
Meticulus said:
Custom Boot Animations!
I'm only posting 1 for now but will post more as I have time
Need to have CMW
Method # 1
1. Download, Animod.zip and one of the animations and put them on you sdcard.
2. Use CMW to install Animod.zip and then animation. ( no need to reboot and you only need to install Animod.zip once.
3. Reboot.
Method # 2
1. Download Animod.zip and install using CMW.
2. Search the web and find a "bootanimation.zip" that you like and download.
3. Rename file "sanim.zip".
4. Connect your player and adb shell.
5. mount -o remount,rw /system
6. exit
7. push sanim.zip /system/media
8 adb reboot.
Let me know how it goes...
Click to expand...
Click to collapse
Thank you Meticulus for finding out how to use custom boot animations!
I have a Galaxy Player 4.0, so I couldn't use your CWM because it is not formatted as ext4. But here's how I did it:
1. Change /system/bin/samsungani to /system/bin/samsungani.met
2. Change /system/bin/bootanimation to /system/bin/samsungani
3. Drag sanim.zip to /system/media and reboot.
It works perfectly!
wow !!! Gotta try
thanks for your hard work
I really want to change my boot animation but I search everywhere it's said SAMSUNG use another method to change boot animation.
but if this work
I must be happy
###Edit###
after try
Method # 2
1. Download Animod.zip and install using CMW.
2. Search the web and find a "bootanimation.zip" that you like and download.
3. Rename file "sanim.zip".
4. Connect your player and adb shell.
5. mount -o remount,rw /system
6. exit
7. push sanim.zip /system/media
8 adb reboot.
Click to expand...
Click to collapse
after reboot boot animation still stock samsung
but when I try following advice from klin1344
1. Change /system/bin/samsungani to /system/bin/samsungani.met
2. Change /system/bin/bootanimation to /system/bin/samsungani
3. Drag sanim.zip to /system/media and reboot.
Click to expand...
Click to collapse
& yeah !!!! it's work
Thanks all yall !!!!
The bootanimation binary in Samsungs points to sanim.zip and not bootanimation.zip - I kanged a binary from CM7.
A CM7 GalaxyS binary should work on this device.
klin1344 said:
Thank you Meticulus for finding out how to use custom boot animations!
I have a Galaxy Player 4.0, so I couldn't use your CWM because it is not formatted as ext4. But here's how I did it:
1. Change /system/bin/samsungani to /system/bin/samsungani.met
2. Change /system/bin/bootanimation to /system/bin/samsungani
3. Drag sanim.zip to /system/media and reboot.
It works perfectly!
Click to expand...
Click to collapse
I forgot about the CWM being ext4 only I'll make one that is rfs and post it!
Entropy512 said:
The bootanimation binary in Samsungs points to sanim.zip and not bootanimation.zip - I kanged a binary from CM7.
A CM7 GalaxyS binary should work on this device.
Click to expand...
Click to collapse
Yeah, adb logcat became my friend! I was looking at the platform source code and of course Samsungs changes where not in there!
so method 3
need to install animod ??
or just do following step
just ask for anyone who will trying to do that
aillez said:
so method 3
need to install animod ??
or just do following step
just ask for anyone who will trying to do that
Click to expand...
Click to collapse
No need to install Animod for method 3. animod. does steps 1 and 2 in method 3.
RFS version is tested and working now.
This method also works on an international GP 5.0 with some tiny modification to the flashable zip.
The mount command in the updater-script is not compatible with YP-G70, but it works after I changed that to
Code:
run_program("/sbin/mount", "/system");
WT Ho said:
This method also works on an international GP 5.0 with some tiny modification to the flashable zip.
The mount command in the updater-script is not compatible with YP-G70, but it works after I changed that to
Code:
run_program("/sbin/mount", "/system");
Click to expand...
Click to collapse
Thanks man, I new to created CWM update zips. I should be able to consolidate back down to 2 files instead of 4!
Glad it works in international as well.
Thanks, worked great! No more stupid samsung bootscreen!

[HOW_TO] get 'init.d' Support on Tablet S

Why?
init.d allows to run scripts at system startup (reboot) of Linux and Android devices. On the Sony Tablet S it is not supported on "stock" ROM. Therefore it is not possible to execute shell scripts at the boot process.
For what?
As mentioned above, primarily for startup scripts. It can be used for 'mounting ext.sdcard to int. sdcard' for example or it is also possible to integrate kernel modules or system tweaks boot time.
How?
This requires copying the files in the enclosed zip archive to the corresponding points and to change the permissions right. Firstyou must create the folder 'init.d' at '/system/etc'.
But now "Step-by-Step":
Requirements:
You need to use Root Explorer, adb or something else. I do not want to explain each step in detail. If you have not the necessary basic knowledge you should not do this because it is deeper system change, which could end with a brick or boot loop. That would not 'the end of the world', if you have previously prepared you system for this before and know what to do this case. I am not responsibility for damage or other any problems.
Everything is done at your own risk.
Step-by-Step Instructions:
1. Create in '/system/etc' a 'init.d' folder
2. Change the access rights to '777'
3. Copy the file 'sysinit' into folder '/system/bin'
4. Change the access rights to '755'
5. Copy file 'install-recovery.sh' into folder / system / etc '
6. Change the access rights to '777'
7. Copy file 'run-parts' into folder '/system/xbin'
(If 'run-parts' already existing, you can skip Step 7 and 8. In my case it was already on the Tablet S)
8. Change the access rights to '777'
9. Copy file '99test file' into folder '/system/etc/init.d'
10. Change the access rights to '777'
Now finished .... it should work !
After next reboot take a look into the folder 'data/local/tmp'. You should find a file 'init.d_log_test.txt', created by the test script. If so, everything works fine and now you can put there your own scripts under 'init.d'. Now you can delete the test script or if you like adjust it for your own tests.
Have fun with the new 'init.d' support and apologize for my weak English !!
Special thanks to DooMLord for the idea and first implementation.
Source: http://forum.xda-developers.com/show....php?t=1431134
am I missing something here, or where is the zip-file?
the link doesn't work at the bottom.
Thanx for a nice "how-to"
Seems simple and straightforward enough
Sorry for that and thank you for the hint. I was 100% sure that I enclosed the zip ... but it looks like I am getting old. ;-)
Now you should find the zip on the end of first post.
Sorry - how do you gve the 777 file permissions?
SWFlyerUK said:
Sorry - how do you gve the 777 file permissions?
Click to expand...
Click to collapse
Via the chmod unix command, or if you are using root explorer just enable read/write/execute permissions for owner, group, and others. For 755 give owner all permissions and only read/execute to group and others.
Whoops, my device is in a bootloop lol
I hope you are joking ...
@Rumball
Sorry, but you are wrong ...
755 give owner all permissions and only read/execute to group and others.
4=read
2=write
1=execute
I'm not joking, the permissions error is obviously the reason its in a bootloop then, fantastic.
What does it mean? Did you set wrong file permissions and reboots system? On all files or only on one specific? Did you changed build.prob and downloaded system update for boot loop prevention before?
obicom said:
I hope you are joking ...
@Rumball
Sorry, but you are wrong ...
755 give owner all permissions and only read/execute to group and others.
4=read
2=write
1=execute
Click to expand...
Click to collapse
Doh! Thanks
SWFlyerUK said:
I'm not joking, the permissions error is obviously the reason its in a bootloop then, fantastic.
Click to expand...
Click to collapse
Not permissions fault. Mine didn't bootloop
obicom said:
Special thanks to DooMLord for the idea and first implementation.
Click to expand...
Click to collapse
yep, DooMLord's great work.
got finished autoinstall tool for init.d as I said to you on thursday.
That sounds great ...
let us share your file ...
it makes it much easier for the other members ..
if you allow I could add it to the first post ...
with a special thx for Condi ;-)
obicom said:
That sounds great ...
let us share your file ...
it makes it much easier for the other members ..
if you allow I could add it to the first post ...
with a special thx for Condi ;-)
Click to expand...
Click to collapse
hah not important, just good to see that there are some people who are working on making our devices better and better the more of us = more of cool tab stuff
auto-install up, try it, tested so far only on one device.
I changed nothing in the build.prop.
All I did was follow the instructions to your post and change the permissions as said by the chap above.
I'm now in a boot loop. My own fault for doing it but you don't expect posted information on permissions to be incorrect...
Can't follow your comment ...
Nothing is wrong with the information regarding permissions.
I did exactly the same on my Tab and one hour ago via Teamviewer on a second one.
I am not responsible if you did something wrong. Specially if you did not follow my hint to do first all regarding "boot loop prevention"
If you have not the necessary basic knowledge you should not do this because it is deeper system change, which could end with a brick or boot loop. That would not 'the end of the world', if you have previously prepared you system for this before and know what to do this case. I am not responsibility for damage or other any problems. Everything is done at your own risk.
Click to expand...
Click to collapse
SWFlyerUK said:
I changed nothing in the build.prop.
All I did was follow the instructions to your post and change the permissions as said by the chap above.
I'm now in a boot loop. My own fault for doing it but you don't expect posted information on permissions to be incorrect...
Click to expand...
Click to collapse
I wrote in many threads about 'rescue-backdoor', why havent you made it?
I did condi ie got my ota firmware. Rolled the build.prop increment value back. But I get a verification cation error so everything was prepared.
That was the background regarding 'did you changed build.prob' and not as a reproach. I can not understand why someone try something out, without a backup or rescue strategy. Oh damn !!
-- Edit --
Rolled the build.prop increment value back
Click to expand...
Click to collapse
Does it mean now you have the original value or the lower value?
If first case , that was a fault.
SWFlyerUK said:
I did condi ie got my ota firmware. Rolled the build.prop increment value back. But I get a verification cation error so everything was prepared.
Click to expand...
Click to collapse
The key to 'rescue' is to leave modified build.prop. It fakes that you've got older firmware than zip (zip=device the same versions). Then you get in recovery, and got opportunity to reflash the same version!

[MOD] Add Init.d Support T230/NU

i have been messing with init.d for rooted/stock rom t230/nu and i have come up with a modified version of this >> http://forum.xda-developers.com/showthread.php?t=1912504
INSTRUCTIONS:
Flash the attacthed zip in twrp and reboot...
HOW DO I KNOW IF IT WORKED?
in root browser goto /data/local/tmp/ and if there is a file 'init.d_log_test.txt' and inside is written the date, it worked.
if the file is not present something went wrong? please let me know if it went wrong for you an i will fix it..
dont forget to hit thanks and also credit the @jamesst20 in the above link...​
Ill give it a go.
Sent from my SM-T230NU
BookCase said:
Ill give it a go.
Sent from my SM-T230NU
Click to expand...
Click to collapse
let me know how it goes as i have only tested on my device... thnx
This will work.....I have it baked into my ROM.
One thing....I'd rename the install-recovery.sh to install-recovery-2.sh as that will break root. SU daemon is called by install-recovery.sh on boot. just a heads up.
g_ding84 said:
This will work.....I have it baked into my ROM.
One thing....I'd rename the install-recovery.sh to install-recovery-2.sh as that will break root. SU daemon is called by install-recovery.sh on boot. just a heads up.
Click to expand...
Click to collapse
i am building a rom at the moment and could not get my head round why it was breaking root lol... cheers dude..
Inside 4ndroid said:
i am building a rom at the moment and could not get my head round why it was breaking root lol... cheers dude..
Click to expand...
Click to collapse
Let me if your still having trouble with root afterwards.
g_ding84 said:
Let me if your still having trouble with root afterwards.
Click to expand...
Click to collapse
oh and in your rom it seems we cant update the su binary and have to flash an updated binary seperetely from within recovery.. i found a work around and now when i flash my rom it says binary needs updating an now in my rom the normal method works and alakasm success
if you need me to explain further pm me an i will go through how i managed it..
In the rom that you're working on is based on CyanogenMod or this stock?
on the other hand just flash this file in Stock T230XXU0ANK3'll see that this is
If you want to enable init.d, you simply install busybox from playstore and download universal init.d, and verify ...
checks in the system / etc / init.d contained in the file 00test & 08setperm :good:
working on my phone 4 tab 7 "T231 :fingers-crossed: :fingers-crossed:
sorry for my bad english
riotaruna said:
If you want to enable init.d, you simply install busybox from playstore and download universal init.d, and verify ...
checks in the system / etc / init.d contained in the file 00test & 08setperm :good:
working on my phone 4 tab 7 "T231 :fingers-crossed: :fingers-crossed:
sorry for my bad english
Click to expand...
Click to collapse
or you could just simply flash the file file in the OP takes alot less time an is simple an staight forward lol..
File is gone

(Custom Rom Only)Change SELinux status with Terminal Emulator

For all peeps with problems about changing SELinux status from permissive to enforced and vice versa on Custom Roms ive uploaded some files that helps.
I´m to lazy to make a recovery binary/script,when needed do it by yourself,its no problem.
--
Needed:
For sure you must be rooted and you need any root file manager like root explorer and a terminal emulator.
Extract the zip and move or copy the files to the place i write under this text with permission 755.
--
selinux_on : system/bin - per. 755
selinux_off : system/bin - per. 755
81selinux : system/etc/init.d - per. 755
--
When all files are placed just go to terminal and type following commands:
--
su and the enter button for root access in your terminal
to have SELinux on type selinux_on and the enter button
to have SELinux off type selinux_off and the enter button
--
It sticks after reboot, for this cares the init.d script.
--
Hope this helps some peeps here,screenshots are fom my A5FU with Andoid 6.0.1 Custom Rom,i think it work for ALL!!!​
-CALIBAN666- said:
For all peeps with problems about changing SELinux status from permissive to enforced and vice versa ive uploaded some files that helps.
I´m to lazy to make a recovery binary/script,when needed do it by yourself,its no problem.
--
Needed:
For sure you must be rooted and you need any root file manager like root explorer and a terminal emulator.
Extract the zip and move or copy the files to the place i write under this text with permission 755.
--
selinux_on : system/bin - per. 755
selinux_off : system/bin - per. 755
81selinux : system/etc/init.d - per. 755
--
When all files are placed just go to terminal and type following commands:
--
su and the enter button for root access in your terminal
to have SELinux on type selinux_on and the enter button
to have SELinux off type selinux_off and the enter button
--
It sticks after reboot, for this cares the init.d script.
--
Hope this helps some peeps here,screenshots are fom my A5FU with Andoid 6.0.1 Custom Rom,i think it work for ALL!!!​
Click to expand...
Click to collapse
Does not work on J2
After reboot
Selinux status is enforcing
Sent from my SM-J200F using Tapatalk
---------- Post added at 03:38 PM ---------- Previous post was at 03:36 PM ----------
this method just work on custom rom with custom kernel
Sent from my SM-J200F using Tapatalk
Hi. I keep on getting this message everytime on the notification screen. Its damn annoying. How do i get rid of it.
Amit Arr said:
Hi. I keep on getting this message everytime on the notification screen. Its damn annoying. How do i get rid of it.
Click to expand...
Click to collapse
SecurityLogAgent
ashyx said:
SecurityLogAgent
Click to expand...
Click to collapse
Oh you mean freeze it??
Amit Arr said:
Oh you mean freeze it??
Click to expand...
Click to collapse
Or remove it.
ashyx said:
Or remove it.
Click to expand...
Click to collapse
I would prefer freezing. Removing can hamper the functionality of other apps. Don't want to take risk
Doesn't work on S7 Exynos.
Verstuurd vanaf mijn SM-G930F met Tapatalk
its stock,yes?i forgotten to say its for custom roms,sorry.
I'm trying this on an International Galaxy S7, SM-G935F, Custom Rom OnTheEdge v3.1.
The command isn't even recognized.
I think the right command for this handset is, without quotes, "su 0 setenforce 0"
Nevertheless, the command is returning "Permission Denied".
After what i've read until now, it is possible to make Permissive mode standard when compiling a custom rom, but the source code for my rom isn't available to public as far as I know. Otherwise I would def test it, but there's still so few custom roms out there for Galaxy S7..
EDIT
So, after I actually extracted the files the right place the commands DID work. However, "getenforce" is still showing "ENFORCING"
-CALIBAN666- said:
its stock,yes?i forgotten to say its for custom roms,sorry.
Click to expand...
Click to collapse
@caliban666 Thank you. I tried your method on a5h which was initially on stock but I installed a ROM by @mygalaxya called NOTE 7 ROM. I have been trying to change SELinux as I have been trying to install my favourite app viper4Android. When I use Terminal emulator (Termux) I get the error as follows:
bash: /system/bin/selinux_on: Permission denied.
Please help if you can.

Categories

Resources