[Magisk] cmanuellah:
need help with smali patcher for samsung j510fn

Good afternoon, I need help to create a smali patcher module for my Samsung SM-J510FN.

I have Android Stock Rom 7.1.1 with patch security from November 1 2018, TWRP recovery 3.1 and root with Magisk V18.1

I used versions 4.0, 4.1, 4.2 to generate the module magisk, according to the instructions of the first method, but after installing and restarting the mobile phone it is in bootloop.

My PC meets the requirements requested in the post (8GB of RAM, latest .NET Framework such as Java)

Every time I reset the bootloop phone I created a new smali patcher module, I deleted the bin folder and the previously created module so there were no errors.

I tried modules only with Mock Locations selected and with Mock Locations and Signature Spoofing.

I also tried this after a bootloop: "Reboot to recovery (preferably TWRP), Enter Advanced menu -> File manager -> navigate to /system/framework/services.jar -> click services.jar -> BlueButton at bottom right corner -> CHMOD 755 -> reboot. " but without effect

I can not use the second method because I can not deodex services.jar, it stops at that file for hours, like 9 hours ...

Attach some smalipatcher.exe and module installation by the magisk manager logs .

Am I doing something wrong? If you can help me, thank you in advance.

__Smalipatcher logs__

(with both options mentioned above selected)

fOmey @ XDA

Patcher Version: 0.0.4.2

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 1.8.0_201

system/build.prop: 1 file pulled. 0.5 MB/s (8187 bytes in 0.016s)

pull: building file list...

/system/framework/: 258 files pulled. 14.0 MB/s (249981572 bytes in 17.052s)

==> Dumped framework

==> Detected API: 25

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.4

I: Copying tmp classes.dex file...

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_7.0-9.0

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_core

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

(with Mock Locations selected)

fOmey @ XDA

Patcher Version: 0.0.4.2

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 1.8.0_201

system/build.prop: 1 file pulled. 0.5 MB/s (8187 bytes in 0.016s)

pull: building file list...

/system/framework/: 258 files pulled. 15.2 MB/s (249981572 bytes in 15.709s)

==> Dumped framework

==> Detected API: 25

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.4

I: Copying tmp classes.dex file...

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

__Installing with Magisk manager log__

- Copying zip to temp directory

- Installing SmaliPatcherModule-0.0.4.2-fOmey@XDA.zip

- Mounting /system, /vendor

Archive: /data/user/0/com.TS9nfn.fG5.JG6gO/cache/install.zip

inflating: config.sh

inflating: module.prop

******************************

Smali Patcher

fOmey @ XDA

******************************

Powered by Magisk (@topjohnwu)

******************************

- Creating /data/adb/magisk_merge.img with size 64M

Creating filesystem with parameters:

Size: 67108864

Block size: 4096

Blocks per group: 32768

Inodes per group: 4096

Inode size: 256

Journal blocks: 1024

Label:

FLEX_BG size: 0

Blocks: 16384

Block groups: 1

Reserved block group size: 0

Created filesystem with 11/4096 inodes and 1286/16384 blocks

Create /data/adb/magisk_merge.img with size 64M

e2fsck 1.42.9 (28-Dec-2013)

- Extracting module files

Archive: /data/user/0/com.TS9nfn.fG5.JG6gO/cache/install.zip

creating: system/

creating: system/framework/

inflating: system/framework/services.jar

inflating: system/framework/services.odex

creating: system/framework/arm/

inflating: system/framework/arm/services.odex

creating: system/framework/arm64/

inflating: system/framework/arm64/services.odex

creating: system/framework/oat/

creating: system/framework/oat/arm/

inflating: system/framework/oat/arm/services.odex

creating: system/framework/oat/arm64/

inflating: system/framework/oat/arm64/services.odex

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.jar/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.jar/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.jar/.replace: Not a directory

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.odex/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.odex/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/services.odex/.replace: Not a directory

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm/services.odex/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm/services.odex/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm/services.odex/.replace: Not a directory

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm64/services.odex/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm64/services.odex/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/oat/arm64/services.odex/.replace: Not a directory

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm/services.odex/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm/services.odex/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm/services.odex/.replace: Not a directory

touch: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm64/services.odex/.replace: Not a directory

update-binary: line 383: can't create /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm64/services.odex/.replace: nonexistent directory

chmod: /dev/tmp/magisk_img/fomey.smalipatcher/system/framework/arm64/services.odex/.replace: Not a directory

- Setting permissions

- Done