yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Android Development] ne0zone75:
To properly update a nightly over another one you should :

-> backup /data...

-> wipe /system and /data...

-> flash your updated ZIP... (and GAPPs package in order to have Playstore feature... this part is optional...)

-> wipe /cache and dalvik once custom ROM flashing is done...

-> restore /data prior to rebooting...

-> finally reboot to complete the process.

Of course you should also perform a full NANDROID backup (/boot + /system + /data) and dirty flash your updated custom ROM installer over current one which means you only need to wipe /cache and dalvik like it is proposed at the end of the flashing process. I do recommend this one, but...

... dirty flashing might cause file corruption over time so it is important to archive your backups in case something becomes wrong...

The advantage of the first method is to avoid file corruption over time and also to be used while upgrading your custom ROM : for example when upgrading from an experimental build to a nightly one or any other switch...

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] ICrusaderI:
Ahm well this is what i did :

i used odin and selected the Lte (gti9195) , pushed AP and selected openrecovery-twrp-3.0.2-1-serranoltexx-STABLE.tar.md5.7z

then the phone rebooted and started automatically with TRWP.

Later i unzipped the openrecovery-twrp-3.0.2-1-serranoltexx-STABLE-signed.zip and i copied the directory inside the internal storage of the cellular.

After that i wiped everything , i didnt need the backup.

Then i pressed Install and by navigating the trwp browser i selected the recovery.img file which i unzipped previously ( the one inside openrecovery-twrp-3.0.2-1-serranoltexx-STABLE-signed.zip )

It asked me to flash boot and i did so also for the recovery option. IT says ok flash ok.

But ok now the phone is rebooting but always in TRWP menu, the system itself doesnt start so now the cellular is starting always with trwp.

Whats i did wrong ?
[Galaxy S 4 Mini Android Development] glkanth77:
Bro there is no need to install twrp if u flashed in odin do full wipes and flash a rom if the same problem continued then download and flash Samsung firmware from sammobile.com through odin and reflash twrp
[Galaxy S 4 Mini Android Development] ICrusaderI:
well ok but what is openrecovery-twrp-3.0.2-1-serranoltexx-STABLE-signed.zip for then ? i though i had to install it with boot option.. umh...
[Galaxy S 4 Mini Android Development] ne0zone75:
OK, you just flashed TWRP to /boot, so when your device try to boot Android it boots TWRP instead ! TWRP is currently installed twice on your phone (/recovery and /boot) !

My advice to you is to boot into recovery by using the usual button pressing combination ('VOL. UP' + 'PWR'), then backup /data and flash your current Android distribution again as a flashable ZIP file. Finally restore /data prior to rebooting and you are done : at least your operating system will be like it was before you did begin to play with TWRP and also TWRP will be installed to /recovery like it should.

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] ICrusaderI:
Ahhh what a stupid now i now what happened actually... oh well Thank you!
[Galaxy S 4 Mini Android Development] ne0zone75:
You are welcome [emoji6].

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] chacox:
does OTG work?
[Galaxy S 4 Mini Android Development] ne0zone75:
AFAIK OTG has never been reported as non working on my builds but i do not know if it is (i do not own a suitable target device to test my builds out prior to their release since a while now...).

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] alvaro_L:
Good day friends, I have a Samsung S4 mini duos, GT-I9192, it has android kit kat as stock ROM, official samsung update, the problem is that with no process that I do I have been able to install the custom recovery, I tried with all The tutorials of youtube and XD forums, I tried with CWM and with TWRP and nothing, I tried it with odin and with files flashing from the stock recovery and nothing, all the installation processes the phone receives them, the odin does it, load Files, everything okay, same with the files flashing from stock recovery, the phone at the end of the installation process reboots and starts normal, but when I enter the recovery mode I realize that the same stock recovery, in the process of Enter recovery when the samsung logo appears, in the upper part there are blue letters and say "recovery booting" and enter the stock recovery, another detail, the stock recovery is in English, but under the logo of the monito Android leave the letters in Chinese ..... I make this query here because I want to install CM 13 in this samsung and then while I do not have stock recovery cwm or twrp I can do nothing, I appreciate your help, I am from Venezuela, I thought of changing the ROM stock for another country, my phone is free of bands, tell me, what can I do ???
[Galaxy S 4 Mini Android Development] fahrer17:
I'm no expert at all but to me it sounds like your TRWP is overwritten. In the CM instructions they say to reboot into recovery after having installed the custom recovery to finish the flashing - did you do that?

Look here:

http://wiki.cyanogenmod.org/w/Install_CM_for_serranoltexx#Installing_a_custom_recovery
[Galaxy S 4 Mini Android Development] alvaro_L:
Hi, thanks for your time and response, when the odin installation process ends the device automatically restarts and immediately and after that is that I am going to recover by means of volume up keys + power key + menu key, when I do the process By recovery stock I give you the option to start the phone ..... and continue the same as explained before
[Galaxy S 4 Mini Android Development] fahrer17:
Make sure your phone doesn't restart automaticly after flashing (I didn't use Odin for quite a time but isn't there a way to turn off "Restart")?
[Galaxy S 4 Mini Android Development] ne0zone75:
As i understand you completed Odin custom recovery flashing procedure successfully but did you manage to reboot straight into TWRP when your phone reboots at the end of Odin task ?

BTW, everything is explained in opening post of this thread in the 'Quick Odin HOWTO'...

It is very important to reboot straight into recovery at the end of Odin flashing process if you cannot install TWRP without doing so.

How can you flash anything from stock recovery ?!

My advice to you is to :

-> install TWRP as i suggested above if not already done...

-> if it is not working, then download the latest SAMSUNG FW for your GT-I9192 from SAMMOBILE website by selecting carefully your country and network provider : the file is an Odin ready one. Flash it to your device through Odin and reboot to Android at the end of the process (your /data partition will not be altered). Finally, flash TWRP by using Odin one more time and do not forget to reboot straight into TWRP once flashing is done.

Good luck and let us know if it helped

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] DjDiabolik:
Hey boys.... i have a little trouble whit a GT-I9195 LTE. I have tryed to flash the recovery.img after i have successfully replaced driver whit Zadig and after i have used heimdall.exe !

Reading on official CM (here -> https://wiki.cyanogenmod.org/w/Install_CM_for_serranoltexx#Installing_a_custom_recovery) i have successfully flashed the recovery.img but when i switch off the phone and tryed to access on recovery i can't see the TWRP but i can only obtain the original stock recovery and obtain so many error E:failed to mount cache... recovery etc etc.

I need to fix this phone.......... how i can do ?
[Galaxy S 4 Mini Android Development] ne0zone75:
Follow the 'QUICK ODIN HOWTO' from opening post and do not forget to straightly reboot to recovery once recovery flashing is done to install TWRP properly.

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] DjDiabolik:
I also used odin... Immediatelly at restart when phone start to vibrate i press immediately home + vol + and nothings appends:

I see ever the stock recovery whit so much error like e: fail to mount or e:can't mount etc etc..
[Galaxy S 4 Mini Android Development] ne0zone75:
It should boot to recovery if you are using the right hardware buttons combination : try with pressing and holding 'VOL. UP' only when phone begins to vibrate at the end of 'Odin' task... if it is not working try with 'VOL. UP' + 'HOME'...

Of course you will have to flash recovery through 'Odin' again after each failed attempt.

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] GioBasi:
backup/restore on AICP 12.1 and AOSP-ROM N 7.1 works ok but restored some systemUI config like status bar and power menu , lock screen and etc. 70% ok but 30% are resetting. I have not test on encryption.
[Galaxy S 4 Mini Android Development] ne0zone75:
OK and thanks for the feedback ?.

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] forziere:
I tried by odin to flash it bur it write manual mode appling multicsc--- applied the csc-code:omn

did not macth size. E: failed mount/data (invalid argument)

E:can'r mount/data/log/recovery_log.txt
[Galaxy S 4 Mini Android Development] DjDiabolik:
I have tryed so many times............ the odin flash it's ever completed whitout any error but at the restart the twrp it's never appears and i reobtain the stock recovery whit all error E: fault and E: can't mount whit various voices like "fault to mount /cache/recovery" or "can't mount /cache" and many others.

I have also tryed to flash using odin and i uncheck the auto-reboot....... when odin it's complete i have unplug from usb and removed battery. After i have press "VOL.UP" + HOME and i have put back the battery, on screen i see somethings like "start recovery" but ever the stock recovery whit ever so many errors....
[Galaxy S 4 Mini Android Development] Diresh:
Extract the recovery image from the twrp flashable zip then use flashify to replace the recovery image with the twrp image.
[Galaxy S 4 Mini Android Development] DjDiabolik:
I can't use flashify... Android fail to boot... The phone boot only in recovery..
[Galaxy S 4 Mini Android Development] Diresh:
Flash the stock firmware via odin then boot into android and root it then you will be able to use flashify to install twrp.
[Galaxy S 4 Mini Android Development] KevinX8:
one thing to note, image flashing is broken on the twrp 3.0.2-3 build just noticed yesterday when I tried to flash back my boot.img it simply tells me

"file/I/just/selected.img" directory not found

even thought it obviously exists since I selected it straight from the root of the sd. Keep up the great work everything else is working perfectly without problems apart from backup and restore for 7.x+ roms of course
[Galaxy S 4 Mini Android Development] ne0zone75:
I think that image flashing has been fixed in most recent commits...

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] gerdsousa:
Recovery mode not working "no command"

After the Recovery Booting blue text I got a "dead android" figure with a message "No command" . Already re-partition, installed stock rom, CWM and now TWRP all using Odin and there is no changes at all. Any tip or I should have someone trying with a Jig?

All started after a depleted battery overnight..... it is a brazilian version os is S4 mini Duos
[Galaxy S 4 Mini Android Development] ne0zone75:
TWRP upstream code has reached v3.0.3 ?

I will offer up to date packages ASAP...

Regards

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] ne0zone75:
TWRP v3.0.3-0 TRYOUTs for S4 mini

Hi,

You will find up to date ZIP installers ('Odin ready' files will be released later... as usual...) below... they are still built along with cm-13.0 sources and TWRP sources used are those from android-7.1 branch of OmniROM tree. TWRP version is 3.0.3 ?.

GT-I9190 | GT-I9192 | GT-I9195

Happy flashing and please report back about any issue with them,

Thanks
[Galaxy S 4 Mini Android Development] dddinu:
v3.0.2-1 restor file pers problem

Hi, I ran into the followng problem, using v3.0.2-1 : tried to restore a full backup; tried wiping everything in advance just to make sure; restored backup; system had problems writing to the /data/user_de/0/com.android.providers.telephony/databases (could not create HbpcdLookup.db) resulting in telephony system crash. Not sure if whether due to SE context or plain permissions, didnt have time to check. Deleted /data/user_de/0/com.android.providers.telephony/databases and telephony service restarted without a problem. I still have the backup, but I don't know what to check to see if backup is broken (generated with same TWRP) or restore fails.
[Galaxy S 4 Mini Android Development] ne0zone75:
I assume that your custom ROM is a NOUGAT based one... this backup / restore issue does not happen with MM and below custom ROMs and has already been reported several times...

ATM i did not document myself about it yet but it does not occur for every device so i believe that it is not a TWRP issue...

I have no idea about what is going wrong and how to fix it...

Any clarification about this bug will be greatly appreciated.

Thanks

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] dddinu:
Yeap, 7.1 FTW. I would check the file perms and SE context of the folder in the backup if I knew how to browse for them... is there a way to check these from the image files?
[Galaxy S 4 Mini Android Development] csendre:
Restoring 7.1.1 images is completely broken unfortunately.
[Galaxy S 4 Mini Android Development] ne0zone75:
Any feedback about v3.0.3-0 ?!

Thanks ?

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] arsm74:
It works OK but cannot restore completely from Android backup for nougat....Lose a lot of settings...
[Galaxy S 4 Mini Android Development] csendre:
Yes 7.1.1 restores don't work, but doesn't seem to be a TWRP issue. Restored files get deleted during boot by the ROM for some reason.

You can get RIL working again if you manually push with adb the following folders while booted into the ROM:

/data/user_de/0/com.android.providers.telephony/databases

/data/user_de/0/com.android.providers.telephony/shared_prefs

You can extract this from the TWRP data backup (just copy the backup to a PC, rename the win extension to tar and you can extract it)

Some other files are also deleted which are responsible for a few settings, but those can be easily changed back.

Thanks to [MENTION=6614989]jason972000[/MENTION] for his observations.

[MENTION=5280400]ne0zone75[/MENTION] do you have any idea what could be going on? Some of these files get deleted even when manually pushed with adb while in TWRP. Restore only becomes permanent if the files are restored when the ROM is booted.
[Galaxy S 4 Mini Android Development] rookie12:
Test build works fine
[Galaxy S 4 Mini Android Development] ne0zone75:
No, i do not have any idea about what is going wrong. IMO it is not a TWRP issue, otherwise every target device would be affected and that is not the case. I will try to gather some info. about this issue at the beginning of 2017...

Please be patient,

Thank you all
[Galaxy S 4 Mini Android Development] csendre:
Seems to be selinux. I made a build with selinux completely disabled and I have no problem restoring this build. Now I am not sure if it is permissions that we need to give in the device tree or if TWRP is not setting some file permissions properly.
[Galaxy S 4 Mini Android Development] :
[MENTION=5280400]ne0zone75[/MENTION]

I've installed the custom-twrp-3.0.3-0-serranoltexx-TRYOUT-signed.zip. I tested with a 6.0 rom as the backup/restore is still an issue on N roms AFAIK.

- Wipe/advanced wipe works

- Install rom/gapps works

- Backup rom/boot/data works

- Restore rom/boot/data works

Are you still looking for feedback for encryption? I don't normally use this feature, but let me know if you want me to test.....
[Galaxy S 4 Mini Android Development] ne0zone75:
Very interesting ? !

Tapatalked from my OnePlus3
[Galaxy S 4 Mini Android Development] ne0zone75:
Yes ! It would be really useful if you could do so...

Thanks

Tapatalked from my OnePlus3
[Galaxy S 4 Mini Android Development] :
What do you want me to test? Encrypt phone from system and see if it mounts in TWRP?
[Galaxy S 4 Mini Android Development] ne0zone75:
If you want, you can encrypt /data from system (ext4 formatted) and then launch recovery to check if it decrypts it properly... this will be a good start. After this, you can repeat the process while /data is f2fs formatted...

Thanks for your time

Tapatalked from my OnePlus3
[Galaxy S 4 Mini Android Development] :
OK, so I encrypted the phone with /data on ext4 FS. Booted into TWRP 3.0.3-0(i9195). Decrypted with no issues using the PIN security.

Then I wiped data and reformatted to f2fs(needed to reboot back to recovery to use /data, which according to the script is normal). Re-encrypted the phone, booted back to recovery and it decrypted as well, no issues.

It seems everything works and could be considered stable IMO. Let me know if there is anything else you need to test before the "stable" tag. [Edit: I guess you would want to make sure the problem with backups in nougat roms is rom-side before this anyway....]
[Galaxy S 4 Mini Android Development] ne0zone75:
Thanks a lot for your time and help ! I really appreciate this ? and yes ! i will wait a little bit before flagging latest TRYOUTs as STABLE because of the backup / restore issue with NOUGAT ROMs...

All the best

Tapatalked from my OnePlus3
[Galaxy S 4 Mini Android Development] ne0zone75:
v3.0.3-0 TRYOUTs are flagged as STABLE

I've just added v3.0.3-0 STABLE files which are the same as v3.0.3-0 TRYOUTs. They are available from post #1 in two flavors as usual : 'Odin ready' and flashable ZIPs packages.

Stay tuned about backup / restore issue of NOUGAT custom ROMs...

Happy flashing

PS : previous files are still available from downloads tab of this projet...
[Galaxy S 4 Mini Android Development] Harvey_Spectar:
Awesome work

---------- Post added at 12:23 PM ---------- Previous post was at 12:22 PM ----------

You haven't added new nougat TWRP of duos variant.

It is available on your afh Id
[Galaxy S 4 Mini Android Development] ne0zone75:
What do you mean ? New download links are available for 'Odin ready' + recovery flashable files for each supported S4 mini variant (3G/DS/LTE) in opening post...

So yes ! New download links are added for GT-I9192...

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] Harvey_Spectar:
OK

Flashed it

And thanks for your hard-work
[Galaxy S 4 Mini Android Development] ne0zone75:
You are welcome ?.

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] Denis4497:
Hello!

I would like to ask if this recovery is usable with stock ROM on GT-I9195 or if it's only for CM.

Thank you!
[Galaxy S 4 Mini Android Development] ne0zone75:
Yes ! You can use 'Odin' to install it BUT do not forget to backup your /recovery partition (stock) in order to be able to restore it if needed (without having to flash the whole stock ROM again...).

It will let you to perform a full NANDROID backup of your current ROM before starting to play with custom ROMs for example...

Cheers

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] ne0zone75:
TWRP v3.0.3-1 TRYOUTs

Hi,

Today i am offering new TRYOUTs to you (flashable ZIPs) :

-> TWRP source code is almost the same as v3.0.3-0 BUT...

-> recovery images are now built along with LineageOS' N sources (RIP CyanogenMod) and using OmniROM android-7.1 branch for busybox (vs CyanogenMod cm-13.0 branch previously...

i think that it may help about the N custom ROMs backup/restore issue and you will let me know

...)

-> all devices trees are now the ones from LineageOS' N sources (serrano3gxx/dsdd/ltexx)

-> i added NTFS support for removable storage within TWRP

-> output recovery binaries are bigger than they were while building with MM so recovery ramdisk is now compressed with LZMA (thanks [MENTION=6614989]jason972000[/MENTION])... recovery booting time may be longer than previously...

Thanks for your feedback

GT-I9190 ZIP - Odin | GT-I9192 ZIP - Odin | GT-9195 ZIP - Odin

Thanks @ TeamWin, @ OmniROM and @ LineageOS DEV teams and special thanks [MENTION=6614989]jason972000[/MENTION]

BIG ORANGE WARNING ⚠ : arco68, noppy22 and csendre, in addition to previously mentioned people do have identified an upstream ? (typo.) in my GitHub sources.

I will offer updated images ASAP.

Tschüss
[Galaxy S 4 Mini Android Development] csendre:
It booted up on the DS with no issues, will try functions later.

Guys, who has a chance to test backup/restore functions, please check if developer options and sytem profiles are restored.
[Galaxy S 4 Mini Android Development] ne0zone75:
Thanks for reporting back !

To all :

-> feature which need to be verified : backup/restore function of N custom ROMs like [MENTION=5416372]csendre[/MENTION] just said... thanks !

-> crypto. feature should work... EXFAT + NTFS filesystems should now be handled by recovery for removable storage...

Happy new year to everybody

Tapatalked from my OnePlus 3

PS : my source code will be soon available through GitHub :good: !
[Galaxy S 4 Mini Android Development] ne0zone75:
TWRP for S4 mini source code available on GitHub

Hi,

My source code is now available here :good: !

If you do have any question about how to build TWRP, please check this post out (OFFICIAL) ! Thank you ! This is where you should ask for support first !

Please note that these two commits are needed for building TWRP along with LineageOS' N sources : https://gerrit.omnirom.org/#/c/20837/ + https://gerrit.omnirom.org/#/c/20879/ (thanks [MENTION=6614989]jason972000[/MENTION] for this)

Regards
[Galaxy S 4 Mini Android Development] csendre:
[MENTION=5280400]ne0zone75[/MENTION] Many thanks for the sources! What is the difference between the flashable zip builds and Odin ones, just packing?

With regards to backup/restore, I tested this on a 9195 and it all works the same way. When restoring nandroid backups the following issues are still there:

- developer settings have to be enabled again; advanced reboot has to be enabled again (if you are using these).

- SMS messages are now restored, but only using Google's messenger app https://play.google.com/store/apps/d...apps.messaging

Those who still have telephony FC and signal loss upon restore, use a build made after Dec 30, that is when arco merged a fix for this into sources

I am told by multiple sources that loosing some settings like developer options and advanced reboot is caused by an issue in CM/LOS source code and it is being worked on. I also have confirmation that this issue affects other devices too, not just us.

Forgot to add, above is for 7.1.1 builds (tested on AOKP), older Android versions should work as before
[Galaxy S 4 Mini Android Development] ne0zone75:
Well [MENTION=5416372]csendre[/MENTION], huge thanks for all this useful informations :good: ! I can confirm that it is not only affecting S4 mini devices because i am facing a really weird backup/restore issue with official AOKP N on my OnePlus 3 and official TWRP v3.0.2-1 !

Have a nice day

PS : it would be helpful to me if someone could in depth review any of my latest TRYOUTs... thanks !

NB : 'Odin ready' files for latest TRYOUTs will be added as soon as v3.0.3-1 could be flagged as STABLE ( [MENTION=5416372]csendre[/MENTION] : yes ! it is only packaging)
[Galaxy S 4 Mini Android Development] csendre:
I have huge respect for the OP3 AOKP maintainer, very smart guy. What is strange, I never heard of the nickname of the person who opened the AOKP thread for OP3 on XDA.
[Galaxy S 4 Mini Android Development] ne0zone75:
I am downloading installers from official mirrors anyway : https://s.basketbuild.com/devs/aokp/oneplus3

;)

Tapatalked from my OnePlus 3
[Galaxy S 4 Mini Android Development] ne0zone75:
TWRP v3.0.3-1 for S4 mini TRYOUTs feedback ?!

Hi,

Any issue with latest TRYOUTs ?

Thank you for reporting back :good: !

PS : 'Odin ready' packages download links have been added to post #1280