Galaxy Tab 4 Disable SE for Android - Galaxy Tab 4 Q&A, Help & Troubleshooting

Hey all,
I've got a Galaxy Tab 4 (SM-T330NU) that I've been attempting to run a Kali distribution on using Complete Linux Installer. I've rooted the device but can't seem to get the SE for Android to change to "Permissive" mode and allow me to run the bootscript.sh without kicking back a message saying "Operation not Permitted" when creating the loop device (mknod /dev/block/loop255: Operation not Permitted). I'm running Andriod 4.4.2 with kernel version 3.4.0-1337409. Any help would be great. I've searched all over and can't find anything that gets me to any point of success with this.
Thanks
-Geoff

gch230 said:
Hey all,
I've got a Galaxy Tab 4 (SM-T330NU) that I've been attempting to run a Kali distribution on using Complete Linux Installer. I've rooted the device but can't seem to get the SE for Android to change to "Permissive" mode and allow me to run the bootscript.sh without kicking back a message saying "Operation not Permitted" when creating the loop device (mknod /dev/block/loop255: Operation not Permitted). I'm running Andriod 4.4.2 with kernel version 3.4.0-1337409. Any help would be great. I've searched all over and can't find anything that gets me to any point of success with this.
Thanks
-Geoff
Click to expand...
Click to collapse
add setenforce 0 in the init.rc in the ramdisk at the bottom of this group
Code:
on property:init.svc.bootanim=stopped
restorecon /data/media
restorecon /data/media/obb
start auditd
start freshsebool
Should set to permissive. Theres an app or 2 also. Ive never used them tho

Full tutorial
A full tuto on how to install Kali Linux Nethunter On SM-T330NU will be nice

Related

[Q] How Run Ubuntu On Nexsus S - CM7

I just followed this article to run ubuntu on my nexus s with CM7 running on it.
but each time I typing "bootubuntu"
I got this error:
mount: mounting /dev/loop1 on /data/local/ubuntu failed: Invalid argument
This error should happen when executing this line in bootubuntu:
mount -t ext2 /dev/block/loop1 /data/local/ubuntu
Any ideas ?
Are you sure that the kernel you are using supports the ext2 filesystem and loopback device?
Last lines of "dmesg" command might be helpful (if it exists).
how-to-install-ubuntu-on-your-android
This is the article I followed.
I'm not sure whether CM7 support ext2 and loop device, but I see somewhere people said they run ubuntu on CM7 successfully, that's why I post this thread and hope someone can confirm it and show me the steps.
Or let me know your experience on how to run Ubuntu on nexus s.
I like the busybox way to run ubuntu, means if I run a native ubuntu, I can't use my phone feature anymore.
If you read this: http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
Just a few lines into the text there is this paragraph:
For example, G2 Phone and Nexus One both come with loop device support so there’s no need for us to compile a new kernel for it but for others, you may have to.
Click to expand...
Click to collapse
I don't know whether the cm7 kernel kernel supports loop either, but there are many kernels floating around this forum. Maybe one of them does.
Thanks man.
Finally I figure this out. When I got this phone, the seller had already pre-installed a rooted CM7 and busybox. That may cause the problem.
After I re-install the busybox with the latest version, it works.
So CM7 and Nexus S are good to run Ubuntu.
Thanks for taking your time once again.

SELinux Permissive Kernel [SM-P600]

For those of you who want SELinux Permissive, I built this a couple of weeks ago. Set ro.securestorage.support=false in your build.prop if wifi is not working (Credit Morfic).
Flash via Odin
Disclaimer: I'm not responsible if for whatever reason you brick your device
Download
aironite said:
For those of you who want SELinux Permissive, I built this a couple of weeks ago. Set ro.securestorage.support=false in your build.prop if wifi is not working (Credit Morfic).
Flash via Odin
Disclaimer: I'm not responsible if for whatever reason you brick your device
Download
Click to expand...
Click to collapse
Thanks, this is really useful. Have you considered posting this in development?
Also do you plan to do more kernel development, for our device?
Sent from my SM-P600
LMMT said:
Thanks, this is really useful. Have you considered posting this in development?
Also do you plan to do more kernel development, for our device?
Sent from my SM-P600
Click to expand...
Click to collapse
I do plan on moving forward with developing this kernel as soon as Samsung releases kernel updates for their big.LITTLE technology. Namely Heterogenous Multi-Processing.
Wroth hug if samsung doesn't support our device do you think you could adapt their code from the new devices that will? If samsung won't give it to us I imagine a device can
Sent from my SM-P600 using XDA Premium 4 mobile app
I'll continue to develop this kernel and look at posting an update to the dev thread in the next few days. If samsung makes improvements on other devices with the Exynos 5 series, it can surely be ported to our p600's.
Duly.noted said:
Wroth hug if samsung doesn't support our device do you think you could adapt their code from the new devices that will? If samsung won't give it to us I imagine a device can
Sent from my SM-P600 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
aironite said:
I'll continue to develop this kernel and look at posting an update to the dev thread in the next few days. If samsung makes improvements on other devices with the Exynos 5 series, it can surely be ported to our p600's.
Click to expand...
Click to collapse
Thanks for the reply. I really need to turn off auto correct. It always mangles my words when I don't check before I post.
aironite said:
For those of you who want SELinux Permissive, I built this a couple of weeks ago. Set ro.securestorage.support=false in your build.prop if wifi is not working (Credit Morfic).
Flash via Odin
Disclaimer: I'm not responsible if for whatever reason you brick your device
Click to expand...
Click to collapse
This is great. No problems installing. I did need to set ro.securestorage.support=false in /system/build.prop for wifi to work. Now VPNroot and sshdroid work correctly.
I could not find an appropriate place to turn selinux off during boot (i.e. setenforce 0). /init.rc and everything in / seems to revert to original version on boot. I tried sticking it in one of the unrelated startup scripts in the /system folder, but that failed as well. Any suggestions?
Thanks a bunch!
aironite said:
For those of you who want SELinux Permissive, I built this a couple of weeks ago. Set ro.securestorage.support=false in your build.prop if wifi is not working (Credit Morfic).
Flash via Odin
Disclaimer: I'm not responsible if for whatever reason you brick your device
Download
Click to expand...
Click to collapse
Does SElinux Permissive allow us to use Linux Deploy to install linux in chroot on note.
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
My note is running on mk1 rooted with autoroot , however I can't use Linux Deploy to install linux in chroot, maybe SELinux enforcing is the cause.
robertchow said:
Does SElinux Permissive allow us to use Linux Deploy to install linux in chroot on note.
--cut url--
My note is running on mk1 rooted with autoroot , however I can't use Linux Deploy to install linux in chroot, maybe SELinux enforcing is the cause.
Click to expand...
Click to collapse
I am able to use Linux on Android (linuxonandroid.org), which I couldn't before installing this kernel. Also used SeLinuxModeChanger (in playstore) to have selinux set permissive on boot.
Hope that helps.
Linux Works
robertchow said:
Does SElinux Permissive allow us to use Linux Deploy to install linux in chroot on note.
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
My note is running on mk1 rooted with autoroot , however I can't use Linux Deploy to install linux in chroot, maybe SELinux enforcing is the cause.
Click to expand...
Click to collapse
I can say that with this kernel you get a fully functional Linux install. I have not tested Linux Deploy, because I use the Complete Linux Installer(linuxonandroid) and by using the kernel in this thread and then ether use Wanam Xposed and set the system to disable SELinux so it is always Permissive or by using the command "setenforce 0" in a terminal before Linux use then use getenforce it shows Permissive and allows for full Linux function. The command getenforce is not needed to run just for verification.
THANK YOU for this kernel!!!!
Many Thanks for this Kernel
I only registered to say thanks for this kernel. Had to use the build.prop tweak in order to get Wifi back. With this, Selinux Mode Changer, and Complete Linux Installer I was able to get Fedora 19 running on the note. Working great. So, thanks again for your work.
How to install
Can someone tell me please how i can flash this Kernel via Odin?
Amadyl said:
Can someone tell me please how i can flash this Kernel via Odin?
Click to expand...
Click to collapse
Flash it under AP
Sent from my SM-P600 using Tapatalk
---------- Post added at 11:35 PM ---------- Previous post was at 11:34 PM ----------
robertchow said:
Does SElinux Permissive allow us to use Linux Deploy to install linux in chroot on note.
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
My note is running on mk1 rooted with autoroot , however I can't use Linux Deploy to install linux in chroot, maybe SELinux enforcing is the cause.
Click to expand...
Click to collapse
Linux Deploy is working with this flashed.
Sent from my SM-P600 using Tapatalk
Thanks for the help and a big thank you to the developer
It worked
This is very nice i will try to install ubuntu now
Thank you very much !
Amadyl said:
It worked
This is very nice i will try to install ubuntu now
Click to expand...
Click to collapse
You might want to check the Linux thread and especially this post
http://forum.xda-developers.com/showpost.php?p=49347734&postcount=9
It tells of problems with Ubuntu even with Selinux Permissive. In any case, do post your experience there. I prefer RPM based systems as these are my daily work in commercial setups. As openSUSE ARM is still beta, I went for Fedora and it works nicely.
aironite said:
For those of you who want SELinux Permissive, I built this a couple of weeks ago. Set ro.securestorage.support=false in your build.prop if wifi is not working (Credit Morfic).
Flash via Odin
Disclaimer: I'm not responsible if for whatever reason you brick your device
Download
Click to expand...
Click to collapse
what did you change in menuconfig? I am working on enabling some drivers within the kernel and I dont want to lose the chroot linux ability. Thanks.
Sent from my SM-P600 using Tapatalk
Thank you very much for the Kernel, I think i'll try flashing it.
Do you know something about converting ROMs between familiar devices? (The Note 3 and our Note)
Edit:
When trying to install Ubuntu via LinuxOnAndroid, i'm getting the error "Unable to create loop device" (and i already installed the Kernel!).
Help?
ilayron8 said:
i'm getting the error "Unable to create loop device" (and i already installed the Kernel!).
Help?
Click to expand...
Click to collapse
The kernel only allows you to change SELinux mode, it does not change the default mode. Have you switched selinux mode to permissive via a root terminal "setenforce 0" or via an app like SelinuxModeChanger from Play?
caferick said:
The kernel only allows you to change SELinux mode, it does not change the default mode. Have you switched selinux mode to permissive via a root terminal "setenforce 0" or via an app like SelinuxModeChanger from Play?
Click to expand...
Click to collapse
I installed the app and i got from Debian the error "Unable to mount the loop device, after it FOUND the loop.
In Ubuntu, I'm now getting the error "Unable to attach image to loop device".
ilayron8 said:
I installed the app and i got from Debian the error "Unable to mount the loop device, after it FOUND the loop.
In Ubuntu, I'm now getting the error "Unable to attach image to loop device".
Click to expand...
Click to collapse
help?

Kali Linux on Android Note 3 - unable

Hi all , is over a week i'm trying to install Kali on Galaxi note 3.
I'm starting to think there is no way to do it.
I have Samsung Galaxi note 3 model SM-N9005 , bought in Uk.
Rooted .
i mount a rom called C-Rom KK
Selinux Status permissive
i tried linux installer , linux deploy , and another tool to instal linux
i have to install Kali...
Please is there anyone can help me ?
use the Kali 1.0.6 custom image for the Samsung note 10.1, that works for me. download from the official Kali site and extract the image, then copy onto your microsd card. the image when uncompressed is almost 7gb so in order to support that your microsd will need to be formatted in something that isn't FAT32 and supports the large file size, like exfat.
now go into Linux deploy and configure the settings so it says Kali Linux, ext4 file system, type is file (path to Kali img on your SD card), enable vnc and ssh if you want, set image file size to at least 8000mb, username android (though i use root just fine), and then update the configuration. then hit start to deploy the image, open a VNC or SSH client and log in! sorry if I left anything out, hope that works for you.
Sent from my One using XDA Free mobile app
bubilosbirro said:
Hi all , is over a week i'm trying to install Kali on Galaxi note 3.
I'm starting to think there is no way to do it.
I have Samsung Galaxi note 3 model SM-N9005 , bought in Uk.
Rooted .
i mount a rom called C-Rom KK
Selinux Status permissive
i tried linux installer , linux deploy , and another tool to instal linux
i have to install Kali...
Please is there anyone can help me ?
Click to expand...
Click to collapse
Im a bit behind you , i cant get my selinux to permissive. Im rooted on 4.4.2 and got knox 0x0 .
Can you enlighten me on how you set you selinux ?
Solved
eudemonics said:
use the Kali 1.0.6 custom image for the Samsung note 10.1, that works for me. download from the official Kali site and extract the image, then copy onto your microsd card. the image when uncompressed is almost 7gb so in order to support that your microsd will need to be formatted in something that isn't FAT32 and supports the large file size, like exfat.
now go into Linux deploy and configure the settings so it says Kali Linux, ext4 file system, type is file (path to Kali img on your SD card), enable vnc and ssh if you want, set image file size to at least 8000mb, username android (though i use root just fine), and then update the configuration. then hit start to deploy the image, open a VNC or SSH client and log in! sorry if I left anything out, hope that works for you.
Sent from my One using XDA Free mobile app
Click to expand...
Click to collapse
Hi ,I am happy to announce the solution of the problem of installation of Kali on Galaxiy notes 3​​.
The factory rom does not allow linux deploy to work properly at least on my galaxy note 3.
The problem I think is the kernel.
Important: this information is for Samsung Galaxy Note 3 model SM-N9005
I installed another rom, the BobCatRom and I updated the kernel.
This is the link .....galaxynote3root.com/sm-n9005-galaxy-note-3-roms/bobcat-rom-compulsion-kernel-for-galaxy-note-3/
At the end oe installation , SElinux is permissive, and Linux Deploy works well.
The tread is solved.
siriom said:
Im a bit behind you , i cant get my selinux to permissive. Im rooted on 4.4.2 and got knox 0x0 .
Can you enlighten me on how you set you selinux ?
Click to expand...
Click to collapse
Hi , if you keep installed the fabric rom i think you cannot change kernel version as well.
I don't know if knox is blocking the SELinux status, but problably is stopping from changing kernel and rom version.
I rooted my galaxy note 3 and now my knox is 0x1 (damn!)
you can try , after have a full back up , to install a new rom and change kernel.
Look at my previous post: BobCatRom and kernel for SM-9005
bubilosbirro said:
Hi ,I am happy to announce the solution of the problem of installation of Kali on Galaxiy notes 3​​.
The factory rom does not allow linux deploy to work properly at least on my galaxy note 3.
The problem I think is the kernel.
Important: this information is for Samsung Galaxy Note 3 model SM-N9005
I installed another rom, the BobCatRom and I updated the kernel.
This is the link .....galaxynote3root.com/sm-n9005-galaxy-note-3-roms/bobcat-kitkat-rom-for-galaxy-note-3-sm-n9005sm-n900tsm-n900w8/
At the end oe installation , SElinux is permissive, and Linux Deploy works well.
The tread is solved.
Click to expand...
Click to collapse
how is it solved if you cant flash that without tripping knox ?

NFS mounts and filesystem permissions after lollipop upgrade

I recently upgraded to lollipop and afterwards my busy box mounts wouldn't work correctly, so I decided to do a full reset and redownload everything and even after factory reset I still have root.
I modified my shell script in SManager which gets the NFS share mounted, however only root explorer or SM manager can see the files.
I can't open them in any application. No application other than SManager or root explorer can see the files and when I try to open them I get permission denied or for instance trying to play a video or open an eBook leads to file not found in other programs. I mounted it to /data/media/0/Files, has the directory changed again or is that a good path? Any ideas appreciated.
It seems to be local permissions because it mounts fine from Slackware on my laptop. Problem is I haven't the foggiest idea about Android file system permissions and from what I've heard it's quite a mess with all the symbolic links.
I have a nexus 7 2012 version with 32 gigabytes of storage running lollipop.
Thanks a lot for all the help guys this is my first post BTW. Really shows how open source this community is. Great job! Long live capitalism and God bless the the developers and all the contributors.
Android is like bending the reality of open source, hey guys let's whore it out and reap the benefits. This community is the worst I've ever been involved in and the fact that I can't even find a response to mount an nfs share in an operating system based on the Linux kernel is pathetic.
Android is the death of open source, and it's only getting worse. No I'm not a programmer, but I am not incompetent, soon I will look for alternatives and I know there are many others craving the same. Give us Linux not a half asssed os. You already have the market share now it's time to move on. Rant over.
Calm down. This device is 2 years old and people lost interest. One day waiting before a rant isn't enough time to let people recognize your thread.
Lollipop is more enforced with SE Linux. You need to set SE Linux mode to "Enforcing" to see the files of your mounted share.
Open Android Terminal Emulator and execute the following commands:
su
setenforce Permissive
Now run your mount script and you should be able to access the share. After unmounting the share you should go back to Enforcing mode.
su
setenforce Enforcing
See the thread of vorcers kernel for more info:
http://forum.xda-developers.com/showthread.php?p=57134590
Gesendet von meinem Nexus 7 mit Tapatalk
Thank you, sorry for being such an ass. That solved my problem. I promise to not be so hasty in my judgment from now on. ?
Also I failed to mention that I run slackware mainly as my only distribution I just started getting into fedora so SE Linux is something that I'm quite unfamiliar with but thank you again for the answer glimmering.

Enable KVM on Oneplus 5 ?

Hi all,
I'm currently in front of a problem, and after a lot of tries and readings I decided to ask people.
As I'm a beginner, let me know if I'm not posting on the right place or if I'm saying stupidities.
My final goal is to install Home Assistant Operating System on my old Oneplus 5 phone.
This is the kind of stuff you usually do on a Raspberry, but I wanted to find a new usage of my phone.
Long story short, I've installed via Userland app Ubuntu 20.04 in order to create a VM on KVM as it seemed to be a good option to achieve my goal.
(I've also tried Termux but didn't seem to be as complete as Userland)
I ran a command to know if my CPU would support virtualization (kvm-ok) and I had this error :
Code:
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/4.4.302-perf+
From what I understood, this issue comes from the fact that most phones do not have kvm enabled by constructors.
I wondered if the solution would be to modify the kernel ?
I found this but I'm not sure : https://github.com/android-linux-stable/op5
If someone has ever encountered this kind of problematic let me know.
If you have any other alternative, don't hesitate to share.
Some details about the device :
LineageOS 19-20221205-NIGHTLY-cheeseburger
custom BL TWRP
Magisk installed
For those who know Home Assistant, I succeeded to follow this tutorial, but it doesn't install a full version of it I wanted to try to install the OS.
Home Assistant Core on Android Tablet
You need install rust and cargo first: pip install rust pip install cargo run: rustc -vV | sed -n 's|host: ||p' it returns target system, something like: armv7-linux-androideabi copy it and set to cargo running: export CARGO_BUILD_TARGET=armv7-linux-androideabi then run: pip install...
community.home-assistant.io
Thanks !
cooldino said:
Hi all,
I'm currently in front of a problem, and after a lot of tries and readings I decided to ask people.
As I'm a beginner, let me know if I'm not posting on the right place or if I'm saying stupidities.
My final goal is to install Home Assistant Operating System on my old Oneplus 5 phone.
This is the kind of stuff you usually do on a Raspberry, but I wanted to find a new usage of my phone.
Long story short, I've installed via Userland app Ubuntu 20.04 in order to create a VM on KVM as it seemed to be a good option to achieve my goal.
(I've also tried Termux but didn't seem to be as complete as Userland)
I ran a command to know if my CPU would support virtualization (kvm-ok) and I had this error :
Code:
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/4.4.302-perf+
From what I understood, this issue comes from the fact that most phones do not have kvm enabled by constructors.
I wondered if the solution would be to modify the kernel ?
I found this but I'm not sure : https://github.com/android-linux-stable/op5
If someone has ever encountered this kind of problematic let me know.
If you have any other alternative, don't hesitate to share.
Some details about the device :
LineageOS 19-20221205-NIGHTLY-cheeseburger
custom BL TWRP
Magisk installed
For those who know Home Assistant, I succeeded to follow this tutorial, but it doesn't install a full version of it I wanted to try to install the OS.
Home Assistant Core on Android Tablet
You need install rust and cargo first: pip install rust pip install cargo run: rustc -vV | sed -n 's|host: ||p' it returns target system, something like: armv7-linux-androideabi copy it and set to cargo running: export CARGO_BUILD_TARGET=armv7-linux-androideabi then run: pip install...
community.home-assistant.io
Thanks !
Click to expand...
Click to collapse
To install Home Assistant Operating System (HASSIO) on your Oneplus 5 phone, you will need to follow these steps:
First, make sure that your phone is rooted. Rooting your phone will allow you to install custom operating systems on it. There are various tutorials and tools available online that can help you root your Oneplus 5 phone.
Once your phone is rooted, you will need to install a custom recovery such as TWRP (TeamWin Recovery Project). This will allow you to boot into a custom recovery environment and install HASSIO on your phone.
Download the HASSIO image file for your phone from the Home Assistant website or from a third-party source.
Hamzagujjar said:
To install Home Assistant Operating System (HASSIO) on your Oneplus 5 phone, you will need to follow these steps:
First, make sure that your phone is rooted. Rooting your phone will allow you to install custom operating systems on it. There are various tutorials and tools available online that can help you root your Oneplus 5 phone.
Once your phone is rooted, you will need to install a custom recovery such as TWRP (TeamWin Recovery Project). This will allow you to boot into a custom recovery environment and install HASSIO on your phone.
Download the HASSIO image file for your phone from the Home Assistant website or from a third-party source.
Click to expand...
Click to collapse
My phone is rooted and I've already installed TWRP.
I think there is no HASSIO image file for phones in general.
Could you detail this part ?
Thanks

Categories

Resources