yashsingh1/xdaforums huggingface dataset:
[Magisk] Dark❶:
Magisk Mount , UnMount & ReSize IMG

This is Magisk Mount , UnMount & ReSize IMG ZIP for Users/Developers.

A.K.A. "M2RI" in Short For MagiskMountReSizeIMG.

By Dark❶

Profile @ XDA-Developers : Dark❶ .

Profile @ GitHub : Dark❶ .

Magisk Mount & UnMount IMG :-

GitHub Pages Site : Magisk Mount & UnMount IMG

GitHub Repository : MagiskMountUnMountIMG

XDA Developers Topic : [Magisk] Magisk Mount & UnMount IMG

Notes :

Useful for Users/Developers who wants to Edit Magisk IMG.

This script is Depending on "Magisk" Binary File , Will Not work without IT.

Module folder can be [Deleted/Added] to [Remove/Add] a Module.

File can be [Edited/Modified/Deleted/Added] as per Users/Developers wish.

This ZIP Mount's OR UnMount's on Different Condition's :

1. If "magisk.img" is NOT Mount'ed , Then Mount "magisk.img" To "/Magisk" .

2. If "magisk.img" is Mount'ed , Then UnMount "/Magisk" From "magisk.img" .

This ZIP ReSize's on Different Mounting OR UnMounting ReSize Mode Condition's.

Following is the Pseudo Code for Mount & UnMount :

IF [ ReSize Mode Only ] , Then :

Will UnMount Magisk IMG If Mounted. ~ UnMount "/Magisk" ⇏ "magisk.img" .

This ZIP will ReSize Magisk IMG as-per User Requirement.

ELSE-IF [ "magisk.img" is NOT Mount'ed AND Mounting is Allowed ] , Then :

This ZIP will ReSize Magisk IMG as-per User Requirement.

Then , will Mount Magisk IMG. ~ Mount "magisk.img" ➔ "/Magisk" .

ELSE-IF [ "magisk.img" is Mount'ed AND UnMounting is Allowed ] , Then :

This ZIP will UnMount Magisk IMG. ~ UnMount "/Magisk" ⇏ "magisk.img" .

Then , will ReSize Magisk IMG as-per User Requirement.

ELSE , Then :

This ZIP will Do Nothing BUT Print some Sh*t InFo.

Following is the Pseudo Code for ReSize Mode :

CASE "ReSizeMode" IN

0 , Then :

Display InFo of Magisk IMG "magisk.img".

1 , Then :

ReSize** to Default "64MB" OR MoRe Depending on Current Used IMG Size.

2 , Then :

ReSize to *User Specified Size* ,

BUT NOT less than "64MB" OR Current Used IMG Size.

*User Specified Size* Need's to be Positive[+] Only.

3 , Then :

**ReSize** to Current IMG Size + User Specified Size = Total,

BUT *Total* is *NOT* less than "64MB" OR Current Used IMG Size.

*User Specified Size* Can be Positive[+] OR Negative[-].

I have Copied the Code from "magisk-module-template" ZIP by [MENTION=4470081]topjohnwu[/MENTION].

I have Edited some part of the Code to make it work.

I have Added some part of the Code to make it work.

I have Added some Necessary File(s).

I have Removed Un-Necessary part of Code Because It is Either Not Used OR Not Needed.

I have Removed Un-Necessary Directory(s) & File(s) Because It is Either Not Used OR Not Needed.

I have DoNe Some Optimization to code.

Download : MagiskMountReSizeIMG-v2.0.zip

Download History : XDA:DevDB Downloads OR This Post .

...

XDA:DevDB Information

Magisk Mount ReSize IMG, Tool/Utility for all devices (see above for details)

Contributors

Dark❶

Source Code: https://github.com/dark-1/MagiskMountReSizeIMG

Version Information

Status: Stable

Current Stable Version: 2.0.0

Stable Release Date: 2017-10-25

Created 2017-09-19

Last Updated 2017-10-25
[Magisk] Dark❶:
Reserved
[Magisk] Dark❶:
Explanation :

Explanation from "config.sh" :

###############################################
## Mount / UnMount Switch [..SW] ##
###############################################
#
# To be Set For "MTSW" , "UTSW" & "ROSW". [..SW]
#
# Set to " true " , To Allow Mount / UnMount .
# Set to " false " , To Prevent Mount / UnMount .
#
# Default is " true " , For Both , "MTSW" & "UTSW". [..SW]
# And " false " For "ROSW".
#
###############################################

###############################################
## ReSize Mode [..RSMO] ##
###############################################
#
# To be Set For "MTRSMO" , "UTRSMO" & "RSMO". [..RSMO]
#
# Set to " 0 " , To Display InFo of Magisk IMG "magisk.img".
# Set to " 1 " , To ReSize to Default "64M" OR MoRe Depending on "Current Used Size".
# Set to " 2 " , To ReSize to "User Specified Size".
# Set to " 3 " , To ReSize to "Current IMG Size" + "User Specified Size".
#
# Default is " 0 " , For All , "MTRSMO" , "UTRSMO" & "RSMO". [..RSMO]
#
###############################################

###############################################
## User Specified Size [..RSMB] ##
###############################################
#
# To be Set For "MTRSMB" , "UTRSMB" & "RSMB". [..RSMB]
#
# All Number's Here Should be Multiple of " 4 " AND in MegaBytes[M].
# AND No Need to Specify character " M " OR " MB ", Just a Number.
#
# IF ReSizeMODE is " 2 " ,
# Then "User Specified Size" Should NOT be less-than "64MB" OR "Current Used IMG Size".
# AND "User Specified Size" Need's to be Positive[+] Only.
# No Need to Specify character " + ".
# IF ReSizeMODE is " 3 " ,
# Then "Current IMG Size" + "User Specified Size" = "Total",
# AND "Total" Should NOT be less-than "64MB" OR "Current Used IMG Size".
# "User Specified Size" Can be Positive[+] OR Negative[-],
# Hence Need to Specify character " + " OR " - ".
#
# Default is " 64 " , For All , "MTRSMB" , "UTRSMB" & "RSMB". [..RSMB]
#
###############################################

Example from "config.sh" :

###############################################
## Example's ##
###############################################
#
# While Mounting , you want the "magisk.img" to be 80MB,
# then "MTRSMO" & "MTRSMB" will be :
# MTRSMO=2
# MTRSMB=80
#
# Now , after Mounting the "magisk.img" ,
# And While UnMounting , you want the "magisk.img" to be Reduced by 12MB [-12MB],
# then "UTRSMO" & "UTRSMB" will be :
# UTRSMO=3
# UTRSMB=-12
#
###############################################

EnJoY ... :D
[Magisk] Dark❶:
Download History :

Download :

v1.0 : MagiskMountReSizeIMG-v1.0.zip

v2.0 : MagiskMountReSizeIMG-v2.0.zip
[Magisk] Dark❶:
Changelog

v0.0

- Initialized.

v1.0

- Initial Release.

- Copied the Code.

- Edited some part of the Code.

- Added some part of the Code.

- Added some Necessary File(s).

- Removed Un-Necessary part of Code.

- Removed Un-Necessary Directory(s) & File(s).

v2.0

- Yea! Jump in Version.

- Updated "update-binary".

- Fix a Critical Bug due to Duplicate Code.

- Optimized the Code.

- Added some Checks.
[Magisk] Dark❶:
Credit's

Thank's [MENTION=4470081]topjohnwu[/MENTION] for Magisk & for the code in "magisk-module-template" , could not have done without it.
[Magisk] Dark❶:
Announcement :

This Thread is not Completed , Kindly give Me some Time Slag .....

Thread is now Completed. Thanks for your Patience.
[Magisk] Dark❶:
MagiskMountReSizeIMG v2.0

Here is MagiskMountReSizeIMG v2.0 :

- Yea! Jump in Version.

- Fix a Critical Bug due to Duplicate Code.

- Optimized the Code.

- Added some Checks.

Download : MagiskMountReSizeIMG-v2.0.zip
[Magisk] return.of.octobot:
Wouldn't mind a set of usage instructions that are a bit clearer as opposed to being outlined in pseudo-code. What I'm gathering is that you flash to mount/unmount and that image resizing is automated based on your additions/deletions. That sound about right? Is this to be flashed in recovery or via Magisk Manager?
[Magisk] Dark❶:
Yea!!!

& Only in Recovery. This is NOT a Module.

Check my 4th Post : https://xdaforums.com/showpost.php?p=73852785&postcount=4

Cleaner Instruction than that ,,,, then I'll need some time.

Best regards. :good:
[Magisk] return.of.octobot:
No, you're right, my issues had less to do with lack of instructions and more to do with the fact that I'm trying to resize magisk.img on a device with A/B partitions. I don't know why it is, but I've tried plethora of resizing methods, as well as modules that should auto-resize but they all fail and I've discovered in the terminal app systemizer thread that there's a commonality of this issue on A/B devices.
[Magisk] ch3mn3y:
Any chance for update, so it'll work with /data/adb/img?
[Magisk] Dark❶:
Yea!!! I'll try , but no ETA.
[Magisk] Dante63:
I don't think it works with Magisk 17...

I get an error Magisk not found... ?
[Magisk] Dark❶:
Yea! I'll Update it soon ....

I am busy with other stuff...

Best regards :good:
[Magisk] Dante63:
I'll be fixing myself...

I know what to do... ?

Great job though
[Magisk] Dark❶:
If you could make a PR , that would be highly appreciated my friend.

Best regards :good:
[Magisk] Dante63:
I'm not good with binary I guess...

Since I get error 2...

I only do script...

I added the script in binary "I know it's different" but that's what I know and I simply crossed fingers hoping it's right ?...

I suppose I'll have to wait for you...
[Magisk] Dark❶:
Hey! :)

Try this PR : https://github.com/dark-1/MagiskMountReSizeIMG

I have updated my repo , but it's not tested with all conditions yet.

but if you could , give it a try.

Best regards :good:
[Magisk] gps3dx:
Can you please create a flashable recovery ZIP ?

I'm willing to try.
[Magisk] amieben:
Hi !! i tried somthing out and it worked for me , here it is ( magisk 17.1) :

- went to recovery and flashed older version of magisk ( 16.0 ).

- rebooted the system ( even though i was already having a bootloop cuz of a wrong magisk modul i instaled earlier ).

- went back to recovery and flashed " Magisk Mount ReSize IMG " , and it worked without any errors .

- magisk folder was mounted , i removed the magisk modul that caused the bootloop .

- and finaly rebooted the sys and voila , it booted normal .

Ps : dnt forget to reflash magisk 17.1 ;)
[Magisk] Dark❶:
Just give me 3 days, I'll check for all case's and release the ZIP file.

----------------------------------------------

Yea! the old ZIP will work for 16.x but not on 17.x , so ... ;)

--------------------------------------

Best regards :good:
[Magisk] thecoolkid:
Any love for magisk 18.0? :D
[Magisk] Dark❶:
Sorry, but I'll need some time to update it.

been busy with college stuff... :(

Best regards :good:
[Magisk] TirelesSaul:
Tireless72
[Samsung Gear S3] Sturmie:
I've been researching this the last few days and even chatted with a Sprint rep (which was pretty much useless)...I can't seem to get an answer on this one simple question--if I get a Gear S3 with LTE and "pair it" to my S8+, what (if anything) is needed for me to be able to go out on a run without my phone and STILL be able to receive texts, calls and emails on my watch? Is there some $5-10/month plan I need? I understand that the watch and phone don't technically need be on the same provider, but I would like to stick with Sprint for everything.

Thanks.
[Samsung Gear S3] kbboykin:
I've got the unlocked Gear S3 on TMobile for LTE and my Sprint S7E gets forwarded to the Gear S3 when I go out without it. Now on the Note 8 (Sprint) instead. The Gear S3 has an eSIM. No problems for me using it this way. I can also make and receive calls on the Gear S3 stand alone as well.
[Samsung Gear S3] Sturmie:
Thanks for the reply. I assume you mean that your Gear S3 is on T-Mobile and your Note 8 is on Sprint, correct? So, how much are you paying for the Gear S3 LTE per month? I was hoping to avoid having bills from two different carriers.
[Samsung Gear S3] kbboykin:
Yes, that's right. Many others managed to get the TMobile for $5/month, but I wasn't on them so I pay $20/mom ($15/mon on auto pay), but it is unlimited and I'm not on a contract.
[Samsung Gear S3] Sturmie:
Yeah, I read somewhere that if you have an existing T-Mobile account, you can get a smartwatch added for only $5/month (with auto-pay), but as a Sprint user, I think I'd be in the situation as you and wind up with $15/month. For what I would use it for, I'm not sure that $15/month is worth it to me...I only need to be away from my phone with the watch a few times per week. I appreciate the info though, thanks.

Do you know if Sprint is planning on adding plans for ANY smartwatches? In the chat conversation with them earlier, they mentioned the new Apple watch as an option (I have all Android devices, obviously), but nothing else that supported LTE.
[Samsung Gear S3] kbboykin:
No, but that would be the only reason. They have not offered a smart watch plan since the Gear S.
[Samsung Gear S3] Sturmie:
Gotcha, well that's disappointing.

Thanks again for the info.
[Samsung Gear S3] kbboykin:
Glad I could help.
[Samsung Gear S3] JJ.Evoking:
Galaxy watch and note 8 help

can you tell me how u achieved it
[Samsung Gear S3] kbboykin:
Just walked into t mobile after pairing with my note 8 and had them activate the eSIM
[Samsung Gear S3] JJ.Evoking:
oh my girlfriend got me one for a gift. with a data plan on tmobile, however im a sprint customer..... will it work for sprint
[Samsung Gear S3] kbboykin:
No sprint has no data plan for the watch and the watch's radio is not on the CMDA network of Sprint, but on the GSM of T-Mobile. If I'm wrong, others chime in.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Orthok:
I've just purchased an SGP771 and I've noticed that my tablet is lagging a lot with games compared to how my SGP712 performed. Are there any tricks to increase performance? I'm not in batter save mode. I'm also noticing stuttering with Bluetooth audio.
[Galaxy S6 Edge Q&A, Help & Troubleshooting] barczewsky:
Hello,

I'm having a problem with my S6 edge. Its USB port is broken and also its screen burn-in so I'd like to repair this. I still have a valid warranty. The main problem is that I debranded my soft and now I can't flash an original one.

Any ideas? Thanks in advance :)
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
Why cant you flash an original firmware? I can tell you now you can flash a branded firmware if you want to....
[Galaxy S6 Edge Q&A, Help & Troubleshooting] barczewsky:
[MENTION=7187807]callumbr1[/MENTION]

I can't flash a branded firmware, because my usb port is broken and I can't connect to the computer. I've tried with 5 cables and none of them worked.

But if you know how to flash my phone without USB and tripping KNOX, I'd be really grateful.
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
Ahh I see. Well aslong as your knox is not tripped then you can repair it with warranty. It doesn't matter what software is on it as long as knox is 0x0.
[Galaxy S6 Edge Q&A, Help & Troubleshooting] barczewsky:
Really? I've heard many stories about warranty, but if you say so I'll contact with the closest repair centre.
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
Really. If knox is not tripped and still 0x0 it's under warranty.
[7" Kindle Fire HD Q&A, Help & Troubleshooting] mezrein:
Is there a way I can devote some internal space to system memory or am I stuck at 790mb for system memory?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] mezrein:
Ok, bumping and let me ask this differently. Im trying to figure out how to use some of my 12gb of free storage that I have to create a page file for memory usage. Anyone?
[7" Kindle Fire HD Q&A, Help & Troubleshooting] Provided:
As in make more room for Ram? I know you can do this after root. Are you rooted? Please also say the device model and the fire os?
[OnePlus 5 Themes, Apps, and Mods] Zombie:
Hi, this is a governor profile for Interative.

Im in school right now so I cant explain it too much right now. Ill edit it later.

Its a profile for the OnePlus 5, specially tuned for it. Im still working on it for more performance while keeping battery good.

This should help battery a lot. It helped me and i never get good battery haha

How to install, download the profile and place it in elementalx/gov_profiles and then select it in exkm.

Also disable input boost when using this profile. Its fairly smooth and no need for extra battery drain from using input boost.

For now, Here is the link to download via AFH, once you download remove the .txt extension.

Download:

I am currently requesting dev access on AFH so hopefully soon I can upload my files there
[OnePlus 5 Themes, Apps, and Mods] Zombie:
Alright I fixed download link. Now it should work without needing to request access
[OnePlus 5 Themes, Apps, and Mods] matkwok:
do you mean disable touch boost?
[Xperia Z5 Compact Q&A, Help & Troubleshooting] madshark2009:
guys my phone started to over heat and there was yellow stripes on both left and right sides but i didnt care , i asked in the forum they said because of over heating, I didnt want to send it to lab even if its under warrenty because i had no replacement phone and im a very busy man.

but my phone has dropped in water and I immediatly turned it off as I was afraid water might break it and I tried to turn it on but it didnt thank god because i immediatly put it in rice for about a week (i know its supposed to be water proof but im safe lol) but turns out in the end water did actually get in it because it didnt charge properly after i turned it on so i tried to dry it out in a hot air dryer it started to charge ok but there was still water signs in the screen that couldnt dry out so with time phone started to over heat more for some reason, so i thought maybe it has more water , so I tried to blow dry it for a couple of minutes which caused the screen to turn yellow'ish in the corner so I sent it to the lab and they said water has got into it before checking any thing, they just saw it and said water has got in it, do they have the authority to just decide that without opening it? i mean it did become yellow because of too much heat not because of water, and they just wanna charge me saying it broke cuz of water, I know I didnt tell them about the water either ways its not under warranty but im just asking can they just claim its water? after all it broke because of heat not water is there any thing i could say to get out of paying to fix this? im sick of broken phones money here .... need help asap, help me figure out if i can convince them...

thanks
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Gregor333:
Any plans for cooking wm7 for our wizards? :confused:

p.s: please post some screens if they are avalible.....:rolleyes:
[8125, K-JAM, P4300, MDA Vario Software Upgrading] efexor:
You're really impatient, you know that, right?!
[8125, K-JAM, P4300, MDA Vario Software Upgrading] c42:
Take a look here lazy...
[Verizon LG G4] TheRock40359:
Are there any Marshmallow or Nougat roms for this phone?
[Verizon LG G4] WAIDroid:
Nope. Just Mainly these and Nougat hasn't come out yet and don't know when. Last I checked they said Sept. - Oct.
[Samsung Galaxy J7 Guides, News, & Discussion] animania260:
Hello everyone,

So we've got an active developer wanting to port Lineage 15 to the new J7 Perx on Boost/Sprint, MetroPCS, Virgin Mobile, etc. But we need to raise some funds to help [MENTION=7652989]minz1[/MENTION] get the device in his hands. Minz1 ported Lineage 13 & 14.1 to the J700P for Boost/Sprint, Virgin, etc. He's also helped with other projects such as the Vulkan TWRP zip floating around to enable Vulkan on devices that don't ship with Vulkan but support it.

You can find Minz J700P Lineage thread here if you're interested: Lineage 14.1 for J700P. Minz got Lineage running great and stable on that device.

I'm donating to help Minz get this device in his hands, and I would like to ask if anyone else has upgraded to this new J7 Perx and enjoyed his work previously, if you can donate anything at all that would be awesome!

Use this PayPal link (this in Minz1's PayPall. You can ask him directly for confirmation.) and anything you can donate will go straight to him.

https://paypal.me/minDEV

I'm donating $50 for a start. We need a goal of at least $160 as that's the cheapest available in his area.

However I would like him to get a case as well so if we can raise a little more for a case that would be great too. The build quality of this device is not the greatest ever >.>. I broke the screen on my first one after one bad drop.

Anyway donate something if you can if you would like to see Lineage ported to this device.

Thanks for your time,

Animania260
[Samsung Galaxy J7 Guides, News, & Discussion] minz1:
I can verify all the information in this post is correct; if I can get my hands on the device I will first work on TWRP, then I'll work on the LineageOS bringup.
[Samsung Galaxy J7 Guides, News, & Discussion] Oves786:
Hey what for j7 2016

We can too manage u a j7 16

Exynos7870
[Samsung Galaxy J7 Guides, News, & Discussion] minz1:
Possibly, if I can get one. However I'd only really focus on 1 device at a time.
[Samsung Galaxy J7 Guides, News, & Discussion] Oves786:
Yep

My telegram is limied can u pm me [MENTION=7890898]Oves786[/MENTION]
[Samsung Galaxy J7 Guides, News, & Discussion] AL_IRAQI:
Share it around, reddit, facebook, getting more users will always be better, and check J700P users maybe will opt in
[Samsung Galaxy J7 Guides, News, & Discussion] RS.85243:
donated...would love a TWRP recovery
[Samsung Galaxy J7 Guides, News, & Discussion] minz1:
Great, thanks! Including the initial donation of 50$, we are now at 100$, 60$ more minimum is needed to get this J7 Perx!
[Samsung Galaxy J7 Guides, News, & Discussion] animania260:
Awesome thanks everyone who's donated so far :) just need a little more!
[Samsung Galaxy J7 Guides, News, & Discussion] peter couniaz:
Virgin mobile galaxy J727P

Guess everyones lost the Faith why is no one else give what that can ?? ?
[Samsung Galaxy J7 Guides, News, & Discussion] mercury0x000d:
Is there still a need here? I just got this phone and am eager to start on a slimmed and themed ROM similar to my old Warp OEM, but would prefer to have a custom recovery available first.

How much more funds are needed to get this guy a J727? :)
[Samsung Galaxy J7 Guides, News, & Discussion] minz1:
We're still only at 100$ The goal is at least $160.
[Samsung Galaxy J7 Guides, News, & Discussion] mercury0x000d:
I think we're good now. :D
[Samsung Galaxy J7 Guides, News, & Discussion] minz1:
Oh dang, thanks a ton for the help! I'll be able to order a J7 Perx now :D

I'll probably have the device by around next week, and I'll start work right when I receive it.
[Samsung Galaxy J7 Guides, News, & Discussion] mercury0x000d:
No problem! While I can't do a whole lot of testing until TWRP is in place since my J727 is my daily driver, I'll be pushing for you by remote lol

Best of luck to ya!
[Samsung Galaxy J7 Guides, News, & Discussion] animania260:
Thanks alot Mercury and to everyone who donated!
[Samsung Galaxy J7 Guides, News, & Discussion] animania260:
And just to add a foot note: you can always donate a little extra funds to Minz through his PayPal link in the OP of this thread. Minz did not ask me to post this and he does this work because he wants to and likes tinkering with things as we all do here on XDA and in any modding community. He's never asked for funds that I know of. But if you ever feel like giving him a little bonus for his work send him a little money for a beer [emoji106] or something.
[Samsung Galaxy J7 Guides, News, & Discussion] mercury0x000d:
No problem!

This phone is way too affordably powerful to not get some custom recovery awesomeness. I'm currently working on a slimmed ROM for the Avant, and it'd be nice if I could apply all I learned on that Samsung to this one when I'm done :)