[Moto G Android Development] Shub77:
Small issues

Hi all, I had these problems:

1) I did a nandroid backup with cwm philz recovery 6.0.4.7 of the 1228 build (not the latest 1230 build), then wiped cache/dalvik/data/system/all, and restored a stock (rooted) nandroid backup: everything ok. But after that, I wiped cache/dalvik/data/system/all and restored the backup of 1228 I made, everything seemed fine, no errors in CWM, but as soon as I booted the phone, some apps disappeared, and the system was unusable. I double-checked the system via shell and it seemed the disks were not clean when the backup was made, or at least not clean-unmounted, so that the partitions and filesystems were in a corrupted state, and this lead to a mess with rights and files, in /system and in /data. Cyano seemed to knew the filesystems were not ok at first boot, but could not recover from the "unclean" state. I tried to do it by hand from adb and CWM before the first boot after the restore, but no way. I had to wipe and reinstall.

Could this be a consequence of the "reboot to recovery" menu item in cyano? Or from an "adb reboot recovery" (don't remember if did the former or the latter)? Anyway I suggest to turn the phone off and access recovery "by hand" with power key and vol down key pressed, and not by the system itself.

2) the "Play Film" google app does not work at all.

It keeps hanging by itself, even if I don't run it. After a while stops, but if I start it by hand it hangs again. It is the only google app that give me problems. Well, to be honest is the only app that gives me problems at all, till now, except for "xmodgames Vs SuperSU", but that is caused by xmodgames' dirty way-of-life I suppose... something to do with lollipop itself, maybe.

3) the very first time I started Gallery after a fresh install of 1230, I received an error message for each image, when the thumbnail was to be created. Then I found out that I could not access any image on the phone, e.g. set a new desktop image. After a reboot, everything was ok.

Oh, anerik suggested the PA Gapps, but my recovery refused to install them... just a problem of my recovery? I just updated to philz_touch_6.58.7-falcon.zip downloaded here:

>http<://xdaforums.com/showthread.php?t=2201860

But I had no chance to try to install PA Gapps again.

Anerik, which recovery do you installed on your phone?

I am reporting all the issues without knowing which ones are cyano related and which are port related. Anyway, I'm using the 1230 port daily, and it seems to work ok until now.

Oh, btw, I have a question: the service script which changes the "low memory->kill apps" behaviour:

#!/system/bin/sh

sleep 40

if [ -e /sys/module/lowmemorykiller/parameters/adj ];
then
echo "0,58,117,176,529,1000" > /sys/module/lowmemorykiller/parameters/adj
fi;

if [ -e /sys/module/lowmemorykiller/parameters/minfree ];
then
echo "12288,15360,18432,21504,24576,30720" > /sys/module/lowmemorykiller/parameters/minfree
fi;

Well, I read the docs but I did not get the point: is the script relaxing the policy, so that apps are killed when memory get lower than it used to happen without the script?

And: is it necessary to run it as a service and not as a one-shot boot time script? Just curiosity :)

Great work Anerik, appreciated.