yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Alex_Gamer:
Hey bro, here are the radio logcat: https://drive.google.com/file/d/0B1jKGJ7Waik1ZkgtT2h4OUZYdjA/view?usp=docslist_api and the dmesg: https://drive.google.com/file/d/0B1jKGJ7Waik1cWEwT1R6elROTGc/view?usp=docslist_api
[Sony Xperia M] op3n:
hello. in last update of kernel, 5.6 or 5.6 r1 when i try to open wifi, the phone imediatly become blocked and is doesnt work until i dont install again 5.5 version. what can i do??? thank you!
[Sony Xperia M] thichthat:
Did you tried removing the battery and inserting it back? I couldn't found the bug in source code
[Sony Xperia M] thichthat:
Many users had stranger errors in this update. Maybe that's because offline charging was disabled or maybe the source code in my computer was corrupted. I'll try to fix it in next 2 or 3 days.
[Sony Xperia M] Alex_Gamer:
Yeah, but and the signal work again but when I reboot the no sim recognition bug come again... This is an awesome kernel but I can't be removing the battery and inserting again cuz in a emergency will be a very bad problem so I guess I revert to stock cm12.1 kernel :/

Enviado desde mi C1904 mediante Tapatalk
[Sony Xperia M] thichthat:
Did you tried using another rom? I think that's a hardware bug. Also, disable mobile data before rebooting.
[Sony Xperia M] Alex_Gamer:
Yeah, i tried cm12.1, rr and enfriar z5. I'll have that on mind when I need to reboot.
[Sony Xperia M] thichthat:
Just a small update:

Important:

list of old versions can be found here: https://drive.google.com/folderview?id=0B2-0MyP06DN5LWs1YWZudm5La3M&usp=sharing
[Sony Xperia M] ndrancs:
New update still make my phone random reboot, I'm on archidroid 3.1.5. Btw always thanks for this great kernel. (Y)
[Sony Xperia M] thichthat:
I think that is because the RAM and KSM tweak. Does any think that I should downgrade to v5.5?

Btw, connecting to git server is very slow for me. I couldn't clone the project to my PC.
[Sony Xperia M] Kb44994:
I am facing freeze at lock screen for few seconds on wake up with version 5.6.2
[Sony Xperia M] ndrancs:
If you have more time please rebuild with KSM config disabled. And I can test the kernel.
[Sony Xperia M] thichthat:
can you post your logcat/kmsg?
[Sony Xperia M] ilhamel50:
sorry for out off topic.... do you have solution for pack file with extension .cpio? maybe you can help me for miui v7 on xperia m
[Sony Xperia M] Agu_Ra:
You can pack it in Android via cpio utility from busybox (google "packing initrd" for instructions). You can pack it on any Linux distribution using the similar cpio utility or any graphical front-end like File Roller. On Windows it can be done with Cygwin and the same utility as in Linux. It is also included in osm0sis's Android Image Kitchen. I was always using AIK for repacking recoveries when I was using Windows.
[Sony Xperia M] ilhamel50:
can you give me the command on cygwin for repacking .cpio? i found some command on gnu... but i can't repack all file in folder...

like this

ls | cpio -ov > ramdisk.cpio
[Sony Xperia M] Agu_Ra:
I don't remember for sure, but something like this should work

find . | cpio -oH 'newc' > ramdisk.cpio
[Sony Xperia M] ilhamel50:
I have tried it .. but there are files in .cpio in packing results .cpio
[Sony Xperia M] Agu_Ra:
Can't get what do you mean.
[Sony Xperia M] thichthat:
can you take an example?

Btw, I'm having some important exams at school on Monday. New version will be uploaded next weekend, with KSM disabled for fixing random reboot.
[Sony Xperia M] ilhamel50:
sorry... my bad... now nothing problem again.. but i have another problem.. haha

maybe an error on my miui v7 isn't on the phone... hahaha can you help me? if you want, i will post my logcat in here... thanks

---------- Post added at 07:23 PM ---------- Previous post was at 07:22 PM ----------

sorry sir... my bad... now was solved... but i get another problem.. maybe this is not problem of kernel
[Sony Xperia M] ilhamel50:
if I edit ramdisk.cpio, do I have to edit ramdisk-recovery.cpio too?
[Sony Xperia M] ndrancs:
What is you edited? As I know ramdisk-recovery.cpio not needed to edit. If you want to run miui shell
[Sony Xperia M] Agu_Ra:
No, it is rarely needed. Moreover, it will be ignored if recovery in FOTAKernel is installed (if you haven't disabled extract_elf_ramdisk in init.sh). BTW, we are making too much offtopic. Create dev thread or PM me or someone else.
[Sony Xperia M] deepak.cr7:
Does this work on cm12.1 latest nightly and does it cause any hardware damage on overclocking
[Sony Xperia M] Antrikos48:
1. Yes

2. Potentially, but it's working fine at 1.7 GHz for me.
[Sony Xperia M] thichthat:
New version!

Next school year I'll be very busy, so I'll not have much time to spend on this project. Anw, I think the kernel is really stable now so it's not important to release many updates.
[Sony Xperia M] Agu_Ra:
Yes, you're right. The kernel is really as stable as the stock one and feature-rich as hell, it gives completely better user experience (especially offscreen gestures no one could port earlier). Thank you one more time for your amazing work! You are truly the best nicki custom kernel developer.
[Sony Xperia M] poran123:
If I flash this kernel will I lost my recovery??? Using fota recovery right now
[Sony Xperia M] Agu_Ra:
No, you won't.
[Sony Xperia M] poran123:
I have flash the kernel and now I get no sim card problem sometimes

Network goes and then comes again.. Anyone with this problem??

I'm using cm12.1 nightly. Didn't got before flashing the kernel
[Sony Xperia M] ndrancs:
Try reboot the phone at least once
[Sony Xperia M] poran123:
OK.. I'll try
[Sony Xperia M] Alex_Gamer:
Same problem here, im still on stock kernel because of that :(
[Sony Xperia M] thichthat:
Have you tried removing battery and plugging it back in?
[Sony Xperia M] poran123:
Haven't tried.. Now using stock kernel.. I'll try later on.. Thanks for replying
[Sony Xperia M] abhatia1435:
Sorry if this is stupid to ask, if I try to disable internal storage in CM12.1 nightly. How to get it back to normal? Simple Factory data reset or by wiping data and system? And also in the 2nd post it is written to extract those files and then flash? Is it a universal file for all the nightlies or we have to connect XM to generate device specific file?
[Sony Xperia M] Dreak_Sekh:
Will this work on Stock Rom of Xperia M?
[Sony Xperia M] sidsharma2201:
Whenever phone went into sleep mode, WiFi is turned off automatically or connection is suspended temporary. but when I unlock phone, it establish connection and notifications starts arriving.

this is really annoying as messages don't show up at the time intended. Any solution for that.???

Using latest version of Archidroid. and yeah problem was persistent in CM Nightlies too.

thanks
[Sony Xperia M] Agu_Ra:
It is already known problem for our device. And it seems to be not kernel-related. Even if it is kernel-related, it is not fixed in mainstream development branch neither in device tree nor in kernel.
[Sony Xperia M] thichthat:
If you want to re-enable internal storage, you can flash the backup.zip which is generated with the NUI_MOD.zip, or just re-flash CM without wiping data.

The link for all of zips from v4.9 will be uploaded soon. You can use extracted zip for all nightlies.

No. It's only for CM based roms. Flashing on stock kernel will brick your phone.
[Sony Xperia M] 8hodgsonkh:
Flashing disable zip made no difference

Flashed the disable internal storage zip on aosp beta 1 confirmed not working, maybe they changed something?
[Sony Xperia M] sidsharma2201:
[MENTION=4929675]thichthat[/MENTION] Does this kernel support hard swap?

OT

How did lower screen brightness? is it by adding command in build.prop or something else?

Thanks..
[Sony Xperia M] thichthat:
The kernel and the app only support zram swapping (using internal memory). However, if you want to swap using sdcard, try this app: https://play.google.com/store/apps/details?id=org.azasoft.free.swapper

You can change lowest brightness settings in /sys/nui/nuibrightness. This will directly change value of hardware brightness table.

I haven't tested on aosp beta 1 yet, but it worked on aosp alpha 1 and all cm13. Make sure that you used the zip made for marshmallow.
[Sony Xperia M] sidsharma2201:
No..I meant to say.. When we lower brightness to very low,which file or variable is affected..

Suppose I'm using stock kernel, what should I do to lower min brightness?
[Sony Xperia M] abhatia1435:
Disable Internal Storage isnt working on CM13 BETA 2

Here are the steps I followed:

1. Installed App from Play Store

2. Flashed Kernel

3. Flashed disable internal storage MM

Not Working, it just changed the name of SDcard to sdcard0 nothing else :confused: ?
[Sony Xperia M] thichthat:
In marshmallow, name of sdcard must be 8 random characters like "F105-F465". After flashing this mod, in /storage, internal storage will disappear and you will only see 2 folders: your sdcard and "self". The mod was tested and worked well on 3 released versions of CM13.
[Sony Xperia M] nirmal471:
After flashed this, now all apps can get write access to ext SD card? Because when using portable storage, can't change download path to SD card as in lollipop, it says no write access.
[Sony Xperia M] abhatia1435:
Yeah I know it works that way, but I am saying that it isn't working for me and I mentioned the steps above. Where did I go wrong? I flashed the kernel and then the mod. But it didn't disable the internal storage.
[Sony Xperia M] nirmal471:
Tested in cm13 beta 3, disable internal storage not working
[Sony Xperia M] thichthat:
That's so stranger. The mod works on any 6.0 ROMs I've flashed. I'm still using CM13 beta 3 with it.

Can you go to /storage, capture a picture and post it here? Also make sure that you're not having more than 1 partition on your sdcard.
[Sony Xperia M] thichthat:
V5.8 is up!

Note: You may ask "why the build version is #7? why didn't you make a clean build?". That's because I deleted all files in out dir instead of delete the folder. Anw, I haven't found any bugs so I think you shouldn't worry about it.

Important: Video recording is broken on CM13 beta 3 and I couldn't fixed yet. If you want to use all features, revert to beta 2.
[Sony Xperia M] elmkzgirxp:
[deleted]
[Sony Xperia M] Bonoboo:
Hi,

Question regarding init.d

As usual it's broken in CM13

But it works after installing your kernel and even without enabling fix in app.

Please, can you point on related change in kernel? (can't find on GitHub)

So maybe PecanCM fix it globally.
[Sony Xperia M] thichthat:
The magic comes from /sbin/init.sh. It can modify some files before booting to android:

Add to init.rc (this can't be done from CM source code):

service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
user root
disabled
oneshot

and for /init.class_main.sh (this is the baseband script), add this line:

/sbin/busybox run-parts /system/etc/init.d

Btw can you check if camera recording still works on CM13 beta 3 and beta 4?
[Sony Xperia M] Bonoboo:
Thanks for detailed answer!

I asked PecanCM check this out.

Forgot to say: for me video recording was broken too on Beta 3.

UPD: same on Beta 4
[Sony Xperia M] thichthat:
V5.9!! This version is now stable on ANY CM13 ROM

P/s: I'm trying to fix the disable internal storage mod. If it doesn't work for you, please tell me parameters of your sdcard.
[Sony Xperia M] rohitnegi44:
Will it work on xperia overlay android 5.0.2
[Sony Xperia M] thichthat:
Yes. The xperia overlay ROM is based on CM.
[Sony Xperia M] sidsharma2201:
[MENTION=4929675]thichthat[/MENTION] by any chance you can include hardswap in your kernel? Z-Ram is slow and heavy on CPU. I tried kernel in archidroid but it lacks many features compared to your one.

Thanks
[Sony Xperia M] thichthat:
You can use this app: http://www.tusfiles.net/p2odyf0kg79n

The "swap" option in the app allows you to create a swap file in sdcard, instead of making a partition for it. But I'm not recommend because swap can shorten your sdcard life time.

Btw, I've tested 1.83GHz overclocking and was successful. Higher freq makes the phone unstable.
[Sony Xperia M] rohitnegi44:
Can you pls add kcal support in latest version
[Sony Xperia M] thichthat:
It was already added in V2.0, but only for controlling RGB value. Also, all CM kernel have it.
[Sony Xperia M] Agu_Ra:
Hi, NUI! There's one important issue with your kernel's ramdisk. You are using old extract_elf_ramdisk. Long ago in CM it was changed to handle bigger recovery ramdisk size. Honestly saying, I've had some pain in the ass while TWRP development because of this (as I was lazy to test it with stock kernel), I couldn't figure out why does it boot in-kernel recovery when in-FOTAKernel one becomes a little bit bigger than regular. No way I'm blaming you, I don't blame anyone, I'm just sharing some of my emotions and trying to help you to make NUI and TWRP better. I compiled CM's one and put it to your kernel and now it works fine, I'm very happy for solving this issue and will be more happy if you'll fix it in your official builds. I attached precompiled extract_elf_ramdisk in case you don't have CM sources downloaded. And thank you for all your work.
[Sony Xperia M] thichthat:
Thank you so much for the solution. I also noticed that in CM13 they don't use init.sh script and extract_elf_ramdisk anymore. Instead, they use an utility named init_sony. I don't know whether it support fota kernel or not. Anw, it's not a worth change for me, so I'll keep using the init.sh.
[Sony Xperia M] Alex_Gamer:
[MENTION=4929675]thichthat[/MENTION] hey bro, are you fixed the issue with mobile data?
[Sony Xperia M] thichthat:
I hven't faced this issue on my phone so I couldn't fixed it yet. Maybe that's because radio version on CM13 is more stable.
[Sony Xperia M] Alex_Gamer:
Good to hear that :) i'm thinking to update to cm13
[Sony Xperia M] thichthat:
V6.0 is now ready!

Note: A

very very small

number of apps becomes unstable at 1.8GHz
[Sony Xperia M] Bonoboo:
Wow!

On clean CM13 in AnTuTu now 28.500 points instead 26.300 (1.78GHz)

And difference with stock now 13.600, just like added another phone.

UPD: reverted 1.78 GHz due instability
[Sony Xperia M] thichthat:
So great! I think that's the highest score our XM can reach. I even tried 1.9GHz but it's completely unstable.

About battery life, here's some info of CPU power usage:

192MHz = 0.78V

972MHz = 1.08V

1.8GHz = 1.3V

Compare to stock:

368MHz = 0.9V

972MHz = 1.1V
[Sony Xperia M] ndrancs:
Thanks for New updates, but please readd F2FS, my sdcard is formatted with it.
[Sony Xperia M] Agu_Ra:
Yeah, I know about sont init. And yes, it supports FOTAKernel, it is implemented directly in init code.
[Sony Xperia M] thichthat:
Yes, I will enable it in v6.0_r1.
[Sony Xperia M] Antrikos48:
Flashed v6 on CM12.1 and I cant get past the lockscreen without the phone rebooting. Went back to v5.9 and everything is working fine.
[Sony Xperia M] thichthat:
Can you capture the last_kmsg. It's very useful for me to fix errors.
[Sony Xperia M] Godlydevils:
I really want to use your kernal, I've been using till 5.1.1,

but now in 6.0.1 in C1904, I cannot understand how should I flash those files you suggested, as in cm recovery sd card is not detected neither my usb otg

whereas for fresh install of new version I use twrp recovery

which after flashing the rom changes to cm, and if I again flash twrp recover, phone bricked

sorry for being newb, but since marshmallow flashing has turned tedious work

I did read your guild I'm okay with keeping default storage to sd card, but how do I flash the .zip without sd card or otg being detected in recovery? they gets detected in twrp recovery and >5.1.2 recoveries tho
[Sony Xperia M] Antrikos48:
Ok, will do it tomorrow
[Sony Xperia M] Agu_Ra:
Seems that overclocking to 1.8 is unstable on some devices. When I enable it my phone hangs or reboots. So, I think it is not the best idea.
[Sony Xperia M] thichthat:
I'll change back to 1.7 in next update. I think that's because cpu doesn't have enough voltage.
[Sony Xperia M] thichthat:
You must read the guide in cucumber09's twrp thread carefully to prevent bricking. The zip file can be flashed just like a normal ROM zip file.
[Sony Xperia M] thichthat:
Fixing something...
[Sony Xperia M] Agu_Ra:
Very likely. I thought about this too as I'm using built-in undervolt script.
[Sony Xperia M] 8hodgsonkh:
Is there a site where i can download any version apk of your kernel!
[Sony Xperia M] dhruubo:
Im using latest version but it showing update the kernel now option
[Sony Xperia M] thichthat:
Oops I didn't notice. Will fix it when I come home.
[Sony Xperia M] Godlydevils:
Thank you sir

Really helped alot

So the solution is, first flash twrp recovery, flash as much zip as you want in one go, then change the FOTAKernal using terminal, and we will get twrp recovery,

but I don't understand one thing

I flashed "NUI_MOD_marshmallow.zip" and I don't think so I feel any changes

cannot move apps to sd card nor the new apps gets installed to sd card

in the 4th step "You have to move ALL data from internal storage to sdcard before using this mod"

idk which data, but had fresh rom but did installed apps so didn't moved anything, hope so it's okay?
[Sony Xperia M] dhruubo:
Thanks

---------- Post added at 12:10 PM ---------- Previous post was at 12:08 PM ----------

Anyone using internal storage disable in cm13 beta 5.2???if using then please share the zip file
[Sony Xperia M] thichthat:
Btw I forgot to notice that I've removed built-in undervolt script because the best voltage option was included in kernel code (and of course it's higher than the old one to prevent errors on some devices)

I've just a good site here:

https://apkpure.com/store/apps/details?id=com.nui.kernel
[Sony Xperia M] thichthat:
It doesn't works on some devices and I don't know how to fix. Can u tell me specifications of your sdcard?
[Sony Xperia M] dhruubo:
Samsung class 10

---------- Post added at 01:09 PM ---------- Previous post was at 01:07 PM ----------

Samsung class 10 sdcard
[Sony Xperia M] thichthat:
which file system are you using? (FAT, FAT32 or NTFS)
[Sony Xperia M] SunitTalwar:
hey sorry for irrelevant question but are you still working on miui v7 rom ??

the one thread opened is now closed but as one member there said he was able to make the rom boot only themes and ril is not working so can you fix the ril part plzz miui along with your kernel would be awesome
[Sony Xperia M] Godlydevils:
http://www.amazon.in/Samsung-Class-micro-MB-MP16D-IN/dp/B00WMCAUYK?tag=googinhydr18418-21

this I bought this one

ohh and file system is.... whatever the android decides? when i format from the device itself?

after seeing that, I did low level format using HDD low level format tool software

and then formatted as fat32, 8k allocation size

will post result

---------- Post added at 02:57 PM ---------- Previous post was at 02:52 PM ----------

Phone bricked after flashing NUI_MOD_1.zip

was able to get into home screen but was getting system ui and process.something.something has stopped working was soo annoying

could not get back after flashing backup.zip

maybe I did something wrong?

I also could not find NUI kernel after installing the app from play store

and please explain what "ALL data" to move to sd card?

I just flashed the beta 5.2 rom with open Gapps, that's it, not even xposed or anything,

is there any link for nui kernel?
[Sony Xperia M] Antrikos48:
Attached log for reboots on CM12.1
[Sony Xperia M] dhruubo:
Fat32
[Sony Xperia M] Godlydevils:
So I tried the mod and it never works, I have another class 4 sandisk memory card of 2 GB, idk how it worked on your devices, your app from play store never shows that disable internal storage has been applied

but if I just download and flash the kernel from your app, I can overclock, I'll better stick to it

not interested in internal memory and all

A working mobile is better then future bug due to the mod
[Sony Xperia M] thichthat:
I'm just recently having too much homework so I haven't make any more progress on MIUI V7.

Your data partition seems to be damaged. You should use titanium backup to backup all apps, wipe /data via TWRP then re-flash ROM.

If you don't want to download nui from play store, you can go to apkpure to get apk file.
[Sony Xperia M] thichthat:
1. What rom are you using? The mod is unstable on some ROM, and even on CM13, it doesn't work on some sdcard or devices. That's a very stranger problem that I couldn't find the reason.

2. Overclocking is not recommended on any devices. In this case, you should only use 1.2GHz to prevent overheating.
[Sony Xperia M] dim^n:
I use AOKP logo, that looks good for me and like a cover to an AOKP-based rom. Will be waiting for updates, because AICP KK rom has only 1 initial build, and kernel fixes already some bugs like TWRP incompatibility and incorrect mount of multi partition hdd, and adds extra features like video 1080 p (btw not mentioned in features). Thanks anyway for your work and have a good luck in developing :)
[Sony Xperia M] C25:
[MENTION=4929675]thichthat[/MENTION],

Is disable emulated storage working on cm12.1 roms?

Currently using aosp based xenon hd beta 2 with nui 2.5 with patch u provided

Flashed that replace.zip and patch.zip but always stuck at android is starting - starting apps
[Sony Xperia M] thichthat:
Yes. It works well with almost all version of CM. I'm using flexOS (based on CM12.1) with this mod. If you stuck at starting apps, you must read my post carefully. Apktool hasn't work correctly with CM12+ frameworks, so you must drag n' drop storage_list.xml from your new apk to the stock one using 7zip or winrar.

Btw, I've just finished math and literature test at my school. I only have one physics test next week, so I'll work on the finnal versiom of the kernel soon.
[Sony Xperia M] thichthat:
Has anyone had random reboot issue when use my kernel with CM12.1 roms?

The mpdecision was disable by default, but whenever I turn it on, my phone will auto reboot after about 1 hour.
[Sony Xperia M] Damian11131:
No any reboots, i am still using 20150408 beta 2 build.
[Sony Xperia M] mankokoma:
naaa, don't think reboots have to do with your kernel nor mpdecision on or off! had strange lags with changing governors on 2.5, so decided to stay on 2.0... all the reboots are beside of all this. reboots happen with stock 972 the same. One more thanx!
[Sony Xperia M] manal.21sinha:
But with version 2.0 there is that mobile network issue, i.e. whenever you answer or receive a call the phone restarts. Is that problem not there for you?
[Sony Xperia M] mankokoma:
Never had.
[Sony Xperia M] manal.21sinha:
Which Xperia M model do you have? I use a C2004 running a C1904 firmware i.e. single sim firmware on a dual sim phone. Is that the reason for my issue?
[Sony Xperia M] mankokoma:
it's C1905
[Sony Xperia M] TobseS:
Plesse complite anewKernel

Plesse complite a New Kernel for the new Nightlies in cm 12.

:D
[Sony Xperia M] thichthat:
Hi everyone!!

I've just done my finnal test at my school. So that I'll come back to this project.

I'm testing the new toolchain which can prevent random reboots on 5.1 ROMs (HUGE thanks to [MENTION=5359154]ndrancs[/MENTION] ). Also, I'll make a BRAND NEW install method. So that you will not have to go to TWRP or CWM, just simply install an apk file and press the "install" button.

The newer version will be released soon. So keep waiting!!
[Sony Xperia M] apacher:
Is this the think that you said, install via apk???
[Sony Xperia M] thichthat:
No, I'll create a new app, just for installing my kernel only ;)

Btw, if you're vietnamese, you can contact me via facebook: facebook.com/ngxson
[Sony Xperia M] apacher:
Yup i'm vietnamese :) your work Is very awesome :)
[Sony Xperia M] kjinx01:
when we will get a stable kernel for cm12.1 roms???
[Sony Xperia M] jachu138:
On this kernel hearthstone still lagging. I have info CPU lagging in task manager what can i do to play this game?
[Sony Xperia M] apacher:
Does this kernel support xenonhd rom yet
[Sony Xperia M] thichthat:
Yes, but you will experiance random reboots. I'm make a new one that can prevent this problem..

I'm still working on my new apk app that can be used to install the kernel. It will take a long time.