[ROM][SM-G313HN] Cyanogenmod 11 for Galaxy Trend 2 (Updated 14th December 2015)

Search This thread

Elkkome

New member
Mar 8, 2016
2
0
I have 1,8gb memory but it says that I don't have enough free memory. I can't install anything on Google play store or any apk
 

adeii

Senior Member
Nov 11, 2013
413
93
Sajlent Hil
I have 1,8gb memory but it says that I don't have enough free memory. I can't install anything on Google play store or any apk
1) But how much memory you got for /data partition?!
2) Maybe Play download something on external SDcard and can not create directory - have you tried to unlock/fix SD card for user?
 

LoGiX07

Member
Sep 23, 2016
6
0
Is there any way we can get Android 5.0 and up on this device (SM-G313HN) ?
I can't seem to find any ROMs at all on the internet. What's wrong, even the Galaxy V has Marshmallow available even though it has a single core processor :confused: :crying:
 
Accounts not working

Hi all,
Flashed this ROM and delighted with its responsiveness. One tip: default governor is performance, which makes the device going hot after prolonged use as well as experiencing the battery drain. Switching to conservative retains the needed performance while eliminating that issue. Forcing GPU rendering adds a surplus.

I noticed a strange behaviour though. Probably because the ROM is three years old, but the system is unable to create accounts for several apps, most annoying being Google Play Store (flashed latest OpenGApps 4.4 pico) and Viber Messenger, making the former unable to work at all and the latter work without notifications if not running. Strange, but Telegram for example works flawlessly. What seems to be the problem? Permissions? Incompatibility? Something else? Has anyone had a similar problem?
 

adeii

Senior Member
Nov 11, 2013
413
93
Sajlent Hil
Is there any way we can get Android 5.0 and up on this device (SM-G313HN) ?
I can't seem to find any ROMs at all on the internet. What's wrong, even the Galaxy V has Marshmallow available even though it has a single core processor :confused: :crying:
I have tried to build SlimKat 9 for SM-G313HN using TheNikiz"s device tree -- non-bootable, freezes at Samsung logo. Gave up.
5/6 OS need a lot device tree changes...
 

adeii

Senior Member
Nov 11, 2013
413
93
Sajlent Hil
Just a reminder for next update - patch framework to enable Signature spoofing, so microG could be used instead of GApps. android_frameworks_base-KK-LP.patch
Also use prebuilt Webviewchromiuim to speed up build - Add this to Boardconfig.mk PRODUCT_PREBUILT_WEBVIEWCHROMIUM=yes
 
Last edited:

adeii

Senior Member
Nov 11, 2013
413
93
Sajlent Hil
can anyone give me this update Build 20151214?
This is rebuilt of CM11-2015-12-14. cm-11-20200808-UNOFFICIAL-vivaltonfc3g.

Good: Boots fine. Rooted. Browser works. You can use microG instead of OpenGApps.
Flash some old NanoDroid-microG 16/17 from AFH (for Playstore) and newest nanolx.org (for working login).

Bad: Red frame flashing for every action/notification/button. Odd/even white stripes could appear.

UPDATE1: TWRP 3.1.1 for SM-G313HU works fine for SM-G313HN, too.

UPDATE2: Here is mine TWRP backup of modded CM11 (with microG, AdAway, VLC, ... working Youtube, TheNikiz' older kernel, solved previous problems).

UPDATE3: Put stock media_codecs.xml to /system/etc to enable video in Youtube app(s).
 

Attachments

  • stock----media_codecs.xml
    8.6 KB · Views: 12
Last edited:
Luckily, some 2+ years ago I downloaded 2015-12-14 ROM, so sending the link now. Got a new phone so reverted the old one to this ROM trying to make something after years of using the butchered stock ROM (still bad, but usable):

cm-11-20151214-NIGHTLY-vivaltonfc3g.zip

adeii, unfortunately the latest build is not only about glitches. That red frame persists but that white noise reboots the device when appears. Did you use JDK6 or maybe accidentally something else? Nikiz's latest build is stable and includes the latest WiFi fix. The problem with notifications which I addressed previously was due to GApps version, not the ROM itself, but I noticed two more:

1. Colours when playing YouTube video are in bluish spectre ("My Hue and Cry", as per Cocteau Twins :))
2. Telegram outgoing call voice is nowhere, receiving is fine. My guess is that it's due to permissions for recording audio, which I'm gonna investigate.
 
Actually no, and this goes for the record:

I kept my colleague's broken one (literally!) so I can peek at hardware stuff. The Broadcom chip inside is 21664A0IFDBG! So despite the fact that all of the docs mention BCM21663, it's actually BCM21664 inside. Then again, maybe it depends on the region. Anyway, 1GHz is max freq after all.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Code:
    #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.
    */
    General:
    CyanogenMod 11 for Samsung Galaxy Trend 2. (SM-G313HN) This is not 100% completed, so bugs can be expected. There are some bugs listed on this post and if you find more, report them to me. (Either to this thread or via private messages) It will help alot to fix them.

    Note: Google apps are not included. Get them here. I recommend using Mini or smaller, because when installing a OTA update, the bigger packages don't fit on RAM if the internal storage is full. You can install the rest from Play store. It is also kinda pointless to have for example, Youtube and Google Maps on /system, because when they are updated, the updated versions go to /data anyway.

    Screenshots:


    Downloads:
    * Latest build
    * All builds

    Installation:
    * Install a custom recovery. (Get CWM here)
    * Download the latest version to your SD-card.
    * Boot into the recovery mode by pressing <Vol. Up> + <Home> + <Power>
    * You can navigate on the recovery mode with the volume keys. <Power> opens the selection and <Back> goes to the previous menu.
    * Backup your stock ROM by going to the SD card by going to "backup and restore" -> "backup to /storage/extSdCard". You need about 3-4 gigabytes of free space on the card, depending how full your internal storage is. You can go back to stock if you don't like this ROM, by going to "backup and restore" -> "restore from /storage/extSdCard".
    * You need to do a factory reset before installing this. You can do this by selecting "wipe data/factory reset". The installation won't let you install the ROM without doing this.
    * Select "install zip" -> "install from /storage/extSdCard" and then select the zip you downloaded.
    * Optionally install the OpenGApps-package while you are in the recovery the same way. (Doesn't need a data wipe)
    * When it is done installing, go back to the main menu and select "reboot system now" and that should be pretty much it. The first startup takes a while.

    Updating:
    CyanogenMod checks for updates weekly by default. You can update the phone manually by going to Settings -> About phone -> CyanogenMod-updates, tapping the refresh button and selecting the latest one. After it is downloaded, you can install it.

    What works?
    * Audio
    * Bluetooth (At least file transfer between 2 devices is confirmed, no other devices tested. (For example. headsets, keyboards, etc.)
    * Calls
    * Camera
    * Data connection
    * DSP Manager
    * GPS
    * NFC
    * Offline-charging
    * OTA updates
    * Text messages
    * USB (Adb, MTP, PTP, UMS, Tethering, etc)
    * Video playback/recording (Mostly.. Front camera video recording doesn't work and some codecs don't work.)
    * WiFi
    * Wired headsets (Audio, microphone, button)

    Bugs:
    * First startup might is laggy. The best way is to just skip everything, change the language and set up the accounts, etc. from the Settings app.
    * Some videos don't play, because there are some codec issues. (For example on Facebook. YouTube seems to work fine.)
    * Some have reported about higher battery drain when using WiFi compared to stock ROM.
    * Reported that when calling or sending messages, the phone causes more interference to TV/radio signals than stock. (Excessive transmitting power?) Not too noticeable unless you are very close to the antenna, so it shouldn't cause too much problems. Possibly uses more battery.
    * When USB debugging enabled and the phone is restarted, turning USB tethering on too quickly doesn't turn it on completely and removing the USB cable the phone causes the phone to freeze. (This happens when using Linux, the computer shows that it is trying to connect to the internet but the phone shows that USB tethering is not enabled) When this happens, it can be fixed (When the cable is not removed) by going to the settings -> developer settings and disabling ADB, then re-enabling it and finally then turning on USB tethering. Yes, Linux + ADB + turning on USB tethering within 10-20 seconds after rebooting. I know this doesn't affect many people, but happens to me frequently.
    * Front camera video recording doesn't work.

    Changelog:
    Code:
    ===================================
    Build 20151214
    ===================================
     * Fix libskia. (Updated sources)
     * Remove unused or otherwise useless binary blobs. List of blobs:
    	/system/bin/at_distributor
    	/system/bin/atx
    	/system/bin/atxd
    	/system/bin/usb_portd
    	/system/bin/usbdev_mode
    	/system/etc/apanic_rename.sh
    	/system/etc/copy_cp_imgs.sh
    	/system/etc/show_navi.sh
    	/system/etc/usb_portd.conf
    	/system/lib/lib_SA_GoogleFX_ver124b.so
    	/system/lib/libatlog.so
    	/system/lib/libatparser.so
    	/system/lib/libaudiosa.so
     * Rework /system/etc/media_profiles.xml. (Doesn't seem to fix or break anything..)
     * Change kernel compression from XZ to GZip. (Speeds up booting by few seconds)
     * Disable CONFIG_KSWAPD_NOSWAP from kernel. (Enable better swapping)
     * Remove unused services from /init.hawaii_ss_vivaltonfc3g_base.rc.
    
    ===================================
    Build 20151209
    ===================================
     * Android security patch December 1, 2015.
     * Removed the a2dp_audio_hw patch, because it did not do anything.
    
    ===================================
    Build 20151207
    ===================================
     * Fixed libstagefrighthw. (Caused some app crashes, for example YouTube and Facebook)
     * Enabled zRam. (This should speed up the phone nicely, when there are alot of apps running in the background.)
     * Patched a2dp_audio_hw. I don't know if it changed anything.
     * Cleaned the init scripts a bit.
    
    ===================================
    Build 20151128
    ===================================
     * Fixed bluetooth
     * Fixed NFC
     * This build now uses CyanogenMod /init instead of the stock one
     * Now uses OTA updates (yay!)
     
    ===================================
    Build 20151119
    ===================================
     * Fixed the "WiFi amnesia" bug
     * Fixed offline charger
     
    ===================================
    Build 20151118
    ===================================
     * Fixed the codec issues
     * Built with newer sources, now shows "Android security patch level"
    
    ===================================
    Build 20150829
    ===================================
     * First release.

    Source code:
    * Device tree
    * Kernel

    Thanks to itigr for helping me alot in this project!
    2
    New build coming soon! Changes:
    - Most of the hardware codecs work now. (Tested: video recording/playback, Youtube, DSP Manager)
    - When I updated the CM sources, there was "Android security patch level" in "About phone". Not sure if these will update automatically or what.
    EDIT: New build is available!
    EDIT2: Fixed the "WiFi amnesia". Quick patch: https://www.androidfilehost.com/?fid=24269982086999294.
    EDIT3: New build uploaded. Fixed the WiFi bug and the offline charger now works.
    EDIT4: Accidentally uploaded the eng-build. (Red flashes around the screen and insecure ADB) >.< Rebuilding..
    EDIT5: Re-uploaded the build.
    2
    Offtopic:
    LOL, I literally had this phone for under 24 hours and I managed to get a working custom recovery for this.
    2
    Huh, the problem really was the NTFS partition. Downloaded AND built CM12 overnight. :)
    1
    Now it works with microg. I can find about device by searching it from settings. Can we modify it for sm g313hn? Battery life on AOSP is amazing