Base on GT-I9000_OpenSource_GB_Update kernel source, I managed to compile some compatible kernel modules for Samsung Galaxy Ace XXKPH (2.6.35.7-perf-CL260130): btrfs.ko, cifs.ko, ext3.ko, ext4.ko, jbd.ko, jbd2.ko, libcrc32c.ko, and tun.ko . I am forced to use the HTC Dream (aka trout) platform, so the compiled modules compatible with armv6 processor (I9000 using armv7). Dirty hack here and there, so I am sure the generated zImage will not work on SGA, but the produced module is fine.
Sorry, my English not good enough
ketut.kumajaya said:
Base on GT-I9000_OpenSource_GB_Update kernel source, I managed to compile some compatible kernel modules for Samsung Galaxy Ace XXKPH (2.6.35.7-perf-CL260130): btrfs.ko, cifs.ko, ext3.ko, ext4.ko, jbd.ko, jbd2.ko, libcrc32c.ko, and tun.ko . I am forced to use the HTC Dream (aka trout) platform, so the compiled modules compatible with armv6 processor (I9000 using armv7). Dirty hack here and there, so I am sure the generated zImage will not work on SGA, but the produced module is fine.
Sorry, my English not good enough
Click to expand...
Click to collapse
So what do you want us to do?
Do you have screen shot on your own?
No screenshots. Examples of the use of cifs.ko, you can find here. Examples of the use of ext4.ko, you can find here.
how to flash it?
No need to flash, just copy files into /lib/modules (ex. using Root Explorer with root privs). Or could someone prepare update.zip for recovery?
I wonder if ext4 module works
i tried pushing this into
/lib/modules
is this what you mean?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
is this the new kernel?
it is an SGS based KERNEL..
so we can use it and do overclock
With this kernel can i do overclock ???
still cant overclock.
this kernel does not do it.
Its only modules guys. You cant do overclocking etc. Because its not kernel its only a part of kernel.
Sent from my GT-S5830 using Tapatalk
To access your Windows/Linux Samba share:
1. Copy cifs.ko module to SGA microSD.
2. Using "adb shell", Terminal Emulator, or ConnectBot:
Code:
su
mount -o remount,rw /dev/stl12 /system
busybox cp /sdcard/cifs.ko /system/lib/modules/
mount -o remount,ro /dev/stl12 /system
exit
exit
3. Install CifsManager from Market.
4. In CifsManager's Settings page tick "Load cifs module" and "Load via insmod", CifsManager autodetect cifs.ko location.
5. Open About page, click Modules button. You will see cifs module listed if loaded successfully by insmod.
6. Add your network share in Add New Share page. Using cifs.ko and CifsManager, I can access my Windows share drive over Wi-Fi.
My ext3, ext4, and btrfs modules could be useful for firmware modder and advanced user. CODEROM is the first ROM using my ext4 module. Dark Tremor a2sd not a perfect script without journaling filesystem support
You need tun.ko module if you need vpn access. Don't ask me about vpn since I'm not expert about it.
Sent from my GT-S5830 using XDA App
yeap... it's working on my Ace with KPH not modifying fw. Thx. How to use other modules?
so what improvements have this part of the kernel?
vlc_marcos said:
so what improvements have this part of the kernel?
Click to expand...
Click to collapse
Some parts of kernel not compiled-in by Samsung, so compile the missing part as module is the solution. The improvements is now you can access Windows/Samba share, access ext4 partition, and vpn access.
Phuih, 158 downloads but I have 3 thanks only? Maybe I have to delete this unuseful post
that's not a useless post at all !!!!!! You guys, posting those things on this forum, are making the Ace a wonderfull phone! Thanks a lot... Take my thanks like 10000
@mr. ketut I already gave you cendol...
I think it would be nice if you collaborate with mr. code to equally develop a very powerful ROM for ace
btw I saw you post something on another forum but I have not seen it here?it's same or different?
nice work ...thanks a lot. I am sure more kernel modules can be compiled. Is it possible to compile overclock.ko for galaxy ace ?
ketut.kumajaya said:
Some parts of kernel not compiled-in by Samsung, so compile the missing part as module is the solution. The improvements is now you can access Windows/Samba share, access ext4 partition, and vpn access.
Phuih, 158 downloads but I have 3 thanks only? Maybe I have to delete this unuseful post
Click to expand...
Click to collapse
No way this is a useless thread.....
Sent from my GT-S5830 using XDA App
Related
[MOD] Fuse kernel module for Sony Arc/Ray ICS 4.0x roms (EncFS local & dropbox crypt)
Hi,
I post the Kernel module which allow to use Cryptonite on Arc/Ray ICS customs or stock rom.
Few custom roms like cyanogen include it but most of roms & particulary stock doesn't....
It bring crypting for local & dropbox volumes in user area using the free cryptonite software which use EncFS & Fuse technologies.
http://www.arg0.net/encfs
https://play.google.com/store/apps/details?id=csh.cryptonite&feature=nav_result#?t=W10.
Root, busybox & terminal Required.
1/ Extract Fuse.ko & copy it in the /system/lib/modules folder
2/ Launch terminal & type :
su
insmod /system/lib/modules/fuse.ko
U can now install & works cryptonite on your ICS 4.0x rom.
The module have been extracted from an Xperia Arc custom rom.
It have been tested on a sony xperia ray 4.03 stock rom.
Enjoy .
Sekhen.
I'm sorry noob here
What does crypting do?
Sent from my Xperia Arc using xda app-developers app
Cryptography definition :http://searchsoftwarequality.techtarget.com/definition/cryptography
The 4 levels of encryption that Cryptonite use for local or dropbox volumes encryptions are these :
Paranoia : AES 256, filename block encoding with IV chaining, per-file IV, external IV chaining, MAC block headers.
Standard : AES 192, filename block encoding with IV chaining, per-file IV, no external IV chaining, no MAC block headers.
Compatible : AES 256, filename stream encoding without IV chaining, no per-file IV, no external IV chaining, no MAC block headers.
Quick & dirty : Blowfish 128, filename stream encoding without IV chaining, no per-file IV, no external IV chaining, no MAC block headers.
Cryptonite unmount the volume & create an encrypted file u can archive everywhere.
It is based on EncFS 1.7.4 & OpenSSL 1.0.0j & can run EncFS or truecrypt in terminal (user or root mode) too.
Sekhen said:
I post the Kernel module which allow to use Cryptonite on Arc/Ray ICS customs or stock rom.
Click to expand...
Click to collapse
Thanks a lot, that's very helpful. Will mention it in the FAQ.
clesenne said:
Thanks a lot, that's very helpful. Will mention it in the FAQ.
Click to expand...
Click to collapse
Your welcome Clesenne, happy to help u
good day mate!
i've tried to install the modules but it gave me an error; as attached below:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
got any ideas?
nessusman said:
good day mate!
i've tried to install the modules but it gave me an error; as attached below:
got any ideas?
Click to expand...
Click to collapse
u² Mate
On what phone u tried to run this ? "Exec format error" seems to be on another phone than Xperia Arc or Ray...
If u tell me what phone, i can maybe have the good version of the fuse module for your phone...
Xperia arc
Fw 70
Doomkernel v5
Arconium ics 4
Sent from my LT15i using xda app-developers app
nessusman said:
Xperia arc
Fw 70
Doomkernel v5
Arconium ics 4
Sent from my LT15i using xda app-developers app
Click to expand...
Click to collapse
Hi Nessusman,
The fuse module seems to be incompatible with your 2.6.32.9-DooMKerneL.
I have successfully installed it on a 2.6.32.9-perf Kernel (Sony Stock).
As i don't exactly know all the changes DoomLord bring to his custom Kernel, i can't identify the origin of the problem...
U should ask directly to DoomLord. He can send u a fix or explaining to u what u have to change in what system file to make this module working on his Kernel.
I'm Sorry but i can't help you more on this point. DoomLord knows your kernel far better that i do...
Regards.
Nmapgirl.
I've just tried it on an Xperia GO with 4.0.4. As expected, it doesn't work. Would have been great though, I'd love to have transparent encryption on my device. Thanks for your efforts, Sekhen.
Lebenita said:
I've just tried it on an Xperia GO with 4.0.4. As expected, it doesn't work. Would have been great though, I'd love to have transparent encryption on my device. Thanks for your efforts, Sekhen.
Click to expand...
Click to collapse
It should works. What the terminal answer when u try to insert the module ?
Boot image modification for JB 4.1.1 P3100ZSCLL1_P3100BRICLL1 (Taiwan) kernel 3.0.31-595683, please re-check your kernel version first before flashing BOOT_P3100ZSCLL1_P3100BRICLL1_595683_REV04_user_low_ship_blackhawk.tar.md5!
Mount external SD card as internal SD card. Link /sdcard, /mnt/sdcard, and /storage/sdcard0 to /storage/extSdCard. Mount /data/media on /storage/sdcard1, link /mnt/sdcard1 to /storage/sdcard1. You can disable this feature by copy /res/init.post_boot.sh to /system/etc/init.post_boot.sh
bootanimation.zip in /system/media or /data/local support, disable power off animation if bootanimation.zip exist
Disable power up sound
Post boot script support /system/etc/init.post_boot.sh
adb on charger mode, thanks codeworkx
adb on boot
Flash BOOT_P3100ZSCLL1_P3100BRICLL1_595683_REV04_user_low_ship.tar.md5 to restore the original boot image.
Overclocked kernel in post #9!
Reserved!
Can you make an oc kernel for the 4.1.2 release for france??? Also to add GPU oc/uc/uv/
Still fighting with pvr graphics subsystem. My compiled kernel boot successfuly but failed to start Android graphics If I can solve the graphics problem, we still lose the exFAT support.
ketut.kumajaya said:
Still fighting with pvr graphics subsystem. My compiled kernel boot successfuly but failed to start Android graphics If I can solve the graphics problem, we still lose the exFAT support.
Click to expand...
Click to collapse
Hmm okay what's the problem with the graphics
Sent from my GT-P3100 using Tapatalk HD
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yoo..hoo... And my graphics driver [email protected] newer than yours Check it using "cat /proc/pvr/version". But as I said before, I lost exFAT support.
ketut.kumajaya said:
Yoo..hoo... And my graphics driver [email protected] newer than yours Check it using "cat /proc/pvr/version". But as I said before, I lost exFAT support.
Click to expand...
Click to collapse
Okay so are you going to fix the exFAT??
Sent from my GT-P3100 using Tapatalk HD
tapan15in said:
Can you make an oc kernel for the 4.1.2 release for france??? Also to add GPU oc/uc/uv/
Click to expand...
Click to collapse
Overclocked CPU and GPU
Update, restore back 1.008GHz:
Overclocked 3.0.31 kernel kkboot-0.4-jb-overclock-p31xx.zip! Tested on P3100 JB 4.1.1 P3100ZSCLL1_P3100BRICLL1, CPU clock: 300MHz 600MHz 800MHz 1.008GHz 1.2GHz, GPU clock 153.6MHz 307.2MHz 384MHz, latest PowerVR SGX 540 driver. Backup yours /system/lib/modules and /system/vendor folder before applying this flashable zip. By applying this boot image you will lose your exFAT kernel support. This kernel only support FAT16 and FAT32 SD card. Use this at your own risk.
Flash this using CWM recovery. Beware: this is totally different kernel with the OP and a flahsable zip to restore the original kernel not ready yet!
can you explain please how the blackhawk file is different from the other file in OP.
thank you ketut
edit : plz ignore..... just understood lol
Good Job man!
Is it possible to port this to the vers. P3100XXCLL2_P3100XEFCLK1 kernel??
Hello,
Is there possible to build ROM from opensource.samsung.com sir ?
Thanks.
nicosoftmedia said:
Hello,
Is there possible to build ROM from opensource.samsung.com sir ?
Thanks.
Click to expand...
Click to collapse
Android licensed as Apache and Samsung only released the GPL part of the source so it's quite difficult to build Android base on Samsung's GPL source only. Better you use Cyanogen's P3100 port as base.
coringabrazil said:
Good Job man!
Is it possible to port this to the vers. P3100XXCLL2_P3100XEFCLK1 kernel??
Click to expand...
Click to collapse
If you're brave enough, you can try this overclocked kernel on 4.1.2
coringabrazil said:
Good Job man!
Is it possible to port this to the vers. P3100XXCLL2_P3100XEFCLK1 kernel??
Click to expand...
Click to collapse
ketut.kumajaya said:
If you're brave enough, you can try this overclocked kernel on 4.1.2
Click to expand...
Click to collapse
Confirmed by my friend, my overclocked kernel works on his 4.1.2!
The overclocked kernel now "officially" in KK-Boot thread http://forum.xda-developers.com/showthread.php?t=1855700 with a small fix: give a regular user to access /sbin .
Can you make a oc kernel for 3110 ?
KingBeike said:
Can you make a oc kernel for 3110 ?
Click to expand...
Click to collapse
*p31xx.zip file name mean may be it compatible to P3110
kkboot 041 jb OC kernel will work with all stock and custom jb touchwiz roms right ? wont work with CM 10.1 ? thanks
seems like my tab cant handle any type of cpu overclocking
Hi guys I thought I would share this bit of work ive done, hope u like and enjoy it
I took a good while to do this.
Tested on: official Cm11, Sensonic HD Rom......
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download link: d-h.st/Mv0
Instalation process:
1- Boot cwm
2- wipe /dalvik & /cache
3- flash my .zip
4- boot and enjoy
Dont forget the thanks button!!
Reserved!
Sent from my MT11i
Reserved! ...
Sent from my GT-P3100 using XDA Premium 4 mobile app
@DarkStryder I've struggling for some days, trying to adapt good old vrtheme script to CM 11.
I saw yours and I miss something: I had to rewrite most of the code, and the first thing that gave me error was setting permissions to 755 to the scripts extracted on /sdcard.
How you succeded in that? A specific update-binary, different from CM's? A different recovery?
I worked a lot to make the whole thing work again, so I'm very interested in how you left everything as it used to be and still made it work
Markox89 said:
@DarkStryder I've struggling for some days, trying to adapt good old vrtheme script to CM 11.
I saw yours and I miss something: I had to rewrite most of the code, and the first thing that gave me error was setting permissions to 755 to the scripts extracted on /sdcard.
How you succeded in that? A specific update-binary, different from CM's? A different recovery?
I worked a lot to make the whole thing work again, so I'm very interested in how you left everything as it used to be and still made it work
Click to expand...
Click to collapse
Take a look at the modifications to the vrtheme script Ive made on the Dark Holo Theme thread here. CM11 now enforces selinux which requires specific "set_metadata" commands in the updater-script. The "set_metadata" command not only sets the file permissions, but it also sets the selinux labels. This new "set_metadata" command replaces the previous "set_perm" command and requires a new version of ClockWorkMod to support it. Make sure you are using CWM 6.0.4.7 or newer to support selinux file permissions.
Tsjoklat said:
Take a look at the modifications to the vrtheme script Ive made on the Dark Holo Theme thread here. CM11 now enforces selinux which requires specific "set_metadata" commands in the updater-script. The "set_metadata" command not only sets the file permissions, but it also sets the selinux labels. This new "set_metadata" command replaces the previous "set_perm" command and requires a new version of ClockWorkMod to support it. Make sure you are using CWM 6.0.4.7 or newer to support selinux file permissions.
Click to expand...
Click to collapse
Thank you, learning new things is always awesome!
In my ignorance I just rebased the whole script in another partition, where set_perm is still allowed
But, again: good to know!
Sent from my GT-P5110 using Tapatalk
Markox89 said:
Thank you, learning new things is always awesome!
In my ignorance I just rebased the whole script in another partition, where set_perm is still allowed
But, again: good to know!
Sent from my GT-P5110 using Tapatalk
Click to expand...
Click to collapse
The set_perm command is still allowed with the new versions of CWM. It is for backwards compatibility of the older scripts. Also, sometimes set_perm is still needed when you want to set permissions of a file on a fat32 sdcard that does not support selinux labels. Selinux requires ext3 or ext4 file systems for the labeling, but you have a sdcard that usually formatted as fat32 by default.
Tsjoklat said:
The set_perm command is still allowed with the new versions of CWM. It is for backwards compatibility of the older scripts. Also, sometimes set_perm is still needed when you want to set permissions of a file on a fat32 sdcard that does not support selinux labels. Selinux requires ext3 or ext4 file systems for the labeling, but you have a sdcard that usually formatted as fat32 by default.
Click to expand...
Click to collapse
Oh, so the file system is the problem! That's why it works everywhere but on sdcards
Thank you very much! :highfive:
Sent from my GT-P5110 using Tapatalk
Sent from my MT11i
nice mod
:good: thx
Working fine in CM10?
Samsung just rolled out Nougat for our Tab s2 (s-t710) and i requested samsung to release kernel sources which they happily did within 2 days
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You flash this at your own risk. I'm are not responsible for anything that happens!
Install instructions:
You MUST HAVE TWRP installed to flash this!!
At the least, BACK UP YOUR boot.img IN TWRP!!!!!
Flash Kernel- it'll wipe cache, dalvic automatically,
Flash Magisk or superSU to get root
Profit!!
Latest Supersu: https://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
Latest Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
What's Included?
Compiled with usb OTG Support
Kernel can be set as Permissive using this app
Removed SecurityLogAgent, no more nagging
Fix SecureStorage, no more forgotten passwords after reboot
Samsung Rooting Restrictions Removed
Download:
v1.0 - https://mega.nz/#!t4ARwaxL!oj3oVDqrfNgTrwTby5SXFB_yB6w_B7kKMJf7H-7knVI
Sources:
Kernel
Toolchain
Credits:
@engine95 without him won't be able to even boot it
Samsung for the sources
Google for the toolchain
XDA for being XDA
Reserved
congratulation
One more great if you make one more for SM-T815 android N.
Tested my external HDD formatted as NTFS. Like on the stock kernel, it's only recognized as being there, but it's unmountable and shown as "corrupted storage", which it most obviously isn't. I have yet to find a ROM/kernel combination for my Tab S2 that works with NTFS external drives.
Setting SELinux status as Permissive works fine. I'm waiting to see more stuff from you from now on.
Dariusdd said:
Tested my external HDD formatted as NTFS. Like on the stock kernel, it's only recognized as being there, but it's unmountable and shown as "corrupted storage", which it most obviously isn't. I have yet to find a ROM/kernel combination for my Tab S2 that works with NTFS external drives.
Setting SELinux status as Permissive works fine. I'm waiting to see more stuff from you from now on.
Click to expand...
Click to collapse
thank you for testing it, I'll take a look at ntfs support
Can this work with t810 9.7" ?
hi Ather,
i'm struggling with getting secure_storage to work with a custom kernel in nougat. i even went so far as to hex edit /system/bin/secure_storage_daemon and get it to keep running where it'd normally exit saying "...The platform/kernel binaries should be synchronized for running Secure Storage....". but then of course i hit another error ("Please use an official binary") when apps try to communicate with it. can you please tell me the secret to getting secure_storage_daemon to run properly with a custom kernel? i've tried modifying build.prop to say ro.securestorage.support=false, but then bluetooth doesn't start and wifi passwords still aren't saved after reboot. i'd be super grateful if you could point me in the right direction here. btw, i'm on a sm-t810 but they're both exynos so i think it should be the same. my tablet is running the stock samsung nougat release (NRD90M.T810XXU2DQCL). i did look at your github, but i also have enabled permissive (-DCONFIG_ALWAYS_ENFORCE=false) and disabled samsung rooting protection (CONFIG_SEC_RESTRICT_ROOTING, which i've confirmed lets me use "sudo" properly in a debian linux chroot).
thanks!
Secure storage in Nougat is broken, you need to use the 4 files from MM rom, set build.prop.vslue to false and voila
thanks Aether. I'll look for the stock MM rom. i'm guessing it's secure_storage_daemon, secure_storage_pm, libsecure_storage.so, libsecure_storage_jni.so? i have been doing a lot of googling to see if there is any discussion about the nougat secure_storage issue. i haven't found much except for a few posts where people say things aren't working. do you know of any other threads where this is being discussed? thanks again!
Yes these are the 4 files, idk about xda but we did have a discussion in our devs group so that's how i knew
Ather said:
Yes these are the 4 files, idk about xda but we did have a discussion in our devs group so that's how i knew
Click to expand...
Click to collapse
Any chance this code will fix camera and other hardware issues in other roms , like lineageos, aopk, ect. ?
Thanks
TNT
v1.1 coming soon
Works great
Installed very easy, works great, thanks for the awesome kernel
Is anyone running this kernel and have the tablet filesystem encrypted? I am running L14 on the T810 and after encrypting the filesystem I encounter a variety of issues:
- Some of my own mp3 files hiss and skip, others do not.
- Unable to view all of my photos.
- Playing some videos also skip and hiss.
- Unable to view all PDF-files.
Note that when I have my own files on the external sdcard, all of the above work fine.
Googling suggests that there might be timing issues in general when having the filesystem encrypted. Since most users do not have the filesystem encrypted not many users may have these problems. For me, however, unless the tablet works flawlessly when the entire filesystem is encrypted, it is a useless toy.
Ideas, thoughts?
Ather said:
v1.1 coming soon
Click to expand...
Click to collapse
When this update is coming?
Thanks for this kernel and for your rom who runs perfectly ?
I don’t know if you take feature requests, but if you do could you please add USB otg + charging capabilities i.e. being able to read a USB drive and charge the tablet at the same time (if that’s at all possible). Thanks!
New version coming out soon, updated to latest Sammy base DQI6 and few more tweaks
Kindly include NTFS support in the next update. Thank you!
Cocoyg said:
Kindly include NTFS support in the next update. Thank you!
Click to expand...
Click to collapse
I'll try my best
Hi there.
I'm trying to write a "cache module" (which runs in post-fs stage, after the system has been mounted but before data).
Why do I need it?
Because I want to execute an "iptables -P OUTPUT DROP" to block every outgoing connection until afwall+ kicks in (in post-fs-data) and establishes the proper rules for the apps.
I can't find a proper "module template" on github.
moreover...Is there a way to "print to magisk_debug.log" from the script?
I would like to "iptables -L" pre-script execution and post-script execution so I can check that everything has gone ok.
Is there a function to do that or should I "iptables -L > /tmp/iptables.log"
Any hint?
Thank you.
In post-fs, Magisk only does a simple mount of any files found in /cache/magisk_mount/system. No scripts are run... That's not until post-fs-data.
See here for more details (if you haven't already):
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md
Didgeridoohan said:
In post-fs, Magisk only does a simple mount of any files found in /cache/magisk_mount/system. No scripts are run... That's not until post-fs-data.
See here for more details (if you haven't already):
https://github.com/topjohnwu/Magisk/blob/master/docs/details.md
Click to expand...
Click to collapse
Thanks Didgeridoohan, I already read that but if you read carefully
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
He says he can run script in different stages. That "simple mount thing" sounds to me like "hey, look...don't ask me to do mounts different than simple mounts."
Moreover I found this on another script...
so it must be possible...(or it was possible with previous versions of magisk)
LinoX said:
Thanks Didgeridoohan, I already read that but if you read carefully
He says he can run script in different stages. That "simple mount thing" sounds to me like "hey, look...don't ask me to do mounts different than simple mounts."
Moreover I found this on another script...
so it must be possible...(or it was possible with previous versions of magisk)
Click to expand...
Click to collapse
"Simple mounts" means that it doesn't add anything new, only replaces already existing files/folders. But you've read the docs, you know that...
Here's some reading on cache modules:
https://forum.xda-developers.com/showpost.php?p=69621730&postcount=7
It might be possible to run scripts in post-fs in the future (that's up to @topjohnwu). Right now it isn't...
Didgeridoohan said:
Here's some reading on cache modules:
https://forum.xda-developers.com/showpost.php?p=69621730&postcount=7
Click to expand...
Click to collapse
Thank you very much for that.
Yeah I didn't read that specific post (even if I searched for it a lot) and it replies my question: Cache modules aren't supported anymore.
I guess I'll have to deal with post-fs-data mode then...
Even if I don't need the data partition and even if, once data is mounted, it could be too late to block the network (some services might have already accessed it..yet not the apps themselves)
Thank you again, man.
LinoX said:
Thank you very much for that.
Yeah I didn't read that specific post (even if I searched for it a lot) and it replies my question: Cache modules aren't supported anymore.
I guess I'll have to deal with post-fs-data mode then...
Even if I don't need the data partition and even if, once data is mounted, it could be too late to block the network (some services might have already accessed it..yet not the apps themselves)
Thank you again, man.
Click to expand...
Click to collapse
No worries...
Just in case you haven't thought about it: if you want to run the script as early as possible, place it in /magisk/.core/post-fs-data.d rather than in the post-fs-data.sh file of a module.
I am using Magisk 16.7 on Android 8.1
On my phone there is no /magisk folder
For using a boot script should i just create the folder structure or where do i have to place my files?
m45k said:
I am using Magisk 16.7 on Android 8.1
On my phone there is no /magisk folder
For using a boot script should i just create the folder structure or where do i have to place my files?
Click to expand...
Click to collapse
Boot scripts should be placed on /sbin/.core/img/.core/post-fs-data.d
Sent from my LGE w5 using XDA Labs