Can't find selinux.config - Android Q&A, Help & Troubleshooting

Hi I have Samsung Galaxy j7 core j701F, I'm running magisk on my device and I ran the saftey net test and it failed, while trying to solve this I tried to change selinux state to endorced by editing /etc/selinux.config, but when I opened the folder there was no such file!
When I run getenforce command it gives me "permissive"
Is this a problem and how can I fix it?
Thanks

Related

[Q] [kernel] Set SE permissions to busy box during init boot process

Hello guys, maybe one of you might be able to help me out
I have a sh script that patches the fstab before it got mounted.
Sadly since its in the during the init process i need to define some se permissions to busybox
here is the debug kernel log
http://pastebin.com/HZmJdRWv
anyone could help me out how to setup the permissions required?
Khaon said:
Hello guys, maybe one of you might be able to help me out
I have a sh script that patches the fstab before it got mounted.
Sadly since its in the during the init process i need to define some se permissions to busybox
here is the debug kernel log
http://pastebin.com/HZmJdRWv
anyone could help me out how to setup the permissions required?
Click to expand...
Click to collapse
maybe these pages will help?
http://selinuxproject.org/page/TypeRules
http://www.newandroidbook.com/21-Security.pdf
selinux has been giving me fits since it went enforcing in kitkat.
as far as busybox goes, running it as su seems to let it get past selinux restrictions... I was able to use busybox in root adb shell to mount an ext2 partition without the ext2 security attribute set in the kernel config, while trying to mount it with any other method would fail because of selinux.

Need Help - Fixed Permision with SELinux - now in trouble

Hi,
i clicked "Fix permission & Se Linux " in TWRP recovery tool. Now, i am not able to access the phone, it says "com.android.phone has stopped. Is there any way to reverse the permission and SeLinux config in android. Can anyone help?
Mobile: Samsung Grand Prime
OS: Android 5,lollipop

How to change MAC address on Redmi Note 4 (nikel)?

Hi,
I need to change my mac address. My phone is Xiaomi Redmi Note 4 (with Mediatek X20 processor), with 64GB storage and 3GB RAM. Running latest MIUI Global Stable 8.0.40. Bootloader is unlocked, installed latest cofface's TWRP, and rooted.
I tried several apps (ChameleMAC & Change My Mac don't work), the MTK Engineering Mode method by changing through byte string access in WiFi_NVRAM also didn't work (the 'write' function doesn't do or change anything). Wanted to try the hex editor method, but can't find the /nvram/APCFG/APRDEB folder in /data or /dev folder.
I'm out of ideas. Anybody know a method to change mac address that's actually /U] work for Redmi Note 4 (nikel) with Mediatek X20 processor?
I'm running AOSP rom on RMN4 and can change MAC address with ChameleMAC or MTK Engineer Mode. You must root, then use app called SELinuxModeChanger to set into Permissive, then ChameleMAC can working after that.
http://forum.xda-developers.com/showthread.php?t=2524485
longnt2007 said:
I'm running AOSP rom on RMN4 and can change MAC address with ChameleMAC or MTK Engineer Mode. You must root, then use app called SELinuxModeChanger to set into Permissive, then ChameleMAC can working after that.
http://forum.xda-developers.com/showthread.php?t=2524485
Click to expand...
Click to collapse
THANK YOU!
SELinuxModeChanger is the key.
No success with SElinuxModeChanger or SELinux Toggler
longnt2007 said:
I'm running AOSP rom on RMN4 and can change MAC address with ChameleMAC or MTK Engineer Mode. You must root, then use app called SELinuxModeChanger to set into Permissive, then ChameleMAC can working after that.
http://forum.xda-developers.com/showthread.php?t=2524485
Click to expand...
Click to collapse
Your success in changing the MAC-Adress gave me hope to do the same... (I need to change the MAC-Adress because two of our Redmi Pro have somehow the same MAC-Adress...and this causes constat WIFI-Problems...)
But unfortunately, both apps didn't work for me... (Redmi Pro, SuperSu 2.82, BusyBox)
The Toggler couldn't be installed at all... And the ModeChanger "can't get root" (although SuperSu states, it has root rights...)
Any ideas? Thanks in advance!
UPDATE!
I could install the SELinux Toggler by flashing the ZIP with TWRP... and could finally change the WLAN-MAC-Adress (after a few attempts) with SELinux set to permissive and writing a new MAC-Adress within the Engeneer Mode...
The only strange thing is, that after the first reboot the MAC-Adress changed again to a completely new one. But since then, it stays the same so far...
This App Also Work Like Charm :-
https://play.google.com/store/apps/details?id=net.xnano.android.changemymac

Direct TV Error 40 Root Check bypass on Amlogic s905x (TX5Pro, Marshmallow)

I downloaded the DirecTV Now app on New Year's Eve hoping for $35/cable. Instead, I was greeted with the same Error 40 that everyone with a rooted device got. It took me a couple of days of researching and playing and reflashing and..., but I've finally figured out the simple(r) method to bypass this stupid root check for DirectTV Now (AKA Error 40, QP1005)
This applies to the TX5Pro, but it should work on any s905x based AMLogic SoC running Marshmallow 6.0 (A95X, CQ9, TX5, TX3, X96, NEXBOX, +many more.) As I understand it, they all have similar Android builds using the p212 board and firmware. I also have a M8S s812 running Kit-Kat 4.4.2 that I'll work on breaking, next.
First things, first: If possible, find your firmware and do a clean flash. Not a requirement, but if you've been playing with this for a while and you've ended up here, you've probably mucked up your /system files in some way or another. I managed to screw up my su binary location a few times and couldn't get it back without a lot of work. Reflashing was a three-minute, headache-free task.
That said, you'll want to adb over tcp/ip as these devices don't like to play the USB cable game.
Code:
adb connect deviceipaddress:5555
Follow up with
Code:
adb shell
and
Code:
su
to get into a root shell (if you don't get one by default.) Mine came with SuperUser from ClockworkMod preinstalled as a system app. Mount your system folder
Code:
mount -o rw,remount,rw /system
and edit your build.prop file with Vim.
Code:
vi /system/build.prop
If Vim is new to you, search the interwebs for a Vim cheat sheet.
Here's the trick with this... DirecTV Now's shared object file in lib/armeabi/libdrmagent_downloadable_jni.so looks for a few keywords within a few properties. Those properties are:
Code:
ro.build.product
ro.build.tags
ro.build.type
ro.build.display.id
...and the keywords are:
Code:
"release-keys, OnePlus2, OnePlus, Z26CL, STUDIO_C, user" are keywords that it favors, while "cm, cyanogen, cyanogenmod, debug, userdebug, A0001" are disqualifying keywords. Supposedly, "test-keys" is a bad word, too.
In my case, I needed to edit my build.prop to eliminate any sign of the bad words. Example:
Code:
ro.build.display.id=p212-userdebug 6.0.1 MHC19J 20160909 test-keys
to
ro.build.display.id=p212-user 6.0.1 MHC19J 20160909 release-keys
Run through the file and replace anything that says userdebug with user and test-keys with release-keys until you get to "#end build properties" Then save and reboot.
After reboot, install Hide My Root (I used the one from Amphoras) and hide the Su binary. This is where things might be getting tricky for some of you... on the TX5Pro, the SuperUser app is a system installed app, meaning it can't be uninstalled (it can, but it's not exactly a simple task for everyone) so you'll need to go into settings -> apps -> superuser and disable the app from there. Reboot again. Now, with the su binary hidden and the app's manifest not showing up in the system, the error 40 message should go away. This option will allow you to quickly restore su and SuperUser without needing a bunch of additional steps. You'll still need to set the device location service to "battery saving" (or use mock locations) but that's a simple task anyone can figure out.
The app is a choppy on high def feeds for some reason. I can't tell if this is processing/memory issue or a feed (wifi) issue. By default, the app doesn't work on ethernet, meaning you'll have to use wifi until you can fix that issue. But hey, one thing at a time, right? Anyway, I hope this helps anyone with this particular headache.
Thanks for pointing me in the right direction...
Got DirecTV NOW working on my nexus 6 running pure nexus ROM... I just did the edits with super su root and root explorer. Then disabled super su and rebooted.
Now to update the the build.prop files on the lineage os 13.0 nexus 10, and my wife's kltevzw (on ting gsm network) running lineage os 14.1
hi please help i flashed wrong twrp recovery i think now my amlogic smartbox failed to boot in recovery mode and the main problem is my smartbox Encryption Unsuccessful Factory reset, when i click factory reset nothing happend please guide how to solve this
Sent from my SM-N910G using Tapatalk
jameson.donaghy said:
I downloaded the DirecTV Now app on New Year's Eve hoping for $35/cable.
Click to expand...
Click to collapse
Any chance that you tried this out with Data Free TV/"Sponsored Data" with an AT&T wireless account? i.e. running the box through a Cellular Hotspot or tethered to your phone. I've been looking at if one could use one of therse Android TV Boxes to basically get Data Free TV.
my live tv app detect root try with magisk also but no success in my s905x help me guys
Sent from my SM-N910G using Tapatalk
is anyone help me out
Sent from my SM-N910G using Tapatalk
I edited my build.prop files to try and "hide" the root and I still get the error. I also tried root cloak with xposed and still nothing
Thanks so much
This really helped. I used Xposed module to hide those keywords. Worked a charm!

Custom android ROM, delete iptables binary

Hi
I have installed CM 13.0 custom rom on my galaxy j5 j500h, and I am trying to do some modifications. I do not want any application or even the system to use 'iptables' to setup firewall rules , so I just removed the 'iptables' binary from /system/bin , thinking that this will end in network access without any restrictions, but after restarting the phone I have no network access, the phone can get IP from dhcp but no access to any network resources, pinging any host gives 'network not accessible' error, I suspected that the system uses 'iptables' at startup to setup something, unfortunately I can not find anything in all init*.rc files nor in init.d scripts.
Does anyone have any idea?
Thank you

Categories

Resources