yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] Strephon Alkhalikoi:
[MENTION=1936194]mjrider[/MENTION]: You assume the key must be stored somewhere on the device. I don't think it will be, as that would make it far too easy to bypass the encryption, which is not what Google wants. More than likely the cipher is generated dynamically whenever the adopted storage is accessed. This means the cipher would be generated on the fly and not stored anywhere.

The entire problem isn't that Google is "mad" about anything, nor that the setup is all "broken". Google isn't, and the setup isn't. But the reality here is that Google is making a huge push to secure Android, and the encryption is one way to accomplish that goal. To them, problems that the encryption causes with TWRP are inconsequential to the primary goal of securing Android. In time, and I'm not the only one who is seeing this, the Nexus devices will be the only devices that can be unlocked. This is only the beginning.

As I mentioned before, I'd like to see TWRP be usable on adopted storage, because adoptable storage has benefits. I don't expect it to happen though because of the technical hurdles involved in making it happen, most notably getting information about the cipher, such as how large it is, how it's generated, whether it's generated on every access, and so on.

[MENTION=6224324]ralfbergs[/MENTION]: As I said to mjrider above, and I'm only speculating here, the cipher is generated on the fly by the system per access, and thus there is no decryption key stored on the device. Perhaps I'm giving Google too much credit, and perhaps they did put a key on the device. But I would like to think Google engineers are smart enough not to leave the codebook to their Enigma machine laying around where one of us could find it.
[Galaxy S 4 i9505 Original Android Development] ralfbergs:
Your use of "cipher" is wrong here. You want to use the term "decryption key."

So what? Deriving a decryption key from a passphrase is a common thing to do. Why not here? Why can not the OS and the recovery share this mechanism?

Please don't forget that some (many? Most?) devices handle FOTA updates the same way as we here in CM: An update package is downloaded, the phone boots into (stock!) recovery, reads the update package, and applies it to the existing OS in /system.

But where's the FOTA package? Is it not on /data? How can the stock recovery read it from there without being able to decrypt this FS?

Regards,

Ralf
[Galaxy S 4 i9505 Original Android Development] Shisma:
Logcat after Bluetooth activation.

Good luck!! Buona fortuna!!
[Galaxy S 4 i9505 Original Android Development] FernBch:
For those struggling with understanding the encryption.

The sdcard is encrypted when converted to internal storage.

That process is handled by the OS. In this case MM, not TWRP.

The encryption key is therefore also handled by the OS, not TWRP.

Since TWRP did not encrypt and handle the process it cannot decrypt and read the extsd card.

The chances of a recovery ever being able to do that are pretty much zero. That is part of the new security features of MM.

That is one reason why so many said you can opt to format it as internal storage - at a cost.

If you have done it there's one way out. Format.

If you haven't done it, think long and hard about what you are and are not willing to give up.
[Galaxy S 4 i9505 Original Android Development] dantexaiver:
jfltecan support?

HI Guys

Thanks for the great work my wife moved from her iphone 4 to the Galaxy S4 loaned to her by a friend i had to flash the bootloader and installed based from the Sgh-M919 build to get it to work with her jfltecan shes on CM11 will i have any issues flashing this latest rom onto the phone? What do i need to know in regards to twrp , bootloaders and gapp support for the jfltecan?
[Galaxy S 4 i9505 Original Android Development] Strephon Alkhalikoi:
I did in fact use "cipher" when I should have used "key" or "decryption key". I concede that point. However, the misuse of the term does not invalidate the overall point, that getting TWRP to function on adopted storage is virtually impossible. Unless you have something new to add, I think we can conclude this debate.

You asked where the FOTA package is stored after download and while being installed from recovery. I don't know exactly where Google throws the FOTA, but if the FOTA is anything like what I had to do for a ROM I maintained on my old device, it's in a temporary partition set up for the purpose. My old device would copy files to a temp partition I set up for the purpose in the script. From there it would install files into the appropriate directories. That temp partition would be deleted upon completion of the task.
[Galaxy S 4 i9505 Original Android Development] J. C. Maxwell:
I'm hoping someone can confirm that it's just me and my phone with this issue. I have a t-mobile sgh-m919 (with the newest 12/24/15 build).

1. Bluetooth works great.

2. Play store works great

3. I can read/write to micro SD (still uses hex name)

My issue is that I cannot connect to 5GHz WiFi. I see "WiFi Connection Error" instead of "Connected". I can connect great with my 2.4GHz band (although it is much slower than on other devices).

Can anyone else confirm that they are able to connect to both their 2.4 & 5GHz bands on their wireless router?
[Galaxy S 4 i9505 Original Android Development] Strephon Alkhalikoi:
WiFi Analyzer shows no problems here. It sees both frequencies and connects to 5GHz. Does this happen on every ROM?
[Galaxy S 4 i9505 Original Android Development] J. C. Maxwell:
Not sure if it happens on any other ROMs. I haven't turned on the device for about a year, and I don't remember it not working on stock.

Wifi analyzer shows great signal for both bands.

It just can't connect. Keyboard gesture typing doesnt work, either.

On my Note 4, running RAPTURE 8.2, i can connect to 5GHz just fine.
[Galaxy S 4 i9505 Original Android Development] HITMAN-CREED:
JDC Team AOSP 6.0.1 (2015/12/24)

Go to This Post.
[Galaxy S 4 i9505 Original Android Development] Strephon Alkhalikoi:
Update your modem and see if that helps. Also check your router, just to be on the safe side. Feel free to install another ROM if needed.
[Galaxy S 4 i9505 Original Android Development] J. C. Maxwell:
Thanks for the fast reply. I'll be sticking with this ROM. I don't mind the hiccups :)

My router seems to be fine. I'm connecting to 5GHz with both my Note 4 (910T running RAPTURE 8.2) and my Note 10.1 (N8013 running CM 13.0).

It's odd, before I flashed this ROM, my S4 device (SGH-M919) was on baseband UVUFOK3. I just checked and now it's on UVUFNB4.

Anyways, I'll try flashing the UVUFOK3 (found here) tomorrow. Unless I can find a newer version than this.

Question: Can flashing this ROM change the baseband?
[Galaxy S 4 i9505 Original Android Development] smeroni68:
Rom do not have any capabilities to change modem.

You wrote that your phone was for a year unused? If this is true, how can it have a modem firmware updated to latest?

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] ralfbergs:
This conclusion is invalid.

Every piece of software that knows the algorithms involved plus the protecting passphrase can decrypt it. "Encryption" is not magic, but pure mathematics.

As Strephon already said in a different post, we seem to be turning in circles, and just repeating one's arguments will not lead to any progress, but just annoy people here in this thread. This is why this will be my last post on this topic until I have managed to find a more authoritative resource on the web or talked to someone who was involved in the design and implementation of that feature.

Happy New Year to all!
[Galaxy S 4 i9505 Original Android Development] smeroni68:
Happy new year to you!

But if you search skilled people regarding Twrp features in a aosp rom thread, probably is not the right place.

Ciao.

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] J. C. Maxwell:
Thanks for the reply. When I turned it on last week, I did all the software updates before flashing this ROM.

I checked the baseband before I flashed this ROM, to see if I was in the latest, and I'm sure it was UVUFOK3.

Oh, I just remembered. When I was encrypting it, the phone became stuck. I downloaded "stock" firmware. It probably had the older baseband included.
[Galaxy S 4 i9505 Original Android Development] Blasito777:
Hey, just wondering if you had any luck with the UVUFOK3 baseband update? Thanks
[Galaxy S 4 i9505 Original Android Development] elv1503:
IR blaster not working for me. Tried both options in JDC Toolbox. Very good rom otherwise. Thanks.
[Galaxy S 4 i9505 Original Android Development] smeroni68:
IR is working... it's depending on app you use. On smart remote you need to change the flag Use alternate ir command...

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] flroots:
When flashing AOSP-6.0-20151224-jfltegsm.zip after wiping cache, data, system, and Dalvik, I can't get BT working. When attempting to enable it, the WiFi status switches from Connected to Saved. I have read that others solved the issue by repeatably installing the ROM. My question is should I do the Wipe prior to each successive flash or not?
[Galaxy S 4 i9505 Original Android Development] smeroni68:
No... just flash over...

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] flroots:
Thanks, I'll do it.

Update: took 3 tries, but on the 3rd try I was able to turn on BT and maintain my WiFi connection. I did have to toggle Airplane mode to get LTE. It seems very very strange that this should be necessary to get BT working. Can anyone offer an explanation as to why it took 3 tries to get it working. Note: I simply reflashed the ROM without any wipes between flashes.
[Galaxy S 4 i9505 Original Android Development] smeroni68:
[MENTION=535343]all[/MENTION]... we decided yesterday to avoid the release of the gsm and cdma updated roms... sorry!

But there is a good reason...

We are flashing right now the re-unified version JFLTE!

Give use some rest for 2 days... and we will be back unified...

A big thanks to our devs that fixed most of bugs and introduced back the unification on jflte...

Enjoy this end of the year!

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] Rhoban:
I didn't even know there was supposed to be a new update this week xD

Happy new year.
[Galaxy S 4 i9505 Original Android Development] smeroni68:
If we knew why, probably it will disappear because fixed... unfortunately it still happen. I solved by wiping internal sd... but not sure if just a coincidence (maybe).

Anyway glad you solved.

Inviato dal mio GT-I9505
[Galaxy S 4 i9505 Original Android Development] dantexaiver:
HI Guys

Thanks for the great work my wife moved from her iphone 4 to the Galaxy S4 loaned to her by a friend i had to flash the bootloader and installed based from the Sgh-M919 build to get it to work with her jfltecan shes on CM11 will i have any issues flashing this latest rom onto the phone? What do i need to know in regards to twrp , bootloaders and gapp support for the jfltecan?
[Galaxy S 4 i9505 Original Android Development] s3icc0:
great work guys again ... just switched form your CM ROM to this AOSP and the fluency and speed is awesome ... 1st time I am running all key settings stock :)

happy new year
[Galaxy S 4 i9505 Original Android Development] flroots:
Thanks for your help. After getting the ROM to work I had difficulty getting open_gapps-arm-6.0-micro-20151225.zip flashed properly. It kept giving my 'Unfortunately setup wizard stopped' error on boot up. Finally solved it by going back into TWRP, doing a Factory Reset and reboot.
[Galaxy S 4 i9505 Original Android Development] ro-mann:
The old Gallery App is missing in the new version, isn't it?
[Galaxy S 4 i9505 Original Android Development] smilingcruel:
I tried to flash just modem but not successful... Odin is always stuck at nand write and it stays there for few mins and then it will say failed....tried diff Odin versions, USB cables, USB ports....

Device is SGH-M919 , rooted with custom ROM cm12.1

I don't want to revert to full stock just to update baseband...last time I did that and its time consuming process....anyway I can just update baseband without going through lengthy process?
[Galaxy S 4 i9505 Original Android Development] MarcelRobinson:
My sim doesn't work with this, any tips it shows no sim inserted
[Galaxy S 4 i9505 Original Android Development] thaidroid:
Install latest modem, I use HOJ4 on I9505 and absolutely everything (that I use ;))works.

---------- Post added at 10:18 AM ---------- Previous post was at 09:45 AM ----------

When I install this version of Gapps on I9505 I get an update the uptate is OK and the apps are optimizied but when I try to install

The dialer below it says that my device is not compatible. With Open gapps nano I have no such problem.

So I guess it's between Optimized Google Play Services or favorite dialer

When I have Open gapps nano the google store below say that the app is compatible with:

CAT CDMA Samsung GT-I9505(and thats strange since my phone is GSM, but the dialer works)

With 6.0.1 minimal it shows as incompatible with all devices.

FIXED by first installing A-Gapps and then manually installing (copy/Paste) dialer apk and setting permissions. now I have Services optimized and 2.3.12 dialer working.

If you have location enabled you can search in the dialer for the nearest pizza place etc. I got a choice of four that I could call:laugh::laugh:

---------- Post added at 11:07 AM ---------- Previous post was at 10:18 AM ----------

[/COLOR]The new google phone app is up in the appstore

https://play.google.com/store/apps/details?id=com.google.android.dialer&hl=en
[Galaxy S 4 i9505 Original Android Development] abzjji:
Just installed an App called Phone Info and notice that a lot of field related to CSC and PDA are emtpy. Is this any reason concern or is this normal?
[Galaxy S 4 i9505 Original Android Development] smeroni68:
PDA/CSC are tipical from stock roms. When you flash a custom rom they are obviously empty.

Inviato dal mio GT-I9505 su OptimizedCM 12.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] nabajit.white:
Using this ROM for a week almost. Blazing fast :D . No issues till now :fingers-crossed:

Thanks mate :victory:
[Galaxy S 4 i9505 Original Android Development] tonioricciato:
Thanks for the tip.

I installed the Rom this morning after a full wipe and the thing I noticed immediately at the first boot is the absence of the setup wizard for the configuration of the phone. Bluetooth works without problems (In four previous installations with different gapps Bluetooth has never worked on the first try). I'm testing battery duration. The gapps are based on the Slim-gapps zero.

Happy New Year guys and thanks for your work.
[Galaxy S 4 i9505 Original Android Development] Johan1976:
Been very stable so far. Bluetooth a2dp finally works in my car (didnt with stock 5.0.1). Have some weird issues with phonecalls. I cannot wake up the screen during call so cannot end call, turn on speaker etc. I just hope the other end hangs up. As soon as call has ended its responsive again and screen wakes up. A bit annoying. Annyone else experienced this? Trying new google dialer to see if there are any difference.

Skickat från min GT-I9505 via Tapatalk
[Galaxy S 4 i9505 Original Android Development] markiarom:
If i launch driver speedboat paradisee it suddently crash before first test race.. On CM 12.1 i've no problem. Plus (same on CM) chromecast remote display api doesn't seem to work
[Galaxy S 4 i9505 Original Android Development] mico.barac:
I have a problem with huge battery drain, caused by Miscellaneous process.
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Sounds like a proximity sensor issue, is it working for you on other ROMs?

This is not CM nor Lollipop. Any log from that? We must see if it's a ROM issue or the app itself is crashing, I believe the latter.

Just ignore that, it's a wrong report by Android.

Inviato dal mio LG-H815
[Galaxy S 4 i9505 Original Android Development] markiarom:
Understood, i'll try to log. Can you help me to do this? Which app can i use?

Plus, i flashed this ROM expecially to solve CM bug with chromecast remote display api, after i read aosp ROM didn't have this problem, but i tried google photo and risk big screen and both cast black screen.. Have you any idea?
[Galaxy S 4 i9505 Original Android Development] MatteoB92:
You can use Catlog, Syslog or any other logcat application

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Original Android Development] Johan1976:
It works in stock rom. If i press power button twice (not too fast) I get back to lock screen and can get back to phonecontrol through activephone card. It never works on first press.

Skickat från min GT-I9505 via Tapatalk
[Galaxy S 4 i9505 Original Android Development] FernBch:
I have a question for the CDMA crowd. If you are on Verizon, Sprint, or US Cellular ONLY please send me a PM.

Remember Verizon, Sprint, or US Cellular users only!
[Galaxy S 4 i9505 Original Android Development] virvirko:
Can you share which launcher you use and where we can get marshmallow tw icons? Thanks in advance...

And of course. .. happy new year

Послато са SM-G903F уз помоћ Тапатока
[Galaxy S 4 i9505 Original Android Development] smeroni68:
Guys, we need someone to test with CDMA phone the unified build...

Please, if someone is interested, can PM [MENTION=2026117]FernBch[/MENTION]... we will check and organize.

Thanks

GT-I9505 su AOSP 6.0.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] markiarom:
Logged and saved on .txt attached file. Thanks to who'll help me
[Galaxy S 4 i9505 Original Android Development] Duck4Cover:
+1 yes please i cannot find it anywhere in layers etc.
[Galaxy S 4 i9505 Original Android Development] HITMAN-CREED:
Go to This Post.
[Galaxy S 4 i9505 Original Android Development] virvirko:
[emoji122]

Послато са SM-G903F уз помоћ Тапатока

---------- Post added at 09:33 PM ---------- Previous post was at 09:31 PM ----------

6. Please share

Послато са SM-G903F уз помоћ Тапатока
[Galaxy S 4 i9505 Original Android Development] Johan1976:
Tried sensors test. https://play.google.com/store/apps/details?id=asd.vector.sensor

Not sure what to expect. It can only detect near and far. When starting it detects "far". Putting hand over it detects "near". What is a bit strange is that when i remove hand it still is "near". It never goes back to "far". If I restart the test its "far" again. Is this normal?

Skickat från min GT-I9505 via Tapatalk
[Galaxy S 4 i9505 Original Android Development] smeroni68:
No, you have a problem... normally is dust under the glass close to sensor.

GT-I9505 su AOSP 6.0.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] Johan1976:
Anything I can do?

Skickat från min GT-I9505 via Tapatalk
[Galaxy S 4 i9505 Original Android Development] portaleus:
Using a straw, blow some air through the speaker, next to the sensor (it's not a joke). If it does not work, method number two (risky) is to strip down and then reassemble.
[Galaxy S 4 i9505 Original Android Development] bunu:
Last night, I opened up snapchat and the screen turned hot pink and stayed like that. I turned the phone off and turned it back on but then I had the BSOD. Luckily I was able to get my phone working again just by flashing the ROM and gapps without wiping everything. It would have been terrible to have a non working phone during a New Year's Party.

Anyone else got the BSOD? I couldn't get a log since I was at a party
[Galaxy S 4 i9505 Original Android Development] smeroni68:
The best thing is to clean the dust, but you need to open the phone for that.

Some has blow compressed air into hear plug... anyway you can search around xda for instructions on how to do.

I changed myself the display, and i can assure you that opening and closing our S4 is really easy... is a well done design.

GT-I9505 su AOSP 6.0.1 (JDC)
[Galaxy S 4 i9505 Original Android Development] HITMAN-CREED:
Galaxy S6 Marshmallow Theme v1.0

Here is the Latest Rom with:

Xposed

Gravity Box Module

Bright Lockscreen Module

Zooper Widget Pro

Galaxy Launcher with S6 Marshmallow Icons

It's AOSP and

Fast & Smooth

and Also You Won't miss

Touchwiz Like Launcher

!!

Screenshots:

Click on the Screenshots to get full size:

Instructions:

First Download Galaxy Launcher v1.1.3 and install it. (It has been removed from Playstore, So i uploaded it to Mega Nz.)

Download this Zip (I'ts my Backup) and extract it to your internal Storage and the Address of the Folder should be like this:

/storage/emulated/0/galaxylauncher/backup/

Then go to Launcher Setting/About and Restore my Backup.

For more S6 Marshmallow icons, visit Here But My icons are a bit better.

For the wallpaper you can check this Thread

Download & install Zooper Widget Pro.

Then Download My S6 Weather Widget & Put it here:

/storage/emulated/0/ZooperWidget/Templates/

Then put a 4x1 Zooper Widget on Homescreen and click on it, and there is a folder icon on top of screen click on it, and load Galaxy S6 Weather Zooper.

Download Gravity Box MM Unlocked & install it & activate it in Xposed and download this Zip & extract it here:

/storage/emulated/0/GravityBox/backup/

Then open Gravity Box and go to About/Restore Setting & Reboot.

In order to have Bright Lockscreen, download This and install it & activate it in xposed.
[Galaxy S 4 i9505 Original Android Development] RATOz:
Here the same.

But if lock/unlock backs to far.
[Galaxy S 4 i9505 Original Android Development] Blasito777:
nevermind, it is FNK2

Also, as an aside, for anyone having the screen blackout (proximity sensor) issues during phone calls, I havent been able to rectify it, but i found that when i have a headset plugged in, for whatever reason, the screen acts more or less as its supposed to. More of a work around, I know, but the other thing i do is enable the power button to end calls to avoid those embarrassing unintentional dials. Thanks JDCTeam for the new build, everyone for all the sweet info and help. Happy New Year!!!
[Galaxy S 4 i9505 Original Android Development] FernBch:
Thanks for the replies so far everyone. We'll be getting in touch.

If anyone else is a CDMA owner and is interested send me a PM.
[Galaxy S 4 i9505 Original Android Development] Johan1976:
My proximity sensor is wacked. Need to clean up. Hope it helps

Skickat från min GT-I9505 via Tapatalk
[Galaxy S 4 i9505 Original Android Development] FernBch:
Do a Youtube search, plenty of how to's and easy to do.
[Galaxy S 4 i9505 Original Android Development] HITMAN-CREED:
Mate Every game i install, it gave me Force Stopped.

Asphalt 8 & Need For Speed No Limit & Need For Sped Most Wanted & Riptide GP2 & ...

Especially Games with External Datas.. Any Sugesstion?
[Galaxy S 4 i9505 Original Android Development] Der-Knuffi:
About proximity sensor:

Try "proximity fix" from play store.

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Pedantic_Android_User:
Sometimes my lockscreen freezes and I can't unlock my phone. If I hold down the power button, the restart and power off options come up but I can't select them probably due to the system freeze so I have to manually restart the phone by holding down the power button.
[Galaxy S 4 i9505 Original Android Development] fcarcesusty:
Also happened to me several times. I've been 'fixing' it by restarting my phone until the touchscreen functions again. Sometimes, it takes as many as five restarts.

Do you use Xposed and Gravitybox? I do and I wonder if they are the source of the issue.
[Galaxy S 4 i9505 Original Android Development] demon2112:
i had that on official cm 12.1 never had that issue with custon kernel like alucard.

disable quallcom driver and use hitplug and change govoners and turn on gpu rendering in developer options.

btw,never had this on officiall cm13 that iam runnning now