Turning off kernel messages causes some issues - Android Software/Hacking General [Developers Only]

Hi guys,
In the kernel I developed (Elite-Boeffla-Kernel for i9300) I implemented a setting that controls if the kernel prints messages or not (the messages that are accessible via the "dmesg" command). If I turn it off so that my kernel doesn't create any messages I have some small issues like videos not playing after a few hours. When I turn these messages on again the issues persist until the next reboot. The only way I know to avoid them is not turning off kernel messages.
My question is:
Why are these issues caused and why don't they occur immediately, but after a few hours?
This feature works as follows:
There's a file in the /sys folder that contains either 1 or 0. When this is set to 1 the kernel works as it would work if this feature wasn't implemented. But when I set it to 0 the program that creates the kernel messages is stopped immediately after executing (using an if statement). In the source tree this program is called "printk.c".

Related

[Q] Overriding Android default (built-in) components

I want an activity in an app to overide the Android default (built-in) phone dialer/receiver that normally gets run on incoming calls. This is so that I can replace the default screen, the one that pops up when a phone call comes in, with my own call reception activity.
What approaches would you suggest for this. How do you control the priority / precedence of components to be called? What is the Android component that does the phone call receiving, and how do I run my own activity BEFORE this starts up (and instead of it).
Do you know whether this kind of thing (overriding built-in components) can be done without modifying the Android Java source code (of the dialer/receiver I assume)? Or in some other way?
Would you please point me to any information (links, books, code
examples, whatever), you may have about this? Any starting point would be helpful.
Thanks,
Rooster

[Q] SuperRom 2.0 Bluetooth and other issues for I9100G

I recently installed the SuperRom v2.0 (superatmos v2.1). The following are the issues that I have faced so far.
1. Bluetooth - Although the rom detects and connects to the bluetooth headset, unfortunately while making calls, the headset button on the phone is disabled - as a result I could not make any calls.
2. Phone switches to lock screen - A strange problem that I noticed when I flashed the rom is while downloading apps from Market Place. When i tried downloading an app like KTool, it begins the download process, when the download completes and beings to the install the app, the phone simply switches to the lock screen mode and the installed app is lost.
3. With SuperRom V1.1 and kernel 1.1, i had the same bluetooth and phone screen lock issues as mentioned above.
I was trying alternatives to figure out what could be the issue with Android Market app causing the phone screen lock.
I tried re-installing the app and rebooted the phone. Next, I rebooted to recovery mode and wiped the cache. Then the problems mentioned in (1) and (2) where gone, but I soon realised a 4th problem
4. The 4th problem was when I installed AnTuTu CPU accelerator, I overclocked it to 1.2ghz and saved the same. However when I open the app, the app sets the CPU frequency back to 1.08Ghz.
@SuperAtmos - Great job in building a custom rom for i9100G, but I guess you need to address the issues I have mentioned above.
@others - Guys have you come across the above problems ?
thanks
-Optimus

Background process limit

I flashed CanGalaxy ROM but every time I set background process limit and reboot, it resets to standard. How to fix that.?
try using mackay rom
Finally figured this out, man was it annoying.
I need it for my 2012 Nexus 7 running Android 5.1.1
It was running slower than molasseses until I changed the data partition to f2fs (make sure you have a kernel and ramdisk that support f2fs!) and enabled this tweak.
It can be done with root access with a single command.
service call activity 51 i32 x
Where x is the number of background processes you want.
If the API changes in the future, it's easy to look it up again.
http://grepcode.com/file/repository...4.4_r1/android/app/IActivityManager.java?av=f
Look for the line with SET_PROCESS_LIMIT_TRANSACTION
Then just extrapolate that info to http://grepcode.com/file/repository...ERSION/android/app/IActivityManager.java?av=f
Replacing DESIRED_ANDROID_VERSION with the version you're interested in.

[HELP] Android Audio Recorder enabled by NFC

Hello
I’m really new in java programming. I’m trying to build an android application that will be enabled by NFC, record sound (during sleep) continuously (in separated files of 1-2 minutes length and then start a new recording file), uploading each one of them (right after it’s recorded) on a server and then deleting them from the phone. Also I want to add a UTC timestamp to every file , to be able to synchronize these sounds recordings with other signals, on the same graph.
I’ve found an open source app which records audio. I need to make it to :
1. Start while I put the phone on the NFC
2. Record files with 1-2 minutes max length
3. Upload each one on the server and then delete it from the phone
4. Add UTC timestamps
Could you help me with any of these? Any Help would be appreciated.
Thanks in advance!

Kernel wakelock how to restore functionality

Hi
[no root]
Tell me please how to get / view the program logs? and will it be possible to understand from these logs what the program issue?
The situation is as follows - I installed Wakelock Detector 2.1.0 and the kernel mode worked. then I changed something in the phone settings (but not related to the program), for example samsung push nitification prohibited working in mobile networks. for goole play service removed permishins for microphone, etc. And the kernel mode stopped working. gives the error "Faild perform this time. try later"
Using logs I want to understand what it is missing.
PS: there is another phone nearby where the kernel works in case it helps to quickly understand what it needs.

Categories

Resources