yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] gavinfernandes2012:
I

Instructions :

Update to a new nightly

put in a sd card,

go to settings->storage

click on sdcard or anything of that sort,

Click on explore if any pop up appears

Click on the three dots on the top right of the screen,

Click on format as internal

Then when it asks, click on move data now

Then after its done, reboot to recovery

Then flash the nui kernel again

Then you're done

Then just put your obb on your /system/sdcard or in other words your internal storage directory to most apps

If you were asking for that
[Sony Xperia M] xp7:
thanks bro.do you can testing

mountFolder app

on your device working good after this instruction?and other request: do you can Titanium backup install on your device and backup any app on sd card direct?
[Sony Xperia M] gavinfernandes2012:
You can do titanium backups and they'll be stored on the sd card

I'll test mountfolder when I get back from school sorry XP
[Sony Xperia M] gavinfernandes2012:
Sorry false alarm, works for me too, really sorry everyone
[Sony Xperia M] gavinfernandes2012:
Okay I tested foldermount not mountfolder because that's the closest thing I can find,

but here's the problem, I'm using adopted storage and I know my /storage/emulated/0 directory has a ton of folders, but in folder mount it just tells me that there is the "TWRP" folder. So the app is broken at least for marshmallow with adopted storage.

It doesn't work

You can ask the devs to add support and maybe they will.
[Sony Xperia M] Agu_Ra:
Using Foldermount with adopted storage? Are you insane? There is all needed functionality in adopted storage, it is very perverted decision to use Foldermount with it.
[Sony Xperia M] gavinfernandes2012:
Nah, I have this unmovable game that's a complete pain in the butt and I had to uninstall it for that reason.

So you could see why folder mount, or any way to move unmovable apps would be useful.
[Sony Xperia M] ankushkushal:
Why yu use folder mount when all yur xtrnal mmc is now your internal one???????????
[Sony Xperia M] gavinfernandes2012:
xp7 asked me to test it so i thought I'd do him a favour.

Anyways, you cant move all your apps to the sd, so you can see the benefits.
[Sony Xperia M] ankushkushal:
Yup I agree.but I rmmbr tht xcpt app2sd folder mount option folder mount doesn't work properly on mallow.....ryt???
[Sony Xperia M] adi2500:
When i flash disable emulated storage for cm13 is the emulated storage still there. Both patch.cpio files are getting copied, but should the APP and framework folders inside the ZIP empty?

Currently im running cm13 nightly 03.01
[Sony Xperia M] msk198:
What aosp 11?

Link please.

clear cm11 based aosp? PekanCM build aosp AOSP BETA 5 ? or another build ?
[Sony Xperia M] gavinfernandes2012:
I read something as such but I just read the title of the article and even that I don't remember XP

Something about link to sd and some other app (folder mount I think) having problems on marshmallow

---------- Post added at 01:23 PM ---------- Previous post was at 01:19 PM ----------

Checked in my zip too

Only the meta inf and the files you mentioned seem to be meaningfully placed

The rest seems... misplaced.
[Sony Xperia M] Agu_Ra:
AOSPA is Paranoid Android. You can find it somewhere in Android developement or Original Android developement forum.
[Sony Xperia M] ankushkushal:
I said aospa build not pecancm or other aosp build.Search on xda for aospa build.rom by DeviousFusion
[Sony Xperia M] feodead:
Great thanks for your job. But there is one request.

Can you rebuild kernel with "TTL target support". Or give module xt_HL.ko after rebuild. Or just link to crosscompiler (toolchain) that you used.

Sorry for my english, this is not my native language.
[Sony Xperia M] thichthat:
Yes, I'll add it in V6.2_r1.

V6.2 is available so I can't rebuild the kernel right now.
[Sony Xperia M] thichthat:
Let's update it!
[Sony Xperia M] op3n:
i installed it work good, but for example if i talk with somebody in call and i enter in another aplication for example background hd with wifi turned on, become blocked and shut down in 5 seconds :)
[Sony Xperia M] nirmal471:
[MENTION=4929675]thichthat[/MENTION] Any news about Disable internal storage, I tried as you said before by changing SD card different format and flashed ur disable internal storage zip, nothing happens :(
[Sony Xperia M] simmusss:
Screen was blinking always, after installd this,in cm13...why??? Anybody facing this problm?and plz somone give me good values for all settings with screenshots please???
[Sony Xperia M] dim^n:
[MENTION=4929675]thichthat[/MENTION], can you add please custom action for cam button when screen is off? I have a habit to enable flaslight via one click when the screen is off. So can you bring it back?
[Sony Xperia M] op3n:
Is freez imediately when i load a simple app, after that is rebooting. I flashed v.6.1 is stable for moment.
[Sony Xperia M] Alex_Gamer:
Del.
[Sony Xperia M] ankushkushal:
Yeah +1 frm me too.it freezes leading to auto reboot.ws frcd to go bck to 6.1.
[Sony Xperia M] gavinfernandes2012:
Working fine for me, been using it for nearly the whole of today.

But wait, does anyone have a wiring FM, I just wanna rule out it being a problem with the kernel
[Sony Xperia M] ndrancs:
Yes new bug on v6.2: freeze then reboot after open some apps i mean more apps.

I found temp solution just run this commands.

Open terminal emulator
Type
su then ENTER
toybox echo "0" > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk then ENTER

Done, and wait for Nui to fix this bug.
[Sony Xperia M] gavinfernandes2012:
Wait even I get this on like one app, but it doesn't reboot after the fc
[Sony Xperia M] thichthat:
Sorry for the errors and the delay. I have to spend nearly all my time on homework. Anw, I've just uploaded new version. Hope it will be stable.
[Sony Xperia M] gavinfernandes2012:
Just asking, if I wanted to help out in the programming, what stuff would I need to know. Wanna learn kernel programming.
[Sony Xperia M] xp7:
at v.6.2_r1 device freeze again.i am back to 6.1! v.6.1 is stable.
[Sony Xperia M] Bonoboo:
Question about ZRAM.

In CM12.1 PecanCM enabled it for a while, but then turned off.

I asked him enable it again for CM13 and he said, that it caused battery drain.

Question: as I understand, NUI uses different method compared to his? (can't find commit.)

So maybe it safe for battery?
[Sony Xperia M] xp7:
I picked up tick Zram in NUI app. now my device no freeze in v.6.2_ r1
[Sony Xperia M] thichthat:
AFAIK, zram works by using integrated NAND memory (or internal memory) to store ram blocks when you're running out of ram. Of course, it require more cpu cycles and i/o queue to compress and transfer data between RAM and NAND, so it can cause battery drain. Maybe for some other problems, pecanCM has to disable it (like what he did with ksm).

If you don't want to use zram, you can try this one. It uses the same method with zram but you can select place to store swap file (on sdcard or internal):

https://play.google.com/store/apps/details?id=org.azasoft.free.swapper
[Sony Xperia M] Bonoboo:
Thanks for answer.

Sorry, but seems ZRAM and swap are different features.

ZRAM just compressing pages directly in memory (used virtual block device / disk).

Swap writes temporary unused pages to physical disk.

I tried to figure out how ZRAM implemented in your kernel, but can't find any commit at GitHub (by name).

It bundled somehow in app only? How actually ZRAM enabling?

If different way won't causing drain, so PecanCM add it into ROM.
[Sony Xperia M] Agu_Ra:
For kernel programming you need at least descent knowledge of pure C programming language, also you need to know the way the Linux kernel works. System-level programming is not that easy, especially kernel-level.
[Sony Xperia M] thichthat:
Sorry I forgot to say, ZRAM is already be added in stock CM kernel. I only have to add the interface to the app. Here's commands to enable it. In this case the size is 60MB:

echo 60M > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

So as you can see we can use it just like swap. But yes, it compresses blocks then store them, and this work requires cpu cycles and battery.
[Sony Xperia M] gavinfernandes2012:
Ikik, but I have a whole holiday to kill and ik C++, so it shouldn't be hard to migrate to C, ig I'll just have to read up a lot
[Sony Xperia M] thichthat:
When I start developing this kernel, I only know java. I just read codes from other kernel and search for my problem on stackoverflow. The kernel now is a bit like a mess and it's very hard to explain all var or func I've made.

Btw, the main file that hold interface for all tweaks located at /driver/accessibility/nuisettings.c. It may help you.
[Sony Xperia M] gavinfernandes2012:
Okay thanks a ton.

I'll try my best, I have a lot of time to kill after my last exam on Friday.
[Sony Xperia M] dim^n:
Does anyone have v 5.9? I think I have problems with latest versions. And why builthin UV values gone from app?
[Sony Xperia M] Agu_Ra:
Lol. I thought you were good in C. BTW, how much time did you learn java prior to starting kernel hacking?
[Sony Xperia M] gavinfernandes2012:
Wait wait wait, only the nui app uses java right, nothing else? Cause I'm no good at it yet.
[Sony Xperia M] thichthat:
The recommended voltage value was set as default value and it works well on all devices. It comes with the underclocking commit (which reduce lowest cpu freq to 195MHz)

At school I only studies Pascal, which is already be a dead language. I started modding android ROM 4 years ago on my ss galaxy y. One year later I wrote my first java code. I hadn't use java for a long time until my brother show me something called "project euler" and that was 2 years ago. My first app was released and its name was "Jelly Music" (removed from play store). I've learnt c for only one year, right before I started making this kernel.
[Sony Xperia M] thichthat:
Yes. It does not contain any native c++ lib. Learning java is easy, but the hard part is android. But fortunately, with stackoverflow it will not be a big problem.
[Sony Xperia M] gavinfernandes2012:
Yeah I had this big ass java book, and tried to use it for android programming, and I was D-E-D dead.

Sorry bit off topic
[Sony Xperia M] mankokoma:
Wow!
[Sony Xperia M] rohitnegi44:
For stock???
[Sony Xperia M] adi2500:
Since this is based in cm13 sources, no stock support.
[Sony Xperia M] ghasemi.hussein:
the lastest version make cm13 15-3 freeze randomly. i try it on other nightly build and after 2 days first freezing come up. so i think the problem is from nui.

there is no problem with 6.1 version.

thank you for your great work
[Sony Xperia M] ankushkushal:
---------- Post added at 08:56 PM ---------- Previous post was at 08:55 PM ----------

[/COLOR]

Yu cn try kernel for stock Google it.
[Sony Xperia M] op3n:
thickthat, can you add in next update blinking led in more colours when you boot first time (when show SONY logo)? i think will be nice
[Sony Xperia M] poran123:
do i need to flash nui kernel for using this NUI_MOD_marshmallow.zip ????
[Sony Xperia M] gavinfernandes2012:
You probably do, but no guarantees, ask thichthat
[Sony Xperia M] poran123:
already tried flashing kernel and mod but not working.... someone help me i dont want to use my card as adoptable storage... i had lost my data already after flash different rom.
[Sony Xperia M] Agu_Ra:
It would be hard to port to stock as it is based on PecanCM's CAF kernel, which is not based on stock one. Also thichthat already said that he is not using stock, so stop asking for it support, no one wants to support that outdated crap.
[Sony Xperia M] gavinfernandes2012:
Imagine if Linux arm was like Linux x86

Instant updates and practically universal support no problemo

Heavenn
[Sony Xperia M] thichthat:
1. I don't have time to post it to stock. Moreover, stock rom has already been outdate.

2. I'll try to merge commits from CM and release new version this week. That may fix random reboot on some devices. I've just spend my weekend on doing homework and taking MOS exam.
[Sony Xperia M] gavinfernandes2012:
MOS??

Ohh btw I was searching online and I didn't find anything anywhere about being able to port intelliplug, you think it's even possible?
[Sony Xperia M] Agu_Ra:
That would be nice. But in reality big part of the code needs to be changed to get hardware and software compatibility. Furthermore, kernels for PC are unified, they are not optimized for any specific device (you can build them yourself though), they are just generic for platform (usually x86_64 or i686). Linux kernels for Android (and for any other portable or embedded systems) are always optimized for device they run on. It results in improved performance, smaller binary size, increased robustness and guarantees full compatibility with current device but it usually is incompatible with other ones. It is possible to make unified kernels for device on the same chipset, board (like our msm8960, BTW, Qualcomm provides unified sources for this board but they need multiple changes to work with every piece of hardware on device) or even the same chipset manufacturer, but it is barely worth it, it needs many manufacturers and developers working together to provide unified kernel for different Android devices, but it would be really hard to support considering that some vendors add they own features for their devices. Also every Android version needs kernel changes a bit, in kernel config at least.
[Sony Xperia M] gavinfernandes2012:
But it would really be worth it if you could have this unified source code, and then based on a file with options that you could set, you could compile for a particular board, that would solve the problem of updates for all android devices so you could have much faster updates because say a shared component needed to be changed for android n, then all devs developing for any phone with that component contribute, and that should speed up things, right? I hope I'm right and I'm not messing anything up XP.
[Sony Xperia M] adi2500:
For those who want internal SD disabled, but it didnt work: wipe the internal SD.

I had to reflash stock rom, restored a backup of my whole system except internal SD and now it works.
[Sony Xperia M] 8hodgsonkh:
I got it to boot with stock...everything worked except wifi
[Sony Xperia M] abhatia1435:
Share some screenshots.
[Sony Xperia M] Agu_Ra:
Yeah, having shared source code with just different configs for different devices would be a good idea, I think. But I'm not sure if it would be easy to maintain and achievable on modern devices market. But it would be good even within each manufacturers' devices that use the same manufacturer's chipset (e.g. one kernel sources for Sony Qualcomm devices, others for Sony MTK, Samsung Exynos, Samsung Qualcomm devices etc.). Sony even provided unified kernel for M2, Z2 and something else for their AOSP Xperia project. Don't know whether they use shared config or not.

---------- Post added at 17:52 ---------- Previous post was at 17:44 ----------

Although, I expect that having shared source code for many devices at the same time may lead to the breakage of things for one devices by patches for others. But maybe Linux flexibility allows to avoid such things as on PC it runs good on almost any kind of hardware even using not only one source code for everything but the same config either as on the most Linux distros we get kernel in binary form. ARM and x86-based architectures are quite different though.
[Sony Xperia M] gavinfernandes2012:
Our device isn't on AOSP Xperia right, cause I couldn't find anything about it on the sony site last time I looked.

Which branch of the git repo is current?

Okay im stupid I got it.

Wait how do you use the repo command on the git repo, it gives me an error saying it can't find the default.xml .

Is there kexec-hardboot support in the current kernel?
[Sony Xperia M] Agu_Ra:
No, we are not a part of AOSP for Xperia programm. Xperia S was the first such device. Among devices as old as nicki there were only flagship Xperia Z and lucky Xperia L in Sony AOSP programm (L has gotten only KitKat, AFAIK).

Hmm, are you asking about current branch of NUI? If so, that's marshmallow.

And repo command is needed to handle multiple git repositories like for the whole Android source tree. For single repository git command comes in use.

No, kexec was removed due to its breakage.
[Sony Xperia M] gavinfernandes2012:
Is there any way to get kexec back in NUI 6.0 +
[Sony Xperia M] Agu_Ra:
There surely is, but only if you or someone else are able to fix it.
[Sony Xperia M] KProject:
I think NUI will be better if use 3 difference version

1 for CM13

2 For CM12.1

3 For CM11

So if NUI based on CM13 Kernel it will have bug/problem with CM12.1/11... So building 3 difference version maybe will solve bug each ROM #CMIIW
[Sony Xperia M] gavinfernandes2012:
Yeah makes sense but we need three more devs cause devs dont always have time for only one project let alone three

---------- Post added at 06:20 AM ---------- Previous post was at 06:18 AM ----------

Haha I cant say I won't try but I can say I'll almost definitely fail

---------- Post added at 06:33 AM ---------- Previous post was at 06:20 AM ----------

@thichthat Can you make a branch for kexec hardboot, maybe we can merge it later
[Sony Xperia M] gavinfernandes2012:
Does it work on aosp 6.0, cause i just tried and i got a bootloop but i couldn't get any logs with logcat cause no adb enabled, just confirming cause my phone might be screwed.
[Sony Xperia M] ankushkushal:
Hey guys sm1 said tht internal sd I tried it n yes it worked here. ;) m on aokp unofficial marshmallow build.
[Sony Xperia M] thichthat:
Hello it's me... no, it's the new version!!

Note: If the app crashes on kitkat, please send me the logcat
[Sony Xperia M] thichthat:
Yes, you are definitely right. Anw, I'll try to find the best zip for specific android version.

I'll try. I merged it to the kernel before but it didn't work. Then I removed it.
[Sony Xperia M] gavinfernandes2012:
I'll help too if you don't have the time, so we can have a branch with kexec hardboot, and you can focus on the stable nui branch.
[Sony Xperia M] thichthat:
Sorry for late reply. You can fork my project on github and try. To build the kernel, you can follow these steps:

- clone the git project to nuik folder on your pc

- open nui.sh with text editor, make sure GCC, user name are correct

- open terminal and type:

cd nuik

./nui.sh

if these's no error, then connect phone to pc and type:

./flash.sh
[Sony Xperia M] Agu_Ra:
BTW, why do you use THIS_USER variable defined by you in your script, when you could simply use USER variable which is already in shell? Also you could use just HOME variable or even just "~" for the home folder. It is just about portability and simplicity, reinventing the wheel is not very good idea at all.
[Sony Xperia M] gavinfernandes2012:
Okay thanks a lot, will do today, after I come back from school (report card day).
[Sony Xperia M] thichthat:
Thanks for your suggestion. When I wrote this script, I hadn't known much about variable used in linux bash. I only learnt some basic commands from android terminal (of course it doesn't have home dir).
[Sony Xperia M] ankushkushal:
I wnna ask for something new.why don't you add some new algorithm for auto brightness in all of the brightness settings wuld b really hlpful. Thn fr yur work bro btw :D
[Sony Xperia M] thichthat:
It must be a big challenge for me because I'll have to make an algorithm that can "draw" the graph of brightness level. Anw, I'll still try it.

To all: dynamic fsync will be removed in next version because it only make the phone became unstable.
[Sony Xperia M] Agu_Ra:
BTW, can you make offscreen gestures being disabled while call, as sometimes the screen accidentally gets locked and also it prevents using power button for hanging call.
[Sony Xperia M] thichthat:
Sure. I'll fix that, maybe next week. I'm usually busier at weekend.
[Sony Xperia M] thichthat:
Here is the list of new function I've made on v6.4:

- 4K video recording

- enable HDMI output via usb port

- enable hidden flash LED next to the front camera

Yes yes I know it hard to believe, but today is fool april
[Sony Xperia M] Alex_Gamer:
I hate you xD (joking)
[Sony Xperia M] thichthat:
Today is april 2nd and v6.4 is finally available

V6.4

Beautify app UI

Re-enable adaptive low memory killer

Remove dynamic fsync

Auto block offscreen gesture on call

Sync with newest CM13 kernel source
[Sony Xperia M] Alex_Gamer:
Thanks for the update :D so, do you personally recommended to use the adaptive lmk?
[Sony Xperia M] Godlydevils:
If I enable zram @ 128mb my phone crashes randomly, using cm13 of 31st march, no xposed, no 3c toolbox, clean flash.
[Sony Xperia M] thichthat:
Zram is not stable and it was removed from CM device source.
[Sony Xperia M] ankushkushal:
Bro after update to 6.4 swipe 2 wake up n dbl tapp to wake is not working...
[Sony Xperia M] Alex_Gamer:
I have a question... Is xperia M compatible with NEON? :confused:
[Sony Xperia M] Agu_Ra:
Yes. As far as I remember, all ARMv7 processors support NEON instructions set, but I might be mistaken. Yet I'm pretty sure, that our processor (Krait200) does support NEON.

---------- Post added at 17:27 ---------- Previous post was at 17:23 ----------

UPD: yes, it certainly does.

Moar here: https://en.wikipedia.org/wiki/Comparison_of_ARMv7-A_cores
[Sony Xperia M] thichthat:
Bonus: there is a simple command to check all cpu feature:

"cat /proc/cpuinfo"

It also works with all linux distributions.
[Sony Xperia M] Agu_Ra:
Exactly! How could I forget about this? It's not excusably for linuxoid like me. :D

At least after building Gentoo.

Yeah, it was kind of boasting. But I'm modest, that's why it is in hidden text. XDA App users may see it like a plain text though.
[Sony Xperia M] Alex_Gamer:
Great, thanks for solving my doubt, I asked because viper4android didn't ask me for driver quality and in the official thread I read that the quality selection only appear to processors with NEON, btw I guess that is a change on the latest version :D
[Sony Xperia M] dim^n:
After upgrading to CM12.1-based rom (RR) got bug - after some reboot sim card failed to recognise if mobile data enabled. I should reboot 1-3 times to avoid this. Using NUI v6.3 now. Decided that this problem is from the kernel side. Think radio log can help me. So, please, [MENTION=4929675]thichthat[/MENTION], look at this
[Sony Xperia M] Nicklas Van Dam:
Can this kernel work on AOSP based ROM?
[Sony Xperia M] adi2500:
Since cm is an aosp based rom, it should. The only way is to try it.
[Sony Xperia M] Agu_Ra:
Ron uses the same kernel sources for CM and AOSP, AFAIK. Furthermore, CM doesn't add stuff that might break kernel compatibility, yet Google does every Android release, but that's different subject to talk about. So, normally this kernel should work on AOSP 6.0.
[Sony Xperia M] Nicklas Van Dam:
okay thanks, i will try it :)
[Sony Xperia M] ndrancs:
I tried it on AOSP 6.0 and it work.
[Sony Xperia M] Nicklas Van Dam:
yeah it's work too on BETA 3 :), btw it's safe to set gpu oc to 500mhz or 400mhz when i only want to play game with oc cpu to 1,2 or 1,7ghz? :confused:
[Sony Xperia M] Nicklas Van Dam:
I think zram mode is crash on AOSP ROM, my device get random reboot when zram is enable. :confused:
[Sony Xperia M] Alex_Gamer:
On cm13 too, have to wait future updates to see if we can get an stable zram experience.
[Sony Xperia M] Agu_Ra:
BTW, thichthat, regarding translation. Can you, please, correct "Higher sensitive for proximity sensor" to "Higher sensitivity…". I've noticed it very long ago, but was always forgetting about it.
[Sony Xperia M] Bonoboo:
On other forum user says, that with NUI "GPS works better".

Is there really some improvements in code?

If so, please, can you share them (to add into CM)?

Also it's "too sensitive" by default and tweak makes sensor "less sensitive" if it applicable in terms of length.

More correctly will be "Increase proximity sensor distance" – what it actually do.