yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] pedronarra:
Does anyone now how to boot to recovery directly or thought the bootloader on this tablet?

I installed TWRP and made a nandroid backup.

Then for some reason my tablet got stuck on Asus logo after installing Xposed in Magisk.

I wanted to restore the backup but already tried all combination of buttons but I can't get to the recovery =\
[Miscellaneous Android Development] bkkzak:
If you can boot into the bootloader, just type this there:

fastboot reboot recovery
[Miscellaneous Android Development] pedronarra:
Thanks but that does not work.

EDIT: I have been trying other things, but with no sucess. Try to temporarily boot twrp using "fastboot boot twrp_file_name.img" gives an error.

I also tried to path and flash the 5.5.0 boot image and the respective droidboot, which I have made successfully, but the recovery option also does not work.

Any of you have the recovery option in the droidboot menu?

Thanks in advance
[Miscellaneous Android Development] bkkzak:
Look back at shakalakas original instructions. If you have bootloader unlocked and flashed a newer bootloader version, it treats the device as corrupt and won't boot. Try flashing the one he suggests, then twrp again. Also you can often use adb commands for the first 15 seconds or so of boot while it's bootlooping. Try:

adb reboot recovery

then

---------- Post added at 02:50 AM ---------- Previous post was at 02:41 AM ----------

Just curious, did you use [MENTION=887256]BlackTigerX[/MENTION] 's xposed and got the reboot? Just curious cuz so did I. We both have the Z580C so I'm wondering if it doesn't work for ours? I haven't tried going into twrp, but was planning on going fresh and reflashing kernel, system, etc anyways

---------- Post added at 03:45 AM ---------- Previous post was at 02:50 AM ----------

You seem like a competent user who has had success with bootloader unlock / the newest [Z580CA] rom on your Z580C, so I'm hoping you could help answer a few questions.

I had bootloader unlock success manually typing shakalakas method out in windows. On your Z580C:

-do you pass safety net with xposed disabled?

-when you say don't update xposed which version worked for you?

-when using twrp, does each tap actually press the screen twice, or does it function normally? (one tap on mine presses the button I tap but also the button on the next screen in that same location. Makes selecting files super hard..)

I having these issues and hoping to find answers. Otherwise I'll download the stock firmware and start clean by wiping then flashing the following in fastboot: modem (IFWI or whatever), splash, kernel, recovery, and system. Then flashing twrp recovery.

Thanks, any insight is really appreciated! (I think we're two of three people who unlocked the bootloader on the Z580C successfully)
[Miscellaneous Android Development] undrwater:
I can't seem to pass safetynet at all. I THINK I did once, but it's not so important to me on this tablet, so I didn't try too hard.

Shakalaca's version that was posted some time after his instructions. It didn't work for me anyway, as none of the modules would see the framework. This too was only marginally important to me (some visual things), so I haven't worked too hard to get it going.

Yes. Current TWRP is terrible, and it's not mounting /data. It thinks it's encrypted. I believe if you tap-swipe a button, it'll register it only once and will behave in a more predictable way.

Keep us updated if you do this and find any level of success. My ability to commit time to this is very limited. Maybe for summer. We'll see.

Currently, I'm happy with how the tablet is working, though I wish I had time to work on an image of something like Plasma Mobile.
[Miscellaneous Android Development] TerrorToetje:
Here are my findings for the S8 Z580C/CA sorry for not going into much detail atm.

Installation:

- I managed to unlock the bootloader and flash a patched boot.img using Magisk 16.04, on Android 6

- I also managed to flash "twrp-3.2.1-0-P01M-20180203.img" and it's a bit buggy interface wise but all wipe/erase functions are working.

- Device is getting forced encrypted at boot.

TWRP:

- Flashing TWRP image without flashing a patched boot image prevents the device from booting.

- If you flash twrp using fastboot, don't reboot but select "factory reset" in the droid menu this will make TWRP stay across reboots.

- Device is getting forced encrypted at boot that is why TWRP needs a code to unlock it, within android see settings>security

It seems the device is forcing to encrypt the /data at boot I tried a few tricks to try to force it off but nothing worked so far like no-verity-opt-encrypt scripts.

I also tried to enable a password/pin and even enable "Show at boot" within android with hopes I could use that code to decrypt /data

I also checked the fstab files in original boot.img and encryptable was targeted at encryptable=/factory/userdata_footer but i have no idea wat it does.

Magisk:

- Magisk is is able to pass basic integrity but fails to CTS check, I tried to spoof the fingerprint using module-magiskhide-props-config module sadly magisk fails both test. (Found Fix Z580C Can pass both now)

Misc:

- Latest source kernel is available on asus website (Kernel Source Code (V5.6.0) (Z580CA)
[Miscellaneous Android Development] TerrorToetje:
Removed
[Miscellaneous Android Development] bkkzak:
Try doing a clean flash but flash the patched kernel before you first boot. Then Magisk will have already patched the force encrypt flag and the device won't encrypt on first boot. That's what I did; I flashed the patched kernel (it had Magisk 16.0) when I did the unlock and flashed all the other partitions. Then once booted I updated to Magisk 16.4

Ya the latest source for the Z580CA (build 5.6.0) is up but marshmallow source for the Z580C (build 4.7.1 which is latest lollipop, not 5.5.0 which is latest marshmallow for the Z580C) isn't up
[Miscellaneous Android Development] TerrorToetje:
Good idea I can try that, and you are passing magisk?

So something like:

fastboot format cache

fastboot format userdata

fastboot flash boot 560\patched_boot.img

fastboot flash recovery 560\recovery_sign.img

fastboot flash system 560\system.img.gz

fastboot reboot

I always forced the device to go to recovery once i used fastboot and installed Magisk directly from there.

I just flashed the 580CA Rom on my device, and diden't had any issues so far, the only thing I noticed is that the fingerprint get's changed it's ads a random number like in build.prob i see:

asus/WW_P01M/P01M:6.0.1/MMB29P/WW_P01M-V5.6.0-20170608:user/release-keys

But once booted it is: asus/WW_P01M/P01M_4:6.0.1/MMB29P/WW_P01M-V5.6.0-20170608:user/release-keys

I also noticed that a other user here had: asus/WW_P01M/P01M_3:6.0.1/MMB29P/WW_P01M-V5.6.0-20170608:user/release-keys

Any clue if that's normal?

Update:

Using MagiskHide-Props-Config using "asus/WW_P01M/P01M_3:6.0.1/MMB29P/WW_P01M-V5.6.0-20170608:user/release-keys" passes both checks now
[Miscellaneous Android Development] bkkzak:
I didn't pass, my random number was 2, been meaning to try the module. Last I did was a clean flash cuz the modules wouldn't install in Magisk and when I installed props config in twrp it said module not active in terminal emulator.

Beware, the second posted xposed seems to put everyone in a bootloop. I tried it from twrp, cuz had already decided to clean flash, and it gave me a bootloop.

Also, we can't access twrp recovery in a bootloop. Hardware buttons don't work for it (if you have twrp flashed), but I think they do for stock recovery. And fastboot boot recovery doesn't work from bootloader + no Gui option to access recovery from there. Maybe best bet is to not flash twrp, just boot it. Lmk how it goes for you. Thanks for testing out props config; did you flash it in Magisk? And are you on 16.4 now or still 16.0?
[Miscellaneous Android Development] TerrorToetje:
16.0 for now, but should work with 16.4 aswell. I always finstall modules trough the manager so not TWRP!

I don't use xposed and I also don't need it but yes it will give you a bootloop, I was not able to disable encryption sadly so please check Settings>Security again for me.

Only if we had a nice working TWRP we could make some aswesome debloated roms, well we can still but we need to flash them using fastboot.
[Miscellaneous Android Development] bkkzak:
Do you have a lockscreen password? You could just remove it, temporarily. I don't so maybe that's why I can access twrp, but ya it has a double input - from single tap bug so it's a pain to use..

I'll check when I get home no worries
[Miscellaneous Android Development] TerrorToetje:
No lockscreen, no pin no password, you can only access twrp recovery trough ADB Shell :) "adb reboot recovery"

Stock recovery is teared down and is having no interface etc.

On a encrypted device the fastboot option "factory reset" might also work to get into TWRP recovery but carefull if it is not encrypted it will wipe all :)
[Miscellaneous Android Development] bkkzak:
I've definitely used fastboot reboot recovery on my old 6p and now pixel xl, Asus just doesn't support it, or it's because of this port of twrp.

And funny enough with the factory reset option (which btw, that Droid boot menu isn't stock recovery, it's the bootloader. Equivalent to Samsung's download mode etc), I hit it cuz I was bootlooping and was gonna reflash anyways, but it brought me into twrp to do the factory reset then forced a reboot. Twrp errored, can't remember why, so it didn't actually factory reset. I believe it's a fairly universal recovery script that it executes. But ya I couldn't get into twrp.

Look back at the last several pages in this thread, it's pretty insightful. Someone was having trouble and I thought it user error so I figured I'd force a bootloop before I reflashed then try all the possible options.

Except for, potentially, what I mentioned in my last post, it's impossible to get into the flashed twrp during a bootloop.

Idk why you're still encrypted, maybe try wiping system along with data? Just type out the commands that Shakalaka wrote for l0ner a few pages back. All of them, and don't deviate. It's worked for me the two times that I've tried it dude
[Miscellaneous Android Development] TerrorToetje:
Are you able to make a screenshot of settings > security

just to be 100% sure, whatever I do I can not disable the encryption!

Best Regards,
[Miscellaneous Android Development] TerrorToetje:
Did you maybe wiped /factory ?

I'm making some progress here, I have a 20core/40 threats Linux machine where i'm now able to unpack boot/recovery images and even signing them is not a problem. the TWRP recovery posted here seems almost right encryption is in stock recovery is mounted to /factory/userdata_footer but there are no fstab's mounting /factory it in the TWRP version. I must say take most of what i'm saying as salt as i'm kinda new to this. I already builded my own boot.img and edited the fstab files to test stuff etc. and they did boot. :)

Update:

Included a 5.6.0 boot image (Z580C) that is having ADB enabled at boot, at first boot you get prompted to accept rsa, after that all reboots wil give you ADB early aslong you don't reflash /system handy for debloating testing, if you get into a boot loop you can issue the command adb reboot recovery fast :)

So if you are going to mess around try to make a full backup in twrp or alteast /system :)

[B]fastboot flash boot ADB_boot.img[/B]
[Miscellaneous Android Development] TerrorToetje:
Hey Guys,

I managed to disable forced encryption finally this also removes the ugly TWRP messages, the boot images are ready to be uploaded.:good:

I also Debloated the device while surviving factory resets in order to do so I removed most asus crap, and switched to pico Gapps:laugh:

and I got the verified fingerprint added to MagiskHide Props Config, so you just need to install the module and install it from the online repo.

https://preview.ibb.co/dPs05J/Screenshot_20180619_143756_1.jpg[IMG]

[IMG]https://preview.ibb.co/fxNuzd/Screenshot_20180619_123237.jpg[IMG]

[IMG]https://preview.ibb.co/kxW9Xy/Screenshot_20180619_123242.jpg

I'm uploading this system soon :fingers-crossed:

System apps kept:

AppManager
AsusConfigUpdater
AsusDeskClock
AsusInputDevices
AsusSensorService
AsusSmartCrop
AsusSplendidCommandAgent
AudioWizard
AudioWizardView
AwareResource
Bluetooth
BluetoothMidiService
BoostDozeMode
CWSClientService
CertInstaller
DLNAService
DMClient
DocumentsUI
DownloadProviderUi
FlipfontFelbridge
FlipfontMFinanceTW
FlipfontMYingHei
FlipfontMYuppyTW
FlipfontSyndor
FocusAppListener
GoogleCalendarSyncAdapter
GoogleContactsSyncAdapter
GoogleTTS
HTMLViewer
HardwareStub
HdmiSettings
HoloSpiralWallpaper
ICEsoundService
InstantPage
IntelligentDisplay
KeyChain
Keyboard
LatinIME
LiveWallpapers
LiveWallpapersPicker
Lockscreen
NoiseField
PAIStub
PacProcessor
PrintSpooler
SMMI_TEST_V5.1.59_CSC_L1L2
SUWTermsAndConditionsWebViewer
SensorCal
TaskManager
UpdateLauncher
UserDictionaryProvider
VppSettings
WAPPushManager
WebViewGoogle
WidiInputService
XT9IME

priv-app

AsusCamera
AsusContacts
AsusContactsProvider
AsusGallery
AsusGalleryBurst
AsusLauncher
AsusMediaProvider
AsusPackageInstaller
AsusSettings
AsusSoundRecorder
AsusSplendid
AsusSystemDiagnostic
AsusSystemUI
AsusVisualMaster
BackupRestoreConfirmation
CalendarProvider
ConfigUpdater
DefaultContainerService
DownloadProvider
ExternalStorageProvider
FileManager
FusedLocation
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePackageInstaller
GooglePartnerSetup
GoogleServicesFramework
InputDevices
ManagedProvisioning
MmsService
Phonesky
PowerSaving2
PrebuiltGmsCore
ProxyHandler
SettingsProvider
SetupWizard
SharedStorageBackup
Shell
StatementService
SystemMonitor
TeleService
Telecom
TelephonyProvider
VpnDialogs
WallpaperCropper
itux

Update 21-6:

Images are ready to be downloaded here:

https://drive.google.com/drive/folders/19Y0Uv4O_t1gO30oUeA-tA6GxMq5pQLDs?usp=sharing

If you have any questions let me know :)
[Miscellaneous Android Development] shingy:
First of all, a big thanks to [MENTION=1813976]shakalaca[/MENTION] and [MENTION=5888366]pedronarra[/MENTION] - I used your files/guides to root and upgrade my device to Android 6.0.1 (5.6.0). Unfortunately, it didn't solve the issues I was trying to fix, namely the random freezing and random inability to rotate the screen. I figured a clean install and root (where I could debloat) would do the trick, but no such luck.

Thinking back, it seems like those issues started when I upgraded to Marshmellow. So, I'm thinking they might go away if I downgraded back to the last version of Lollipop. Is that possible at this point given my current install? If so, how would I go about doing it?

Any help would be much appreciated. Thanks.
[Miscellaneous Android Development] kryz2000:
i think about to downgrade my system too. i dont have your problems but my zenpad s8 lags like hell. i guess because the system uses 3/4 of the ram. i love the device, the 4:3 format, the display, but it gets slightly unuseable.

i found somebody who downgraded on the web, but i didnt try this by myself, yet:

w w w. asus.com/zentalk/thread-157634-1-1.html

i also found the old firmwares:

last android 5:

dlcdnet.asus.com/pub/ASUS/EeePAD/Zenpad/Z580CA/UL-P01M-WW-5.5.1.0-user.zip

first android 6:

dlcdnet.asus.com/pub/ASUS/EeePAD/Zenpad/Z580CA/UL-P01M-WW-5.5.7.0-user.zip

last and latest android 6:

dlcdnet.asus.com/pub/ASUS/EeePAD/Zenpad/Z580CA/UL-P01M-WW-5.6.0.0-user.zip

good luck and tell us about your progress.
[Miscellaneous Android Development] shingy:
Thanks for your reply and for the links to the other thread and the old firmware. One question: I have the Z580C, not CA - do you know if these firmwares work for the C as well?
[Miscellaneous Android Development] kryz2000:
sorry, but i dont know. on the official ausus website there is a special site for the Z580C. click on "See All Downloads" to download the old firmware versions.

w w w .asus.com/us/Tablets/ASUS_ZenPad_S_80_Z580C/HelpDesk_BIOS/
[Miscellaneous Android Development] joelphilippage:
Thanks for the guide. It went great. There were a couple things about the instructions that didn't work for me though. I had to remove the backup from the medfield folder and then mount the system in TWRP. Other than that it is working great. The original root method gave me a lot of problems installing Magisk modules.

I had one question. Is it safe to install Xposed with your setup or does this still cause bootloops?

Thanks!
[Miscellaneous Android Development] shingy:
Thanks again - much appreciated
[Miscellaneous Android Development] TerrorToetje:
Browse a few pages back someone uploaded a working xposed I believe or atleast wrote what to do:)
[Miscellaneous Android Development] joelphilippage:
Thanks! I was looking back, but many people reported they were getting bootloops after the link was posted so I assumed it wasn't working. I had no trouble installing it through TWRP, but I had to use the Material Xposed Installer

I haven't had any bootloops now and successfully changed the navbar and statusbar icons. Installing through the Magisk app did result in a bootloop for me.

Here is the original quote for anyone interested:
[Miscellaneous Android Development] abrownbag:
[MENTION=6205005]TerrorToetje[/MENTION], thank you SO much for figuring this out and posting it for us!! Been looking for a solution like this for a WHILE. :good:

also, Just wanted to give a heads up to folks that the most recent version of Magisk Manager (v5.8) seems to just hang on opening it, so I had to uninstall it and redownload v5.7.
[Miscellaneous Android Development] TerrorToetje:
I asked Asus to update there kernel source Z580CA , while it is the latest version some external_drivers where missing.
[Miscellaneous Android Development] abrownbag:
So, now that we have an unlocked bootloader, does this mean that XDA could create a subforum for this device? I feel like that would incentivize those that know how to look into creating a custom rom for this tablet, which if you ask me it desperately needs.

Along those same lines, does anybody know if it's possible for someone without dev knowledge to maybe convert a custom rom from a similar device! Apologies if I should be asking these questions somewhere else.
[Miscellaneous Android Development] shingy:
Hey guys - thanks for all the great info and knowledge. Unfortunately, I find myself dealing with a boot loop and I can't figure out how to fix it. Here are all the details:

I was having stability issues, so I recently downgraded from Marshmellow to Lollipop (fw version 4.7.1) and rooted. Everything was working great, then I installed Xposed and a few modules, still fine. Then, I installed one last module and when I rebooted, it froze at the second boot screen. So, using tethered recovery, I went into CWM and wiped cache and dalvik cache and rebooted. It booted and went through the "upgrading your apps" process, but then got stuck after that but before the launcher loads - don't recall the exact message on the screen. Next, I attempted to disable Xposed, but none of the methods I tried (creating the "disabled" file using ADB shell and flashing the disabler zip) worked. So, I decided to restore the most recent nadroid backup I had before I installed Xposed. Using CWM again, I restored the backup and rebooted, this time getting a boot loop. To try and fix that, I went back to CWM and wiped cache/dalvik again - didn't work. Next, I tried the "wipe data/factory reset" option - no luck. Then I tried to flash the stock 4.7.1 rom, but that froze early in the process. Lastly, I booted into the main recovery and did a factory reset. I saw the Android guy for about 15 minutes and then it rebooted and went back into the boot loop.

I don't know what else to try. Any help would be greatly appreciated!

Thanks!
[Miscellaneous Android Development] shingy:
Anyone have any suggestions? I'm really in a bind and could use any help I can get! Thanks in advance.
[Miscellaneous Android Development] joelphilippage:
Just follow these instructions. I got bricked several times trying things out but running this script always gets me back to square one. I never had to type out commands manually. There's also no need to run lollipop at this point unless you prefer it.
[Miscellaneous Android Development] shingy:
I actually ended up just following the directions in the thread that was linked to in step 1 that you quoted. It specifically deals with debricking and it did the trick. Thanks for your help!
[Miscellaneous Android Development] portezbie:
Haven't used my zenpad in a few weeks and suddenly the wifi is no longer working. Not currently rooted, running stock. I tried a factory reset but to no avail. I'm wondering if maybe rooting and flashing a rom might fix it?

Anyone experieneced anything like this?

Thanks
[Miscellaneous Android Development] Matt_Steele:
I've attempted to do the noob quide to rooting, but I'm stuck on "No USB cable connected" screen. Any ideas how to fix it and continue?
[Miscellaneous Android Development] Krikkrik:
How to mount the system?

Would you mind tell me how to mount the system? Also have problem with backup
[Miscellaneous Android Development] nyco99:
I just unlocked my bootloader (version 5.6.0) (Thx for tuto and files), but now I'm stuck on the step 4, I don't undersand what I'm supposed to do.

Can I use directly the file patched_boot.img present in the shakalaca's package in 5.6.0?

And I don't understand what I have to do in the step 6...

Plz help me and sorry I didn't try to root a phone for a long time...
[Miscellaneous Android Development] sgreene59:
Worked! What about recovery?

Thanks for this! I had given up on my Z580C. This should really be a new thread.

Is a recovery (TWRP or CWM) available for Z580C/P01M?
[Miscellaneous Android Development] Fishwithadeagle:
Can someone here confirm that multiview works on a modified build.prop for the tablet? That's all I really care about from rooting, and it seems like it should work, but I would prefer to not risk the whole rooting procedure and lose my data if it isn't going to work.
[Miscellaneous Android Development] cgo372:
Now it has been a year the tablet is rooted but still nobody has thought to port a new rom. It's a shame, because it is a good tablet but even rooted, Marshmallow sucks and the tablet has a lot of lags. Furthermore, I have been seeing to buy a new tablet, but I realize that the specs of the new ones, are not that different than the specs of this one. So, I'm asking to those great creators of Lineage OS, who ported the Z380 could you please port the Z580CA? thank you in advance
[Miscellaneous Android Development] tw3ek:
Struggeling with rooting my Z580CA here, hoping this thread is still being followed.

Whenever I run the root.bat through cmd I does not go further than "flashing partial 4.7.1 firmware". Been waiting for 30 minutes, nothing happened.

Image Version: 5.6.0.0

Product: P01M

At the bottom it says "FASTBOOT CMD WAITING".

Also tried to start the process manually using cmd and navigating to the root.bat file, same result. Same with opening the adb.exe or fastboot.exe and typing in "fastboot getvar sofia_support >nul 2>&1".

Help would be appreciated.
[Miscellaneous Android Development] itzmehotsauce:
Yeah i can see how that can get annoying really i needed something qith lte in it when it all boiled down to i ao i went with the s2 um what i cans ay so far about it is i play clash of clans on it and when i zoom all the way out it looks like crap and im guessing thats from it being a 4.3 displayinstead of 16:9 so with samsung trying to fight the ipad head on they might have hurt the product a bit and the s2 wasnt really a big upgrade from tab 2 but i couldnt find a tab s on tmobile so i just went with the s2 im going to keep messing with it and ill let u know if its just certain apps or is this going to be a problem across the board when it comes to the aspect ratio part of it
[Miscellaneous Android Development] Amd4life:
What version of xposed did you install? I tried v74 sdk21 x86 and it made the device crawl to a snail pace.

What screen blue adjustements did you make ? Thanks