Flashing .apk file on Magisk - Magisk

What happens if we rename an Apk file into Zip file and flash it into Recovery or Magisk?

Probably not much since most zips aren't setup to be flashable like the Magisk app.

Related

CMW help

Is there a site or way to make my own CWM flashable zips for CMW 3.X.X.X.X. I downloaded a zip file I would like to flash but it is for the old CMW and will not flash. Its an .apk file and will not install properly by just running the file in the OS itself.
Do a search for "amend2edify". Should convert it.

[Q] How to install additional .zip package to MobileOdin lite?

Ok er, noob question, but MobileOdin(lite) asks me to download added zip file for the N700. i did this, but how do I get it to install? Because it is present as a .zip file in my SD card and everytime MobOdin starts it asks to download the additional file.
Renaming it to .apk doesn't work as it gives a parsing error if I try to install it & if I extract it four different folders come out. How do I go about it then?
what are them folders ?
META-INF
System
ect ect ? ?
if so its probably a CWM flashable package.
*facepalm* noob action here. Used some other file manager but then used Astro & voila! Apk extracted and installed! Done and done!

how to create a flashable zip for apk

can anyone tell me how to create a flashable zip for apk which has odex file (without deodexing)
i tried several guides in xda. but still no luck........

Magisk recovery zip file

I lost my magisk zip file, and I become crazy to find the last magisk v23 recovery zip!
Please someone give me the link!
I looked to the official thread and I only find the APK...
I think I'm dump...

How to properly compress Magisk module .zip

Hello,
I'm trying to create my own Magisk module based on working modules and referencing the module instructions. Before getting too far, I wanted to make sure that the compression process worked correctly.
So, I downloaded a .zip module from the Magisk app (e.g. Wifi5ghzdisabler), moved .zip to my Ubuntu 20.04 PC using Google Drive, extracted the .zip (using Extract Here in Files context menu), compressed the module folder back to a .zip file (using Compress... in Files context menu) and then moved the new .zip back to the phone using Google Drive. No changes to any files were made. Then, I tried to install it from storage in the Magisk app (v23.0) on a OnePlus Nord N100 running Android 10, but I encountered the following error.
Installation Failed!
- Copying zip to temp directory
! Unzip error
Is this a compression issue or a permissions issue on the phone? I'm probably missing something simple. Thanks in advance.
DanHoliday said:
Hello,
I'm trying to create my own Magisk module based on working modules and referencing the module instructions. Before getting too far, I wanted to make sure that the compression process worked correctly.
So, I downloaded a .zip module from the Magisk app (e.g. Wifi5ghzdisabler), moved .zip to my Ubuntu 20.04 PC using Google Drive, extracted the .zip (using Extract Here in Files context menu), compressed the module folder back to a .zip file (using Compress... in Files context menu) and then moved the new .zip back to the phone using Google Drive. No changes to any files were made. Then, I tried to install it from storage in the Magisk app (v23.0) on a OnePlus Nord N100 running Android 10, but I encountered the following error.
Installation Failed!
- Copying zip to temp directory
! Unzip error
Is this a compression issue or a permissions issue on the phone? I'm probably missing something simple. Thanks in advance.
Click to expand...
Click to collapse
You should upload your zip.
Thanks for the reply.
I've attached the original WiFi5GhzDisabler-v1(1).zip module downloaded from inside the Magisk app.
I've also attached WiFi5GhzDisabler-v1(1)-re-compressed.zip after downloading, extracting and re-compressing the original module it as described in my first post. I didn't make any changes to the files/folders themselves. I did notice they are different sizes (6.1KB original versus 8.6KB re-compressed).
I'm trying to learn more about the correct compression process/tool for these modules. I searched the forum and found a thread with a similar issue. Basically, the OP shared a .zip file that didn't work and another member did something and uploaded a "fixed" version with minimal insight into how it was done.
[HELP] This zip is not a Magisk Module
I would assume there isn't anything wrong with the files in the original module since it was probably reviewed before it was hosted in the Magisk app. It is also strange that the .zip file downloaded from the github repos for various modules don't work for me either, but that may be a separate issue.
Any ideas? The instructions do not include how to compress the module.
Take a close look at the original zip again, and compare it to the one you recompressed. You've put all the files in a directory inside the zip, in comparison to putting them directly in the root of the zip...
There's your problem.
Didgeridoohan said:
You've put all the files in a directory inside the zip, in comparison to putting them directly in the root of the zip...
There's your problem.
Click to expand...
Click to collapse
You're exactly right. I was incorrectly zipping the module folder itself rather than the files inside the folder. As you correctly pointed out, this creates a folder inside the zip that adds an extra layer between the files and the root of the zip.
Wow, what a simple mistake. With your help, the recompressed module installs fine now. I was able to install my own module too!
Thank you so much for your help. My issue has been resolved.

Categories

Resources