yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] minato008:
Hello, I have been wanting to use some stock android ROMs like CM11 but the one thing that keeps me with Samsung roms is the samsung mms app. I like how it has the preview on the lockscreen and I can see who has messaged me without unlocking the phone, like this:

Does anyone know a similar mms app on the android market that has this feature? Since you cannot install that one on cm11...
[Desire 816 Q&A, Help & Troubleshooting] DeathTrapBG:
So i have this problem. I rooted the phone and tried to install the KingSenseDS 2.0.0 custom ROM. I finished the installation, but i was stuck in a boot loop. In the article with the installation guide there was a second guide for the boot loop problem, so i decided to do it, with no success. The phone is still in boot loop and when i try to go in recovery mode, it reboots by itself after 15-20 seconds. Can you give me some advice what can i try to fix it?
[Nexus 5 Q&A, Help & Troubleshooting] vdefender:
Alright. I'd like to hear from people who use android wear with their Nexus 5 and don't have the disconnect issue, and the constant "Connected, running sync loop" notification. What rom are you running? Can I get some recommendations that don't have this issue? I'm currently running CM11, and I don't want this sync loop issue!

Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] evancohen:
Same issue with S4

I've been having the same issue with my S4. I managed to track down this Reddit thread: http://www.reddit.com/r/moto360/comments/2fr316/cyanogenmod_users_beware/

It looks like the problem is with CM11 because they've also had problems with the Gear http://xdaforums.com/android-wear/help/gear-live-connection-issues-t2824298

I'm on the latest stable build of CM, but I think I'm going to try another ROM just to see if I can get it working. Will post back here if I find a CM11 solution as I'm still looking around.
[Nexus 5 Q&A, Help & Troubleshooting] andypiznti:
Haha I posted in that reddit thread today, same issue. Please post if you find a solution. Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] vdefender:
Yeah I've posted in that thread too. Ugh, I don't want to switch roms!
[Nexus 5 Q&A, Help & Troubleshooting] eatonjb:
it seems to be an issue with the newest Google play services.
[Nexus 5 Q&A, Help & Troubleshooting] segag:
Having the same issue with my non-related nexus 5 connected to the moto 360.. No drain on the battery though
[Nexus 5 Q&A, Help & Troubleshooting] eatonjb:
I was able to run off USB debugging and dev features off
[XDA Assist] Deleted member 6023859:
Hi Everyone,

I recently acquired a new tablet - the Pocketbook Surfpad 3 10.1 inch model.

Specifications:

CPU: MediaTek MT8389 (quadcore 1.2ghz, cortex-a7)

RAM: 1GB

HDD: 16GB

GPU: PowerVR SGX 544MP

Screen: IPS, 10.1 inch, 5-point touchscreen, 1280x800 resolution

Android: 4.2.2

Kernel version: 3.5.6

I have searched a lot and have been unable to find any custom roms for it. I do have some experience with custom roms, having been updating my ZTE Blade phone for a number of years now.

What I want to somehow do (please tell me which are feasable):

- update libraries

- zipalign

- deodex

- remove unneeded bloatware

- add useful apks (cyanogenmod dsp manager, calculator and others?)

- update camera app

- add new i/o schedulers, cpu governor, KSM?

I am not crazy and I know AI have close to zero skills in doing any of these. I just want a workaround for these problems:

- bad volume (needs equalization like from the DSP Manager from CM for Speakers)

- remove unneeded bloatware without breaking anything

- optimize processing and battery

I have managed to root it, and may have found a working recovery (CMW 6.0.3.2) via some random russian forums.

What would you advise me?
[XDA Assist] It_ler:
Sorry ... can't find any custom ROM for your device either.

As there is no device specific forum on xda, you should post your request in the Android Development and Hacking > Android Q&A, Help & Troubleshooting forum ... and hope that someone having this device is willing to create (and share) a custom ROM.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] rubinglen:
I have the strangest damn problem on my phone. Sometimes, when I press the power button to turn the screen off, the phone just shuts down completely and then when I try to reboot won't get past my splash screen. When this first happened I couldn't get the phone restarted at all, even by taking the battery out and waiting for over 10 minutes. Everytime I tried booting it would go to the splash screen and then blank back off. It would do this once and then I had to remove and replace the battery just to get it to boot to the splash screen again. I thought this might have something to do with having a custom rom installed (sacs custom), so I played around with the phone and managed to get it in Odin mode. I then brought the phone back to stock. Everything worked so I figured I had fixed it, but then after pressing the power button one time I got back the same problem. It shutdown and would not restart past the splash screen. In retrospect, I think when I pressed the power button the screen did not immediately go off and so I clicked it a couple times in a row before it crashed, that may be what triggers it, b/c sometimes i press the power/screen button and it goes off without incident.

So, now I had the phone back to stock and had the same problem. It turned off and would not boot past the splash screen. By a stroke of good fortune I figured out how to get the phone booting again past the splash screen. When the splash screen came up, I started repeatedly touching and swiping at the phone; drawing little circles tapping at it, etc... When I did this the phone continued to load and boot up normally.

I installed AVG antivirus, to see if maybe there was malware on my phone. Scans showed nothing. I updated all of the software as well. I now have an app installed for turning off the phone instead of using the power button. This of course is not an ideal situtation, why should pressing the power button crash my phone like this??
[Android Software Development] Eliminator79:
Hey, Guys

Today I'm going to show you a nice tutorial on how to compile your own android kernel from source, this tutorial will be a little bit focused on Sony devices as i had an experience with 'em, but that is not going to prevent that this way can be good for other manufacturers as all of them are Android based (Same programing language)

I have included screenshots and examples of codes to accompany each step of the way. :good:

On XDA Portal:

Chapters:

1.Installing Ubuntu

As we all know, Ubuntu is free open source OS that allows you to use it alongside your already installed OS without any problems, you will be promoted at every startup to choose whether your Default OS or Ubuntu OS

So, don't get freaked guys no partitions are going to be formatted or no data loss is going to happen at all.

1)Get the Ubuntu ISO

Go to Ubuntu site (Downloads section)

Choose whether you are on 32-bit or 64-bit (We'll be assuming that we are on 32-bit)

Download the ISO then burn the ISO to DVD then boot it (or you can write install your ubuntu via usb by using this tutorial

Choose "install Ubuntu alongside your windows OS version"

Manage the partitions yourself

You got your Ubuntu ready. Time for some business

2.Downloading the Source Code

Motorola: opensource.motorola.com/

LG: http://opensource.lge.com/osList/list?m=Mc001&s=Sc002

Huawei: http://emui.huawei.com/en/plugin.php?id=hwdownload

Sony: http://developer.sonymobile.com/downloads/xperia-open-source-archives/

HTC: http://www.htcdev.com/

Samsung: http://opensource.samsung.com/

Download the TAR Source file that suits your firmware version for e.g (11.2.A.0.31)

To find your firmware version go to settings then about phone. You will see your firmware version there

[YOUTUBE]PloVE5__a2M[/YOUTUBE]
[Android Software Development] Eliminator79:
Reserved

3.Installing Libraries and Preparing the Environment

As you know guys there are several libraries needed for any software to terminate properly so, if you want to succeed in compiling you have to get these libraries that we're gonna write through the Linux terminal

1)Open the Linux Terminal

2)Write these commands

sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

mkdir android

3)Copy the source code archive into the folder android (that has been created throughout the “mkdir android” command

4)Run these commands

cd android

tar -xjvf [COLOR="DarkSlateBlue"]Source Name[/COLOR]

Replace Source Name with the Archive name

4.Preparing the toolchain

(You should download the whole toolchain of DoomLord, But to save our time I decided not to download the whole toolchain since that we're going to use only one folder of it)

The folder will be: arm-eabi-4.33 (Took from Linaro 4.6) (So you can consider your kernel is compiled using Linaro 4.6

Download arm-eabi-4.4.3

and extract it in the root of your home

And if you want to download the whole source run these commands

cd android

cd kernel

git clone git://github.com/DooMLoRD/android_prebuilt_toolchains.git toolchains
[Android Software Development] Eliminator79:
Last

6.Compiling

Part.A

cd android

cd kernel

export ARCH=arm

export CROSS_COMPILE=~/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-

Part.B (Wanna do some modifications ?)

make <your_config_name>_defconfig

Replace <your_config_name> with the one found at Source/arch/arm/configs

make menuconfig

make -j<cpucore>

Replace <cpucore> with the number of cpu cores that the device has if you are on single core write 1 and if you are on dual core write 2[

Quad core=4

Octa core=8

Part.C

make clean

make oldconfig

make -j<cpucore>

Same as before.
[Android Software Development] Eliminator79:
7.Trying out your kernel

Once you have got an output which will be kernel.elf

You have now to try it

Flash it using fastboot :D

Whether CMD or Androxyde Flashtool

You will have to install your fastboot drivers in both ways

CMD way

fastboot -i 0x0fce flash boot kernel.elf

Using Androxyde Flashtool (XPERIA Only)

Download it from here

Install the drivers found at (C:/Flashtool/drivers/Flashtool-drivers.exe)

Press on the thunder button above

Then Choose Fastboot mode

Connect your device in fastboot

After that choose the kernel output (.ELF)

Wanna my help fast ? :D

Mention me or PM me :D

8.Additional Tips

*To find the number of cores of your CPU, just open terminal and type the following:

cd android
cd kernel
cat /proc/cpuinfo

You will find the number of cores of CPU in a tag called "cpu cores" (Great Thanks to [MENTION=5874764]#buzz[/MENTION])

*Some other useful packages from apt-get, especially on newer Qualcomm devices. (Might help you if you want to compile whole AOSP ROMs from source)

sudo apt-get install liblz4-dev liblz4-tool lzop device-tree-compiler

(Thanks bro [MENTION=4316709]savoca[/MENTION])

Android & GPL

Once you have done your kernel and of course you used some parts from past kernel developers, you will also have to give your sources to other people "This which is called GPL Licence"

So, the best way for this process is "GIthub"

Credits [MENTION=4981005]TheWizardOfROMs[/MENTION] [MENTION=3830475]thewadegeek[/MENTION] [MENTION=2784807]DooMLoRD[/MENTION] [MENTION=4630817]SatrioDwiPrabowo[/MENTION] [MENTION=4153704]Haze028[/MENTION] [MENTION=4663391]abcdjdj[/MENTION]

XDA Universty
[Android Software Development] DanielFlorin:
Good tutorial ! :good::good::good:
[Android Software Development] Eliminator79:
[MENTION=5524051]DanielFlorin[/MENTION]

Thanks Bro. :D
[Android Software Development] SatrioDwiPrabowo:
Step 7 just for Sony Xperia Tamsui device like Miro , J , E , Tipo this is different with an other Xperia device so please justify and one more don't re-upload / mirror my files please use original link on my github thanks ....
[Android Software Development] nicholaschum:
Truly amazing and descriptive guide. Was thinking about making my own kernel from source just the other day and now this is up!
[Android Software Development] vlc07:
Nice guide well done:good:
[Android Software Development] Nikhil:
Hi,

Great tutorial. I'm going to try it for my device! :)

Kernel has more than just I/O, schedulers and governers.

Are you going to expand the tutorial gradually i.e. explain other features? (Would be great if Yes)
[Android Software Development] Dilesh Perera:
Very good . subscribed :)
[Android Software Development] Eliminator79:
Of course bro, but the problem that for now i'm studying but if you need any thing go ahead and message me.

Thanks very much..... :laugh:
[Android Software Development] Eliminator79:
Thanks very much my bro......

Your comment made me really happy ^^

:thumbup:
[Android Software Development] #buzz:
What a coincidence!!

I don't know whether it a coincidence or not but I have exactly the same wallpaper applied on to my Ubuntu 14.04 x64 bit operating system also with dual boot of Windows 7 Ultimate along side Ubuntu.

Also the second coincidence is, I made the same tutorial on building kernel except for the fact that it is for building linux kernel rather than an android kernel.

Anyway, Good Job! :good:

---------- Post added at 07:13 AM ---------- Previous post was at 07:03 AM ----------

To find the number of cores of your CPU, just open terminal and type the following:

cat /proc/cpuinfo

You will find the number of cores of CPU in a tag called "cpu cores"

Hope that helps.

[MENTION=5373435]Eliminator79[/MENTION] You can add this to your guide.
[Android Software Development] savoca:
Some other useful packages from apt-get, especially on newer qcom devices.

sudo apt-get install liblz4-dev liblz4-tool lzop device-tree-compiler

make -j$(grep -c ^processor /proc/cpuinfo)

^ Works as well, and it's universal.
[Android Software Development] stdiox:
Wow, I was always curious how people do it. Thanks a lot man.
[Android Software Development] sixline:
+1
[Android Software Development] ChinmayKunkikar:
Thanks a lot!

You got me what I wanted! :):victory:
[Android Software Development] Eliminator79:
[MENTION=4316709]savoca[/MENTION] Thanks so much dude.

Do you give me permisssions to add these tips to the post ? :cowboy:

You motivated me alot bro...Thanks

Anytime bro :D
[Android Software Development] Pavlex4:
How to fix this: make -j3

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.

make[1]: 'include/generated/mach-types.h' is up to date.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/usb/Makefile:2: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

scripts/Makefile.modbuiltin:54: recipe for target 'drivers/usb' failed

make[1]: *** [drivers/usb] Error 2

make[1]: *** Waiting for unfinished jobs....

Makefile:1110: recipe for target 'drivers/modules.builtin' failed

make: *** [drivers/modules.builtin] Error 2

make: *** Waiting for unfinished jobs....

make: *** wait: No child processes. Stop.
[Android Software Development] neonkat:
/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/usb/Makefile:2: *** missing separator

check that makefile.
[Android Software Development] yarpiin:
also for 64 bit kernel i find easiest to use commands as below, i have been told to do not edic bash.rc file ony compile like that ( im usin uber toolchain)

make clean && make mrproper

make ARCH=arm64 CROSS_COMPILE=/home/slawek/Android/Toolchains/aarch64-linux-android-4.9-kernel/bin/aarch64-linux-android- kernel_defconfig

make ARCH=arm64 CROSS_COMPILE=/home/slawek/Android/Toolchains/aarch64-linux-android-4.9-kernel/bin/aarch64-linux-android- menuconfig ->optional

make ARCH=arm64 CROSS_COMPILE=/home/slawek/Android/Toolchains/aarch64-linux-android-4.9-kernel/bin/aarch64-linux-android-

Alo folders with toolchains depend where you have them
[Android Software Development] neonkat:
editing bash.rc will reduce the pain of adding toolchain path again and all other commands.

i am using this method for a few months,no issues for me.
[Android Software Development] yarpiin:
i have tryed all :) im noob and find this one easies and less painfull atleast compiling 64bit kernel for oneplus2
[Android Software Development] Pavlex4:
I have checked a makefile and removed all spaces but still have error.
[Android Software Development] abhishekr700:
Hey bro I did what you asked me to.Here is full error...

CC drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_rmi_dev.o

CC drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_fw_update.o

LD drivers/input/touchscreen/synaptics_dsx/built-in.o

CC drivers/input/touchscreen/ftxxxx_ts.o

CC drivers/input/touchscreen/ftxxxx_ex_fun.o

drivers/input/touchscreen/ftxxxx_ex_fun.c: In function 'fts_ctpm_fw_upgrade_with_i_file':

drivers/input/touchscreen/ftxxxx_ex_fun.c:423:3: error: label at end of compound statement

default:

^

drivers/input/touchscreen/ftxxxx_ex_fun.c: In function 'fts_ctpm_auto_upgrade':

drivers/input/touchscreen/ftxxxx_ex_fun.c:650:3: error: label at end of compound statement

default:

^

scripts/Makefile.build:308: recipe for target 'drivers/input/touchscreen/ftxxxx_ex_fun.o' failed

scripts/Makefile.build:455: recipe for target 'drivers/input/touchscreen' failed

scripts/Makefile.build:455: recipe for target 'drivers/input' failed

Makefile:839: recipe for target 'drivers' failed
[Android Software Development] Pavlex4:
Can someone help me with patch file???

How to fix this: make -j3

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.

make[1]: 'include/generated/mach-types.h' is up to date.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/usb/Makefile:2: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.

scripts/Makefile.modbuiltin:54: recipe for target 'drivers/usb' failed

make[1]: *** [drivers/usb] Error 2

make[1]: *** Waiting for unfinished jobs....

Makefile:1110: recipe for target 'drivers/modules.builtin' failed

make: *** [drivers/modules.builtin] Error 2

make: *** Waiting for unfinished jobs....

make: *** wait: No child processes. Stop.
[Android Software Development] Abdullaharis:
Thanks Nice Guide.
[Android Software Development] Pavlex4:
When I run command make -j3 I get error:

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: 'include/generated/mach-types.h' is up to date.

make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

CC drivers/usb/core/driver.o

drivers/usb/core/driver.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '--' token

drivers/usb/core/driver.c:2:7: error: invalid suffix "ff980..eea6d64" on integer constant

drivers/usb/core/driver.c:1287:1: error: stray '@' in program

drivers/usb/core/driver.c:1287:1: error: stray '@' in program

drivers/usb/core/driver.c:1287:4: error: expected identifier or '(' before '-' token

drivers/usb/core/driver.c:1287:4: error: stray '@' in program

drivers/usb/core/driver.c:1287:4: error: stray '@' in program

drivers/usb/core/driver.c:1290:1: error: stray '#' in program

drivers/usb/core/driver.c:1291:1: error: stray '#' in program

drivers/usb/core/driver.c:1325:1: error: expected identifier or '(' before '+' token

drivers/usb/core/driver.c:1329:1: error: stray '@' in program

drivers/usb/core/driver.c:1329:1: error: stray '@' in program

drivers/usb/core/driver.c:1329:1: error: stray '@' in program

drivers/usb/core/driver.c:1329:1: error: stray '@' in program

drivers/usb/core/driver.c: In function 'usb_suspend':

drivers/usb/core/driver.c:1407:1: error: stray '@' in program

drivers/usb/core/driver.c:1407:1: error: stray '@' in program

drivers/usb/core/driver.c:1407:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]

error, forbidden warning: driver.c:1407

scripts/Makefile.build:307: recipe for target 'drivers/usb/core/driver.o' failed

make[3]: *** [drivers/usb/core/driver.o] Error 1

scripts/Makefile.build:443: recipe for target 'drivers/usb/core' failed

make[2]: *** [drivers/usb/core] Error 2

scripts/Makefile.build:443: recipe for target 'drivers/usb' failed

make[1]: *** [drivers/usb] Error 2

make[1]: *** Waiting for unfinished jobs....

Makefile:950: recipe for target 'drivers' failed

make: *** [drivers] Error 2
[Android Software Development] thatsupnow:
Awesome gonna try to make my own kernel
[Android Software Development] hassan1999:
build kernel for cyanogenmod rom

hello

I want to build a custom kernel compatible with cyanogenmod. How should i do ?? :)
[Android Software Development] neonkat:
check for cm rom page,there will be kernel source link,grab it and follow this guide.
[Android Software Development] hassan1999:
I haven't found the kernel source on cm rom page . I want to build a kernel for xperia arc compatible with cm11
[Android Software Development] Pavlex4:
How to fix this:

arch/arm/mach-msm/sec-regulator-max77888.o

arch/arm/mach-msm/sec-regulator-max77888.c:17:41: error: array type has incomplete element type

arch/arm/mach-msm/sec-regulator-max77888.c:18:8: error: implicit declaration of function 'REGULATOR_SUPPLY' [-Werror=implicit-function-declaration]

arch/arm/mach-msm/sec-regulator-max77888.c:21:41: error: array type has incomplete element type

arch/arm/mach-msm/sec-regulator-max77888.c:25:41: error: array type has incomplete element type

arch/arm/mach-msm/sec-regulator-max77888.c:30:15: error: variable 'safeout1_init_data' has initializer but incomplete type

arch/arm/mach-msm/sec-regulator-max77888.c:31:8: error: unknown field 'constraints' specified in initializer

arch/arm/mach-msm/sec-regulator-max77888.c:31:8: error: extra brace group at end of initializer

arch/arm/mach-msm/sec-regulator-max77888.c:31:8: error: (near initialization for 'safeout1_init_data')

arch/arm/mach-msm/sec-regulator-max77888.c:33:34: error: 'REGULATOR_CHANGE_STATUS' undeclared here (not in a function)

arch/arm/mach-msm/sec-regulator-max77888.c:36:16: error: extra brace group at end of initializer

arch/arm/mach-msm/sec-regulator-max77888.c:36:16: error: (near initialization for 'safeout1_init_data')

arch/arm/mach-msm/sec-regulator-max77888.c:39:8: warning: excess elements in struct initializer [enabled by default]

error, forbidden warning: sec-regulator-max77888.c:39

scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/sec-regulator-max77888.o' failed

make[1]: *** [arch/arm/mach-msm/sec-regulator-max77888.o] Error 1

Makefile:950: recipe for target 'arch/arm/mach-msm' failed

make: *** [arch/arm/mach-msm] Error 2

make: *** Waiting for unfinished jobs....
[Android Software Development] sh A ne:
Any help with this error
[Android Software Development] neonkat:
maybe try this.

*removed*

duh,i thought its the rom buillding guide.
[Android Software Development] sh A ne:
yeh worked just fine , thanks .Now am getting this
[Android Software Development] neonkat:
you may try https://github.com/mahound/bricked-S7275-kernel/commit/244752419d7dbce73292032375567dcecced3293.

do check if gov. includes <asm/cputime.h>,if not,add it.
[Android Software Development] sh A ne:
Sorry for bugging you as am not good at kernels.

So i tried your given link and i got rid of the first error but not this one and also <asm/cputime.h> is included :

CC sound/soc/codecs/wcd9xxx-common.o

drivers/cpufreq/cpufreq_brazilianwax.c:686:9: error: unknown field 'suspend' specified in initializer

.suspend = brazilianwax_early_suspend,

^

drivers/cpufreq/cpufreq_brazilianwax.c:686:9: warning: excess elements in struct initializer

error, forbidden warning: cpufreq_brazilianwax.c:686

make[2]: *** [drivers/cpufreq/cpufreq_brazilianwax.o] Error 1

make[1]: *** [drivers/cpufreq] Error 2

make: *** [drivers] Error 2

make: *** Waiting for unfinished jobs....

CC sound/soc/codecs/wcdcal-hwdep.o

CC fs/ext4/extents.o

CC sound/soc/codecs/wcd9xxx-resmgr.o