Run update.zip throught recovery adb script ? - Xiaomi Mi 4i

Here is the deal :
I want to run recovery related update zip throught recovery, but I need an adb shell script to do that.
How to automaticaly run the recovery related zip throught adb or any kind of other way.
I can't install it like apk using adb install. It got to be installed throught recovery.
Don't want to install it manually ( select the file ... ) want to fix it automaticaly.
Any clues or other possibilities ?

ask such questions in general section not in android development section

D4rkCyb3r said:
ask such questions in general section not in android development section
Click to expand...
Click to collapse
It's for the development, dont want to generalised it ...
Anyway thx for info.

Related

ROOT stock 1.47 ROM (hboot 6.98.1002) using 4EXTRecovery + Ad hoc wifi support

This tutorial is for noob people like me who needs a clean, simple and secure way to achieve something more from their stock ROM phones.
No doubt the devs are doing magics with their images but probably there are many conservative people who want to stay with their original firmwares.
So here we go:
My phone was runnig RUU_Saga_HTC_Europe_1.28.401.1_Radio_20.28b.30.080 5U_38.03.02.11_M_release out of the box first. It was S-ON. I S-OFFed it using Alpharevx and then I rooted it with Gingerbreak 1.20. Then I decided to update the phone with the stock RUU_Saga_HTC_Europe_1.47.401.4_Radio_20.28I.30.085 AU_3805.06.02.03_M_release_199410_signed and I lost my root but the phone was still showing S-OFF. Rooting with Gingerbreak is not working on 1.47.xxx ROMs. I rooted it using 4EXTRecovery v2.1.0 FINAL and this file from http://unrevoked.com/rootwiki/doku.php/public/revolutionary
To install 4EXTRecovery v2.1.0 FINAL on a non rooted phone(thanks to madmaxx82 and .sh4d0w.):
1. Download and unzip on your PC the attached 4EXTRecovery v2.1.0 FINAL.zip file
2.Copy all 5 files to the C:\ directory of your PC.
3.Connect your phone to the PC(debug usb option activated) charge only
4.Run cmd to open console, point to the directory where you copied the files and type: adb reboot bootloader - device will boot into the bootloader
5.Type: fastboot flash recovery recovery.img
Done
After reboot you should have 4EXTRecovery installed available from recovery option on your hboot menu.
6. Copy to the root of your SD Card the file su-2.3.6.3-efgh-signed.zip which you can download from here
7.Go to the 4EXTRecovery > install from sd card and choose su-2.3.6.3-efgh-signed.zip
8.Done. After reboot you should have SUPERUSER installed and your phone is rooted again
To get Ad hoc wifi support:
9.Download and unzip the attached Ad hoc.zip file to your PC.
10. Install from 4EXTRecovery ADHOC.v2.zip file and reboot.
11.Copy and replace wpa_supplicant file to: /system/bin
(you can use file expert apk from the market to do that)
Done. You have an Ad hoc wi-fi support.
YOUR PHONE MUST BE S-OFF BEFORE TO START THIS PROCEDURE!!!
DO IT ON YOUR OWN RISK!
Good luck!
You can have a look here for double check: http://forum.xda-developers.com/showpost.php?p=16171869&postcount=184
Just to be sure: does installing 4EXTRecovery or su-2.3.6.3-efgh-signed wipe any data from you phone?
NO it didn't !
I did it last night and worked !
Phone remains untached. Just rooted
Sent from my HTC Desire S using XDA Premium App
If I have ClockworkMod Recovery installed already then can I install 4EXTRecovery on top of that?
I don't think so. You better don't. But why do you need 4EXT once you have already CWM installed? I just shared one option to root 1.47.xx ROM which was not possible to do with Gingerbreak. If I have to remove CWM I would flash stock RUU. You will keep your S-OFF but will loose root. Then install 4EXTRecovery and proceed to root with the su-file. But maybe there is more elegant and time-saving way to do it. Just surch around the forum.
Sent from my HTC Desire S using XDA Premium App
Noob understands it to have better and more features.
This work with new hboot (6.98.1002 or like) or not
bilalovic1234 said:
This work with new hboot (6.98.1002 or like) or not
Click to expand...
Click to collapse
Yes, it works. That's the idea because Gingerbreak is not working on 6.98.1002
on cmd i have juste one message< waiting for device > how many time i need waiting or is wrong way
ando roido said:
If I have ClockworkMod Recovery installed already then can I install 4EXTRecovery on top of that?
Click to expand...
Click to collapse
yes you can install 4EXTRecovery on top of CWMR
4EXTRecovery basically is CWMR with more options & features
bilalovic1234 said:
on cmd i have juste one message< waiting for device > how many time i need waiting or is wrong way
Click to expand...
Click to collapse
Uninstall all HTC drivers and HTC Sync from your PC. Download fastboot drivers available here and install them. Make sure your phone is with USB debug active, connect it to the PC(charge only) and you should be OK. After everything done you may install your HTC Sync again if you want.
not help is same probleme .... f..ck.... i have superuser installed beefore this hboot and i cant delete superuser
bilalovic1234 said:
not help is same probleme .... f..ck.... i have superuser installed beefore this hboot and i cant delete superuser
Click to expand...
Click to collapse
Download the stock ROM from the dev section and flash the phone. I pointed this on the previous page. And follow the procedure - read it again.
teddy_irish said:
Download the stock ROM from the dev section and flash the phone. I pointed this on the previous page. And follow the procedure - read it again.
Click to expand...
Click to collapse
Same waiting for device all is ok but not work...
bilalovic1234 said:
Same waiting for device all is ok but not work...
Click to expand...
Click to collapse
But you have SuperUser installed so your phone is already rooted. What actually are you trying to do?
When I was installing the stock ROM I was using the drivers provided from the official HTC website. Before to succeed with flashing the RUU it gave me couple of times connection error and waiting for device. I tried with sync option and with charge option and it worked at the end. You can try that too. As far as I remember flashing the RUU was with USB debug OFF.
i have root my phone..
but i have problem with wifi..
i think i cant move the wpa_supplicant..
i have tick the root explorer in the file expert
any suggestion?
thanks u
loukasz said:
i have root my phone..
but i have problem with wifi..
i think i cant move the wpa_supplicant..
i have tick the root explorer in the file expert
any suggestion?
thanks u
Click to expand...
Click to collapse
What is the problem with your wifi? Install the file expert apk from market. Open it and go to the place on your SD Card where you put the file wpa_supplicant. Copy the file and navigate to /system/bin and paste it - it will ask you to overwrite the existing file. Press ok and that's it. Make sure that you have installed the ADHOC.v2.zip file from recovery too.
teddy_irish said:
What is the problem with your wifi? Install the file expert apk from market. Open it and go to the place on your SD Card where you put the file wpa_supplicant. Copy the file and navigate to /system/bin and paste it - it will ask you to overwrite the existing file. Press ok and that's it. Make sure that you have installed the ADHOC.v2.zip file from recovery too.
Click to expand...
Click to collapse
in wifi write error..
i replace the wpa_supplicant..any suggestion..i need my wifi
how can i check if the ADHOC.v2.zip installed?
edit:
Installing update...
Installing Wifi Adhoc..
Installation complete!
Install from sdcard complete
Click to expand...
Click to collapse
install again the ADHOC.v2.zip
replace the wpa_supplicant but Error in wifi still exist..
loukasz said:
in wifi write error..
i replace the wpa_supplicant..any suggestion..i need my wifi
how can i check if the ADHOC.v2.zip installed?
Click to expand...
Click to collapse
Just boot in to recovery and choose install zip from sd card
Navigate to ADHOC.v2.zip(the file should be on the root of your SD Card) and install it. Reboot.

[Q] Bah Humbug Google Recovery

Trying to cook a rom for my ZTE Z990 (ATT Avail / ZTE Roamer)
I follow the instructions and get the zip file, copy the file to my sdcard / or push through ADB
then do
adb reboot recovery
the phone comes back to the android system recovery <3e>
I select the option to do update.zip from sdcard
I get:
verifying update package...
installation aborted...
I can't seem to find another recovery option for my phone so trying an alternative doesn't seem to be an option...
no explanation, no error any info or directions would be appreciated, and I can't ask in the kitchen thread because I am a noob and the thread is closed.
Bump
Need help ppl
Need root and a custom recovery.
Hi all, this is a great forum i am so glad to find it.HAHA
I am so happy today, such a wonderful site i find.haha
chunk351 said:
Bump
Need help ppl
Click to expand...
Click to collapse
CWM 4.0.1.0 is working, but it's in Chinese: http://forum.onliner.by/viewtopic.php?t=3271212&start=0

[Q] cannot use Scott's recovery install tool

I'm following this thread http://forum.xda-developers.com/showthread.php?t=1938129 to install TWRP but get a warning that adb is not a recognised command (see attached screenshot).
Have enabled debug mode on my tabled, so not sure what am I missing.
Thanks
lister171254 said:
I'm following this thread http://forum.xda-developers.com/showthread.php?t=1938129 to install TWRP but get a warning that adb is not a recognised command (see attached screenshot).
Have enabled debug mode on my tabled, so not sure what am I missing.
Thanks
Click to expand...
Click to collapse
You need the SDK installed and for it to be in the path or executing the command in the directory. Or, you could install TWRP via a terminal emulator, but you'll need to be rooted I believe. The easiest method is to download goo manager from the play store and use the install recovery option. (click the menu button in upper right corner)
faustus1005 said:
You need the SDK installed and for it to be in the path or executing the command in the directory. Or, you could install TWRP via a terminal emulator, but you'll need to be rooted I believe.
Click to expand...
Click to collapse
Yup.
The easiest method is to download goo manager from the play store and use the install recovery option. (click the menu button in upper right corner)
Click to expand...
Click to collapse
Which would need root access, too.
As faustus1005 said, I'd check the PATH variable, and make sure everything is in the places it is expected to be.
After installing the SDK, I've installed TWRP via Scott's script.
Don't know how to root the device, though, as ther are no instructions. I can't post a question in the dev. forum as I don't have write access.
Thanks,
Leo
lister171254 said:
After installing the SDK, I've installed TWRP via Scott's script.
Don't know how to root the device, though, as ther are no instructions.
Click to expand...
Click to collapse
Use the search function, you will find lots of instructions.
lister171254 said:
I can't post a question in the dev. forum as I don't have write access.
Click to expand...
Click to collapse
Good. The dev forum is not for posting questions anyway. Ask your questions here.
_that said:
Use the search function, you will find lots of instructions.
Yup, the Motorola thingy is the latest. You can find lots of instructions, though, with the aforementioned search function.
Good. The dev forum is not for posting questions anyway. Ask your questions here.
Click to expand...
Click to collapse
Learning moment, handled beautifully. Hahaha!
Click to expand...
Click to collapse

[Q] Motorola XT319, Deleted Stock Launcher,USB Debugging not enabled

Hi
I have a Motorola XT319 (GB 2.3.5) China ROM . I rooted it & removed stock launcher & most chinese app, flashed Gapps etc. Then yesterday I did a factory reset. After that phone boots normally & I get signal & notification bars, screen lock, can receive calls etc. But as there is no launcher I cant do any further. There is no gapps in stock rom. USB debugging is disabled so can't push anything through adb.
I can boot into stock recovery & see the option of apply update from SD card & other options as well.
Please suggest is there any way to recover from this. Or any help to find a SBF & flashing it.
singh.r said:
Hi
I have a Motorola XT319 (GB 2.3.5) China ROM . I rooted it & removed stock launcher & most chinese app, flashed Gapps etc. Then yesterday I did a factory reset. After that phone boots normally & I get signal & notification bars, screen lock, can receive calls etc. But as there is no launcher I cant do any further. There is no gapps in stock rom. USB debugging is disabled so can't push anything through adb.
I can boot into stock recovery & see the option of apply update from SD card & other options as well.
Please suggest is there any way to recover from this. Or any help to find a SBF & flashing it.
Click to expand...
Click to collapse
Hello Singh, I am also thinking about buying this phone. I am not a pro but as a fellow member I would suggest you to kindly paste your queries to the following threads, they are more related to the topic.
http://forum.xda-developers.com/showthread.php?t=1218506
http://forum.xda-developers.com/showthread.php?t=2281815
Hope you'll get your answer there. All the best.
Thanks, I did SBF
nightcrawler218 said:
Hello Singh, I am also thinking about buying this phone. I am not a pro but as a fellow member I would suggest you to kindly paste your queries to the following threads, they are more related to the topic.
http://forum.xda-developers.com/showthread.php?t=1218506
http://forum.xda-developers.com/showthread.php?t=2281815
Hope you'll get your answer there. All the best.
Click to expand...
Click to collapse
Thanks for looking into it. I had already gone through that & even posted a reply.
But I wanted to ask a question so I posted a fresh question under general.
Finally I SBF'd it.
how to install Gapps
Mr. Singh , I rooted motorola xt319 and removed unwanted bloatwares.I tried to install many Gapps packages in recovery mode.Every time it says incorrect or corrupted package.Please help me to install at least google play store.Thanks
kgnrizwan said:
Mr. Singh , I rooted motorola xt319 and removed unwanted bloatwares.I tried to install many Gapps packages in recovery mode.Every time it says incorrect or corrupted package.Please help me to install at least google play store.Thanks
Click to expand...
Click to collapse
You can not install gapps in recovery mode, u need to push it with adb.
Don't try many just use below one & push it.
http://goo.im/gapps/gapps-gb-20110828-signed.zip
adb command
When I typed "adb install gapps-gb-20110828-signed.zip" and hit enter ,it says "gapps-gb-20110828-signed.zip" does not contain androidmanifest.xml
rm failled for ...................no such file or directory.
please help me by providing steps to install gapps.
Thanks and Regards
kgnrizwan said:
When I typed "adb install gapps-gb-20110828-signed.zip" and hit enter ,it says "gapps-gb-20110828-signed.zip" does not contain androidmanifest.xml
rm failled for ...................no such file or directory.
please help me by providing steps to install gapps.
Thanks and Regards
Click to expand...
Click to collapse
Extract the zip file & copy system folder where your adb.exe is located
adb push system /system
* HIT Thanks if it helps you*

[Completed] Updating Droid 3 and using it as a mini computer

1. I just bought a droid 3 which I rooted. It's android version is 2.3. Can I update it to Android 5.1.1 as in the lollipopto.website or do I have to install android 4.4 as mentioned on the xda developers site under custom roms?
2. I want to use this smartphone as a mini computer without wifi, internet access or phone service. I know there are apps that can be installed that run offline. I would like to do a clear wipe of the phone. I installed Titanium Backup and I have seen lists of apps that can be taken off but I would like to know what are the essential apps that I could leave on, the bare minimum that the phone needs to have just to be functional..
Thanx
cjamps said:
1. I just bought a droid 3 which I rooted. It's android version is 2.3. Can I update it to Android 5.1.1 as in the lollipopto.website or do I have to install android 4.4 as mentioned on the xda developers site under custom roms?
2. I want to use this smartphone as a mini computer without wifi, internet access or phone service. I know there are apps that can be installed that run offline. I would like to do a clear wipe of the phone. I installed Titanium Backup and I have seen lists of apps that can be taken off but I would like to know what are the essential apps that I could leave on, the bare minimum that the phone needs to have just to be functional..
Thanx
Click to expand...
Click to collapse
Hello,
You need to first check if official lollipop is available for your device? If yes, you can upgrade. But some updates include firmware/bootloader updates. So please make the previous updates before proceeding.
As for second issue, there is no list as such but you can delete the ones you consider not important.
But please keep in mind to not delete the core apps or it will end up in a bootloop/Force closes..
Regards
Vatsal,
Forum Moderator.
Vatsal said:
Hello,
You need to first check if official lollipop is available for your device? If yes, you can upgrade. But some updates include firmware/bootloader updates. So please make the previous updates before proceeding.
As for second issue, there is no list as such but you can delete the ones you consider not important.
But please keep in mind to not delete the core apps or it will end up in a bootloop/Force closes..
Regards
Vatsal,
Forum Moderator.
Click to expand...
Click to collapse
I tried to google the apps for droid 3 but nothing came up to that effect. Please tell me how I could find out which ones they are.
thanx so much.
cjamps said:
I tried to google the apps for droid 3 but nothing came up to that effect. Please tell me how I could find out which ones they are.
thanx so much.
Click to expand...
Click to collapse
Hello,
Well you cant. Just check the debloat script for any device and accordingly delete the ones you feel.
It is a hit and trial method.
Regards
Vatsal,
Forum Moderator.
Vatsal said:
Hello,
Well you cant. Just check the debloat script for any device and accordingly delete the ones you feel.
It is a hit and trial method.
Regards
Vatsal,
Forum Moderator.
Click to expand...
Click to collapse
Ok. Thanx.
I successfully rooted my phone but I am having problems installing clockworkmod. I tried the easiest way by installing a ROM manager but get Error while downloading from server. Please make sure you have stable internet connection and that your sd card is inserted and has free space.. It is for this reason that I would probably have an issue getting it from the googleplay store. So I downloaded adb.exe which isn't working either. I don't see it containing any img file that has to be flashed. Is there any simple way it could be installed without using an unlocked bootloader?
Where is the RECOVERY img????
cjamps said:
Ok. Thanx.
I successfully rooted my phone but I am having problems installing clockworkmod. I tried the easiest way by installing a ROM manager but get Error while downloading from server. Please make sure you have stable internet connection and that your sd card is inserted and has free space.. It is for this reason that I would probably have an issue getting it from the googleplay store. So I downloaded adb.exe which isn't working either. I don't see it containing any img file that has to be flashed. Is there any simple way it could be installed without using an unlocked bootloader?
Click to expand...
Click to collapse
After downloading adb and clockworkmod where is the recovery image? I think I tried every website related to a droid 3.
Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery twrp-2.8.x.x-xxx.img
└ Here modify CWM.img with the name of your CWM recovery .img file.
I downloaded CWM 5.0.2.6 Recovery but there was no recovery-clockwork-5.0.2.6-solana.img file. I downloaded flashify but I am getting an error problem setting up in-app billing lab result .......
How do you do this?
cjamps said:
After downloading adb and clockworkmod where is the recovery image? I think I tried every website related to a droid 3.
Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery twrp-2.8.x.x-xxx.img
└ Here modify CWM.img with the name of your CWM recovery .img file.
I downloaded CWM 5.0.2.6 Recovery but there was no recovery-clockwork-5.0.2.6-solana.img file. I downloaded flashify but I am getting an error problem setting up in-app billing lab result .......
How do you do this?
Click to expand...
Click to collapse
Hello,
Recovery image is the recovery i.e. Clockwork Mod recovery in this case.
You need to fastboot it.
Regards
Vatsal,
Forum Moderator.
Is the recovery file included in the zip file? I typed in fastboot flash recovery Clockwork Mod recovery and I got an error that clockwork was not found.
cjamps said:
Is the recovery file included in the zip file? I typed in fastboot flash recovery Clockwork Mod recovery and I got an error that clockwork was not found.
Click to expand...
Click to collapse
Hello,
The command is
Code:
fastboot flash recovery <filename>.img
Regards
Vatsal,
Forum Moderator.
cjamps said:
Is the recovery file included in the zip file? I typed in fastboot flash recovery Clockwork Mod recovery and I got an error that clockwork was not found.
Click to expand...
Click to collapse
Thanx for replying.
There is no file named "recovery.img" or any "img" file in the adb zip file.
only a file named recovery.
When I type in the command fastboot flash recovery recovery I get the following information:
Target reported max download size of 520093696 bytes
Sending ‘recovery’ <770> kb . . .
OKAY [0.041s]
Writing ‘recovery’ . . .
<bootloader> Preflash validation failure
FAILED <remote: >
Finished. Total time: 0261s
I downloaded recovery-clockwork-touch-6.0.4.3-quincyatt.img, ran the same command and got the same error.

Categories

Resources