yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Can someone please explain what the "SE Context" option is in the backup/restore settings, and what the consequences are of having this option on/off on both a 4.2x and 4.3 backup/restore please.

Restoring a MGA (4.2.2) backup over MJ5 (EchoE 4.3) lost my baseband and unknown imei, even when I flashed MGA modem back on.

I eventually got it working when I restored the MGA backup having unticked this option.

Not 100% sure if it was this that made it work, or if I just got lucky.
[Galaxy S 4 i9505 Android Development] Tassos_i:
I just did my first restore MJ5->MJ5, with SElinux ticked both during backup and restore, and it worked almost as expected. I say "almost" because, in the end, under 4.3, the recovery (5.18.5) always says that "root was possibly lost" and asks if I want it to restore. I answer "no" off course and the device reboots correctly, rooted.
[Galaxy S 4 i9505 Android Development] spevil07:
When I would like to format preload i have a fail...

I am at the last version

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Android Development] dave_p_b:
From my understanding you only need the "SE Context" ticked if you are using the new bootloader which uses SE Linux enforcing.

I don't tick mine with the old bootloader and SE Linux permissive.

I hope this is right :)
[Galaxy S 4 i9505 Android Development] Formhault:
Oh, that's a relief. Now I don't need to care about what SELinux content might even be :)

Hope you are right!

---------- Post added at 09:52 PM ---------- Previous post was at 09:50 PM ----------

I know this is a really old post but... How does "Fix permissions" cause problems?! I was advised to use it back when I was using older phones and it worked fine... Is there something that's been changed in the high-end phones now so they don't need that anymore? :eek:

Sorry to be such a pain in the a**. I'm just very curious about a lot of stuff :confused:
[Galaxy S 4 i9505 Android Development] lahceneamine:
This should make you proud :laugh:

v5.18.2

- exFAT 64 Gb (Classe 10)

- Fast Compression

- No MD5

- Progress Bar/Status/Time ON

- Backup Size 6402 Mb

=======================
[Galaxy S 4 i9505 Android Development] Phil3759:
If you put on low or medium compression, with such size it will be even faster I bet
[Galaxy S 4 i9505 Android Development] PearLRoX:
formatting /preload....

E:format_volume: make_extf4fs failed on /dev/block/mmcblk0p27

Error formatting /preload

i get this error while formatting my i9505 for flashing the new 4.3 fw..

is this something important to have a clean format ?:confused:
[Galaxy S 4 i9505 Android Development] Siwandroid:
i have the same issue this was already reported... but not fixed.
[Galaxy S 4 i9505 Android Development] serverless:
Actually the question about preload was already answered by the OP.
[Galaxy S 4 i9505 Android Development] starbucks2010:
Phill,

Why when I try to use default backup to .tar there is no option for compression?

Thank you.
[Galaxy S 4 i9505 Android Development] serverless:
That's because tar per se is an archive format without compression. To compress a tar file you need external programs like bzip, gzip, lzma, etc. I suppose it is not yet supported by the recovery. Correct me if I'm wrong.
[Galaxy S 4 i9505 Android Development] tata_brada:
You need chose tar+gzip and then compression option.
[Galaxy S 4 i9505 Android Development] starbucks2010:
Yes, I sow that If I choose tar+gzip I have the compression option. But some versions ago there was only .tar option for backups and had the compression option available.
[Galaxy S 4 i9505 Android Development] 90paolo:
i get an error every time i try to /format preload, even if i select "clean to install new rom" option.

maybe a solution has benn found yet, but i read back to page 134 and i didn't found anything.

if someone can help me, or at least pass a useful link, it will be great. thank you.
[Galaxy S 4 i9505 Android Development] Bejda:
The thing is, as Philz said after page 134 ;), that /preload partition is not used on i9505.

So dunno..maybe it's broken or whatever on i9505 version but it's useless anyway.
[Galaxy S 4 i9505 Android Development] 90paolo:
surely i've read too fast and i missed it.

anyway, you saved my day. thank you! :)
[Galaxy S 4 i9505 Android Development] Formhault:
So... The /preload partition does not exist on the I9505 and Phil forgot to remove it from the recovery?

Sent from hyperspace
[Galaxy S 4 i9505 Android Development] v0dKa.mL:
I have now the newest version installed but I the time settings won't work. I can't set the correct time :(

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Android Development] garf02:
The preload partition exist in the fw and it's named hidden.img
[Galaxy S 4 i9505 Android Development] Formhault:
And serves as...?

Sent from hyperspace
[Galaxy S 4 i9505 Android Development] garf02:
install the default programs based on the region of the firmware and every time you do a wipe data, are reinstalled on the next boot.

Example: in MJ5-DBT install this apps every time you do a wipe data: News App, MyTaxi NTV Widget and many others that I do not remember

to avoid the automatic reinstallation is necessary to delete the file from the rom: PreloadInstaller.apk
[Galaxy S 4 i9505 Android Development] aeroman:
@Phil3759

buy yourself please some beer or donuts. ;)

(7C8473636Y417215T Donation)

and keep up the good work. :good:

Regards
[Galaxy S 4 i9505 Android Development] koko115:
Why on stock 4.3 and stock kernel when i restore buckup i have allapp fc, and only wipe help.
[Galaxy S 4 i9505 Android Development] Tanis64:
Backup was also made under Stock 4.3?

Gesendet von meinem GT-I9505 mit Tapatalk 2
[Galaxy S 4 i9505 Android Development] Phil3759:
Big thanks for your generosity
[Galaxy S 4 i9505 Android Development] Phil3759:
Enable selinux context backup
[Galaxy S 4 i9505 Android Development] koko115:
Sorry, but how do this ?
[Galaxy S 4 i9505 Android Development] sarbe:
It's a setting in recovery.
[Galaxy S 4 i9505 Android Development] koko115:
Ok, i found this. And other quastion, when i exit recovery, recovery always please me to root device, how turn off this ?

Small donate for phil.. Verry thx 19L91764A1266282H

Sorry for English
[Galaxy S 4 i9505 Android Development] mattiadj:
I have noticed that this recovery is very slow to manage compared to s3 version. How is possible?

From universe with my gs4 snapdragon powered!
[Galaxy S 4 i9505 Android Development] daniello8:
s**t .. 18.5 tells me that there are no files in my OBackup backup directory. Anything that can be done about this?

edit: don't know what happend .. now it works .. crazy stuff ;)
[Galaxy S 4 i9505 Android Development] dave_p_b:
Hi Philz

After doing a Factory/Data reset and upgrading to Android 4.3 (Omega v13.2) Philz recovery no longer displays the correct time. Time has been ok up until me upgrading to new rom. Everything else works fine.

On a positive note, I can now backup 4.27GB with Fast compression and MD5 checksum enabled in 6.47 minutes (repeated test a few times) :)

Backup is a lot faster then it was using Android 4.2.2. Haven't tried restoring backup yet.
[Galaxy S 4 i9505 Android Development] jisharka:
You may lost root, do you want to fix it - Message

Hi Philz,

After flashing the recovery, When exit from recovery, recovery always asking "you may lost root, do you want to fix it" May I know the reason of this? Do I have to select "Yes" always or no?
[Galaxy S 4 i9505 Android Development] kieeps:
Seems like alot of people solved the time issue by reseting the CMOS, it takes alot of time though, you need to pull the battery for like 12h. Also seen some talk about a kernel that seems to fix the issue.
[Galaxy S 4 i9505 Android Development] dave_p_b:
It's strange, I originally fixed the time issue by flashing the kernel included in the MIUI I9505 port.

It's come back though after upgrading Android 4.3 lol :confused:
[Galaxy S 4 i9505 Android Development] jantonio23:
Is it normal that I'm taking 22-25min just to finish one nandroid backup?
[Galaxy S 4 i9505 Android Development] ph3n0mII:
13.2 is running sweet as pie, i dirty flashed :cowboy:

only issue for me is that in ausdim kernel manager the options disappeared, was working fine after 13.2 update, just today it noticed the options missing.

Apparrently it thinks i don't have su?

if i click on install supersu it takes me to the app in the play store which is instaled and tested working by several apps

Also, is there an option built-in somewhere to change notification led settings? i could have sworn i seen it somewhere once
[Galaxy S 4 i9505 Android Development] dave_p_b:
Think you're in the wrong thread. This is the Philz recovery thread ;)
[Galaxy S 4 i9505 Android Development] ph3n0mII:
Apologies.

I guess i pulled the old 'too may tabs open' trick :eek:

While i'm here then, is there any plans to eventually enable the feature to mount usb for this device so i can connect via UMS to PC in recovery?

In the mean time, USB OTG support is awesome :good::good::good:
[Galaxy S 4 i9505 Android Development] dave_p_b:
lol

I think Android changed something in versions 4.2.2 and up. Not sure anyone has found a way to mount USB (internal) from recovery yet. Not sure if it's even possible.

For your SU problem. Maybe flash UPDATE-SuperSU-v1.65.zip from Philz recovery. It may solve it. I have never had this SU problem though. The file is provided by chainfire (the maker of SuperSU)

:)
[Galaxy S 4 i9505 Android Development] cdzo72:
Don't think it will ever be possible because the internal memory chip is shared by everything since the S3 (ROM and RAM) so only that can be mounted in recovery or from Android as mass storage will be the external SD...

Correct me if I'm wrong guys
[Galaxy S 4 i9505 Android Development] *SanSiro*:
Always select "No".

:cool:
[Galaxy S 4 i9505 Android Development] andreasy:
The question is for fix su. On the other hand I always select yes but it doesn't seem to do anything. On next run it asks me again.
[Galaxy S 4 i9505 Android Development] PLUG313:
is it safe to format internal SD with this recovery?

or will it delete important folders like the EFS folder and stuff?

because I have a lot of leftover files and folders from previous roms and I'd like to clean it up and install a new rom
[Galaxy S 4 i9505 Android Development] cdzo72:
What you'll be formatting is internal SD storage... so if you have any files or folders in storage they will ALL be wiped... this DOES NOT include the system files... so you should backup those files you want to keep to an external source and then copy them back over...

Correct me if I'm wrong guys
[Galaxy S 4 i9505 Android Development] timberwolf60:
Not to do it this way. Factory reset the only choice and save.
[Galaxy S 4 i9505 Android Development] esanchesl:
I just can´t enter Philz Recovery. My cell phone shows some lines of text on top of screen and then turns off.

I updated to Android 4.3 yesterday, rooted today but no way to make Philz work properly.

Thanks for any wealcome help.

---------- Post added at 11:05 AM ---------- Previous post was at 11:04 AM ----------

:confused:I just can´t enter Philz Recovery. My cell phone shows some lines of text on top of screen and then turns off.

I updated to Android 4.3 yesterday, rooted today but no way to make Philz work properly.

Thanks for any wealcome help.
[Galaxy S 4 i9505 Android Development] franzyroy:
Turn off your phone.

Restart it

When it vibrate, push volume up button

Without releasing the button, wait it display the Philz recovery

You could release the button after
[Galaxy S 4 i9505 Android Development] esanchesl:
It worked.

Feeling like a noob here (what I really am.. LOL)

Thanks for helping...:good:
[Galaxy S 4 i9505 Android Development] andymihail:
After trying the first versions of this recovery and got slow backups, after using TWRP for a while, I can say the last version of this recovery is awesome. Good backup speed. Thanks Phil.
[Galaxy S 4 i9505 Android Development] David78130:
Hi all, sorry for that noobish question but I can't find option to set compression.. :banghead:

From my Galaxy S4 tuned with CM10.2/Ktoonsez kernel & Philz touch recovery.
[Galaxy S 4 i9505 Android Development] jantonio23:
iirc.. You can setup it inside the backup option
[Galaxy S 4 i9505 Android Development] David78130:
928Mo in 1min35 fast compression :)

From my Galaxy S4 tuned with CM10.2/Ktoonsez kernel & Philz touch recovery.
[Galaxy S 4 i9505 Android Development] Phil3759:
Great, thank you a lot. I will release the new version soon

no, it should work for fat or exfat as backup file is split to avoid exceeding fat32 limit

Post a log to get support

The error is just a logging. Only backup size estimation will be a bit erroneous, but only by 16Mb of +4Gb data, so not an issue at all

I will fix it, but have to debug the more serious issue corrupting the printed text
[Galaxy S 4 i9505 Android Development] SunSide:
Hi,i had problems too.Spent hours to get this adb working :mad:

I downloaded the sdk bundle from here: http://developer.android.com/sdk/index.html

There is somewhere a button to update the tool,Then the tool should download files from 4.2.2.Try it,i get it working with this,Maybe there is another way to get adb working with 4.2.2.,but that i dont know.

I cant remember exactly what i did,but it works now :D

PS:USB debugging has to be allowed by the phone,so let the screen on so you can see this message ;)
[Galaxy S 4 i9505 Android Development] Uhu911:
The problem is: Every process accessing the external SD card results in a crash (no output on the screen) but I cannot do anything anymore. I have to remove the battery and reboot.

When I want to create a log it tells me it is saved in /sdcard/clockworkmod but nothing is there.

EDIT: I managed to flash the 5.04.01 but now it wont boot into recovery anymore
[Galaxy S 4 i9505 Android Development] Phil3759:
5.04.1

http://d-h.st/users/philz_touch/?fld_id=16685#files

Please, start a backup, as soon as you see the error message, cancel it with back button (no need to waste your time waiting for full backup)

Create the log (Advanced / Report Error) and post it here

This version should trace the affected object changes. However, I also fixed some code to hopefully fix the corrupted printed text.

Hopefully, it fixes the bad bug so that I can fix the recovery and boot size checks

Waiting for a feedback
[Galaxy S 4 i9505 Android Development] Uhu911:
Do you have an odin flashable file because I cannot boot into recovery anymore since I installed the 5.04.01
[Galaxy S 4 i9505 Android Development] Phil3759:
flash the 5.03.7 tar and stick with it until you fix your sdcard issues

Try to format your external sd correctly in a pc, primary partition and default block sizes

maybe switch to exFAT since you are on fat32
[Galaxy S 4 i9505 Android Development] Uhu911:
Flashed 03.7

Reformatted in ExFat

Copying all files to SD again. Will get back when done =)
[Galaxy S 4 i9505 Android Development] Phil3759:
After that, if you or someone else can test 5.04.1 for the corrupted text backup issue, it will be great

- you can cancel the backup after error message on recovery and boot to not wait for all backup to finish

- post a log
[Galaxy S 4 i9505 Android Development] SunSide:
Ok,here is a log,i hope this helps.Dont look at the time,i have not set it up correct yet .
[Galaxy S 4 i9505 Android Development] Phil3759:
Many thanks for the log, and also for your generous donation :good:
[Galaxy S 4 i9505 Android Development] SunSide:
Thanks for your thanks ;)

Every donation whats going to your adress is on the right place.

I think we "normal users" can not imagine how many hours of work,day and night you have wasted to get your recovery working on this S4.It seems at this device nothing is "easy" :D
[Galaxy S 4 i9505 Android Development] Phil3759:
Yes, getting so sick that I am tempted to buy one...

This is sick. The bug is there, and seems on my first strcat, despite everything was initialized correctly

I am compiling a new version with more debugging around the part identified by your first log. Let's see what's going on there

I also modified a small part to force a real non empty initialization

If it fails, it means there is some memory leaking/overloading some part, and that would be really bad

Maybe not my recovery issue as it is not reproducible on any other device, on local tests and on mine

Maybe some issue with i9505

Anyway, before speculating such things, let's see the next log. Compiling right now. Should be done in a few minutes
[Galaxy S 4 i9505 Android Development] Uhu911:
I am not able to get the SD card to work:

It cannot be mounted although it is working in Android and on the PC. I attached a log and a screenshot =I (just rename the pdf)
[Galaxy S 4 i9505 Android Development] Uhu911:
And the log from the backup using the .4.1 version.

Just rename
[Galaxy S 4 i9505 Android Development] Phil3759:
Can you try with Chenglu recovery?

http://xdaforums.com/showthread.php?t=2279579

Try the latest version from him

If it fixes your issue, please post here so that I revert back exfat modules to using the ones from main system
[Galaxy S 4 i9505 Android Development] Phil3759:
Here's another debugging version 5.04.2

http://d-h.st/users/philz_touch/?fld_id=16685#files

Big thanks for your patience and support
[Galaxy S 4 i9505 Android Development] SunSide:
I tried to flash a modem a few minutes ago,the flash seems ok,no error was shown in recovery.But in settingsmenu of the phone the modem did not change.Other users had that too :-/

Edit:A log attached from latest version.
[Galaxy S 4 i9505 Android Development] btemtd:
Which error are you asking us to test? THe one that says cannot find boot and recovery partition size and cannot find Sd-card /android.secure << something like this not sure 100% I forgot.

I see this when I press backup, but backup continues

Off topic:

Hey phill remember Chainfires original CWM when you do a backup it actually backs it up as one whole ZIP file. Can you make a Zip format backup ? The original nandroid was the best. One click gives you an ENTIRE CLONE of your system Data, settings EVERYTHING.. In one zip file, i remember that was the only reason i kept reverting back to chainfires original cwm. this will make you receovery perfect if you make this option
[Galaxy S 4 i9505 Android Development] damador:
Split format is a way better. You can make a backup that have only modified files not copy whole cloned data.

Sent from stolen Iphone 27,3 using mind control boomstick
[Galaxy S 4 i9505 Android Development] Phil3759:
It is non sense

zip cannot hold file permissions, unlike tar

So, only solution is to tar then zip whole folder so you get one zip

I see no usefulness of this except loosing a lot of time zipping 4 Gb data on a phone and slow sdcard
[Galaxy S 4 i9505 Android Development] nunosilva10:
guys I have an efs.tar file how do i restore it?
[Galaxy S 4 i9505 Android Development] z-vet:
Hi Phil, just wanted you to know that the time is wrong again, now it just ignores DST on/off setting.
[Galaxy S 4 i9505 Android Development] franzyroy:
You should be able to do it with ODIN. But, why would you restore it? You lost it? Did it change?
[Galaxy S 4 i9505 Android Development] Captainbligh:
Well, I created a full backup and now I restored it and nothing works.

I am running Android 4.3 running on my i9505 and every app throws an error "unfortunately XXX shas stopped"

I've restored 3 times so far and the same.

This thing isn't reliable anymore?
[Galaxy S 4 i9505 Android Development] franzyroy:
Your backup is a less than Android 4.3 version? Do you believe that you've put the new bootloader? May be the reason why it doesn't work!

Personally, I was on an Echoe rom (Android 4.3), I'd made a backup to my Touchwizz under Android 4.2.2 before, I've restored it and all works fine!
[Galaxy S 4 i9505 Android Development] Captainbligh:
I was on 4.3 which worked fine, made a backup out of it, and an hour later I just needed to restore the very same back up of 4.3 ... and nothing worked. All failed, phone froze, touch was irresponsive, full of pop up errors, etc.

Now, the very same erroneous backup based on 4.3 which I am now using, the only way I could save it was by factory resetting it and cleaning cache through CWM. But of course... all was lost.

So, my question is, how would it be reliable now to make a backup?
[Galaxy S 4 i9505 Android Development] franzyroy:
Had you done all wipes before restoring?

---------- Post added at 11:30 PM ---------- Previous post was at 11:28 PM ----------

Otherwise, you can make a backup of the rom first ... then make a backup of all your data with Titanium Backup.
[Galaxy S 4 i9505 Android Development] Captainbligh:
I didn't do any wipes before restoring the first times, as I thought restoring an old version of the previous state of the rom, would be like applying an old created mirror image?

But subsequently to that, I was forced to wipe the messed up rom, and tried a couple of times again restoring the old backup over the wiped version, giving the same bad results.

I suppose all the data is corrupted? So, Titanium maybe can't help me here. And a Titanium backup, you mean from Android? I can't do anything with that rom, it crashes.

Thanks (:
[Galaxy S 4 i9505 Android Development] nunosilva10:
my efs folder is empty and can't mount it, when i try with odin it gives me a error ...

It went empty when i flashed the new modem for 4.3.

Maybe i need to get back to old modem and flash it on odin but dunno if tha'ts the problems :(
[Galaxy S 4 i9505 Android Development] franzyroy:
Even when you do a restore (no matter where it comes from), you have to at least wipes Cache & Dalvik Cache. Titanium you do with Android, of course, but then if you can not. You have no choice, you must do all the wipes.

Finally, if I was telling you more for the next, what would be good to do. This is how I do it. When I have a problem, I reinstall my rom with all wipes, then I restore my backup that I made with TB.

Of course, you should think to make backups occasionally! ;)

Is that your phone is Rooted?
[Galaxy S 4 i9505 Android Development] jantonio23:
any tips how to fasten the backup time? it takes me about 20-25min for 1 backup..
[Galaxy S 4 i9505 Android Development] nunosilva10:
yes it is. My phone data , and connection only works with XXUEMJ5 modem, with the XXUEMJ7 doesn't work for example can't receive calls and send sms...
[Galaxy S 4 i9505 Android Development] franzyroy:
What to do with your EFS folder in this case? You lost it?
[Galaxy S 4 i9505 Android Development] timberwolf60:
Reflashed the same rom to see what happen. On S3 if lashed the India rom. Everything worked then I flashed my country modem ended with loss of imei. No phone and data but wife still worked. Then I flashed back the India modem and phone, wifi all worked.
[Galaxy S 4 i9505 Android Development] nunosilva10:
The phone efs folder is empty the backup one is ok but can't restore it, it's in a tar file.

i tryed with odin putting the efs folder on pda but odin crashes.
[Galaxy S 4 i9505 Android Development] franzyroy:
Is that in your tar file, you have a efs.img file?

If yes, extract it

Put it on your internal SD card

and type this in a Terminal

su
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p10
[Galaxy S 4 i9505 Android Development] Phil3759:
[MENTION=2875350]franzyroy[/MENTION]

Do not advice such things when you did not test, mainly on efs!

Did you ever see odin flashing efs?

[MENTION=3203083]nunosilva10[/MENTION]

Use advanced restore function from my recovery to restore either tar or img version if it was made with my recovery

If it is an img made with other programs, you can still restore it using mine in most cases
[Galaxy S 4 i9505 Android Development] franzyroy:
Who told you that I haven't tested? There, that's not me but I did it.

For the second, I think that's possible but this, I didn't test it!

Thanks to learn me you've that in your recovery... when my phone will come back of SAV, I'll put again your recovery.
[Galaxy S 4 i9505 Android Development] Phil3759:
you cannot use odin to flash efs

I do not know any third party efs backup tool making img into tar