yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Augustoandro:
Hey guys, I want to port a TWRP for my device.

My device is Micromax Canvas Juice 3+ a.k.a. Micromax Q394. It has MT6582 chipset, i.e. it is a MTK device.

I have prepared my device tree and vendor tree.

I synced the source of minimal manifest TWRP using the following commands.

repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-8.1
repo sync -j4

It synced successfully. After that I put my device tree and vendor tree at the appropriate locations and entered the following commands which you can see below but I got some errors.

(venv) [augustoandro@Augustoandro twrp]$ . build/envsetup.sh
including device/Micromax/Q394/vendorsetup.sh
including vendor/omni/vendorsetup.sh
including sdk/bash_completion/adb.bash
(venv) [augustoandro@Augustoandro twrp]$ lunch Q394
device/Micromax/Q394/Q394.mk:113: *** multiple target patterns. Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "vendor/omni/build/tools/roomservice.py", line 355, in <module>
fetch_device(device)
File "vendor/omni/build/tools/roomservice.py", line 323, in fetch_device
git_data = search_gerrit_for_device(device)
File "vendor/omni/build/tools/roomservice.py", line 81, in search_gerrit_for_device
device_data = check_repo_exists(git_data, device)
File "vendor/omni/build/tools/roomservice.py", line 58, in check_repo_exists
"exiting roomservice".format(device=device))
Exception: Q394 not found,exiting roomservice
device/Micromax/Q394/Q394.mk:113: *** multiple target patterns. Stop.

** Don't have a product spec for: 'Q394'
** Do you have the right repo manifest?

(venv) [augustoandro@Augustoandro twrp]$

What am I doing wrong? Please help
[Android Q&A, Help & Troubleshooting] mattgyver:
Thread closed per OP request.
[Xiaomi Mi A1 Questions & Answers] sipollo:
First of all I would like to thank all the great devs that keep supporting this phone.

But I miss a really bugless ROM. ROMs with 3.18 kernel were almost perfect, but they aren't developed anymore. 4.9 kernel is great too, but it has some annoying (for me at least) limitations. Miui camera doesn't work properly and it's a pity because it's the only app (as far as I know) that can use both sensors at the same time. Nhappyman's camera module isn't working (no smooth videos and no long exposure).

Mtp and vibration aren't working in TWRP custom recovery.

Is there any developer that can build an updated ROM based on 3.18 kernel? I bought a Mi A1 for dual-camera setup and I would like to use his full potential with MIUI camera AND GCam. At the moment it's possible only on 3.18 kernel so I'm wondering if there is any "brave" Dev who wants to go that way. I think that many other users like me are waiting for that. Am I wrong?
[Xiaomi Mi A1 Questions & Answers] InnerSanctum:
You're right, I agree with you. Of course it is quite an achievement for the development of this device, and I actually enjoy the new kernel and it's securities advancements, but it is not stable compared to the officially supported 3.18. For example, I have a Quick charger but can't use it properly because it's not working on kernel 4.9, at least right know.

Not being ungrateful btw, I totally support the continuous development of 4.9, and I hope someday it will be just as stable as 3.18.
[Xiaomi Mi A1 Questions & Answers] thezinq:
You can use LR v10.0.3 it's still based on 3.18 based kernel. Or go for Revenge OS, it's also 3.18 based:)
[Xiaomi Mi A1 Questions & Answers] flex1911:
I'm not going to say anything about TWRP installer that was never supported officially by TeamWin or quick chargers that aren't even supported by our device, but I have a few things that I want to say specifically about MIUI Camera (and the reason why I'm always acting cocky when someone talks about it).

Supporting it was and always will be too much of a hassle for developers. It's not because "damn devs don't care about meme camera", but rather because whatever Xiaomi does for their camera features is very far from perfect, tends to break very often and also introduces random issues with third-party camera apps.

Recent switch to the open source camera HAL helped us to get a much more stable and reliable base (as well as fixing some very annoying issues we had before) but it also was the final nail in the coffin of MIUI Camera as it relies on undocumented proprietary features that we can't implement in any possible way.

I know that it can be hard for someone to cope with the lack of some well advertised marketing feature essential camera functionality, but we also have to go to concessions to make our support continuous and more future-proof.
[Xiaomi Mi A1 Questions & Answers] InnerSanctum:
Totally understandable, it's not rocket science to know that exclusive "features", which is closed source, is really hard (mostly impossible) to port to custom development. Many devices suffers from this, like the implementation on Moto display on Motorola phones, for example. I'm not a developer myself, but I know a thing or two with my experience as android enthusiast, and for development to work it means you're gonna let some "goodies" go in favor of it.

Thanks for your work btw!
[Xiaomi Mi A1 Questions & Answers] Never_Sm1le:
Revenge use 4.x now, so the only updated rom with 3.18.x is Lineage 15.1
[Xiaomi Mi A1 Questions & Answers] thezinq:
In the next update ROS will be updated with 3.18
[Xiaomi Mi A1 Questions & Answers] Never_Sm1le:
Really? Nice, have been looking for an updated pie rom running 3.18
[Xiaomi Mi A1 Questions & Answers] sipollo:
Now that Flex gave us the possibility to use miui camera on 4.9 kernel there's no need of 3.18 anymore (IMHO). To use MTP on TWRP we can boot it from PC and it will work.
[Xiaomi Mi A1 Questions & Answers] sujiththilakasiri:
Touch screen misbehaves with 4.x kernel

My mi a1 touch screen misbehaves with 4.9 kernel.

So i have to stick with the stock rom even i want to use a custom rom.

Am i the only person facing to this kind of problem?
[Xiaomi Mi A1 Questions & Answers] couto-pedro:
Same problem here guys, anyone know how to fix this? :crying:
[Xiaomi Mi A1 Questions & Answers] simonkerr:
Me too, in fact my screen doesn't work at all with 4.9 kernel. It was a cheap replacement from aliexpress. I was hoping to find some updated ROMs with 3.18 but I will have to just stick to stock. It's a shame.
[ZTE Maven 3  Guides, News, & Discussion] rickastillo:
with this can you uninstall original system's apps such as device help, google apps? install recovery and titanium backup? I need to remove a lot of bloatware/default apps that is taking memory from the device
[ZTE Maven 3  Guides, News, & Discussion] deadman96385:
Nice work! This confirms that the bootloader is unlocked, which means we can then use just the firehose to flash these files. I will work on writing something up for that.
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Would love to see that, thanks for the reply! :good:
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
You can install titanium backup, twrp is not possible at this point, no one has done it yet, you can delete system apps through adb, using

adb shell pm uninstall -k --user 0 packagename

But i haven't figured out yet how to get rw permission on system/apps so i can delete system apk's.

[IMG="sb"]https://fotos.subefotos.com/c2ef185ef16df98bc6c009f6468281f7o.jpg[/IMG]
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
[MENTION=8934337]nvizync[/MENTION] You should thank me for my boot.img mod of -Z835V2.0.0B10 (Magisk 17.1)

my boot.img mod of:

-Z835V1.0.0B13 (Magisk 18.1) Link: https://mega.nz/#F!88IiFapI!6Peah7woOOaIhusfYCAEcw

-Z835V2.0.0B10 (Magisk 18.1) link: https://mega.nz/#F!V4pAVIYQ!19tWE7_xk_aQtyiu050Y7A

-Z835V2.0.0B12 (Magisk 18.1) Link: https://mega.nz/#F!9lBVkQAZ!WqnRvYa4qcw5MgRxhp1hcA

Thanks for your detailed flash root tutorial
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
I totally forgot it, yeah, you deserve most of the credit, I linked the original thread, but I'm planning including all the credits.
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
[MENTION=8934337]nvizync[/MENTION] Look what I got! https://github.com/TwrpBuilderTests/android_device_zte_z835/releases/tag/TWRP-3.2.3-TwrpBuilder-2019-01-18_20-13

Some brave who flashes it?

:D
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Ok my way :cool:
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
not boot twrp :(
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Did you tried it
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
I tried to flash it, but instead, I just got a bootloop, and I can't access the recovery mode anymore, I should flash the original recovery and see if it works.
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Done, i managed to enter in normal mode and use flashify to flash stock recovery.img.
[ZTE Maven 3  Guides, News, & Discussion] penn462:
Hi, I'm stuck at the first step. The ZPST download fails with the message that it can't find the file: sbl1.mbn Any thoughts?
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Are you using the custom boot.img listed in mega's folder?
[ZTE Maven 3  Guides, News, & Discussion] penn462:
Yes. I'm using the folder "Boot Mod Z835V1.0.0B13"
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Thats odd, try this: download another folder B12 or B10, and just paste the B13 boot.img, maybe that could work, one of the devices i rooted was B13.
[ZTE Maven 3  Guides, News, & Discussion] penn462:
Well, I tried what you suggested, and now I get "download failed" and "failed to change mode before downloading firmware" It seems to be stuck in FTM. I guess it's bricked?

---------- Post added at 06:52 PM ---------- Previous post was at 06:48 PM ----------

Update: not bricked. Gonna try again.
[ZTE Maven 3  Guides, News, & Discussion] nvizync:
Fear not, that happened to me also, just keep in ftm and make a stock boot.img flash, provided in the mega folder. Paste the boot stock image inside the b13 folder
[ZTE Maven 3  Guides, News, & Discussion] penn462:
Placed stock boot.img into B13 folder in place of custom boot.img. The process failure point is now back to the missing sbl1.mbn problem. I can get the phone to start, however, so it's not bricked. Whew!
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
I recommend updating your firmware to z835v2.0.0b12 using this guide OP

thanks to [MENTION=4222965]deadman96385[/MENTION] link: https://androidfilehost.com/?fid=1395089523397891431

---------- Post added at 11:09 PM ---------- Previous post was at 11:02 PM ----------

download everything again (solved) https://mega.nz/#F!88IiFapI!6Peah7woOOaIhusfYCAEcw

---------- Post added at 11:14 PM ---------- Previous post was at 11:09 PM ----------

Twrp bootloop :(

you can also flash stock recovery.img with ZPST :D
[ZTE Maven 3  Guides, News, & Discussion] penn462:
The first link you posted (to androidfilehost) is bad.

The second link you posted (to mega) has different files than post #1 in this thread, and no instructions. What am I supposed to do with them?
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
link solved

Use the folder "Boot mod Magisk 18.1" if your firmware is z835v1.0.0B13 (use the tutorial OP)
[ZTE Maven 3  Guides, News, & Discussion] penn462:
Success! Took your advice, re-D/L'd everything. I don't like that the Qualcomm driver installation puts my Windows installation into Test Mode, but decided to leave that alone until everything finished. I just couldn't get past the missing sbl1.mbn problem with the v1 B13 mods, however, so I decided to try upgrading to the v2 B12 firmware. That worked, so then I applied the Magisk 18.1 mods for the v2 B12, which also worked. The only remaining problem is that Titanium Backup doesn't seem to want to uninstall the "bloatware" system apps. It runs, and indicates success, but they're still there. I can keep them from updating through the Play store, but when the apps I want to keep update, I get a "low storage space" warning.
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
updating the system is the best :D

---------------------------------------

the system can not be modified yet since it is read only

use adb from the pc to uninstall the apps

adb shell pm uninstall -k --user 0 packagename

adb shell

pm uninstall -k --user 0 com.att.myWireless

pm uninstall -k --user 0 com.zte.nsdsconnectivitymanager

pm uninstall -k --user 0 cn.wps.moffice_eng

pm uninstall -k --user 0 com.att.mobile.android.vvm

pm uninstall -k --user 0 com.emoji.keyboard.touchpal

pm uninstall -k --user 0 com.google.android.marvin.talkback

pm uninstall -k --user 0 com.lookout

pm uninstall -k --user 0 com.google.android.tts

pm uninstall -k --user 0 com.google.android.googlequicksearchbox

pm uninstall -k --user 0 com.google.android.videos

pm uninstall -k --user 0 com.google.android.music

pm uninstall -k --user 0 com.google.android.apps.docs

pm uninstall -k --user 0 com.google.android.apps.cloudprint

pm uninstall -k --user 0 com.google.android.apps.tachyon

pm uninstall -k --user 0 com.aetherpal.attdh.zte

pm uninstall -k --user 0 com.synchronoss.dcs.att.r2g

pm uninstall -k --user 0 com.amazon.mShop.android.shopping

pm uninstall -k --user 0 com.amazon.mShop.android.install

pm uninstall -k --user 0 com.zte.ambs

pm uninstall -k --user 0 com.drivemode

pm uninstall -k --user 0 com.att.callprotect

pm uninstall -k --user 0 com.matchboxmobile.wisp

pm uninstall -k --user 0 net.aetherpal.device

pm uninstall -k --user 0 com.google.android.webview
[ZTE Maven 3  Guides, News, & Discussion] Namelexx:
Help me!! After downloading the files on my cell phone it turned off and did not turn on again, I connect the charger and does not charge or turn on the screen or the led, I can not enter FTM mode or recovery, the pc does not detect any device when I connect it, please help me what I can do, I need the cell phone I do not have money to buy me another one. :(

sorry for my english use google translator.
[ZTE Maven 3  Guides, News, & Discussion] Alijosekt:
if the pc does not detect it, you must put it in EDL mode manually uncovering the phone and doing test point

[IMG="TestPoint-z835"]https://lh3.googleusercontent.com/DkvfJZtIP1SQLukXZ9cd_Dz14oygnazWx77kzMoxopsJ9c8zfSaTF7gi11UMl6L-A4wElvUlWxiN91WJvuoc3m6b_acXh94OBO9FEzJLMVV24C7mmfgYRoYp0Rjd9PwLZLUO9zOwzAd6FO3rfylE-yZc9hjp1xyfDzOjZO33W91ms_WABern_2t9XrPKtqvRREQLY9buvcdjFDVbjVbu6uJiIVSSDOPCpZqIuppTxx4K54iYAHrBMZCjTiuG5HzBR9Nj29TzenWOJuQM_mOxqrKjuO_oKw0wlBH-fyturv7MUztZtKRF4eQVNi5ZDf96QNF4ubqUOjrs3GajeHB2A2Po3JiQWOSTArTPp1yQymxDG_8XKX7pU2o7qpi4VTyq31QB0dHnqY4lduE42umTcsSa5UtHd9YsJCKe9Qos2SHZXD8lusnpIVD1haWSnxp4d-Xj-2RYT8ve9rCGSL7yH22ltUx7YgywiTjGe_8Nbszw4GtPYF60UUg-iEFvdJaIRs3ak94WZldPqpHVXBfNwbg0AGs0N08l4bBG1ajqsSRIOud-gggqwEUgOJw9SEX6MGFGWponsZagDTmCQdPFKwrJLcY0MqenSirXaujyjOnDDZ0yySO7PWFBEyquYxKWjUTOCN7tkZm-y11etOk0sqMLv8mATS27=w164-h220-no[/IMG]
[ZTE Maven 3  Guides, News, & Discussion] rickastillo:
is there a way with magisk or any other method to unblock the wifi/usb tethering hotspot?
[ZTE Maven 3  Guides, News, & Discussion] rickastillo:
and by the way, we should have a list of which bloatware are safe to erase, ( in the upper post have only a few of the bloatware that we could erase, and we can uninstall some of them for every user.

Now we need twrp and cleaner ROMS
[ZTE Maven 3  Guides, News, & Discussion] jaymillz8215:
I need a step by step from beginning to end guide on how to successfully root my device plz help
[ZTE Maven 3  Guides, News, & Discussion] prakash1988Athanur:
Phone is not detected in ZPST for At&T software

Hi I switched on the phone to FTM mode and tried to connect the phone with laptop once I opened the application- ZPST for At&T software. but phone is not detected. Can you help me on this?
[ZTE Maven 3  Guides, News, & Discussion] hugehead83:
Hi All,

I have the software & drivers installed, ZPST detects my phone on COM3 (Z835V2.0.0B10). When I try to download Boot Mod Z835V2.0.0B10 to the device, it gets to 3%, then the phone turns off after 25-30 seconds. 2 minutes later, the operation fails:

[18:50:33]	Information	Information	Finished getting information. [COM3]
[18:50:50]	Download	Information	Downloading to (COM3) has started.
[18:51:16]	Device Manager	Information	The device at COM3 disconnected
[18:53:41]	Download	Error	Can't download to (COM3) because "Failed to change mode before downloading firmware."
[18:53:41]	Download	Error	Can't download to (COM3) because "Downloading firmware failed."

I cannot get it beyond FTM now :( I held just he power button down for over a minute, but it just loops back into it.

I can ADB into stock recovery though.

What should I try next?

Edit: I got this working. OP's procedure is fine. I believe my problems were due to a driver conflict with some other stuff on my PC. I ran through the procedure on another PC with a fresh installation of Windows 10 and had no problems.
[ZTE Maven 3  Guides, News, & Discussion] Rvrjei:
Did you found any method to get HOTSPOT WORKING?
[ZTE Maven 3  Guides, News, & Discussion] LgPWN'd:
Wow.

Way to go on getting the free method working.

$50 for UAT is steep. Unless you work on cellphones everyday or some thing.

Also I can't believe no one gave the guy who first come up with the idea any props.

https://xdaforums.com/showpost.php?p=77706751&postcount=67

I guess his/her/it's account is suspended... :(

But still [MENTION=8787164]George_Jetson[/MENTION] kudo's to you for finding the way!!!

And by the way ..

Do not touch the init.rc file in your boot.img

I was fooling with mine and got it somehow super bricked.... I ran the boot.img through AIK

Could change default properties etc...

Has no one thought to mount the system.img in linux and delete the factory krap apps?

Then u should be able to flash that back to phone via qfil or UAT in the same manner as the modded/patched boot.img.

And if u know what u are doing u can also edit the fs_manager flags in the .fstab in boots ramdisk and likely disable both encryption and the nosuid/nodev flags. To get more privileges and may even set fstab to say that system can mount rw instead of ro ...

These are ideas ill play with if I manage to revive the one I killed

Just saying....
[ZTE Maven 3  Guides, News, & Discussion] david656:
Z835v2.0.0b14?
[ZTE Maven 3  Guides, News, & Discussion] DAFTARTSS:
when I give it to start download I get this error "[01:10:31] Download Error Can not download to (COM3) because" Can not find the software file C: \ Users \ Kevin \ Music \ Z835V1.0.0B13 \ sbl1.mbn. "

what should I do? that is the software that uses the phone
[ZTE Maven 3  Guides, News, & Discussion] carlosgamer001:
WiFi problem

Hello, good post but, I have a problem :'( when flashing the boot mod v12, the wifi did not turn on, then if it was the boot mod, I put the original boot and I did not work the wifi, before flashing the wifi worked, Could you help me in that?
[ZTE Maven 3  Guides, News, & Discussion] KingDavid63:
cant get the app to pick up the device.. installed all the drivers.. what do i do with the 2 folders full of. dll files... no way to install where do i put em?
[ZTE Maven 3  Guides, News, & Discussion] shaitan240:
Hello, I successfully managed to root my phone thanks to your guide, thank you.

I have a small problem tho, I can't get my /system to be read/write, everytime I try to make it r/w is says

'/dev/block/bootdevice/by-name/system' is read-only

I tried every solution I could find but no luck

Is there a way to fix this? I'm trying to get a user app to be a system app

Thx

---------- Post added at 06:54 AM ---------- Previous post was at 06:47 AM ----------

The way I fixed it was by plugging my phone, and going to USB configuration that pops up in the notifications, I then clicked the option to install drivers. I went to my PC and saw that a file popped up under my local drive and proceeded to install those drivers, I then turned off my phone in to the download option and it was detected by the program

I hope this helps

Make sure you look at the S/W Version so you can pick the right file to flash
[ZTE Maven 3  Guides, News, & Discussion] Eratsu:
Access into secure mode

Hi everyone, i was able to boot into secure mode getting into recovery and then reboot into bootloader and pressing down button. a Watermark appears on screen saying 'Modo Seguro'.

Still unable to use fastboot Commands.

I know this isn't related with this post, but i posted here to make more people able to see it.
[ZTE Maven 3  Guides, News, & Discussion] KingDavid63:
I finally got it to pick up the device but now when I click on download it goes to 5% every time and just stops and stays there.
[ZTE Maven 3  Guides, News, & Discussion] shaitan240:
The tutorial said that it will stay there for some time, time is your friend
[ZTE Maven 3  Guides, News, & Discussion] KingDavid63:
Got it to finish and installed the magik app or whatever and now the wifi is broke...

---------- Post added at 05:33 PM ---------- Previous post was at 05:31 PM ----------

What did u do to fix the wifi?
[ZTE Maven 3  Guides, News, & Discussion] carlosgamer001:
In addition, of the same model, to see how I can copy the firmware (which I have not been able to) to repair the one that has the damaged Wi-Fi, which, to top it off, flashes it, with a more updated rom which does not work on my phone and brickies it.
[ZTE Maven 3  Guides, News, & Discussion] johan8tco:
No work for me

Unfortunately it did not work for me, when trying to flash it says device not found, try installing drivers, I see the com port, but it does not recognize the device.
[ZTE Maven 3  Guides, News, & Discussion] delphino_plaza:
Having the same problem with OP's zip with not being able to find file sbl1.mbn and Alijosekt's alternate link is broken. Thoughts?
[ZTE Maven 3  Guides, News, & Discussion] simba2019lage:
bricked using BB

i flashed the 13BB version not noticing the BB and it bricked it. the original 13 file gave error, so i did 12 and it worked but wifi was not working or even able to be turned on.. so lesson learned (laughs) for those trying make sure the file is exact number as i missed the BB someone uploaded figuring it was an updated version with Magisk 18

---------- Post added at 03:01 AM ---------- Previous post was at 02:52 AM ----------

same on the 13 one so i used 12 wifi ded, and the othr 13 file will brick your device if thats the file the pst software is saying files are missing for configuration download couldnt continue

---------- Post added at 03:34 AM ---------- Previous post was at 03:01 AM ----------

so i took my daughters.. redid it same rev 13 and wifi was out. took the rawprogram0 from 12 and copied it to 13 and reflashed with no error and working wifi *jumps up and down like a little kid" oOf if this is ded i can upload the file.. testing root now looks like it did install magisk XD... now the question can i update it? and any status on roms or recovery because the partion and free space is why they stopped using these
[ZTE Maven 3  Guides, News, & Discussion] simba2019lage:
I have 2 on ver 13, bricked one and got the other working.. I was missing to add the magisk manager from the files after because the new version shows that magisk isnt installed. TYSM! love it.. those of you having the wifi issue I might be able to help cuz i did it and copied a file from 12 to 13 and fixed it
[ZTE Maven 3  Guides, News, & Discussion] simba2019lage:
space issue

how to move an app to system? the whole reason i did this was to test an app and it has to be in the system part and root is needed so i got root but this bloat is eating all the space

I ran this and it said success but luckypatcher says Internal SD / data -779mb (-1704Mb free)

Error: there is not enought space within the system partition to move the application