yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1.1 Lollipop, which is designed to increase performance and reliability over stock Android for your device.

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
* Submitting bug reports on nightly builds is the leading
* cause of male impotence.
*/

CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review.

IMPORTANT INFORMATIONS

- Root is now disabled by default on CM12.1. To enable it go to Settings>Developer Options>Root access and set to Apps only or Apps and ADB.

- Even if I (Lysergic Acid) don't own an i777, I'm maintaining it officially as everything I do for my i9100 gets to the i777 too, so it's fair enough to open a thread for you guys ;)

We'll not support users and answer questions from users which:

- Are running a custom kernel

- Have flashed mods

- Modified system files

- Didn't follow our instructions

- Are unfriendly

Official CyanogenMod Wiki: http://wiki.cyanogenmod.org/w/I777_Info

Known Issues: http://wiki.cyanogenmod.org/w/Known_Issues_page_for_i777

Changelog: http://www.cmxlog.com/12.1/i777

First time installation instructions:

Download CM-12.1-XXXXXXXX-NIGHTLY-i777.zip to your sdcard

Make sure you're using a Kitkat Compatible Recovery

Boot into Recovery

Wipe all your data

Flash CM-12.1-XXXXXXXX-NIGHTLY-i777.zip from sdcard

(Optional)Flash Google Apps.zip from sdcard

Reboot

CM12.1 official nightly builds:

http://download.cyanogenmod.org/?device=i777

Recommended Google Apps:

http://xdaforums.com/android/software/tk-gapps-t3116347

Choose Pico version to fit in the /system partition.

If you like my work, consider making a small donation ;)​

​

XDA:DevDB Information

CyanogenMod 12.1, ROM for the AT&T Samsung Galaxy S II SGH-I777

Contributors

Lysergic Acid, rogersb11

Source Code: https://github.com/CyanogenMod

ROM OS Version: 5.1.x Lollipop

ROM Kernel: Linux 3.0.x

ROM Firmware Required: Kitkat Compatible Recovery

Based On: AOSP

Version Information

Status: Nightly

Created 2015-07-04

Last Updated 2015-07-03
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
Reserved
[AT&T Samsung Galaxy S II SGH-I777] GuestX00552:
Hi,

I'm currently running Cyanogenmod version 11-20140402-Unofficial-i777 on my SGH-i777. I'd like to update to this Nightly build. Can I use the instructions in OP to update to this Nightly? (Just want to clarify because your OP clearly says "First Time Installation Instructions" but the process looks the same as any other update.)

CM and kernel details:

CyanogenMod version 11-20140402-Unofficial-i777

Kernel version 3.0.64-RB11-Shift-1.1

Thanks for your work on bringing CM 12.1 to the Galaxy S II!
[AT&T Samsung Galaxy S II SGH-I777] xtmp:
Flashed 07032015 but stuck at cm logo.
[AT&T Samsung Galaxy S II SGH-I777] yosmokinman:
Great work but IMO this should have never gone official for the i777. The outgoing call bug is a huge bug.

It would never have passed under Entropy/Cody.
[AT&T Samsung Galaxy S II SGH-I777] dimoochka:
Is there a thread on JIRA for the outgoing call bug? I couldn't find one but would like to contribute by scouring the code (and would like to see what others have done so far).
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
Yes, just follow that instructions and you'll be fine.

I thought this bug had been fixed, anyway, I don't have this problem on my i9100, that's probably related to the different mic location of the i777. Sadly without the phone I'm not the best to fix this.

CM recovery installs signed zips only.
[AT&T Samsung Galaxy S II SGH-I777] yosmokinman:
^Yeah it's not fixed and really going to be a ***** I think.

i9100 is fine. i777 with the yamahell chip I still think is the problem. Remember Paul from the replicant project? Helped greatly but maybe not so with 5+

The i777 seems to be how many hacks can you stack on top a hack.. ie. hwc

Edit: That Dead show was gooooooooooooood. LA? My emmc was definitely repartitioned.
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
I'll look in the differeces of the i777 and try something, but I don't promise anything.

The OTAs are block-based in Lollipop btw, that's why it looked like a repartition, but it was not :)

Latest nightlies will resize the system according to your pit.
[AT&T Samsung Galaxy S II SGH-I777] Quicksilver13:
Thanks for the information. I couldn't find much info on CM Recovery. Is it possible to make backups and restore on CM Recovery?
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
Sadly not yet, only through adb. CM recovery is very simple indeed, I think it's made for people that don't even use the recovery :p
[AT&T Samsung Galaxy S II SGH-I777] erad1:
Looking forward to trying this and thanks for the ROM. I wonder if the AJNewkirk mic-swap kernels would have any .ko files that would help the call bug?
[AT&T Samsung Galaxy S II SGH-I777] TeutonJon78:
Glad to see that finally make it in. I wouldn't want to have to redo that partitioning again.

Are the scripts setup not to have to reflash gapps after every upgrade yet? (it was an issue on the i9100 thread last week -- not sure if it got resolved or if with the block update there is no way to solve it).
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
The block-based OTAs came in to fix the gapps backup, so yes, it works :)
[AT&T Samsung Galaxy S II SGH-I777] erad1:
The phone runs really well on the latest nightly! Multi tasking is smoother than ever before. Unfortunately I lack the skills, but it would be great if someone (CM? [MENTION=5294352]cyril279[/MENTION], [MENTION=5554845]rogersb11[/MENTION], [MENTION=6159291]Lysergic Acid[/MENTION]) could re-pack the stock kernel with a custom recovery.

Edit: unbelievably solid as a rock. Thank you to all the devs over the years that have helped keep this device relevant. This latest nightly from CM is like butter on the SII...I even put the OneplusOne and the Nexus4 on the shelf and threw my sim card back into this phone for the last couple days. Loving it.
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
The slim kernel is essentially the cm kernel, with TWRP 2.8.7.0

So the quickest solution would be to flash:

CM

SLIM kernel

Google apps

Regarding the call-bug [MENTION=6159291]Lysergic Acid[/MENTION], I'd ship you an i777 if you were in the states, but I fear that international shipping makes it cheaper to buy you one than ship one... Are there any particular logs that could help to identify the issue?

-Cyril

---------- Post added at 09:28 PM ---------- Previous post was at 09:21 PM ----------

I don't think that a JIRA issue has been filed on this, but it deserves one, along with logs. Jira is designed to centralize and track the progress and effort of specific issues.

-Cyril
[AT&T Samsung Galaxy S II SGH-I777] yosmokinman:
^I really doubt they'll ever touch it.

I still think it's the yamahell **** all over again.

OT thanks for Omni that's my dd and runs as nice as you could expect on this phone. Plus twrp. cm recovery is trash and a dealbreaker till they fix it up a bit.
[AT&T Samsung Galaxy S II SGH-I777] kingfiras:
Thanks for the tip Cyril .. Do you have a link for the Slim Kernel?
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
BEWARE:

- Cyril's cm-kernel does NOT currently include the FPbug-fix recently added to CM kernel source.

The kernel that I'm linking to only includes CM commits up through may 2015. I just noticed that CM more recently included the FPbug fix into their source (thanks LA), and my CM kernel does NOT include that (I wasn't paying attention when I switched to the CM kernel source from OMNI). : embarrased :

I'll update and build another within the week.

:: kernel-i777_5.1_TWRP-signed.zip ::

- Kernel source -
[AT&T Samsung Galaxy S II SGH-I777] kingfiras:
Thanks for all of your efforts man :)
[AT&T Samsung Galaxy S II SGH-I777] erad1:
...sounds great [MENTION=5294352]cyril279[/MENTION], would an odin flashable file of your newer build be possible ?
[AT&T Samsung Galaxy S II SGH-I777] Lysergic Acid:
I would need to buy an i777 from ebay as the device only exists in the US, then ship it to my country, but my country is recently trying to block importations (too much taxes to pay on imported products, plus the dollar price increase, it's worth three times more than our money, people bought GTA V for only $20 at launch in Brazil and shipped it to the US, lol)

There was a log of this issue, and honestly I lost it. You can send me anything you think it's important.
[AT&T Samsung Galaxy S II SGH-I777] cyril279:
Some of you may have already realized that I linked you to a bad kernel (Cyril hangs head in shame). The easiest way to get out of the death spiral that I brought to your i777:

Tested method (because it happened to mine this morning while looking into snipe's experience):

This will not wipe /data, it simply gets you back to a working kernel of your choice.

Download .tar of SiyahKernel S2-v6.0beta5 ( http://www.gokhanmoral.com/ )

Odin the .tar file onto the device

reboot to recovery (will be Siyah CWM)

ADB the kernel of choice onto the device (if not already in storage)

flash the kernel of choice from storage

reboot recovery

Do whatever you originally intended to do from recovery

lessons learned:

ALWAYS test before uploading

keep my wiley suggestions out of LA's thread

My apologies to all affected.

-Cyril
[AT&T Samsung Galaxy S II SGH-I777] snipe2nite:
Thanks for posting this, your response time is on point!!! Much respect.
[AT&T Samsung Galaxy S II SGH-I777] avutu vamsi:
i have android version 2.3 in my samsung-sgh-i777 can i follow those instructions to get cyanogenmod12.1
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
I used the pit from http://xdaforums.com/showpost.php?p=55967538&postcount=3829 to expand the system and data and installed the cm12.1 successfully.

Thanks.

The pit from http://xdaforums.com/galaxy-s2-att/general/guide-partition-i777-phone-data-storage-t2839161 made the phone stuck at boot animation. With this pit, I could not flash back to original Samsung UCMD8 (odin failed at hidden.img), but cm11 ran smoother with bigger system and data. This is probably related to the 45 MB preload partition.
[AT&T Samsung Galaxy S II SGH-I777] erad1:
So proud of my little SII...
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
Anyone else having problems with cm-12.1-20150727-NIGHTLY-i777.zip?

I installed CM 12.1 20150724 nightly and it works but when I go for the 7/27 nightly, it flashes but it does the following to my phone

1. Gets stuck at Samung Galaxy SII

2.phone proccess ends and starts every two seconds

3. Never makes it pass the pulsing Cid boot animation

I also need to know if it is worth it up dating to the lastest nightly now, before I did nightlies with OmniROM from 4.4.1 to 4.4.4 but with CM 12.1 is it worth it?

EDIT: New issue, the WI-FI page says in the middle "turning on WIFI..." on soft reboot, reboot, I might download a nightly before 7/27 before it, unless there is a kernel I can flash to restore WIFI
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
I don't have problem w/ 7/27 nightly.
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
I'll wait until tomorrow for 7/28, I'm back on Cyanide L until it is released because I flashed slims kernel over the cm one, but I have a CM 12.1 backup tho

Sent from my poisoned Cyanide Lollipop S2 Phone
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
I have pure cm with mod pit.
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
Can you explain on what that is, I'm a little confused :p

Sent from my poisoned Cyanide Lollipop S2 Phone
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
Modified pit: 1GB system partition, 4GB data

Pure cm12.1: official cm12.1 7/27 nightly, no other kernal.

Of course, I have tk-gapps.
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
And your on i777 or S959G? I have the S959G, but which modded pit file is best for my phone the S959G pit or the I777 pit for more more app storage, I downloaded both modded pit files but I'm unsure which one to use.

Sent from my poisoned Cyanide Lollipop S2 Phone
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
As I said in post #27 of this thread (http://xdaforums.com/showpost.php?p=62037606&postcount=27),

I used the pit from http://xdaforums.com/show...postcount=3829 which is for S959G on my i777 to get cm12.1. The one created for i777 (http://xdaforums.com/gala...orage-t2839161) did not work for me though I was able to use it for cm11 but not cm12.1.

---------- Post added at 02:40 PM ---------- Previous post was at 02:32 PM ----------

During the try-and-error process, the flash count changed. So I got the yellow triangle and i9100G on my boot image. The triangle-away app did not solve the problem, probably due to the mod pit. I ordered a jig to see if it helps. However, it is just cosmetic.
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
Did you flash back to stock then CM 12.1 or what steps did you do for flashing the pit file?
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
I flashed i777 pit directly first but I could not go back to stock (failed at hidden.img). I could install cm11 but cm12.1 stuck at boot (cid image). Then, I flashed the S959G pit and installed cm12.1. Everything has been working. I didn't try going back to stock to remove the yellow triangle.
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
Oh, alright, I see flashing back to stock is just to remove the yellow triangle is all.

Edit: In TWRP v2.7.1.0, is it normal for the Internal SD card or /emmc to be broken after flashing the pit file in odin3 because i get this error in TWRP "E:Unable to mount '/emmc/'"
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
I did not use TWRP. I used CWM from http://downloadandroidrom.com/file/GalaxyS2ATT/recovery/CWM-KitKatCompatible-i777.tar (credit goes to http://galaxys2root.com/cwmtwrp-recovery/).

Could your problem be related to http://xdaforums.com/showpost.php?p=61875030&postcount=24 ?
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
Not sure if this is a ROM issue or not but seems Chrome is funny about if it's on the SD card and phone memory.

When Chrome is on phone memory, it works and I can browse

When Chrome is on the SD card, the "has stopped" message shows up and then I can't go anywhere then.

Also, DONT NOT DIRTY FLASH ADDONS, the Rom will random reboot, or at least on me, for

<6>[ 8.172556] c0 SysRq : Emergency Remount R/O
<4>[ 8.172731] c0 Emergency Remount complete

I dirty flashed the Xposed framework for 5.1.1, XTREME Music and Video.

Instead do this, and I know it's stupid but I'm not updating from 7/29 Nightly until needed in the future.

In TWRP, Wipe everything but the MicroSD card, that's /system, /data,/ EFS, everything but your External SD card

Flash cm-12.1-XXXXXXXX-NIGHTLY-i777.zip

Flash the Gapps you have selected, that's from Full to Pico

Flash XTREMEMusic for LP

Flash XTREMEVideo for LP

Flash Xposed framework for either 5.X or 5.1

Flash SuperSU for root

Here is the bit from the last_kmsg from the last attempt to fix it:

<4>[ 8.172086] c0 charger: [8172] rebooting
<6>[ 8.172556] c0 SysRq : Emergency Remount R/O
<4>[ 8.172731] c0 Emergency Remount complete
<0>[ 8.174020] c0 (sec_debug_set_upload_magic) 0
<6>[ 8.177509] c0 REBOOT Notifier for CPUFREQ
<6>[ 8.178186] c0 REBOOT Notifier for BUSFREQ
<3>[ 8.178213] c0 hotplug_reboot_notifier_call: disabling pm hotplug
<6>[ 8.178318] c0 mif: xmm6260_off: xmm6260_off()
<6>[ 8.178789] c0 mc1n2_i2c_shutdown
<7>[ 8.179573] c0 pmu_debug: 0x00000901
<6>[ 8.189601] c0 mc1n2_i2c_shutdown done
<6>[ 8.189636] c0 max8997-muic max8997-muic: max8997_muic_shutdown: JIGSet: auto detection
<6>[ 8.190005] c0 max8997-rtc max8997-rtc: max8997_rtc_enable_wtsr: disable WTSR
<6>[ 8.215272] c0 max8997_rtc_shutdown: WTSR_SMPL reg(0x80)
<6>[ 8.215301] c0 max8997_rtc_shutdown: success to disable WTSR
<6>[ 8.215385] c0 k3dh_shutdown: is called.
<6>[ 8.215593] c0 pn544_shutdown
<6>[ 8.216591] c0 sdhci_shutdown_host : MMC Card OFF
<4>[ 8.216719] c0 Disabling non-boot CPUs ...
<4>[ 8.217054] c1 IRQ112 no longer affine to CPU1
<5>[ 8.217270] c0 CPU1: shutdown
<0>[ 8.217742] c0 Restarting system.
<0>[ 8.217815] c0 sec_reboot (104, (null))

Sent from my CyanogenMod 12.1 SGS2
[AT&T Samsung Galaxy S II SGH-I777] JohnC60:
CM12.1 itself on the S2 is pretty nice. However, trying to actually run apps on the S2 is pretty challenging. When switching between apps or starting new apps, it can take forever. I think the 1GB of RAM is just not enough to "contain" everything and Android must be resorting to killing apps and saving their states as I open new apps or when switching from app-to-app.

For example, when I'm using a browser (Dolphin), switching to Facebook or the camera can take 15 to 30 seconds. Even just hitting the home button can take 15 seconds or more for the launcher to appear.

I could be working in a app like the browser, email or calendar during incoming calls. The phone rings/vibrates and a notification is displayed but the dialer interface takes a long, long time to appear and I wind up missing the calls because I have no way of "answering" until the dialer is displayed.

When running Jelly Bean or Kit Kat, I don't remember experiencing such long delays when navigating from app-to-app.

Anyone else seeing this kind of slowness when doing real work with apps, especially larger apps on CM12.1?

-John
[AT&T Samsung Galaxy S II SGH-I777] fairmount97:
Can I Use Cyril's Slim Kernel on cm-12.1-20150801 build. The Current Kernel is not let do anything. I cant Wipe or flash zips.
[AT&T Samsung Galaxy S II SGH-I777] rogersb11:
Just seeing this. Thanks [MENTION=6159291]Lysergic Acid[/MENTION]. So busy with my own ROM I totally spaced it

Poisoned by CyanideL
[AT&T Samsung Galaxy S II SGH-I777] aw_:
Thanks for your instructions d_j_l! I had flashed mine back to stock with the intention of starting fresh for cm12.1. I could flash cm12.1 nightly ok and it seemed like it worked, but could not get gapps applied. The pico image will apply, but it was unusable with keyboard crashes. I used odin to apply the pit you reference, as well as the cwm above, then cm12.1 and standard gapps applied and it works! The boot screen says it's a GT-9100 instead of i777 and the triangle is back, but *shrug*. One tip, do not enable encryption, I had to start over to reformat my sdcard0 because nothing could use it, the camera app complained that I needed to install an SD card and logcat showed that it couldn't create files on the internal SD. I can't speak to whether there are any calling issues, I don't have a sim for this old phone.
[AT&T Samsung Galaxy S II SGH-I777] d_j_l:
The jig was unable to remove the yellow triangle either. So don't waste your $1.

The stock camera app of CM 12.1 has much less options than CM11 and I couldn't find the photo editing and video editing apps.
[AT&T Samsung Galaxy S II SGH-I777] RavenCR:
I installed the newest 12.1 Nightly available but I got a problem, if I try to make a call they can't heard me, any idea why?
[AT&T Samsung Galaxy S II SGH-I777] aw_:
So I did the upgrade to cm12.1 as noted above, the phone is functional, but battery life is terrible, less than 12 hours, even in airplane mode, which is bad even for the old battery. The battery manager says that cell standby is using the majority of the battery, so I thought maybe I could pop an old SIM in just to see what happens. The SIM card isn't detected and now that I look, all the cell info in the phone status page is marked unknown, including the IMEI. Is this because of the CWM kernel I flashed after re-partitioning with the pit file? Related to the phone now claiming to be a GT-9100? Any way to flash something (modem?) to get it back to a state where it could accept a SIM? Thanks!
[AT&T Samsung Galaxy S II SGH-I777] cidlover:
In this thread below you will find three I777 and the original S959G modems in the Modems section for CWM and TWRP flashing to get cell data back on your S2, in the very first post

http://xdaforums.com/showthread.php?t=1982571
[AT&T Samsung Galaxy S II SGH-I777] aw_:
Thank you, cidlover! I grabbed the latest file (I777UCMD8), extracted the modem.bin, hooked up to odin and selected it as the phone file, flashed, rebooted, and the cell modem seems alive and well! I can even call voice mail! Hopefully this will make the battery life usable even though I don't plan to subscribe to a cell plan. Boot screen still shows GT-9100 (don't care) and yellow triangle (don't care). This might actually make a respectable backup phone. Thanks all!
[AT&T Samsung Galaxy S II SGH-I777] aw_:
Wow, battery estimates are awesome now, 36hr estimate @87% mark. I was lucky to get 10hr with the radio whacked out.
[AT&T Samsung Galaxy S II SGH-I777] dimoochka:
/data encryption

Hi there, just tried to install this but had to revert back to CM11 because I couldn't get encryption to work (need it for work purposes). Just wanted to update you on my progress.

First off - I had to disable selinux ("setenforce 0") since the system was unable to open /efs/metadata to write the encryption key (I'm assuming due to improper context). After that, the process seemed to run fine - went to 100% and rebooted itself into the password entry dialog. After I entered the password it gave me notice that while I entered the correct password, the encrypted partition was corrupted and the phone had to be factory reset (it did this regardless of whether I actually entered the correct password or not). Also tested it with Lanchon's CM12 kernel for fun (without success).

I tried this both with "inplace" encryption from the Settings menu, and also with the following "wipe" method with the same result either way.

vdc cryptfs enablecrypto wipe password $(head -1 | tr -d '\n' | hexdump -ve '1/1 "%.2x"') source

Would love to analyze/provide a logcat of where I got stuck but unfortunately the device won't let me adb in until the boot process is complete.

Also figured I'd check - outgoing call bug still present in the latest nightly.

I'm happy to test further if you guys decide to work on this - let me know.

Thanks!

-James
[AT&T Samsung Galaxy S II SGH-I777] justanother1020:
outgoing call issue had any more looking into?
[AT&T Samsung Galaxy S II SGH-I777] dimoochka:
Nice job, encryption works in the latest build after your selinux modifications. Xoxo
[AT&T Samsung Galaxy S II SGH-I777] Cooldato:
Hey :) Im not able to flash zip files via CM recovery.

Could you please tell me which kernel did u flash on this cm 12.1? by using mobile odin.