[GUIDE] [how to] Update OTA Vodafone smart II without lose Full Recovery, ROOT... - Miscellaneous Android Development

Hi,
I will try to make a short tutorial how to make OTA update 4 ( in my case ) without losing (if you have) Menu Full Recovery, Root, Boot from the first version of sw that comes / came preinstalled in the phone.
From the About phone -> Software update
check availability update OTA's and download it but WARNING :
WITHOUT install it yet as you lose RECOVERY menu ... !
update.zip file will be downloaded on SDCard in dir. downloaded, from where it will be moved to the PC for editing, it is recommended to delete the folder completely from SD once you've moved the file.
The archive will be edited to remove from it, the update to Recovery and Boot and if you want also some preinstalled applications.
You have to delete the following from archive:
recovery - complet
patch\boot.img.p
patch\fota-bootloader.img.p
patch\system\bin\btld.p
patch\system\bin\recovery.p
I wiped myself in the past also these applications that were preinstalled, so I deleted form this archive:
custpack\app\FBAndroid_20120723_1.9.7-preload.apk
custpack\app\Twitter-3.2.2-release.apk
custpack\JRD_custres\app\LiveWallpapersPicker-res.apk
custpack\JRD_custres\app\LiveWallpapers-res.apk
custpack\JRD_custres\app\MagicSmokeWallpapers-res.apk
custpack\JRD_custres\app\VisualizationWallpapers-res.apk
attached script edited by me acording to my needs ( to be able to attach I have to put the extension TXT);
I removed from script:
- checking all applications version
- install the version that I have previously uninstalled
-update for Recovery and Boot :
you will have to edit the update script from:
META-INF\com\google\android\updater-script
You will copy the modified archive on SDCard and install from the recovery menu: Install ZIP from SD, then it will restart the phone and you will have to restore the phone to Factory, so back-up you'r data first.
If you want after it reboots and starts initializing, may again enter in the Recovery menu and delete from there, Cahe, Dalvik, User time...
here you have original OTA 4 from Vodafone Romania file update.zip untouched:
http://www.2shared.com/file/5Ct2jhTX/update.html
and here you have modified file acording to my needs, tested and instaled from recovery zip, working 100% in my phone:
http://www.2shared.com/file/XOMD87w-/update01.html
All the best.

Related

[Q] important problem with nexus s i9023

Hi , I have a problem with Samsung i9023. I can not change any things in i9023 such as files, apps, settings,sdcard and all other . I reset it too factory but factory reset not work and any things not change . I flash it by 2.3.3 flash file with Odin and z3x box, flash finished normally but any thing not change such as settings, apps, messages, ...! I flash it with higher version of flash file, but device not boot and stay in Google logo and after that reflash it by 2.3.3 flash file, device boot up normally but all settings,apps,files do not change. I copy file in sdcard with my PC, copy finished normally but can't find my file in sdcard. Help me plz!
What ROM n kernel are you using?
Sent from my Nexus S using xda 'donation' apps
Thanks for replay . my rom is default nexus s android 2.3.3 with android default kernel build number GRI54. I don't use custom rom .
jafar5401 said:
Hi , I have a problem with Samsung i9023. I can not change any things in i9023 such as files, apps, settings,sdcard and all other . I reset it too factory but factory reset not work and any things not change . I flash it by 2.3.3 flash file with Odin and z3x box, flash finished normally but any thing not change such as settings, apps, messages, ...! I flash it with higher version of flash file, but device not boot and stay in Google logo and after that reflash it by 2.3.3 flash file, device boot up normally but all settings,apps,files do not change. I copy file in sdcard with my PC, copy finished normally but can't find my file in sdcard. Help me plz!
Click to expand...
Click to collapse
First you need : http://www.4shared.com/zip/2L09-JyW/Root_Nexus_S.html
After that you need : remove install-recovery.sh just in .....
run in windows-> Start->at the search bar write cmd and navigate into your android sdk is installed
For me :
C:/"Programs and Files (x86)"/Android/android-sdk/tools/>adb shell
# rm /system/etc/install-recovery.sh
#exit
or with Root Explorer into system/etc/install-recovery.sh just renam it (ex. : .sh.old)
Now you can download this Stock Romv2.3.4 : http://www.4shared.com/file/cJbNf1Nf/NexusS.html
just unpack Nexus.7z with passw: surdupetru
Now , copy NexusS.zip into sdcard, and than you can install it with CWM
( shut down your phone -> press power and volume up at the same time -> choose recovery mod-> wipe data/factory reset, wipe cache partition , advanced Wipe Dalvick-Cache and now choose install zip from sdcard, yes -> navigate into your sdcard and click NexusS.zip. Waitt for installing ...and you will see a nice Stock Android 2.3.4 with root permission, fast & more stable! Good luck!
hi and thanks for replay . it's very good but i can't copy file to my sdcard . copy with pc finished normaly but copied file is not in my sdcard so i think settings,apps,msgs,sdcard a.d all other is read only ! i install recovery by adb and recovery load normaly but can not copy custom rom file !
plz heeeeeeeeelp meeeeeeeeee!

Installing 3.1 OTA update with custom recovery

Ran into this issue as I'm running a custom recovery and couldn't flash the update. Took the time to figure out how to do this properly as I couldn't find any existing set of instructions and I'm sure some people will want them.
WARNING: Flashing this update WILL reset root and the recovery partition. These steps restore both. Restoring custom recovery will require a PC with ADB installed as I was only able to find the raw .img file and not a flashable .zip.
1). Download full update zip by navigating to Settings > About tablet > System updates > Check full update (http://i.imgur.com/ozGBzKZ.png)
2). After update is finished downloading, navigate to /data/data/com.nvidia.ota/files/ROM (I used Root Explorer) and move the downloaded update to either your internal or external storage card. DO NOT TAP THE NOTIFICATION THAT SAYS TAP HERE TO INSTALL UPDATE!
3). Download flashable SuperSU.zip from http://download.chainfire.eu/supersu
4). Download CWM recovery.img from http://forum.xda-developers.com/shi.../recovery-cwm-recovery-nvidia-shield-t2848064
5). Reboot recovery
6). Make a nandroid backup in recovery first before doing anything
7). Flash full update archive (DO NOT REBOOT AFTERWARDS)
8). Flash SuperSU archive (this will restore root)
9). Follow instructions at http://forum.xda-developers.com/shield-tablet/development/root-root-lollipop-t2945044 to use dd to restore custom recovery through adb shell.
10). Wipe cache/dalvik
11). Reboot!
In the off chance that you screw something up and need to force your tablet back into recovery mode manually, the button combo is Power + Volume Down. Also, I was able to dirty flash (not wipe data first) and everything seems to be working fine. As far as the update goes, audio/wifi is working without issue and if anything, the tablet seems more responsive (doesn't slow down/lock up as much). I literally pounded out these instructions after getting my tablet updated so I haven't had a chance to mess around with it much yet.

OTA update bootloop fix [S-ON] [BU] [Stock Rooted ROM]

Hi, I found a way to fix this bootloop which happens after you flash the latest ota update if you have unlocked and rooted your stock rom.
I own a HTC E8 China Unicom [M8Sw - dual sim], but I think it will work on other variants.
It is the SU binary/files which are preventing the phone from updating correctly.
You can also restore a clean unrooted TWRP backup and do the OTA update.. it will work just fine.
This tutorial is for those who don't want to lose their app data and modifications.
To be able to update... you need to fully unroot the phone before. Well, this was previously not possible due to system write protection.
(There are also other methods of unrooting. (deleting the SU files manually with the file manager of TWRP recovery) This doesn't work, I have tried it myself..often cause bootloops.)
But now we have a custom recovery mod which enables us to write to the system partition and thus can fully unroot with SuperSU app itself.
Requirements:
-some expertise with adb/flashing/twrp recovery management will be needed.
-stock firmware.zip, inside the OTA zip file, where you will find you stock recovery,boot image, etc
-Stock ROM, rooted with no modified existing system files
-TWRP Recovery from @Captain_Throwback works fine. I used the 2.8.6.0 one. http://forum.xda-developers.com/one-e8/orig-development/recovery-twrp-touch-recovery-t3060188
-untouched Stock Kernel Modules (IMPORTANT)
-SchKernel Extra 3.3, to gain write permission to /system http://forum.xda-developers.com/one-e8/general/schkernel-extra-3-3-t3200090
[UPDATE: SchKernel Extra has been updated to 3.5 and the old one is not available for download on the other thread. You can find attached at the bottom of this section ver3.3 which I had used. Please don't use ver3.5 as a user has reported having bootloop with that.)
-Battery +80 charge recommended...the process gonna demand a lot of power.
-Patience... loads of it....
Disclaimer: I am not responsible if you brick or damage you phone!!
Before you flash anything, be sure to have a working twrp full backup of you phone! In case anything goes wrong.
STEPS:
1. Copy the untouched kernel 'modules' folder [found in system/lib/ in your phone] to another location ( for e.g. to your internal phone memory), you're gonna need it later.
2. Flash the twrp recovery if you haven't already and boot into TWRP recovery.
3. flash SchKernel Extra 3.3 kernel mod. It will launch the aroma installer. There will be options as overclocking/underclocking etc..
I left everything on STOCK option, disabled Swipe2sleep, unselected the everything in the optional addition page. Then went to install it.
4. Reboot, and open SuperSU app, go into setting, tap the FULL UNROOT option, this might take a while. The first time, when the unrooting notice shows and it seems that the app is not doing anything, you might be required to exit the app by pressing home button. Then open the app again and redo FULL UNROOT option. If you exit the app and when re-opening it, the "unrooting notice" is still there, then it means it is working. This might take a bit of trial and error.
5. Ultimately, SuperSU app will close. Then you will need to reboot. You will see that SuperSU is gone and that you have no root access.
6. Now, turn it off again to go to fastboot. Connect to PC and flash the stock boot.img via adb to restore the stock kernel.
8. Then, in twrp recovery, mount /system partition and got to advanced >> file manager..
9. Now browse to /system/lib/ and delete the 'modules folder'.
This is because the SchKernel Extra 3.3 kernel mod flashed previously has modified your kernel modules and when you will try to update the OTA, the stock recovery will report that the kernel modules (xxxxx.ko) has be modified and it will stop the OTA update process.
10. Remember the previous untouched stock 'modules' folder you copied previously, now move it to /system/lib/HERE , to replace the deleted folder.
[DO STEP 9 BEFORE - Don't try to overwrite the folder, it won't be possible. It said operation failed for me. ]
Optional: You might also want to delete su.d folder in \system and init.d folder in system\etc
these files were for the custom kernel and won't be needed anymore.
11. Reboot into fastboot mode, connect to PC (if not already), flash stock recovery.
12. Now, you're good to flash the OTA updates. :good:
-Download it, if not already done.
If ever you have downloaded from PC and copied it to phone, and for whatever reason the phone is not detecting the zip file and asking for install.
Just move it to you exeternal SD card and rename it to "ptt.zip" , go into stock recovery and go down the list to "apply update from SD card"
and it should flash the zip file. When done, select the reboot option and it will say reboot to flash firmware.zip and the will boot. :fingers-crossed:
When booting it will take some time (3 to 8 mins), and then go to the "Android is updating - optimizing apps" screen. This might take a lot of time if you have a lot of apps installed. The phone might get really hot during this process.
When the OS finally boot completely there will be an "HTC" screen and an exclamatin mark in the notification bar. NO WORRIES, it is the just the update working. It will go away when the update is fully processed.
After OTA update is done, you can make a twrp backup of the unrooted system, so that you can restore it for future OTA updates.
If some steps are confusing, feel free to ask for any clarification
Hope I helped you. Don't forget to hit thanks
problem
hi after i flashed SchKernel Extra 3.3 my phone just turned off and won't turn on. what should i do?
neekless said:
hi after i flashed SchKernel Extra 3.3 my phone just turned off and won't turn on. what should i do?
Click to expand...
Click to collapse
how did you flash it exactly?
Did you flash it thought TWRP recovery?
also...what variant of HTC e8 are you using?
Thank you for this guide. :good:
For the newbies, here are exact instructions for each step. TWRP is required; presumably you have this because you've rooted your phone. (If you haven't rooted your phone, what are you doing here?)
Note that rebooting to TWRP can be accomplished in several ways:
Long-press the power button; when prompted choose Reboot. When the screen goes black, press and hold the Volume Down key. This will take you to hboot; from there choose Recovery.
Enable developer mode from settings, plug in to a computer, and issue the command adb reboot recovery.
Also note that it is prudent to do a full TWRP backup to external storage (microSD, USB OTG) before anything else, so you have a good recovery point if things go wrong.
To copy the system/lib/modules directory, you can use a root-enabled file explorer or TWRP. To do it in TWRP:
Reboot to TWRP.
In TWRP, select Mount. Make sure that system is checked.
Back to the main TWRP menu, select Advanced.
In the advanced menu, select File Manager. Then navigate to /system/lib/modules.
Tap on Select, then Copy Folder. Navigate to a new location - I used /sdcard/Backup - and tap Select again. Don't use your external SD or USB-OTG, they may not preserve permissions correctly.
To flash the SchKernel Extra, copy the ZIP file to your device, reboot into TWRP, and select Install. From there, navigate to where you copied the ZIP file and select it; then follow the prompts as sanijsnj specified.
Removing SuperSU works exactly as described. Don't forget to reboot at the end (although it may not be necessary).
To flash the stock boot, in a cmd window where you have the Android SDK, typically in the sub-folder platform-tools enter: fastboot flash boot boot.img (boot.img from the OTA ZIP).
To delete and restore /system/lib/modules, follow the steps above, starting of course from your saved 'modules' directory and copying to /system/lib.
To flash the stock recovery, again in the cmd window enter: fastboot flash recovery recovery.img (recovery.img from the OTA ZIP).

Roms for GT-I8160P version guide

Hi people, here is a short instruction if you have a P or L version of the I8160 and want to update this (great) old phone. credits to xdas-e
for a while i thought that roms didnt work on the P version, because when installing roms i got the error that the rom was only for I8160, not I8160P. so yeah it is possible, maybe this is common knowledge, but i couldnt find out how before i found this information.
I have not tested this exhaustively but i believe they all should work, because i believe the only difference from the P version is that it has an NFC module.
]------- modify the rom for P version:
1.- Get the custom ROM.
2.- Get the /system/lib/tee folder contents from your GT-I8160P JB installation (from stock rom). You may need root access, although in my case I could simply move trough the hidden directories and copy the folder to my sd card.
3.- Swap the /system/lib/tee folder, and put what you got from step 2, into the zip file of step 1, same place, same everything. You may very well dispose the original /system/lib/tee folder in the zip file.
4.- Change /system/build.prop and introduce a P in every GT-I8160 entry (from GT-I8160 to GT-I8160P).
5.- (tricky one) look for the updater script file within the custom ROM zip file, and delete (or add a P) the first complete entry of the assert command (you shall see some GT-I8160 there). in my case it was located under META-INF\com\google\android\.
------- from here you have successfully modified the rom for the P version, these steps just show the installation:
6.- If you dont already have CWM, get yourself one (I used this one [JB] CWM Recovery 6).
7.- Put both zip files into your sd card; get a copy also of gapps (google apps, play store etc) for the android version of the rom.
8.- Back up all your data.
9.- Swicht off your phone and restart in recovery mode (up volume, home and power buttons pressed simultaneously).
10.- Load from the external sd card the CWM zip file.
11.- Make a full ROM backup to restore if things go wrong. Wipe data/factory reset; wipe cache partition; wipe dalvik cache (under advance options), format /system if needed (see rom instructions).
12.- Install from external sd card: a) custom CM rom; and b) gapps if you're for it.
13.- Restart.
14.- You shall be done!!! (first boot takes a long time)
good luck! my phone was crap with stock and now it works great, so basically it saved me from buying a new phone.. a big thanks to all the rom developers for this device .

Update your MIUI v7 Rom in your not supported Note 3 !

ALWAYS MAKE A BACKUP, IM NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOUR DEVICE OR ANY DATA LOSS
So if your having trouble updating your MIUI v7 Rom with the updater app that shows you the weekly updates that camed, or etc. When you go to recovery and flash the update zip it will give an error 7...
You came to the right thread
First make a backup if anything goes wrong please.
1- Download the weekly update from here or the updater app. (if it shows on updater app an update size 1GB or so download the one here, its supposed to be 2mb or less)
i will update weekly when the new update comes
if you chosed to use the update from the thread dont edit the update script just jump to the recovery steps
2- Now extract the zip.
3- Go to where you extracted the folder.
4- Go to META_INF/google/android/
5- open update-script in text editor
6- Delete from top to bottom until you see something like this "ui_print("verifying current system") is like after the fisrt 10 lines of code
7- Now save the update-script and re zip the folder
Recovery Steps:
8- Now reboot into recovery and wipe dalvik and cache
9- Go to mount and make sure both system and data are checked
10- Now below that make sure the mount system as read-only is NOT checked
11- Flash the update zip you edited and reboot.
12- Enjoy!

Categories

Resources