[TOOL][WIN,LIN,AND,DARW] Super image tools | extract or make partitions RW in super partition

Search This thread

starbucks2010

Senior Member
Jun 30, 2010
3,181
1,900
lemme know if you need any files/testing from my side

thank you very much for taking your time to help ... much appreciated
 

munjeni

Senior Member
Jun 2, 2011
9,590
22,241
  • Like
Reactions: starbucks2010

Pervokur

Senior Member
Feb 15, 2022
200
54
You must clone things if you plan to copy from partition to partition, including uuids and things, selinux labels, permissions....etc and thats not a very easy. Thats not something like cp -fr xx xx . One more thing, it is signed image? In that case apsolutly no way to make RW
magisk can copy attrs

magisk64
--clone-attr SRC DEST clone permission, owner, and selinux context
--clone SRC DEST clone SRC to DEST
 
  • Like
Reactions: starbucks2010

Pervokur

Senior Member
Feb 15, 2022
200
54
check
mkdir -p /data/adb/overlay_test/layer1
mkdir -p /data/adb/overlay_test/layer2
mkdir -p /data/adb/overlay_test/merged
mount -t overlay -o lowerdir=/data/adb/overlay_test/layer1:/data/adb/overlay_test/layer2 overlay /data/adb/overlay_test/merged
if mount -t overlay | grep -q " /data/adb/overlay_test/merged "; then
is_overlayfs=true
fi


or extract /proc/config.gz
 

munjeni

Senior Member
Jun 2, 2011
9,590
22,241
Overlayfs is very good idea and very good feature, today every Openvrt router have this, very usefull feature! That way android RO have sense!
 

munjeni

Senior Member
Jun 2, 2011
9,590
22,241
Last edited:

munjeni

Senior Member
Jun 2, 2011
9,590
22,241
I don't know! Even I don't know what is needed for android to make overlayfs work, I'm just shared some links which might help! I'm not working on android for almost 2-3 and maybe more years
 

Pervokur

Senior Member
Feb 15, 2022
200
54
I'm not a expert in overlayfs and android, I just did couple of .rc scripts for magisk (overlay.d folder in boot ramdisk) for testing.

There was something like this:

on post-fs-data
exec /system/bin/mount -t overlay overlay -o lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work /system


test when execute cmd after boot:

mount | grep " / "
/dev/block/dm-0 on / type ext4 (ro,seclabel,nodev,relatime,discard)

mount | grep "/system"
overlay on /system type overlay (rw,seclabel,relatime,lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work)


For testing I recommend to use something like

on post-fs-data && property:persist.sys.safemode=true
setprop persist.sys.safemode ""
»»»»other commands

boot to safemode and see if your system still works)
 
Last edited:

iamatx

Member
Jul 16, 2021
11
1
PS D:\A.T\DESKTOP\platform-tools> ./adb root
restarting adbd as root
PS D:\A.T\DESKTOP\platform-tools> adb remount
Not running as root. Try "adb root" first.
PS D:\A.T\DESKTOP\platform-tools>

idk
 

iamatx

Member
Jul 16, 2021
11
1
I'm not a expert in overlayfs and android, I just did couple of .rc scripts for magisk (overlay.d folder in boot ramdisk) for testing.

There was something like this:

on post-fs-data
exec /system/bin/mount -t overlay overlay -o lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work /system


test when execute cmd after boot:

mount | grep " / "
/dev/block/dm-0 on / type ext4 (ro,seclabel,nodev,relatime,discard)

mount | grep "/system"
overlay on /system type overlay (rw,seclabel,relatime,lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work)


For testing I recommend to use something like

on post-fs-data && property:persist.sys.safemode=true
setprop persist.sys.safemode ""
»»»»other commands

boot to safemode and see if your system still works)
thanks but am trying to do it in Bluestack 5 7/9
 

munjeni

Senior Member
Jun 2, 2011
9,590
22,241
I'm not a expert in overlayfs and android, I just did couple of .rc scripts for magisk (overlay.d folder in boot ramdisk) for testing.

There was something like this:

on post-fs-data
exec /system/bin/mount -t overlay overlay -o lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work /system


test when execute cmd after boot:

mount | grep " / "
/dev/block/dm-0 on / type ext4 (ro,seclabel,nodev,relatime,discard)

mount | grep "/system"
overlay on /system type overlay (rw,seclabel,relatime,lowerdir=/system,upperdir=/data/overlay/system/upper,workdir=/data/overlay/system/work)


For testing I recommend to use something like

on post-fs-data && property:persist.sys.safemode=true
setprop persist.sys.safemode ""
»»»»other commands

boot to safemode and see if your system still works)
Yes thats it! What need to be manualy tried first before anything is:

Code:
mkdir -p /data/local/tmp/work
mkdir -p /data/local/tmp/upper
mount -t overlay overlay -o lowerdir=/system,upperdir=/data/local/tmp/upper,workdir=/data/local/tmp/work /system

If that work than it will definitelly work on ramdisk level. Overlayfs is an powerfull thing, ideal to beat our android RO. I'm running overlayfs on Openvrt ruter Fritz Box 7360SL and an external 1Tb hard disc, I'm compiled a ton of things that way from 2017. and I have now it like full Linux envinronment with compiled a lot of things directly inside router, Apache, PHP, Mysql, GCC, Python, Torrent.... many more things , see how powerfull overlayfs can convert an router into an true Linux -> https://pastebin.com/5zCQTrSc :) And when I disconnect external hard disc everything is stock and unmodified, no need to mess by reinstalling anything.

List of things compiled on router directly:
Code:
[email protected]:~# ls -l /overlay/ROM/squashfs-root
total 1808
drwxr-xr-x  7 root  root     4096 May  8  2018 MediaInfo
drwxr-xr-x  7 root  root     4096 May  7  2018 MediaInfoLib
drwxr-xr-x  6 root  root     4096 Nov  2  2017 ZenLib
drwxr-xr-x 28  1001  1001    4096 May 26  2018 apr-1.6.3
drwxr-xr-x 21  1001  1001    4096 May 27  2018 apr-util-1.6.1
drwxrwxr-x  9 root  root     4096 May 26  2018 autoconf-2.69
drwxr-xr-x 11  1000   998    4096 May 26  2018 automake-1.16
drwxr-xr-x  2 root  root     4096 Jun 21  2018 bin
drwxr-xr-x 14 root  root     4096 May 28  2018 bison-2.7.91
drwxr-xr-x  2 root  root     4096 May 27  2018 bzip2-1.0.6
drwxrwxr-x 11 root  root     4096 May 25  2018 coreutils-8.29
drwxr-xr-x  2 root  root     4096 May 26  2018 crypt_0_03
drwxr-xr-x 13  1000  1000    4096 May 27  2018 curl-7.60.0
drwxr-xr-x 22 root  root     4096 Jun 20  2018 cyrus-sasl
drwxrwxr-x 14   100 users    4096 Apr 13  2017 db-6.2.32
drwxr-xr-x  2 root  root     4096 Jun 19  2018 dev
drwxr-xr-x 29 root  root     4096 Jun 22  2018 etc
drwxrwxr-x 14  1000  1000    4096 May 26  2018 expat-2.1.0
drwxr-xr-x 11 root  root     4096 May 28  2018 flex-2.6.0
drwxrwxr-x 22  1000  1000    4096 May 27  2018 fontconfig-2.13.0
drwxr-xr-x  8  1000 users    4096 May 27  2018 freetype-2.9.1
drwxr-xr-x  2 root  root     4096 May 26  2018 getconf-master
drwxr-xr-x 10 root  root     4096 May 27  2018 gettext-0.19.8.1
drwxr-xr-x 27 root  root    20480 Jun  1  2018 git-master
drwxr-xr-x 16  1001 root     4096 May 27  2018 gmp-6.1.2
drwxr-xr-x  7 root  root     4096 May 27  2018 gperf-3.1
drwxr-sr-x 12 root     40    4096 May 28  2018 httpd-2.4.33
drwxr-xr-x 13 root  root     4096 May 29  2018 imap-2007f
-rwxr-xr-x  1 root  root       78 Nov 18  2017 init
drwxr-xr-x  4   500 users    8192 May 27  2018 jpeg-9c
drwxr-xr-x 11 root  root     4096 Jun 21  2018 lib
drwxrwxr-x 15 root  root     4096 May 27  2018 libgd-gd-2.2.5
drwxr-xr-x 22 root  root     4096 May 26  2018 libiconv-1.15
drwxr-xr-x  7  1000  1000    4096 May 26  2018 libmbfl-1.2.0
drwxrwxrwx  9   500 adm      4096 May 26  2018 libmcrypt-2.5.8
drwxr-xr-x 13   179  1001    8192 Apr  7  2020 libpcap-1.9.1
drwxr-xr-x 12  1004  5101    4096 May 27  2018 libpng-1.6.34
drwxr-xr-x 13  1000  1000    4096 May 27  2018 libssh2-1.8.0
drwxr-xr-x 10 root  root     4096 Feb 18  2019 libtorrent
drwxrwxr-x  4  1000  1000    4096 May 27  2018 libuuid-1.0.3
drwxrwxr-x 19  1000  1000    8192 May 28  2018 libxml2-2.9.8
drwxr-xr-x 13 root  root     4096 May 31  2018 lynx2-8-8
drwxr-xr-x  4 root  root     4096 May 26  2018 lzip-1.19
drwxr-xr-x 10 root  root     4096 May 26  2018 mhash-0.9.9.9
drwxr-xr-x  2 root  root     4096 May 28  2018 mnt
-rw-r--r--  1 root  root  1374500 Dec  6  2009 mpfr-2.4.0.tar.gz
drwxr-xr-x 11 root  root     4096 Feb 18  2019 musl-1.1.16
drwxr-xr-x  2 root  root     4096 May 28  2018 musl_crypt
drwxrwxrwx 32  7155    10    4096 May 27  2018 mysql-5.1.73
drwxr-xr-x 18  1001 users    4096 May 27  2018 ncurses-6.1
drwxr-xr-x 18 root  root     4096 May 26  2018 openssl-1.1.0h
drwxr-xr-x  2 root  root     4096 Nov 18  2017 overlay
drwxr-xr-x  9  1169  1169    8192 May 27  2018 pcre-8.42
drwxr-xr-x  8  1169  1169    4096 May 26  2018 pcre2-10.31
drwxr-xr-x 27   544   513    8192 May 26  2018 perl-5.26.2
drwxr-xr-x 19 root  root     4096 May 30  2018 php-7.2.6
drwxrwxr-x  5  1000  1000    4096 May 27  2018 pkg-config-0.29.2
drwxr-xr-x  2 root  root     4096 Nov 18  2017 proc
drwxr-xr-x  2 root  root     4096 Nov 18  2017 rom
drwxr-xr-x  4 root  root     4096 Jun 21  2018 root
drwxr-xr-x  9 root  root     4096 Feb 18  2019 rtorrent
drwxr-xr-x  2 root  root     4096 Jun 21  2018 sbin
drwxr-xr-x 22 root  root     4096 Jun 20  2018 sendmail-8.15.2
drwxr-xr-x  9   556    21    4096 Apr  7  2020 ssldump-0.9b3
-rw-r--r--  1 root  root   137435 Apr  7  2020 ssldump-0.9b3.tar.gz
drwxr-xr-x  2 root  root     4096 Nov 18  2017 sys
drwxr-xr-x  2 29189 29189    4096 May 25  2018 termcap-1.3.1
drwxr-xr-x 12  1107  5100    4096 May 27  2018 tiff-4.0.9
drwxrwxrwt  2 root  root     4096 May 25  2018 tmp
drwxr-xr-x 25 root  root     4096 Jun 21  2018 usr
drwxr-xr-x  6 root  root     4096 May 27  2018 uuid-1.6.2
lrwxrwxrwx  1 root  root        4 May 25  2018 var -> /tmp
drwxr-xr-x  4 root  root     4096 Nov 18  2017 www
drwxr-xr-x  6 root  root     4096 Feb 17  2019 xmlrpc-c
drwxr-xr-x 14 root  root     4096 May 28  2018 zlib-1.2.11
[email protected]:~#
 
Last edited:
  • Like
Reactions: Aqq123 and iamatx

iamatx

Member
Jul 16, 2021
11
1
Yes thats it! What need to be manualy tried first before anything is:

Code:
mkdir -p /data/local/tmp/work
mkdir -p /data/local/tmp/upper
mount -t overlay overlay -o lowerdir=/system,upperdir=/data/local/tmp/upper,workdir=/data/local/tmp/work /system

If that work than it will definitelly work on ramdisk level. Overlayfs is an powerfull thing, ideal to beat our android RO. I'm running overlayfs on Openvrt ruter Fritz Box 7360SL and an external 1Tb hard disc, I'm compiled a ton of things that way from 2017. and I have now it like full Linux envinronment with compiled a lot of things directly inside router, Apache, PHP, Mysql, GCC, Python, Torrent.... many more things , see how powerfull overlayfs can convert an router into an true Linux -> https://pastebin.com/5zCQTrSc :) And when I disconnect external hard disc everything is stock and unmodified, no need to mess by reinstalling anything.

List of things compiled on router directly:
Code:
[email protected]:~# ls -l /overlay/ROM/squashfs-root
total 1808
drwxr-xr-x  7 root  root     4096 May  8  2018 MediaInfo
drwxr-xr-x  7 root  root     4096 May  7  2018 MediaInfoLib
drwxr-xr-x  6 root  root     4096 Nov  2  2017 ZenLib
drwxr-xr-x 28  1001  1001    4096 May 26  2018 apr-1.6.3
drwxr-xr-x 21  1001  1001    4096 May 27  2018 apr-util-1.6.1
drwxrwxr-x  9 root  root     4096 May 26  2018 autoconf-2.69
drwxr-xr-x 11  1000   998    4096 May 26  2018 automake-1.16
drwxr-xr-x  2 root  root     4096 Jun 21  2018 bin
drwxr-xr-x 14 root  root     4096 May 28  2018 bison-2.7.91
drwxr-xr-x  2 root  root     4096 May 27  2018 bzip2-1.0.6
drwxrwxr-x 11 root  root     4096 May 25  2018 coreutils-8.29
drwxr-xr-x  2 root  root     4096 May 26  2018 crypt_0_03
drwxr-xr-x 13  1000  1000    4096 May 27  2018 curl-7.60.0
drwxr-xr-x 22 root  root     4096 Jun 20  2018 cyrus-sasl
drwxrwxr-x 14   100 users    4096 Apr 13  2017 db-6.2.32
drwxr-xr-x  2 root  root     4096 Jun 19  2018 dev
drwxr-xr-x 29 root  root     4096 Jun 22  2018 etc
drwxrwxr-x 14  1000  1000    4096 May 26  2018 expat-2.1.0
drwxr-xr-x 11 root  root     4096 May 28  2018 flex-2.6.0
drwxrwxr-x 22  1000  1000    4096 May 27  2018 fontconfig-2.13.0
drwxr-xr-x  8  1000 users    4096 May 27  2018 freetype-2.9.1
drwxr-xr-x  2 root  root     4096 May 26  2018 getconf-master
drwxr-xr-x 10 root  root     4096 May 27  2018 gettext-0.19.8.1
drwxr-xr-x 27 root  root    20480 Jun  1  2018 git-master
drwxr-xr-x 16  1001 root     4096 May 27  2018 gmp-6.1.2
drwxr-xr-x  7 root  root     4096 May 27  2018 gperf-3.1
drwxr-sr-x 12 root     40    4096 May 28  2018 httpd-2.4.33
drwxr-xr-x 13 root  root     4096 May 29  2018 imap-2007f
-rwxr-xr-x  1 root  root       78 Nov 18  2017 init
drwxr-xr-x  4   500 users    8192 May 27  2018 jpeg-9c
drwxr-xr-x 11 root  root     4096 Jun 21  2018 lib
drwxrwxr-x 15 root  root     4096 May 27  2018 libgd-gd-2.2.5
drwxr-xr-x 22 root  root     4096 May 26  2018 libiconv-1.15
drwxr-xr-x  7  1000  1000    4096 May 26  2018 libmbfl-1.2.0
drwxrwxrwx  9   500 adm      4096 May 26  2018 libmcrypt-2.5.8
drwxr-xr-x 13   179  1001    8192 Apr  7  2020 libpcap-1.9.1
drwxr-xr-x 12  1004  5101    4096 May 27  2018 libpng-1.6.34
drwxr-xr-x 13  1000  1000    4096 May 27  2018 libssh2-1.8.0
drwxr-xr-x 10 root  root     4096 Feb 18  2019 libtorrent
drwxrwxr-x  4  1000  1000    4096 May 27  2018 libuuid-1.0.3
drwxrwxr-x 19  1000  1000    8192 May 28  2018 libxml2-2.9.8
drwxr-xr-x 13 root  root     4096 May 31  2018 lynx2-8-8
drwxr-xr-x  4 root  root     4096 May 26  2018 lzip-1.19
drwxr-xr-x 10 root  root     4096 May 26  2018 mhash-0.9.9.9
drwxr-xr-x  2 root  root     4096 May 28  2018 mnt
-rw-r--r--  1 root  root  1374500 Dec  6  2009 mpfr-2.4.0.tar.gz
drwxr-xr-x 11 root  root     4096 Feb 18  2019 musl-1.1.16
drwxr-xr-x  2 root  root     4096 May 28  2018 musl_crypt
drwxrwxrwx 32  7155    10    4096 May 27  2018 mysql-5.1.73
drwxr-xr-x 18  1001 users    4096 May 27  2018 ncurses-6.1
drwxr-xr-x 18 root  root     4096 May 26  2018 openssl-1.1.0h
drwxr-xr-x  2 root  root     4096 Nov 18  2017 overlay
drwxr-xr-x  9  1169  1169    8192 May 27  2018 pcre-8.42
drwxr-xr-x  8  1169  1169    4096 May 26  2018 pcre2-10.31
drwxr-xr-x 27   544   513    8192 May 26  2018 perl-5.26.2
drwxr-xr-x 19 root  root     4096 May 30  2018 php-7.2.6
drwxrwxr-x  5  1000  1000    4096 May 27  2018 pkg-config-0.29.2
drwxr-xr-x  2 root  root     4096 Nov 18  2017 proc
drwxr-xr-x  2 root  root     4096 Nov 18  2017 rom
drwxr-xr-x  4 root  root     4096 Jun 21  2018 root
drwxr-xr-x  9 root  root     4096 Feb 18  2019 rtorrent
drwxr-xr-x  2 root  root     4096 Jun 21  2018 sbin
drwxr-xr-x 22 root  root     4096 Jun 20  2018 sendmail-8.15.2
drwxr-xr-x  9   556    21    4096 Apr  7  2020 ssldump-0.9b3
-rw-r--r--  1 root  root   137435 Apr  7  2020 ssldump-0.9b3.tar.gz
drwxr-xr-x  2 root  root     4096 Nov 18  2017 sys
drwxr-xr-x  2 29189 29189    4096 May 25  2018 termcap-1.3.1
drwxr-xr-x 12  1107  5100    4096 May 27  2018 tiff-4.0.9
drwxrwxrwt  2 root  root     4096 May 25  2018 tmp
drwxr-xr-x 25 root  root     4096 Jun 21  2018 usr
drwxr-xr-x  6 root  root     4096 May 27  2018 uuid-1.6.2
lrwxrwxrwx  1 root  root        4 May 25  2018 var -> /tmp
drwxr-xr-x  4 root  root     4096 Nov 18  2017 www
drwxr-xr-x  6 root  root     4096 Feb 17  2019 xmlrpc-c
drwxr-xr-x 14 root  root     4096 May 28  2018 zlib-1.2.11
[email protected]:~#
thankyou for in detail guide but
OnePlus8T:/ $ su exec /system/bin/mount -t overlay overlay -o lowerdir=/system
mount: bad /etc/fstab: No such file or directory
OnePlus8T:/ $ mount -t overlay overlay -o lowerdir=/system
mount: bad /etc/fstab: No such file or directory
su mount -t overlay overlay -o lowerdir=/system
su: exec failed for -t Error:permission denied

drwxrwxr-x 16 system system 4096 2022-06-24 06:46 system

i guess i need to do it with.vdi file
 
Last edited:

Pervokur

Senior Member
Feb 15, 2022
200
54
Yes thats it! What need to be manualy tried first before anything is:

Code:
mkdir -p /data/local/tmp/work
mkdir -p /data/local/tmp/upper
mount -t overlay overlay -o lowerdir=/system,upperdir=/data/local/tmp/upper,workdir=/data/local/tmp/work /system

If that work than it will definitelly work on ramdisk level. Overlayfs is an powerfull thing, ideal to beat our android RO. I'm running overlayfs on Openvrt ruter Fritz Box 7360SL and an external 1Tb hard disc, I'm compiled a ton of things that way from 2017. and I have now it like full Linux envinronment with compiled a lot of things directly inside router, Apache, PHP, Mysql, GCC, Python, Torrent.... many more things , see how powerfull overlayfs can convert an router into an true Linux -> https://pastebin.com/5zCQTrSc :) And when I disconnect external hard disc everything is stock and unmodified, no need to mess by reinstalling anything.

List of things compiled on router directly:
Code:
[email protected]:~# ls -l /overlay/ROM/squashfs-root
total 1808
drwxr-xr-x  7 root  root     4096 May  8  2018 MediaInfo
drwxr-xr-x  7 root  root     4096 May  7  2018 MediaInfoLib
drwxr-xr-x  6 root  root     4096 Nov  2  2017 ZenLib
drwxr-xr-x 28  1001  1001    4096 May 26  2018 apr-1.6.3
drwxr-xr-x 21  1001  1001    4096 May 27  2018 apr-util-1.6.1
drwxrwxr-x  9 root  root     4096 May 26  2018 autoconf-2.69
drwxr-xr-x 11  1000   998    4096 May 26  2018 automake-1.16
drwxr-xr-x  2 root  root     4096 Jun 21  2018 bin
drwxr-xr-x 14 root  root     4096 May 28  2018 bison-2.7.91
drwxr-xr-x  2 root  root     4096 May 27  2018 bzip2-1.0.6
drwxrwxr-x 11 root  root     4096 May 25  2018 coreutils-8.29
drwxr-xr-x  2 root  root     4096 May 26  2018 crypt_0_03
drwxr-xr-x 13  1000  1000    4096 May 27  2018 curl-7.60.0
drwxr-xr-x 22 root  root     4096 Jun 20  2018 cyrus-sasl
drwxrwxr-x 14   100 users    4096 Apr 13  2017 db-6.2.32
drwxr-xr-x  2 root  root     4096 Jun 19  2018 dev
drwxr-xr-x 29 root  root     4096 Jun 22  2018 etc
drwxrwxr-x 14  1000  1000    4096 May 26  2018 expat-2.1.0
drwxr-xr-x 11 root  root     4096 May 28  2018 flex-2.6.0
drwxrwxr-x 22  1000  1000    4096 May 27  2018 fontconfig-2.13.0
drwxr-xr-x  8  1000 users    4096 May 27  2018 freetype-2.9.1
drwxr-xr-x  2 root  root     4096 May 26  2018 getconf-master
drwxr-xr-x 10 root  root     4096 May 27  2018 gettext-0.19.8.1
drwxr-xr-x 27 root  root    20480 Jun  1  2018 git-master
drwxr-xr-x 16  1001 root     4096 May 27  2018 gmp-6.1.2
drwxr-xr-x  7 root  root     4096 May 27  2018 gperf-3.1
drwxr-sr-x 12 root     40    4096 May 28  2018 httpd-2.4.33
drwxr-xr-x 13 root  root     4096 May 29  2018 imap-2007f
-rwxr-xr-x  1 root  root       78 Nov 18  2017 init
drwxr-xr-x  4   500 users    8192 May 27  2018 jpeg-9c
drwxr-xr-x 11 root  root     4096 Jun 21  2018 lib
drwxrwxr-x 15 root  root     4096 May 27  2018 libgd-gd-2.2.5
drwxr-xr-x 22 root  root     4096 May 26  2018 libiconv-1.15
drwxr-xr-x  7  1000  1000    4096 May 26  2018 libmbfl-1.2.0
drwxrwxrwx  9   500 adm      4096 May 26  2018 libmcrypt-2.5.8
drwxr-xr-x 13   179  1001    8192 Apr  7  2020 libpcap-1.9.1
drwxr-xr-x 12  1004  5101    4096 May 27  2018 libpng-1.6.34
drwxr-xr-x 13  1000  1000    4096 May 27  2018 libssh2-1.8.0
drwxr-xr-x 10 root  root     4096 Feb 18  2019 libtorrent
drwxrwxr-x  4  1000  1000    4096 May 27  2018 libuuid-1.0.3
drwxrwxr-x 19  1000  1000    8192 May 28  2018 libxml2-2.9.8
drwxr-xr-x 13 root  root     4096 May 31  2018 lynx2-8-8
drwxr-xr-x  4 root  root     4096 May 26  2018 lzip-1.19
drwxr-xr-x 10 root  root     4096 May 26  2018 mhash-0.9.9.9
drwxr-xr-x  2 root  root     4096 May 28  2018 mnt
-rw-r--r--  1 root  root  1374500 Dec  6  2009 mpfr-2.4.0.tar.gz
drwxr-xr-x 11 root  root     4096 Feb 18  2019 musl-1.1.16
drwxr-xr-x  2 root  root     4096 May 28  2018 musl_crypt
drwxrwxrwx 32  7155    10    4096 May 27  2018 mysql-5.1.73
drwxr-xr-x 18  1001 users    4096 May 27  2018 ncurses-6.1
drwxr-xr-x 18 root  root     4096 May 26  2018 openssl-1.1.0h
drwxr-xr-x  2 root  root     4096 Nov 18  2017 overlay
drwxr-xr-x  9  1169  1169    8192 May 27  2018 pcre-8.42
drwxr-xr-x  8  1169  1169    4096 May 26  2018 pcre2-10.31
drwxr-xr-x 27   544   513    8192 May 26  2018 perl-5.26.2
drwxr-xr-x 19 root  root     4096 May 30  2018 php-7.2.6
drwxrwxr-x  5  1000  1000    4096 May 27  2018 pkg-config-0.29.2
drwxr-xr-x  2 root  root     4096 Nov 18  2017 proc
drwxr-xr-x  2 root  root     4096 Nov 18  2017 rom
drwxr-xr-x  4 root  root     4096 Jun 21  2018 root
drwxr-xr-x  9 root  root     4096 Feb 18  2019 rtorrent
drwxr-xr-x  2 root  root     4096 Jun 21  2018 sbin
drwxr-xr-x 22 root  root     4096 Jun 20  2018 sendmail-8.15.2
drwxr-xr-x  9   556    21    4096 Apr  7  2020 ssldump-0.9b3
-rw-r--r--  1 root  root   137435 Apr  7  2020 ssldump-0.9b3.tar.gz
drwxr-xr-x  2 root  root     4096 Nov 18  2017 sys
drwxr-xr-x  2 29189 29189    4096 May 25  2018 termcap-1.3.1
drwxr-xr-x 12  1107  5100    4096 May 27  2018 tiff-4.0.9
drwxrwxrwt  2 root  root     4096 May 25  2018 tmp
drwxr-xr-x 25 root  root     4096 Jun 21  2018 usr
drwxr-xr-x  6 root  root     4096 May 27  2018 uuid-1.6.2
lrwxrwxrwx  1 root  root        4 May 25  2018 var -> /tmp
drwxr-xr-x  4 root  root     4096 Nov 18  2017 www
drwxr-xr-x  6 root  root     4096 Feb 17  2019 xmlrpc-c
drwxr-xr-x 14 root  root     4096 May 28  2018 zlib-1.2.11
[email protected]:~#
kernel of my phone prevents mounting /system, so magisk can't mount modules

but this actually works

rc script:
on load_persist_props_action
exec -- /system/bin/mount -t overlay overlay -o lowerdir=/system,upperdir=/data/system/ou,workdir=/data/system/ow /system

on zygote-start
exec -- /system/bin/mount /sbin/.magisk/zygisk/app_process32 /system/bin/app_process32
exec -- /system/bin/mount /sbin/.magisk/zygisk/app_process64 /system/bin/app_process64

#####

manualy "mounting" all modules

su -c cp -r /sbin/.magisk/modules/*/system/* /system

doing all stuff in couple of commands...that's illegal, right? =)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    Disclaimer:

    Super image tools was made for testing and educational purposes, ME is not responsible for what you do on/with your device using our tools, you must agree that you using our tools on your own risk, I am not responsible for anything else!


    How to use superunpack:

    - First step, unpack super.sin using my tool or use @IgorEisberg unsin tool
    - Step two, Superunpack. On windows just drag and drop unpacked super image onto our exe to start extraction. Also you can use it from command line, from script or from etc. On Linux use it from command line. No need to set slot like it was a case on lpunpack, our tool will auto extract all slot images for you, enjoy!
    - If you need to unpack partition images in RW mode add parameter 1 at the end of command line e.g. "superunpack super.img 1", than resize partition using resize2fs, repair and unshare blocks using e2fsck. Or if you unpack without rw you no need to resize or repair it, just mount it ro.

    How to manualy patch super partition in under Linux:
    https://forum.xda-developers.com/t/...s-rw-in-super-partition.4120963/post-87112415

    Note that, superunpack is a tool for extract all logical partitions from super image or directly from super partition.

    How to use superrepack:

    adb push superrepack.arm64_pie /data/local/tmp
    adb shell
    su
    cd /data/local/tmp
    mv superrepack.arm64_pie superrepack
    chmod 755 superrepack
    stop
    ./superrepack /dev/block/bootdevice/by-name/super system_a
    sync
    reboot

    Note that, superrepack is a tool to convert logical RO partitions iside your phone super partition to RW mode without extracting anything, all things is done on the fly directly inside super partition/image! In this example system_a partiton is converted to the rw mode, if you need other partitions to rw just change system_a argument. Or if you need all partitions to rw mode do it without partition rw argumet e.g: "./superrepack /dev/block/bootdevice/by-name/super". YOU MUST RUN TOOL 4-5 TIMES UNTIL ALL ERRORS DISAPEARS!!! One of the well known errors is: "Couldn't clone file: Could not allocate block in ext2 filesystem". Look at /data/local/tmp/script.log each time and make sure it not contain any error otherwise you are not done things right and partition is not repaired yet!!! More info -> https://forum.xda-developers.com/t/...s-rw-in-super-partition.4120963/post-84966715

    Platform:

    - Superunpack is working on Windows, Linux, Android, Darwin11, just chose right binary.
    - Superrepack is working only under android


    Changelog:

    - version 1 (21.Jun.2020), initial version
    - version 1.1 (22.Jun.2020), dump file format detection, partition size correction in case ext4, partition group detection, have extraction progress bar, improvements
    - version 2 (03.04.2021) implemented possibility to extract partition images to rw mode using Superunpack & I have made new tool called Superrepack
    - version 2 (04.04.2021) implemented arguments so you would do conversion on single partition instead of doing it on all partitions
    - version 3 (04.04.2021) implemented return codes and implemented output logs to be more scripting friendly
    - version 4 - not released
    - version 5 (08.04.2021) implemented resize and repair partitions after switching to rw mode. Implemented build script for building resize2fs, e2fsck, simg2ims, img2simg, lptools
    - version 6 (08.04.2021) better loop device detection and setup
    - version 7 (08.04.2021) fix selinux status detection
    - version 8 (15.04.2021) fix loop device setup in superrepack
    - version 9 (16.04.2021) make losetup android compatible
    - version 10 - not released
    - version 11 (01.05.2021) simplified, removed needs for parameter rw, implemented dm-verity disabler
    - version 12 (05.05.2021) make old logs always deleted before fresh log is created, this prevent concentation with old logs
    - version 13 (06.05.2021) make linux version so you should do the things on your super partition dump in linux machine
    - version 14 (07.05.2021) fix compilation mess between linux and android
    - version 15 (08.05.2021) use libselinux to determine and set selinux to permissive mode instead of popening getenforce-setenforce tools

    Credits:

    - me and me :)


    Source code:

    - source code -> https://github.com/munjeni/super_image_dumper
    19
    I'm not one of those who make paid software and promote on xda, my work is always free. Even I'm always providing source code for free, source code of this tool is here -> https://github.com/munjeni/super_image_dumper , enjoy! ;)
    3
    Version 7 is out! V6 had error detecting slinux status. I do not have device with super partition for test my tool but I have only hope that all is ok. Let me know! :)
    3
    Pixel 4a, working. V13
    3
    how about simg2img