[ROM][I777][5.1.1][OFFICIAL] CyanogenMod 12.1 Nightly Builds

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
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
Code:
<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:

Code:
<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
 
Last edited:

JohnC60

Member
Apr 22, 2011
45
9
0
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
 

aw_

Member
Feb 26, 2011
6
2
0
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.
 

d_j_l

Senior Member
Apr 28, 2008
96
11
0
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.
 

aw_

Member
Feb 26, 2011
6
2
0
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!
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
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!
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://forum.xda-developers.com/showthread.php?t=1982571

Sent from my SGH-I777 using XDA Free mobile app
 
  • Like
Reactions: aw_

aw_

Member
Feb 26, 2011
6
2
0
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://forum.xda-developers.com/showthread.php?t=1982571
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!
 
  • Like
Reactions: cidlover

dimoochka

Senior Member
Oct 9, 2014
137
104
0
/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
 

Cooldato

Senior Member
Jul 29, 2013
87
26
0
Tbilisi
Build cm-12.1-20150704-NIGHTLY-i777 Install fine on my sgh-i777. Phone bug still there. I used Tasker to toggle the speaker on and off for incoming calls and it seemed to work ok. Build ran cool and stable for the short time I had it install. Surprised with the Cyanogen Recovery limitations, seems like it won't install zip files. Had to use Mobile Odin to flash a kernel to get CWM recovery back to restore backup file.
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.
 

dimoochka

Senior Member
Oct 9, 2014
137
104
0
*** CLICK HERE for updated code and compiled fix.

@rogersb11, @Lysergic Acid, @Lanchon, @cyril279

Sup guys, spent some time looking into the outgoing call bug with the i777 this weekend and patched up a fix. This is a total hack (and not even an efficient one at that) - it modifies core android behavior and doesn't address whatever the underlying issue in the device specific code is. At least it gets us a little bit closer. Tested it on my device and it works great, although on outgoing calls there is no audible "ring" which is not stock behavior. See below. I also attached a few logs of the issue (before the patch).
1) Log spanning from immediately before an incoming call to immediately after connection.
2) Log spanning from immediately before an outgoing call to immediately after connection.
3) Log spanning from after an outgoing call connection, immediately before the speaker is toggled on, off, and on again.

Code:
In this file: /android/system/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java

Add code to the end of this method:

private void setCallState(Call call, int newState)

...

Log.i(this, "i777 hack: toggle speakerphone on/off");
if (CallState.toString(oldState).equals("DIALING") && CallState.toString(newState).equals("ACTIVE")) {
  mCallAudioManager.i777hack();
}


In this file: /android/system/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java

Add a method to this class:

final class CallAudioManager

...

public void i777hack() {
  int oRoute=mAudioState.getRoute();
  int oMask=mAudioState.getSupportedRouteMask();
  setSystemAudioState(false, AudioState.ROUTE_SPEAKER, oMask);
  setSystemAudioState(false, oRoute, oMask);
}
 
Last edited:

Quicksilver13

Senior Member
Aug 15, 2012
50
24
0
California
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.
Mobile Odin will flash tar files or img files. I think I used a jellybean kernel that I extracted from the zip ROM file. I just copied the boot. Img file over to the root directory on my phone and use mobile Odin to flash that kernel, and from there I could flash other kernels or regular zip files or restore my backup files.
 
Last edited:
  • Like
Reactions: Cooldato

cyril279

Senior Member
Jun 3, 2013
987
2,077
0
[ ... ]
Sup guys, spent some time looking into the outgoing call bug with the i777 this weekend and patched up a fix. This is a total hack (and not even an efficient one at that)
[ ... ]
Code:
In this file: /android/system/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java

Add code to the end of this method:

private void setCallState(Call call, int newState)

...

Log.i(this, "i777 hack: toggle speakerphone on/off");
if (CallState.toString(oldState).equals("DIALING") && CallState.toString(newState).equals("ACTIVE")) {
  mCallAudioManager.i777hack();
}


In this file: /android/system/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java

Add a method to this class:

final class CallAudioManager

...

public void i777hack() {
  int oRoute=mAudioState.getRoute();
  int oMask=mAudioState.getSupportedRouteMask();
  setSystemAudioState(false, AudioState.ROUTE_SPEAKER, oMask);
  setSystemAudioState(false, oRoute, oMask);
}
I am certainly glad that you took the time to work through, and figured this out, even as a hack. I'm hesitant to incorporate it into the device code base just yet, but I'm happy to link the zip-post into the Slim OP as an option.

we need to put this fix into SlimLP

that rom is more stable and better, but the radio isn't as good, it keeps disconnecting but everything else is butter.
I appreciate that you prefer slim firmware, I do too. I run a slim variant on every device that I have.
That said, we should certainly refrain from declaring it as more stable or better. It's all personal preference - The varying features, style and functionality appeal differently to each of us.

Cheers all,
-Cyril
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone