Reboot to CWM to flash zip - C++ or Other Android Development Languages

How i can reboot my phone via terminal/adb to cwm and flash zip or run some script? Are there any parameters to flash zip automatically after booting to cwm?
Wysłane z mojego LG-P990 przy użyciu Tapatalk 4

bartekDPL said:
How i can reboot my phone via terminal/adb to cwm and flash zip or run some script? Are there any parameters to flash zip automatically after booting to cwm?
Wysłane z mojego LG-P990 przy użyciu Tapatalk 4
Click to expand...
Click to collapse
you must need to connect it computer and install cwm .. there is not any auto cwm recovery as apk format ...

Yes, but i want any script or something which rebooting phone into cwm recovery and automatically starts flashing a update.zip or something else (for e.g. wipe data etc)
Wysłane z mojego LG-P990 przy użyciu Tapatalk 4

Try finding a kernel that has CWM built like the CyanogenMod's default kernel. There is an option in the reboot menu (of CyanogenMod) to go to recovery/download.
Sent from my GT-I9100

Related

[Q] Flash stock rom or CF Auto Root?

I was rooting the S3 until the app(one click root) didn't work for , it changed the kernel with a one with root access, though it i dont have root :/
So it basically F*D the phone firmware tho it works fine.
So to root it again, should i flash stock S3 rom via Odin or CF Auto Root with the wrong kernels currently applied?
Eliminate007 said:
I was rooting the S3 until the app(one click root) didn't work for , it changed the kernel with a one with root access, though it i dont have root :/
So it basically F*D the phone firmware tho it works fine.
So to root it again, should i flash stock S3 rom via Odin or CF Auto Root with the wrong kernels currently applied?
Click to expand...
Click to collapse
Try using odin, with the correct files.
Enviado de meu Nexus 5 usando Tapatalk
I think the best way to root is to flash custom recovery via Odin and then SuperSU package. If you want to keep stock recovery (don't know why) then you need to flash newest stock firmware with corresponding CF Auto.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
SirKunon said:
I think the best way to root is to flash custom recovery via Odin and then SuperSU package. If you want to keep stock recovery (don't know why) then you need to flash newest stock firmware with corresponding CF Auto.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
Click to expand...
Click to collapse
But wont i need root for the Custom Recovery?
Root means super user rights in currently used system. Recovery mode is system independent (not quite but you should think about it as some kind of presystem toolkit.) S3 has different partition for kernel and another for recovery. That's why you can and you should flash custom recovery to be able to backup your efs, system, data etc. and flash whatever you like: roms, kernels, su binaries...
Of course flashing unsigned by Samsung data will trigger flash counter, but this can be fixed by Triangle Away. In my opinion custom recovery is even more important than root itself because if you've got it you can forget about any PC operations. You don't need Odin, drivers, Kies and another tools.
TWRP, SuperSU, Mobile Odin, Titanium Backup - it is all you need. Until custom recovery works you can do almost everything.
But I'm not sure what do you want. Stock firmware with root only? CF Auto Root inject su binaries and shouldn't change stock kernel. That's why it should be enough if you have any arguments to use outdated stock firmware.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
SirKunon said:
I think the best way to root is to flash custom recovery via Odin and then SuperSU package. If you want to keep stock recovery (don't know why) then you need to flash newest stock firmware with corresponding CF Auto.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
Click to expand...
Click to collapse
SirKunon said:
Root means super user rights in currently used system. Recovery mode is system independent (not quite but you should think about it as some kind of presystem toolkit.) S3 has different partition for kernel and another for recovery. That's why you can and you should flash custom recovery to be able to backup your efs, system, data etc. and flash whatever you like: roms, kernels, su binaries...
Of course flashing unsigned by Samsung data will trigger flash counter, but this can be fixed by Triangle Away. In my opinion custom recovery is even more important than root itself because if you've got it you can forget about any PC operations. You don't need Odin, drivers, Kies and another tools.
TWRP, SuperSU, Mobile Odin, Titanium Backup - it is all you need. Until custom recovery works you can do almost everything.
But I'm not sure what do you want. Stock firmware with root only? CF Auto Root inject su binaries and shouldn't change stock kernel. That's why it should be enough if you have any arguments to use outdated stock firmware.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
Click to expand...
Click to collapse
I just want to run Custom Rom and use apps that require root access.
Can i flash SuperSU to give me root access if i have custom recovery?
Sure, you can flash anything you like.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
SirKunon said:
Sure, you can flash anything you like.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
Click to expand...
Click to collapse
Wait so rooting is basically if i want to stick to Stock ROM, but if i have a custom recovery like TWRP, i can get the SuperSU zip and flash it? Will it work if i get it off Playstore?
Custom roms are usually prerooted. Root means you've got super user binaries installed on your system partition in scripts folder. SuperSU is only an application which grants access to super user 'account' rights for certain apps.
You can install SuperSU from PlayStore but without those binaries installed you will not have rooted phone.
Don't know how can I explain this simpler.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
SirKunon said:
Custom roms are usually prerooted. Root means you've got super user binaries installed on your system partition in scripts folder. SuperSU is only an application which grants access to super user 'account' rights for certain apps.
You can install SuperSU from PlayStore but without those binaries installed you will not have rooted phone.
Don't know how can I explain this simpler.
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
Click to expand...
Click to collapse
So basically S3 AOSP roms have the su binaries and i only need to either flash SuperSU or download it off Playstore(On Custom Rom)?
No, you need do nothing on an AOSP rom as it already contains everything needed for granting root access.
Can you help with this? http://forum.xda-developers.com/galaxy-s3/help/wifi-flashing-rom-t3020438

OnePlus X in bootloop after the upgrade

Hello, I've rooted my OnePlus X with KingRoot (I have the stock recovery and the bootloader is locked), then I have tried to unroot with KingRoot and the root checker couldn't detect root access. Yesterday I've upgraded the OPX to OxygenOS 2.1.3-x and now the device is in bootloop but luckily I still able to boot in recovery. I tried to install the OxygenOS ROM via MicroSD card (8GB with only the ROM on it) but the installation fails and if I retry it says that the data space is less than 500MB. What can I do?
because the root can rename system/bin/app_process32 to app_processinit of other,so you can't use ota update your phone.
you can flash a twrp recovery,and flash full oxygen zip.don't use ota,the recovery tips you restore stock recovery,you need it,you can toch yse.
Thank you but I've already solved.
Inviato dal mio ONE E1003 utilizzando Tapatalk
Anyway with a locked bootloader you can't flash a TWRP.
Inviato dal mio ONE E1003 utilizzando Tapatalk
And What was the solution dude?
It would be good if you could explain how you solved it. If someone got the same problem he could find a possible solution here
You can go to the "Root OnePlus X without TWRP" thread and download the zip of the OTA upgrade on a MicroSD card, then boot your OPX into recovery and go on "install from local" > "SD card" > "OnePlusOxygenOTA", install it and reboot.
Inviato dal mio ONE E1003 utilizzando Tapatalk
i have got the same problem so i have tried a lot by flashing resurrection remix rom also but wireless connection is gone. ..so i advice you to contact oneplus customer care...he solved me the case...you can do it in ur home too if u have a internet connection

Can Someone Please help to install TWRP and root my Xperia Z2

Good Morning Everybody! i own a SONY Xperia Z2 (D6503) running on Android Marshmallow with build number 23.5.A.0.570 and the bootloader is unlocked.
I tried everything to install TWRP and root it but nothing worked for me. I really would like to be able to install TWRP, root it and install custom rom on it. I need for help for that.
Thanks In Advance!
This worked great for me on lollipop. Try flashing this: https://kernel.andro.plus/shinano.html HOWEVER it doesn't show marshmallow as supported so you may go back to lollipop before flashing or go for it and if it bricks use flashtool and fix er up.
Degrade to android 4.4.2
2 root using flashtool
3 install recovery http://nut.xperia-files.com/path/XZDualRecovery/XZDualRecovery_2.8.26
4 flash pre rooted stock firmware
5 Reboot
Sent from my D6502 using XDA-Developers mobile app
Flash this kernel http://forum.xda-developers.com/xperia-z2/development/kernel-advanced-stock-kernel-t3347413 . It's based on stock .570 kernel with twrp 3.0.2. Don't wory, if you don't like the kernel, you can still flash other kernel after you flash this. Twrp will remain the same unless the other kernel also come with it's own custom recovery.
You can try to root with KingRoot
Download apk and click the root button. Thats all for rooting.
Once you are rooted you can install twrp with the TWRP Manager App which you can get from the Google Play Store
this works 100%
twrp recovery
root
optional xposed
http://forum.xda-developers.com/xperia-z2/general/6-0-1-d6503-23-5-0-570-prerooted-t3364817
I can confirm that rooting Marshmallow in KingRoot app works. At least It worked for me. I was able to install TWRP Recovery after that. And then you have to Flash SuperSU package BUT it has to be System mode version, normal version will fail flashing every time on 6.0.1. I have locked bootloader.
Wysłane z mojego D6503 przy użyciu Tapatalka
Patrol619 said:
I can confirm that rooting Marshmallow in KingRoot app works. At least It worked for me. I was able to install TWRP Recovery after that. And then you have to Flash SuperSU package BUT it has to be System mode version, normal version will fail flashing every time on 6.0.1. I have locked bootloader.
Wysłane z mojego D6503 przy użyciu Tapatalka
Click to expand...
Click to collapse
How did you flash twrp?
My Z2 is Marshmallow 6.0.1 with Build No. 23.5.a.1.291 and still locked bootloader.
Kingroot doesn't work (nor do any of the popular 'one click' solutions) and when it fails it reveals that are already 3000 requests submitted for a compatible version.
Apple_sucks said:
My Z2 is Marshmallow 6.0.1 with Build No. 23.5.a.1.291 and still locked bootloader.
Kingroot doesn't work (nor do any of the popular 'one click' solutions) and when it fails it reveals that are already 3000 requests submitted for a compatible version.
Click to expand...
Click to collapse
The Invizible said:
How did you flash twrp?
Click to expand...
Click to collapse
I rooted my old xperia z2 a few weeks back (from Marshmallow to Nougat)(No need to go back to lollipop). Kingroot didn't work for me either. So here's what i did.
1. Download Flashtool. http://www.flashtool.net/downloads.php
2. First flash a custom kernel. https://drive.google.com/file/d/0Bx1QvE4qnmn6dlFrdVA0d0lYZ0k/view
3. Unlock bootloader (official sony method). https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
(You may need to download some files and drivers like adb driver. Follow the instructions carefully)
4. Install TWRP app from google play or download and flash using Flashtool).
5. Download any custom rom and copy to sdcard.
6. Enter recovery mode (hold power button, release it when mobile vibrates. As soon as sony logo appears press volume up button about 10-15 times, TWRP recovery should show up).
7. Perform steps like wiping cache etc. and install the rom (Make sure the rom is compatible with xperia z2, coz we have to delete the stock rom before installing the custom rom, and if then the custom rom doesn't
work, then you will have to flash the stock rom and start all over again.)
That's it.
I succeeded with my D6503 yesterday and posted about it here.
I tried your method of launching into recovery but it doesn't work for me and when you think about it having to press the vol button some indeterminate number of times doesn't sound like much of an official procedure either.
After much trial and error I finally came up with this which works every time.
Press and hold the power button until you get the green light (be patient). You'll get a vibrate and the Sony logo on the screen but keep holding.
When you get the green light, and without letting go of power, immediately press and hold the down vol button until the light turns purple, then release both.
The phone will boot into TWRP.
Perfect!
Finally! I tried many methods, many times, and finally I come up on this and it worked PERFECT! Thanks so much!
Sankalp_1225 said:
I rooted my old xperia z2 a few weeks back (from Marshmallow to Nougat)(No need to go back to lollipop). Kingroot didn't work for me either. So here's what i did.
1. Download Flashtool. http://www.flashtool.net/downloads.php
2. First flash a custom kernel. https://drive.google.com/file/d/0Bx1QvE4qnmn6dlFrdVA0d0lYZ0k/view
3. Unlock bootloader (official sony method). https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
(You may need to download some files and drivers like adb driver. Follow the instructions carefully)
4. Install TWRP app from google play or download and flash using Flashtool).
5. Download any custom rom and copy to sdcard.
6. Enter recovery mode (hold power button, release it when mobile vibrates. As soon as sony logo appears press volume up button about 10-15 times, TWRP recovery should show up).
7. Perform steps like wiping cache etc. and install the rom (Make sure the rom is compatible with xperia z2, coz we have to delete the stock rom before installing the custom rom, and if then the custom rom doesn't
work, then you will have to flash the stock rom and start all over again.)
That's it.
Click to expand...
Click to collapse

Flashing TWRP on MIUI8 (Global Developer 7.2.9) makes system unbootable

Hi,
I have tried many TWRP versions (eg: Official, @TheStrix , ZCX, Alka,...) and all brings the same results - after flashing and booting directly to TWRP (which works) and then rebooting to system I got bootloop.
I have tried most clean way to try:
- flash via fastboot whole system - even with userdata
- turn on usb debugging
- reboot to fastboot
- flash twrp
- boot in to recovery (power+VolUp)
- cancel decription
- reboot to system
- boot loop
So do we have any working TWRP for latest developer global rom?
Btw, I have unlocked bootloader - official way. In the past TWRP was working for me with CM14.1. Now I want have it with official rom.
Try Alka twrp
Wysłane z mojego Elephone P8000 przy użyciu Tapatalka
mar.ur said:
Try Alka twrp
Click to expand...
Click to collapse
This also do not work for me - boot loop.
After this problems, I have to reflash whole system in order to have it bootable.
The latest ZCX-TWRP_REDMI_NOTE3-PRO_Kenzo_20161230.zip works for me. Thread can be closed.
When you start TWRP for the first time, you have to select "Keep Read Only"
Flash twrp without unlock bootloader ?
you need to format all data and reboot once to twrp recovery before flashing custom ROM
i'm on the latesr global rom and zcx works for me. maybe downgrade to an earlier version of global rom then flash zcx then upgrade to miui 8.

Need help with TWRP

I am completely new to the xiaomi ecosystem. I used the Lenovo ZUK Z2 before I switched to the Poco F1. I have an issue. For starters, whenever I flash the MIUI stable/developer via TWRP, it automatically reverts to the stock recovery, and I have to keep flashing TWRP via adb. Secondly, whenever I flash a new zip, the sdcard folder contents are gone all the time and I have to manually copy all of them back again. Is this an issue with TWRP or is it a Xiaomi specific thing? I've never encountered this with the Z2 plus, and I know that the TWRP that we currently have is unofficial and doesn't have the full capability as a stable release. But could someone clarify my doubt?
You haven't flashed decryption disable zip which means you haven't read guide saying that you have to do that bcoz twrp is bugged and cannot decrypt data without it
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
uremytoy said:
You haven't flashed decryption disable zip which means you haven't read guide saying that you have to do that bcoz twrp is bugged and cannot decrypt data without it
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
Click to expand...
Click to collapse
There was this zip file that flashes both encryption disabler and magisk 17.2. Is there some other zip file I need to flash? Also, is it a one time thing only? Or do I have to flash it every time I flash a ROM or some mod?
For now you have to flash it every time you flash stock miui ROM, don't know others
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
I have another issue. Why does my internal storage partition get wiped too? That never happens. Is it again because of stock ROM?
That's because twrp can't decrypt data, so you have to format them and then flash decryption disable zip after that everything is ok. So kinda yes it's stock miui fault as it's encrypt data if you don't flash this zip
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka

Categories

Resources