Skip to content

cm-3470/android_device_samsung_degaslte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Device configuration for Samsung Galaxy Tab 4 7.0 LTE SM-T235 (degaslte)

Important

This tree is currently WIP meaning that it may not even boot at it's current state!

Spec Sheet

Feature Specification
CPU Quad-core 1.4 GHz
Chipset Exynos 3 Quad 3470
GPU Mali-400MP4
Memory 1.5GB RAM
Shipped Android Version (4.4.2)
Storage 8 GB
MicroSD Up to 64GB
Battery 4000 mAh
Dimensions 186.9 x 107.9 x 9 mm
Display 800 x 1280 pixels
Camera 3 MP, 2048 x 1536 pixels
Release Date May 2014

Device Picture

Samsung Galaxy Tab 4 7.0


##How To Build

Although this device is not officially supported, the build-steps are not that different between devices. Most of the information on this "How to build" page also apply to this device: http://wiki.lineageos.org/w/Build_for_t0lte

Requirements:

  • At least 8GB RAM (build will stop without a warning with 6GB)
  • 65GB (sources and build results) + 35GB (CCACHE)

Perform the following steps from the above "How to build":

  1. Install the SDK

  2. Install the Build Packages

  3. Create the directories

    $ mkdir -p ~/bin
    $ mkdir -p ~/android/system

    Note: you can replace the build root "/android/system" with any directory you like. Let's assume it is "/android/system" in the following steps.

  4. Install the repo command

    $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo
  5. Put the ~/bin directory in your path of execution

  6. Initialize the LineageOS source repository

    $ cd ~/android/system/
    $ repo init -u https://github.com/LineageOS/android.git -b cm-13.0
  7. Download the source code

    $ repo sync
  8. Patch sources

    8.1. Clone the local manifests with the following commands:

    $ cd ~/android/system/
    $ git clone https://github.com/cm-3470/android_.repo_local_manifests -b cm-13.0 .repo/local_manifests

    However if you already obtained local manifests from a different device, just copy at least the following files into .repo/local_manifests :

    8.2. Fetch device specific repos by synching all repos

    $ repo sync

    8.3. Apply device specific patches (also repeat this step whenever the patches in the directory "patch" are modified):

    $ cd device/samsung/smdk3470-common/patch
    $ ./apply.sh
  9. Prepare the device-specific code

    This step is device specific and hence different from the "How to build".

    $ source build/envsetup.sh
    $ lunch lineage_degaslte-userdebug

    These commands only have a temporary effect, you will have to perform these commands again, when you use a new terminal window.

  10. Turn on caching to speed up build

    Only if you want to rebuilt LineageOS multiple times you also should enable CCACHE

  11. Start the build

    $ croot
    $ mka bacon

###Build-results:

The build-process takes a lot of time - the initial build can take about 10h. If CCACHE is enabled, the next builds only take 3-4 hours. Note that especially the linking process (ld) needs a huge amount of memory. The building process stops without a warning if only 6GB are present. In this case you can try to build with only one process (mka bacon -j1).

When the build-process finished the following files will be available:

LineageOS image: out/target/product/degaslte/cm-13.0-<date>-UNOFFICIAL-<device>.zip
recovery: out/target/product/degaslte/recovery.img

###Rebuild:

If you want to rebuild the ROM, perform the following steps:

$ repo sync
$ mka clean
$ mka bacon

"repo sync" might fail due to local source code modifications. In this case temporarily revert the changes and reapply them after the update:

$ repo sync (-> fails due to local modifications, failing subprojects are listed in log-output)

For each failing subproject, revert the changes (e.g. with git reset --hard ...)

$ croot
$ repo sync

Now reapply the patches (see section about device/samsung/smdk3470-common/patch/apply.sh)


Copyright

#
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published