Install Magisk on a device that doesn't have a file picker? - Magisk

Hello, I'm trying to root a Android TV, following this post as a guide, however whenever I get to Magisk and try and patch the image, it fails with a "no application can handle this operation" error whenever I try and open the image file, I assume this is due to the lack of Files app on the device. I tried installing the files app from an apk, however that immediately crashes on the device.

Did you try other file managers like fx file explorer? Also you need not patch boot.img or recovery.img on the device you want to root. You can just transfer it to your phone, patch it and copy it back.

Related

Failing to update rooted 2.3.4 to 2.3.6 Nexus One - I wanna cry!!

Back a year ago I rooted my nexus one phone, but the thing is I uninstalled a few stock apps. I had no idea that my updates would be a pain.
What I found out is that each new google update does a ton of asserts on files that it expects to be there. I had a problem with google books when I tried to update from 2.3.3 to 2.3.4, but someone on this forum hack a cracked version that allowed me to do so.
Now the annoying problem is back again, and this time, it's saying something about assert_failed: apply patch check ("system/app/EmailGoogle.apk...
I tried to find an EmailGoogle.apk out there, and I was able to find it, but if I was to use it, it wouldn't connect at all, then it would crash. I also placed it in system/app folder, and still same problem.
Is there a way for me to hack the update.zip so I can tell it to ignore these assertions?
AHH! I figured it out!
After much searching for updating scripts, I found out that there is indeed a file that tells your phone how to perform a patch update.
This involved me rebooting the phone 7 times (with about 5 times prior with previous experimentation)
Okay what I had were the following items
-Dropbox
-Root Explorer
-Laptop
Initially I got the error after running anon ra recovery, but I lost it when I accidently updated 2.3.4 again (I stupidly named my files as update.zip, update1.zip, update2.zip). Actually, I lost root (the phone still had the unlocked thing on it, but it was fooled). So I used this website (to root my phone again):
http://chensun.net/android-development/root-nexus-one-with-android-2-3-3-gingerbread/8/
So to get the specific error
1.you shut down your phone
2. reboot by pressing power button and down volume and hold it
3. Select recovery by navigating using the down volume, and select it by pressing power button.
4. After it reboots again, scroll down using your trackball and select Flash zip from sdcard
5. make sure you toggle signature verification to disable
6. select your update.zip
thats how you get your error
to fix:
1. So I took the signed zip file, and uploaded it to my dropbox
2. I opened the file using winrar (DO NOT UNZIP THIS FILE TO EDIT) the reason you do not want to unzip is because if you zip it up again you lose the signature, and your phone won't find the script
3. I used winrar to navigate to the following:
META-INF-->com-->google-->android
4. Open update-script using notepad
5. crtl-f on each package-name searching through the file:
emailgoogle.apk
GenieWidget.apk
Mms.apk
Talk.apk
Twitter.apk
VoiceDialer.apk
(ugh.. I forgot I uninstalled all those)
they existed twice. Once to assert to make sure the file exists, and the second to apply the patch
You have to remove both, you can keep the progress bar command there, that's just to update the progress of your update on your screen
example
;assert(apply_patch_check("/system/app/Twitter.apk", "48dcef1792760138acb1c10e2a2341dfbee69258", "e3e34aa0a72d0eaf76d80a06828bd14ea8450d34"))
apply_patch("/system/app/Twitter.apk", "-",
48dcef1792760138acb1c10e2a2341dfbee69258, 1596937,
e3e34aa0a72d0eaf76d80a06828bd14ea8450d34, package_extract_file("patch/system/app/Twitter.apk.p"));
so after repeating this over and over, it finally updated
anyways, going to sleep
Unzip the file on your phone with eStrongs file manager.
Edit the update script (eStrongs again).
Rezip (eStrongs again).
Sign with ZipSigner, or toggle signature verification in recovery.
Flash.
Note, if you use the "flash zip from SD" option, you don't need to name the file "update.zip"
thanks danger-rat, seen your posts many times before, I saved lots of your comments in my evernote
I already knew about renaming update.zip, I just got into a dumb naming habit, the last 5 tries I just kept the name as it was
my root explorer (file manager) by speed software does what eStrongs does, I can edit, zip, tar, unmount folders, set permissions etc, maybe you should check it out
but i've learned two new things about your post
never heard of zipsigner, and eStrongs
thanks for showing the quicker way of doing this, the dropbox thing was a bit of a hassle, but I love editting this on my computer rather than my phone using the trackball touchpad combo :-|
I'm wondering why a solution wasn't even there when I was looking for answers around the web? I searched for hours too. I'm also glad I didn't brick my phone!
Yeah, I use Root Explorer a lot. I prefer the interface on eStrongs and love the LAN capabilities and Dropbox interface, but Root Explorer is much better when you need root permission.

update_data_full_hw_la.zip how to install?

Hi Everyone!
I followed the instructions to upgrade to Nougat from MM, this includes a file named update_data_full_hw_la.zip
http://ministryofsolutions.com/2017/01/huawei-p9-plus-vie-l29-nougat-b354-latin-america.html
The step that I cant seem to install this file, I tried:
Renaming file to update.zip and try to apply it through forced update (DIDNT WORK)
Extract all the content into dload folder (DIDNT WORK)
The content has an UPDATE.APP file and multiple folders. The forced update goes really fast and does not seem to install anything.
The ROM itself does not have many apps so I guess this zip should have everything else that is missing from the ROM but I cant seem to install it properly.
Any help on this? How am I supposed to install it?
jeinnerabdel said:
Hi Everyone!
I followed the instructions to upgrade to Nougat from MM, this includes a file named update_data_full_hw_la.zip
http://ministryofsolutions.com/2017/01/huawei-p9-plus-vie-l29-nougat-b354-latin-america.html
The step that I cant seem to install this file, I tried:
Renaming file to update.zip and try to apply it through forced update (DIDNT WORK)
Extract all the content into dload folder (DIDNT WORK)
The content has an UPDATE.APP file and multiple folders. The forced update goes really fast and does not seem to install anything.
The ROM itself does not have many apps so I guess this zip should have everything else that is missing from the ROM but I cant seem to install it properly.
Any help on this? How am I supposed to install it?
Click to expand...
Click to collapse
try the alternative method:
Alternative Method
Remove update files from your phone, if you have copied before
Download Huawei updater from This Link
Download latest Hisuite from official huawei website
Open huawei update, tick in custom rom, in custom rom version type VIE-L29C605B354
In Custom rom URL copy this link http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1257/g104/v71996/f1/
Then tick custome port, don’t change it.
now connect your phone with pc and make sure Hisuite recognize and connected properly. then just open Hisuite menu and change network settings as shown in image below.
Easy-Nougat-Update-2.png
Then in hisuite click check for update
it should start downloading and installing firmware
Thanks, but that method won't work as the ROM itself was already applied, therefore, HiSuite returns a message saying that I'm on the most updated version.
The file m trying to apply should contain apps like the calculator, Bluetooth, compass, etc. These apps are not part of the ROM but they come on a separate zip file.
The issue seems to be that apps are not compatible with the Nougat ROM already installed.
Any other thoughts?
If any of you has an update zip containing all remaining apps, please share!
The problem u are facing could be 2. Cust and oeminfo but fitting the package and /of rom. And the two packages need to be installed immediately with starting with the hw update, after that the normal one. Tell me which version and cust we are talking about?

(FIXED CAN BE CLOSED) Need stock file manager

so I deleted a lot of things I didn't need, one of those being the stock file manager with the blue icon named "files" and now I can't enable apps to write to the SD card because apparently it needs that app to grant SD card usage and I can't find it anywhere, does anyone can share it please?
thanks in advance
EDIT:
managed to get it by merging the sparsechunks to create a .img file and then extracting it, if you ever need it here is the guide:
https://forum.xda-developers.com/showthread.php?t=2663029
There is a file explorer made by Motorola or try Google files go that your phone should of got if you have Android Go Edition or check APK. File on internet explorer

Manually enter boot.img location?

Due to Lenovo A536 amazing "Complete action using…" I can't select boot.img file as it only offers music and gallery app to choose file. It runs KK 4.4.2 build A536_S175_150105_ROW with latest Magisk installed.
I've tried some tricks like renaming file to music/picture type but ended unsuccessful. Searchin gave me nothing remotely similar to my problem.
So… is there some way i can manually enter img location in Magisk or to force system for another file chooser?

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