yashsingh1/xdaforums huggingface dataset:
[Magisk] DiamondJohn:
[MENTION=4667597]Didgeridoohan[/MENTION] I tried removing things within TWRP (ie before android gets its dirty little hands on things), with the same results.:mad:

Next, I thought I would test a "tried and tested" system, by that i mean the module from the repo "terminal_debloater" and after using it, and rebooting, I got the exact same results.

I think I will be flashing a new ROM and test it with Magisk 20.1

Thanks for your time and help. :good:
[Magisk] tugas2khas:
update sms received content

HI there,

Is there any way to update the received SMS text content.

I get missed call notification via SMS from the operator. The SMS only contains caller phone number.

Is it possible to append the contact number (if the contact exist in address book), so I know instantly who that i missed.

(I have this feature in win mobile time circa 2008.)

Thanks.
[Magisk] DiamondJohn:
I updated to a newer Magisk, and it now works perfectly.

---------- Post added at 14:04 ---------- Previous post was at 13:56 ----------

That does not sound like a Magisk type-of-thing.

Look at the storage of your data, the SMS data can be found in:

/data/data/com.android.providers.telephony/databases/mmssms.db

Within that database, there is a table named sms. this contains the data displayed by your sms app.
[Magisk] exocetdj:
Can anyone have a look into my thread in magisk forum at all?
[Magisk] DiamondJohn:
System as ROOT?

I have an old device (2013); way before system as root became a thing.

I also build an app ( TeMeFI see hidden below for extra info) that generates Magisk modules on the fly. As such, it is modifying the /system/ path of the device via Magisk. The little I have seen regarding system as root, the system partition/path could be mounted with a number of different possible paths ie:

/system/

/system_root/system/

/system/system/

/system/system_root/

/system_root/

Should I be mirroring/using these paths instead of /system/ within my modules?

is the /system/ path still present for legacy purposes?

==============================================================

Extra info regarding TeMeFI's Magisk functions.

Some may be interested in the following, which documents whats in a module.

Installed Module Documentation​

The modules i create via the app are:

Hide System Apps

Systemize An App

Promote Busybox Method

Change Boot Animation

Change GPS Conf​
[Magisk] Didgeridoohan:
[MENTION=5417899]DiamondJohn[/MENTION] Use a /system directory within your module. Magisk deals with the rest.
[Magisk] RebelLion_:
I posted this in the Magisk General chat initially, thought i would try here. Update to the quote, i edited the RCFILE paths to point to the "$MAGISKTMP/rootdir/init.qcom.rc" instead and still nothing. I saw something in Magisk's Dev Guides that the Root "/" filesystem is manipulated through an overlay.d directory. Is that a directory i would make in my module folder? And then i could copy that file to the overlay.d directory, edit it and have it "overlay" the original on boot? I might try it anyways until i get an answer
[Magisk] Didgeridoohan:
[MENTION=8687921]RebelLion_[/MENTION] So far I haven't replied to your posts, since I haven't had anything to bring to the table that would help you.

But, looking closer at what you want to do and your script I have some thoughts.

If you want to use Magisk to run a .rc file you are likely going to have to use overlay.d in the ramdisk. In other words, not through a Magisk module. I don't think the regular Magisk boot stages for post-fs-data and module mounting run early enough for what you need...

You might be able to make a script that modifies the boot image and places the .rc file you want to run in overlay.d on the fly using magiskboot, but that is not something I would be able to help you with (outside my area of knowledge).

If you don't want to mess with the boot image I believe your only option is to move your logcat commands to a simple boot script executed in post-fs-data instead...

Also this:

https://xdaforums.com/showpost.php?p=83406937&postcount=41233
[Magisk] RebelLion_:
I appreciate a reply, and I figured no one had much more of an idea than I did so I was mostly posting for reference. I'll try this new approach and keep posted on the progress. This is supposed to help development for kernels and ROMs go smoother with a flashable system logger testers can easily use to report back. A lot of devs integrate into their builds instead but this way you don't need to worry about adding and removing the patch for production
[Magisk] DiamondJohn:
I haven't followed your posts:o, but the "system logger" text caught my eye. In the past when I was building ROMs, to catch / track what was going on (or more importantly wrong) during a boot, before the system was available for a logcat, and especially if the system never comes up to get a logcat, I would look at the last_kmsg. The last time I used it was to debug the init.rc. There is also the dmsg logs, but I haven't looked at them much; really at all:o.

Out of interest, do you know what you expect to find in the logcat so early in the boot process,. that would not be in the last_kmsg?
[Magisk] RebelLion_:
AFAIK, /proc/last_kmsg is deprecated since I think Lollipop or Marshmallow, don't remember exactly. But now that functionality has been replaced by the pstore console logging to /sys/fs/pstore/console-ramoops. Even then, that log captures low level kernel logs and panic messages, it doesn't contain all of the logging done from the actual system that logcat does, which is what this "logger" patch implements. This is actual info from system processes and apps that gives much more detail on the crashes. I am only relaying what I've gathered from much reading but that's my understanding of it and why devs nowadays rely on this method of logging more often, however it does have to be patched into the device's tree before pushing a build

Also this explains a bit more https://android.stackexchange.com/a/213460
[Magisk] mizzunet:
Hi, I wanted make a module which ports one of Resurrection Remix's, BTW, I don't want thousands customisations in my phone but few of them. And I'm on CAF based ROM(no customisations). So is there anyway to make a module from .java file? Any help would be appreciated ☺️. Here's the link of the feature: https://github.com/ResurrectionRemi...c/com/android/settings/rr/RoundedCorners.java

---------- Post added at 12:58 PM ---------- Previous post was at 12:54 PM ----------

Hi, I wanted make a module which ports one of Resurrection Remix's feature. BTW, I don't want thousands customisations in my phone but few of them. And I'm on CAF based ROM(no customisations). So is there anyway to make a module from .java file? Any help would be appreciated ☺️. Here's the link of the feature: https://github.com/ResurrectionRemi...c/com/android/settings/rr/RoundedCorners.java
[Magisk] Skittles9823:
You could probably do this using overlays depending on how much of settings/systemui is exposed for theming, either that or directly modifying the APKs, but that's more complex.
[Magisk] mizzunet:
Seems too difficult ?
[Magisk] Cyberavater:
I'm trying to port my stock camera as Magisk module;

After porting, I'm getting this error;

https://del.dog/hugithybut.txt

Any help or suggestions?
[Magisk] james28909:
Hello. I am trying to create a magisk module that would put a new file to be used in system/etc. I am not very familiar with the new systemless roots and I am not really liking systemless root much at all. I realize that I cannot edit system but I have a device that I am not worried about if something is checking for root or if something is going to see or peek at magisk or any other app. This device is not ever connected to the internet and I just want to update one file in system/etc to alter some audio configurations and mainly to test and learn from. I am not advanced by any means when it comes to rooting or android and I mainly want to learn and tes because I have a device I do not have to worry at all if I am going to brick it.

but now that I can't edit the system, I have to make a magisk module and is the reason I am here asking for help. I am not sure fo the correct terminology because I realize that magisk doesn't really copy any thing to system, it instead has sort of a mirrir or overlay of sorts. But I am just trying to create a module that will copy a file to system/etc, or edit that file, or search and replace that file or whatever. The file is read on boot and features of my device are enabled or disabled depending on this configuration file that I need to update.

TL: DR;

I need to make a magisk module to copy files to /system/etc or /vendor and/or /system/vendor. Please send help comrade.

EDIT: I have tried and successfully installed a zip file that I had created. I put the file inside system/etc folder structure within the template, and then started cmd and used

7z a ..\test.zip *

And then install it with adb sideload (I also tried to copy it directly) and it installed fine. But the module is not present in magisk, it is not present when I ls /data/adb/modules and it is not updating the file, which was original intentions
[Magisk] Didgeridoohan:
@james28909 That's one of the simplest kind of modules you can make, so should be fairly easy.

Basically you need to create a folder under /data/adb/modules that contains your module files. You'll need a module.prop file in there with the module info (that shows in the Magisk app), see the link further down for an explanation on how it's set up. And other than that you just need to put your edited system file in the same directory structure (in the module directory) as it would be placed normally. So it would be /data/adb/modules/<your module id>/system/etc/<your file>.

Creating this module directory and placing the files can be done with a zip, but unless you plan on distributing the module to others or just want it for future convenience you don't need to. It's just as easy to create the directory and place the files manually.

You've got a more detailed explanation of how a module is built in the official Magisk docs:

https://topjohnwu.github.io/Magisk/guides.html#magisk-modules

Or, if you really, really want to edit the file directly and your partitions are read-only you can try something like this:

https://xdaforums.com/t/script-android-10-universal-mount-system-read-write-super-no_super.4247311/

And lastly, systemless root is nothing new at all. It's been the standard since Android 6...
[Magisk] james28909:
Updated my original post
[Magisk] james28909:
Yes I think this is something I want. Also, what if I need to edit a file in /vendor? Not system/vendor? I have a folder in root called vendor with some files there as well I would like to edit. Can I also just place a folder called vendor in the root of the magisk module?
[Magisk] Didgeridoohan:
Are you just extracting a zip manually? If you've created a module zip, why don't you install it from the Magisk app (in the modules window, "install from storage")? Also see my reply in the other post you created. More info might be needed...
[Magisk] Didgeridoohan:
If you want to magic mount files to /vendor you need to place them in /system/vendor in your module directory. You might want to read more in the Magisk docs:

https://topjohnwu.github.io/Magisk/

Like this part:

https://topjohnwu.github.io/Magisk/details.html#magic-mount
[Magisk] james28909:
OK to me here is the predicament. I have /vendor and /system/vendor. Also, the zip file for making system writeable didn't work, failed with error 255 in twrp.

Oh I see they are the same files. But which is used?
[Magisk] Didgeridoohan:
Tha'ts not a predicament, since Magisk would deal with that automatically. And if making the partitions rw doesn't work, keep working on that Magisk module.

And again: it's hard to help if you do not provide all the information (logs, zip, etc)...
[Magisk] james28909:
Let me try it again. But there were no error messages. The magisk module zip installed in twrp with success and I rebooted into system. And shelled in with adb and did 'cat system/etc/filename' and it showed the factory file. Then I did '$MAGISK/system/etc/filename' and still the file was factory. Then I went to magisk module install location /data/adb/modules/ and checked for my module and it was not there. Maybe I need to see where it went <.< looool

EDIT: @Didgeridoohan I will try again and report back soon. Thanks for all your help this far.
[Magisk] Didgeridoohan:
If you flashed the zip in TWRP and it did not end up in /data/adb/modules there's something obviously wrong with the zip... You can always save the recovery log after installing the zip, that will show more details about what's going on. And sharing the zip would probably also help (hint, hint)...
[Magisk] james28909:
Here is the zip file. When I install it I get this error in magisk:

- Copying zip to temp directory
- Installing test.zip
! Magisk is not activated!... abort
! Installation failed

It also errors in twrp. I am trying to figure out how to save the log file correctly. But I get error 1 or something or maybe error 255

Please advise. Thanks
[Magisk] Didgeridoohan:
@james28909 Now there's your problem... You're using an absolutely ancient installation script (where did you get that "template"?). You need to check the docs I've linked you.

You can remove the common directory and the config.sh file. They're not necessary for what you're trying to do (and is no longer used in the installation of modules anyway). Then you need to replace the update-binary (in the META-INF direcotry tree) with the one linked from the Magisk docs.

After that you should be golden...
[Magisk] james28909:
OK that worked lol. But now I do not see the changes in system/etc/file.xml. Am I suppose to see changes there or will it just be in $MAGISK/system/etc since we can't edit system directly?
[Magisk] Didgeridoohan:
As long as the module is installed properly and the files are there in the module it should also reflect that in the regular file that you're trying to replace. Magisk mounts that file over the regular one.

Do other modules work? You can try with the built-in systemless hosts (activated from the app settings). If you then edit the module hosts file, is that reflected in /system/etc/hosts?

And the Magick (Canary release) log would be useful if you continue having issues.
[Magisk] james28909:
One more thing. If I want to add more files to replaced, can I add them in /data/adb/modules/test_module/system/path/to/file? Or do I need to install each new file, or set of files with a zip file through magisk?
[Magisk] james28909:
I will check and make sure if it is carrying over. Ill do what you said about the host file and see if it reflects changes and let you know.

Thanks a lot for the help sir.
[Magisk] james28909:
OK so it wasn't making the changes in system after I seen that it was making changes to $magisk/system/etc/file.xml. So I installed the zip through twrp and it seems to have made it work. Now it is making the changes to system/etc. I can live with this but I will look into this second method you've posted. I'm in contact with the original poster of that thread so hopefully we can work it out.

Also if you could answer if I want to add more files to replaced, can I add them in /data/adb/modules/test_module/system/path/to/file? Or do I need to install each new file, or set of files with a zip file through magisk or twrp?
[Magisk] Didgeridoohan:
You should be able to add more files to the module directory manually without issue. Manipulating a file that has already been magic mounted has the potential of causing issues though

If you want to update a file that's already in the module you can use the Magisk modules update infrastructure. Instead of putting the newly modified files in /data/adb/modules/test_module/<path_to_file> you put them in /data/adb/modules_update/test_module/<path_to_file>. That way Magisk will safely merge them into your module on the next reboot.
[Magisk] DiamondJohn:
and to state the obvious. it will only come into effect after a reboot...
[Magisk] DiamondJohn:
I am looking into the magiskpolicy file, which is documented at https://topjohnwu.github.io/Magisk/tools.html#magiskpolicy

These SE Linux rules are placed into an sepolicy.rule file in the module directory. My questions are:

Can the lines end with a semi-colon (";")? I previously built ROMs from source, and the standard format was to include the semi-colon at the end of each line (see here for an example) As such, my script that creates these lines from a logcat, are formatted with a semi-colon.

Can I include comments (preceded with a hash (#) character. Again, see the above example file. My script that builds these ruules (for inclusion in a ROM) adds a comment before the line, as an explanation/documentation as to why I added the rule.

The reason I ask instead of just try, is my device (Pixel 4a) does not have TWRP for A11, and so getting out of a boot-loop is problematic, at best.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] user-747:
I recently installed Optimized LineageOS 14.1 on S4-L720.

The install process went without the glitch. Everything was responsive and worked without the glitch. But as I started to add some apps, things slowed down dramatically. the screen does not respond that well to a touch and apps hang/crash more than I'd like to. Rebooting the phone does temporarily solve the problem. Has anyone seen such problem? Is there a some OS memory leak and more importantly is there solution to this problem?
[Tilt, TyTN II, MDA Vario III General] welshmikie:
Hi Im trying to install active sync 4.5 on my windows xp computer but keep getting the error message "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor" can anyone help or tell me what i need to do to resolve this please ive searched the internet but cant find a resolution. thanks
[OnePlus 6 Questions & Answers] dustintinsley:
Just installed the new P release and after switching to Nova launcher notice that the new recent management feature is not there. Odd. Is there a way to add the new style to Nova or do we have to wait for developer to do so?
[OnePlus 6 Questions & Answers] lollyjay:
Do not disable the OOS launcher
[OnePlus 6 Questions & Answers] dustintinsley:
I tried that but then it shows both recents app managers....
[OnePlus 6 Questions & Answers] akxak:
So, freezing the OP launcher brings back the previous Oreo style recent apps view... trying... it does [emoji2]
[OnePlus 6 Questions & Answers] HellDiverUK:
Not sure what the fascination with Nova is. Lawnchair, Action Launcher & the OnePlus launcher are all as good or better if you're looking for an AOSP feel.

Personally I just use the OnePlus launcher, and sometimes Lawnchair.
[OnePlus 6 Questions & Answers] akxak:
Well, that's why there are many launchers... one uses the one with the features one wants and needs.. Nova does a great job for me.
[OnePlus 6 Questions & Answers] ceusito:
WOW!! You Are BIG!! Thanks, I hate that ios recent apps copy where you can only see one at a time.
[OnePlus 6 Questions & Answers] azsl1326:
Nice trick. Works as you stated. Thanks!
[OnePlus 6 Questions & Answers] Lownita:
Damn dude, thanks! Hated that new horizontal scrolling garbage.
[OnePlus 6 Questions & Answers] Tgo1014:
I did that and solved to go back to the new recents and right now nova is showing both old and new recents for me. Can someone help me solve it?
[OnePlus 6 Questions & Answers] SOCOM-HERO:
Can't lock apps using this method... bummer.
[OnePlus 6 Questions & Answers] trai_th:
Same here ?
[OnePlus 6 Questions & Answers] joeb690:
The customisation in Nova Launcher, gestures, swipe etc is not fully present in the other launchers you mention, and as for ASOP "feel" you can make Nove look however you like.
[Samsung Galaxy Note 9 Questions & Answers] Fredyarcol:
Hello! I noticed that a lot of modes from the previous S and Note phones are missing, such as:

Surround Shot

Virtual Shot

Sports Mode

Dual camera

Virtual Tour (old, but from S5)

etc...

What i am saying is, samsung is removing every single good mode and turning this camera app in a very simplistic and standard camera.

But, the old versions of camera stills exists...

I tried to install older versions of camera, anyway porting those older versions doesnt work, sometimes the phone just crashes, sometimes it starts vibrating crazy, just bad experiences.

Is there anyone who has knowledge enough to help me with is?

I just need to make the Note 8 camera app working nicely on Note 9.
[Samsung Galaxy Note 9 Questions & Answers] Neatsfoot:
Help _ I need the same thing

I have downloarded the apps, but theydon't show up on my camera. Samsung support has not had anyproductive suggestions . .
[Samsung Galaxy Note 9 Questions & Answers] Sea-Wolf:
Oh damn. Rear Cam Selfie where are you?
[OnePlus 6 Questions & Answers] R0ttenB4ndit:
wrong category..

see https://xdaforums.com/oneplus-6/help/screwed-flashing-twrp-t3846690

please delete
[OnePlus 6 Questions & Answers] R0ttenB4ndit:
[MENTION=2154886]moderator[/MENTION]. can you move my thread to OnePlus 6 Questions & Answers. I think it's in the wrong place.
[OnePlus 6 Questions & Answers] ajsmsg78:
You need to boot into fastboot and fastboot flash the stock boot.img from you PC. This should restore your stock boot and fix your issue.
[OnePlus 6 Questions & Answers] R0ttenB4ndit:
hey [MENTION=1397125]ajsmsg78[/MENTION]. when i do adb devices through usb, it doesn't find it. it will keep booting to the red dot and spinning white dots around it. no recovery option appears on the phone. what mode do I have to be in for the pc to see it at this point?
[OnePlus 6 Questions & Answers] the Doctor:
Duplicate thread closed.
[Xiaomi Poco F1 Questions & Answers] akshey2021:
1. Wondering if anyone has used an SD card as adoptable Storage on their Poco F1. Is it possible?

2. What is the performance like? Any numbers/data you could share?

3. I have the 64gb version should I think about this as an option to increase internal storage? I.e. I'm looking at it to perform more than just as a backup up for my photos music files etc.

4. What kind of apps can be moved to adoptable Storage? (If Poco phone allows it) Amazon music, uber, pubg?
[Xiaomi Poco F1 Questions & Answers] akshey2021:
Anyone?

Anyone?
[Samsung Galaxy S7 Edge Questions and Answers] GabrielGamall:
hi, Im using LMT launcher on a stock 8.0 S7 edge;

LMT is able to add Nova, Apex and Holo launcher app drawer as a shortcut, for a blank pie button

is there any way to access samsung's stock app drawer, from LMT, as a shortcut, a script, app, or a keymap button?

halp!
[Xiaomi Mi A2 Lite Questions & Answers] Medo22:
Am I alone who feels that fingerprint unlock is a bit slower than note 5,s2 and the redmi 6 pro itself?!

Any idea how to make it faster?
[LG V30 Questions & Answers] jaysonic88:
I followed the lafsploit to a tee and everything went great until using LGUP to flash H932 10d KDZ. As the instructions indicate i selected all partitions etc laf. It went through without seeming to have any issue at all. When however it went to reboot it was a hard brick. Nothing. The only life i can tell is that when i plug in the phone to the computer i can here the chirp of it finding the device. I've tried every combination of keyholds to and some cause the noise of it rebooting and recoming on line. But nothing on the screen.

This is literally the first day i've had this and the first thing i did....i'm almost in tears.
[LG V30 Questions & Answers] Xblackberryuser:
You were supposed to flash the entire 10d kdz when down grading, correct?
[LG V30 Questions & Answers] christoophat:
And the reason you are asking for help here, versus the actual lafsploit thread is because....?
[LG V30 Questions & Answers] lowkeyst4tus:
9008 mode.. Brian hands are tied trying to get material for us like Android 9.0.. contact Messi in Stylo 2/3 forum.. tell him you need help, willing to blind test, and if need be he appreciates donations.. just know if you lose 9008 mode, the problem will be worse..