• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

August 22: Rom Updated [ROM/UB] SLIM LP 5.1.1 r.13 Beta 0.6 Hardned Unofficial

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113

August 22: Rom Updated to Beta 0.6 (LP 5.1.1 r13). Latest sources.

TWRP 2.8.7 in boot: Manual brightness is fixed by changing horrendously high back light value (18x Sony's high limit) mistakenly put in by Slim team resulting in no manual brightness and overheating. This is fixed now.

Download Link: http://forum.xda-developers.com/devdb/project/dl/?id=14141

Dirty flashing is fine if you are on my previous build.
______________________________________________________________________________________________________________
August 10: Rom Updated. This is Beta 0.4 (LP 5.1.1 r9). Latest Slim changes. Updated M5 kernel with CPU and GPU overclock. Kernel size reduced by 2 mb. Also incorporated latest CM commits into device tree to address some screen flickering. http://review.cyanogenmod.org/#/c/105489/

Download Link: http://forum.xda-developers.com/devdb/project/dl/?id=13920

You can flash dirty if upgrading from the previous build, just keep in mind that if you use Xposed, you must flash it before reboot. This also applies to Supersu. Otherwise, fresh install.

___________________________________________________________________________________________________________
August 6. This is LP 5.1.1 release 9. No heat issues. Also includes M5 hardened kernel with overclocked CPU to 2457 and GPU to 600.

Download: http://forum.xda-developers.com/devdb/project/dl/?id=13858

Kernel Source: https://github.com/AOSPME/android_kernel_sony_msm8974
___________________________________________________________________________________________________________
August 3: Guys. Stay away from July 25 build. It does cause overheating. I had an episode where my phone shut down and refused to boot for an hour. I guess Slimroms still have problems. Pitty. I have removed the download link...

July 29: Update addressing wifi disconnect after 15 min of sleep and excessive battery drain caused by arp packets related wakelocks

Download and description: http://forum.xda-developers.com/showpost.php?p=62102698&postcount=15


No need to wipe anything if you were on my previous build.
_____________________________________________________________________________________________________________
July 25: Rom updated to LP 5.1.1 r8. This is my change, since Slimrom team still uses earlier releases. They have substantially improved the rom sources, so, whatever I said about them in the past no longer applies.

1. Latest Google AOSP changes
2. Latest Slim changes
3. All my regular hardened features including hardened kernel, removed nefarious IPs, full network selection in Network, disabled wifi background scanning are in
4. Modified M5 kernel
5. Twrp 2.8.7 as a Fota image. The reason I put 2.8.7 in fota is that Slimteam still uses version 2.8.6, which has major bugs. In 2.8.7 most were fixed.

Instructions: Note that the boot.img does not include any recovery to prevent a collision with fota recovery

1. In TWRP format Data, then format System/Data/Cache
2. Flash the rom (don't reboot in system unless you already have recovery in fota)
3. Reboot in Bootloader
4. Flash TWRP.img like this: fastboot flash recovery twrp.img
5. Reboot


Download links: Removed

Kernel Source: https://github.com/AOSPME/android_kernel_sony_msm8974

Credit: AOSP, Slimroms, Myself5
__________________________________________________________________________________________________
Rom updated to 5.1 version alpha. All hardened/security features are in. TWRP 2.8.6 is integrated into kernel.

Download link: http://forum.xda-developers.com/devdb/project/dl/?id=12197

Kernel Source: https://github.com/AOSP-Argon/kernel_sony_msm8974/tree/lp5.1


___________________________________________________________________________________________________
Here is the latest Slimrom Lollipop built on February 18.

Main changes:

Disabled creepy Selinux and activated Tomoyo as main security provider
Enabled all ciphers, as opposed 2 or 3 in standard releases
Enabled all hashes, digests and compression modes
Enabled all hashes for random number generation to result in a speedier device
Enabled 256 (as opposed to 128) bit encryption for device encryption
Increased weak 2048 RCA key length to 4096


Changes are implemented on kernel level and in /system/core/vold. As a result, you have a more secure and faster device with real protection for you; whereas Selinux, in my view, apart from being developed by an entity known for spying on people on mass scale, "secures" the device from you - meaning you are prevented from interfering with the constant flow of data from your device to their servers ...

Bugs: up-to-date Slimrom bugs

Credit: Slimroms

Modified Sources:
https://github.com/optimumpr/kernel_sony_msm8974
https://github.com/optimumpr/android_system_vold-1

Install Instructions:

1. Be on Kitkat, have root and recovery
2. Enter recovery, wipe Data/Cache/System
3. Flash the rom
4. Don't reboot yet: for some reason Documents.app does not appear anywhere and there is no file manager to handle app install; therefore
5. Flash Slim file manager from kitkat (see Download links at the bottom of this post), which works on lollipop.
6. Now, reboot and enjoy

Download links for Main rom and Slimfilemanager are at the bottom of this post.

Read about getting recovery on honami here: http://forum.xda-developers.com/xperia-z1/general/recovery-solution-lollypop-roms-t3000822/post58127334#post58127334

TWRP is now integrated, see post #5 for download.

Warning: I am not responsible for the destruction of your device and damage to surrounding areas. You are at your own peril. Also, if you don't care about security, stay away from this thread and get the regular version of this rom, which is available in Original Development or on Slimroms website. Comments or discussion about necessity for security, especially by those who have no idea what they are talking about, won't be tolerated. You have been warned. :cool:

DOWNLOAD LINKS:
Rom http://d-h.st/dfo
Slim File Manager http://d-h.st/Aqu0 flash it right after the rom before rebooting

XDA:DevDB Information
Slim Lollipop Hardened Secure, ROM for the Sony Xperia Z1

Contributors
optimumpro
Source Code: https://github.com/SlimRoms/platform_manifest

ROM OS Version: 5.0.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked bootloader
Based On: Slimroms

Version Information
Status: Alpha

Created 2015-02-19
Last Updated 2015-08-22
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Kernel with integrated TWRP

Here is SlimLP kernel with integrated TWRP recovery. From now and on, you don't need to reflash your device when changing roms, especially from Lillipop to kitkat or deal with the FOTA partition.

Just unzip the attached file and flash it in Fastboot:

fastboot flash boot boot.img
fastboot reboot

For those of you who already have TWRP in FOTA partition, as you know, this recovery collides with the integrated recovery. So, if you have TWRP in FOTA, do this after installing my kernel:

fastboot erase recovery
fastboot reboot

This will get rid of TWRP in FOTA
 

Attachments

ggs2

Senior Member
Jan 2, 2012
322
66
0
Do you plan to update this ? (I am sorry I have posted in almost all your threads but all lollipop rom (Except CM12) keeps on freezing for me
and I want to use a rom with selinux disabled (so that i can use xprivacy)
I tried RR hardened and validus. Both freeze...
never saw any freeze in 4.4.4
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Do you plan to update this ? (I am sorry I have posted in almost all your threads but all lollipop rom (Except CM12) keeps on freezing for me
and I want to use a rom with selinux disabled (so that i can use xprivacy)
I tried RR hardened and validus. Both freeze...
never saw any freeze in 4.4.4
I think Slimrom team is no longer updating lollipop 5.0. They are working on 5.1. Nor are they updating kitkat. But you can use any kernel from my lollipop roms, as selinux is disabled there. You can also use my kernel with cm12, although, I am not sure CM12 would work with xprivacy. Out of all lollipops, only SlimLP and RR5.0 work with Xprivacy. RR works straight. Validus works for me with data partition restored from RR5.0. What I did was to first install RR5.0+Xposed+Xprivacy (confirmed it worked), then backed up data, then full wipe, installed Validus , then without reboot xposed, then without reboot restored data from RR5.0 and it works...
 

ggs2

Senior Member
Jan 2, 2012
322
66
0
I think Slimrom team is no longer updating lollipop 5.0. They are working on 5.1. Nor are they updating kitkat. But you can use any kernel from my lollipop roms, as selinux is disabled there. You can also use my kernel with cm12, although, I am not sure CM12 would work with xprivacy. Out of all lollipops, only SlimLP and RR5.0 work with Xprivacy. RR works straight. Validus works for me with data partition restored from RR5.0. What I did was to first install RR5.0+Xposed+Xprivacy (confirmed it worked), then backed up data, then full wipe, installed Validus , then without reboot xposed, then without reboot restored data from RR5.0 and it works...
I tried all of your roms.. Xprivacy worked in all of them but i have this screen freeze issue which makes my phone particularly unusable.
I think i would revert to kitkat for now. That was smooth and solid... Thanks....
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
@Diewi

I thought we could move our discussion on wifi to this thread. Here is a little dirty secret: that qcom binary file is found in kernel too. So, if you change it in /etc/firmware/, you also have to copy the changed file to your kernel's /drivers/staging/prima/firmware_bin/ directory and then recompile the kernel. As usual, the entries there will go to kernel wifi module, which is actually not a module anymore, but a built-in in kernel. Otherwise, the changes won't work. Hence, there goes your android framework messing up things...

I have done it and am back to Kitkat level of battery drain with no disconnect. Here is my file: I did return to gEnableSuspend = 3 and made some more changes.
 

Attachments

Last edited:

Diewi

Senior Member
Jul 7, 2008
378
243
0
I thought we could move our discussion on wifi to this thread.
Fine with that.

Here is a little dirty secret: that qcom binary file is found in kernel too. So, if you change it in /etc/firmware/, you also have to copy the changed file to your kernel's /drivers/staging/prima/firmware_bin/ directory and then recompile the kernel. As usual, the entries there will go to kernel wifi module, which is actually not a module anymore, but a built-in in kernel. Otherwise, the changes won't work. Hence, there goes your android framework messing up things...

I have done it and am back to Kitkat level of battery drain with no disconnect. Here is my file: I did return to gEnableSuspend = 3 and made some more changes.
Sorry, I have to disagree. Here, things are a bit different from the android framework. Please have a look at the file "CORE/HDD/src/wlan_hdd_cfg.c" of the prima driver, especially the method "hdd_parse_config_ini". The comment clearly states that the ini-file is parsed:
/*
* This function reads the qcom_cfg.ini file and
* parses each 'Name=Value' pair in the ini file
*/

This also matches my experience that modifying the cfg.ini on the device does indeed have an effect.

Just one more note: By the concept accessing external files), it should not make any difference on reading external file if you compile modules inside the kernel or as "seperate" modules. However, there exist quite a lot device drivers out there which require to be build as modules to load their firmware (due to being depend upon some "external" firmware loader etc.). The prima driver obviously does not belong to these kind drivers.

Nevertheless, those changes should be pushed upstream (cm), then they would reside in the driver directory of the kernel anyways :D

Regards,
Diewi
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Fine with that.


Sorry, I have to disagree. Here, things are a bit different from the android framework. Please have a look at the file "CORE/HDD/src/wlan_hdd_cfg.c" of the prima driver, especially the method "hdd_parse_config_ini". The comment clearly states that the ini-file is parsed:
/*
* This function reads the qcom_cfg.ini file and
* parses each 'Name=Value' pair in the ini file
*/

This also matches my experience that modifying the cfg.ini on the device does indeed have an effect.

Just one more note: By the concept accessing external files), it should not make any difference on reading external file if you compile modules inside the kernel or as "seperate" modules. However, there exist quite a lot device drivers out there which require to be build as modules to load their firmware (due to being depend upon some "external" firmware loader etc.). The prima driver obviously does not belong to these kind drivers.

Nevertheless, those changes should be pushed upstream (cm), then they would reside in the driver directory of the kernel anyways :D

Regards,
Diewi
I don't dispute that the file is being parsed, my point is that because the same file with different entries is in kernel, we really don't know how they would interact.
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Update to fix wifi disconnect and battery drain

Here is a recompiled kernel as well as a separate file to flash. This takes care of wifi disconnect after 15 minutes of sleep as well as excessive battery drain caused by a barrage of arp packets that create wakelocks.

Instructions:

1. Flash WIFI_DRAIN_FIX in Recovery
2. After that reboot in Bootloader and flash kernel (unzip boot.img): fastboot flash boot boot.img
3. If you have fota recovery, don't reboot and erase fota recovery, because this boot.img has twrp: fastboot erase recovery.

TWRP 2.8.7 has a bug preventing backing up roms. So, it is no good, unfortunately. I have returned to an earlier build.

Kernel Source: https://github.com/AOSPME/android_kernel_sony_msm8974

Warning: Don't use this for any other rom, because this kernel is specific to SLimrom.
 

Attachments

Diewi

Senior Member
Jul 7, 2008
378
243
0
I don't dispute that the file is being parsed, my point is that because the same file with different entries is in kernel, we really don't know how they would interact.
I get your point, but please have a look at the Android.mk file in the directory of the prima driver. There it is clearly stated that the files in the firmware_bin sub directory are just copied to the dir "${OUT}/system/etc/firmware/wlan/prima/". Hence, the "same" file does not exist in the kernel. BTW, beware, if you modify the file directly in your kernel folder as it will not be copied to the ${OUT} directory if the file exists there already. This is a serious weakness of the android build system IMHO.
The cfg-file will be parsed when the driver loads.

Sorry, for being that insistent :)
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
I get your point, but please have a look at the Android.mk file in the directory of the prima driver. There it is clearly stated that the files in the firmware_bin sub directory are just copied to the dir "${OUT}/system/etc/firmware/wlan/prima/". Hence, the "same" file does not exist in the kernel. BTW, beware, if you modify the file directly in your kernel folder as it will not be copied to the ${OUT} directory if the file exists there already. This is a serious weakness of the android build system IMHO.
The cfg-file will be parsed when the driver loads.

Sorry, for being that insistent :)
Well. This same file resides in sony_rhine_common overlay. So, what I do is put the changed file in both directories. Anyway, this is the first time on lollipop that I have absolutely no wifi disconnection. And wifi range has increased too (I increased the tx cap to 80).
 

ggs2

Senior Member
Jan 2, 2012
322
66
0
I have very very strange issue (only on this slim rom)!
My charging sometime stops, and i have to reboot phone to get it back to charging. anyone has same issue? :(
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
I have very very strange issue (only on this slim rom)!
My charging sometime stops, and i have to reboot phone to get it back to charging. anyone has same issue? :(
I don't think anyone else has it. In case you are talking about charging through usb: some linux distros drop usb connections during sleep and then have trouble reconnecting, because the phone is sleeping. You may have a similar behavior in Windows...