[Galaxy Note GT-N7000 Android Development] aidjek:
Hello [MENTION=799465]bauner[/MENTION], sorry in advance for this long message, but I want to discuss about several troubles and misunderstands, which I received for last 48 hours.

I guess I have found why root was not working and su command received suid bit. As you can observe on the videos, which I present below, I run root fix from CWM recovery and I think that it made permission 6755 for file /system/xbin/su. Last my firmware flash I didn't fix root from recovery and root was starting work by your instruction. I don't remember if this point was in the previous attempts and may be my recovery is not working correct, because of not flash kernel in it, which we will discuss in next point.

You wrote:

I made 2 videos which are showing how boot loop occurs after your kernel flash and reboot to recovery:

https://youtu.be/bgbWDWPf7kE

[YOUTUBE]https://youtu.be/bgbWDWPf7kE[/YOUTUBE]

https://youtu.be/wBaCRJJPVDE

[YOUTUBE]https://youtu.be/wBaCRJJPVDE[/YOUTUBE]

I tried to get recovery mode during half hour and playing with Power+VolumeUP+Home buttons and decided that may buttons have broken.

So I have not found any possibility to flash your kernel. But I absolutely sure, that I did this before, may be you can suggest any steps to prepare device to full clean. My method I described above:

Working without flashing your kernel gives me a new misunderstand. I have no idea why after clean and install all stuff I received a new recovery, which is as standard in the LineAgeOS (see movie below):

https://youtu.be/_shCqRtcgAo

[YOUTUBE]https://youtu.be/_shCqRtcgAo[/YOUTUBE]

and this recovery working very bad, no any updates can not be installed or anything else, except several operations:

https://youtu.be/Hag60gd_TGU

[YOUTUBE]https://youtu.be/Hag60gd_TGU[/YOUTUBE]

The next trouble which I received was permanent "No SIM Card" error.

[IMG="No SIM Error"]https://aidjek.ru/Screenshot_20170330-230340.png[/IMG]

I can receive calls, but cannot make them. I decided that may be it was depending from the GAPPS. Till to Beta5 I have open_gapps-arm-7.1-nano-20161230.zip, tried to install open_gapps-arm-7.1-nano-20170320.zip but it gives this SIM error in the first try. During tests I tried to flash the last one open_gapps-arm-7.1-nano-20170330.zip but it cannot found google account in the settings. The last try was made with worked one, but today after first reboot this error appeared again and self-fixed after 7 hours. I guess we can discuss about it in the next point, but I want ask you about version of GAPPS, which you are using in regular mode or did you take last stable every time. ?

About permanent "No SIM Card" error I want to share several minds here:

I guess that all troubles are going from com.android.phone application. I made several logcats via ADB which show status of this application during boot and during run Settings -> Wireless & Networks -> More -> Cellular Networks. I'm attaching there.

Application work correct:

logcat_gt_n7000_com.android.phone_not_crash_during_application_run.log file and filter for pid 3300, 3251 I Telecom and 3535 :

03-30 10:53:10.741 2944 2944 I ActivityManager: Start proc 3300:com.android.phone/1001 for added application com.android.phone
03-30 10:53:18.668 2944 2968 I ActivityManager: Start proc 3535:com.android.cellbroadcastreceiver/u0a7 for broadcast com.android.cellbroadcastreceiver/.CellBroadcastReceiver
03-30 10:53:23.309 3300 3300 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ REQUEST id=1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
03-30 10:53:23.310 3300 3300 D TelephonyDebugService: TelephonyDebugService()
03-30 10:53:23.316 3300 3300 D CarrierConfigLoader: mHandler: 12 phoneId: 0
03-30 10:53:23.317 3323 3323 D SimSelectNotification: no of slots 1 provision = true
03-30 10:53:23.324 3535 3535 D CellBroadcastReceiver: Service state changed! 3 Full: 3 3 voice home data home null null null null null null Unknown Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false IsDataRoamingFromRegistration=false IsUsingCarrierAggregation=false Current state=-1
03-30 10:53:23.342 3300 3300 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: No UICC
03-30 10:53:23.366 3595 3595 V SystemUIService: Starting SystemUI services for user 0.
03-30 10:53:23.378 2944 3251 I Telecom : PhoneAccountRegistrar: [ComponentInfo{com.android.phone/com.android.services.telephony.TelephonyConnectionService}, [e0184adedf913b076626646d3f52c3b49c39ad6d], UserHandle{0}(icon: Icon(typ=BITMAP size=38x48) -> Icon(typ=BITMAP size=38x48))]: TSI.rPA@AAM

Application crashed on boot:

logcat_gt_n7000_com.android.phone_crash_during_boot.log file and filter for pid 3311:

03-30 22:44:28.827 2879 2879 I ActivityManager: Start proc 3311:com.android.phone/1001 for added application com.android.phone
03-30 22:44:32.673 3311 3311 W System : ClassLoader referenced unknown path: /system/framework/qti-telephony-common.jar
03-30 22:44:32.675 3311 3311 W System.err: java.lang.ClassNotFoundException: com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
03-30 22:44:32.676 3311 3311 W System.err: at java.lang.Class.classForName(Native Method)
03-30 22:44:32.676 3311 3311 W System.err: at java.lang.Class.forName(Class.java:400)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.internal.telephony.TelephonyComponentFactory.getInstance(TelephonyComponentFactory.java:71)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java:133)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java:91)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:282)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.phone.PhoneApp.onCreate(PhoneApp.java:41)
03-30 22:44:32.676 3311 3311 W System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
03-30 22:44:32.676 3311 3311 W System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5410)
03-30 22:44:32.676 3311 3311 W System.err: at android.app.ActivityThread.-wrap2(ActivityThread.java)
03-30 22:44:32.676 3311 3311 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)
03-30 22:44:32.676 3311 3311 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
03-30 22:44:32.676 3311 3311 W System.err: at android.os.Looper.loop(Looper.java:154)
03-30 22:44:32.676 3311 3311 W System.err: at android.app.ActivityThread.main(ActivityThread.java:6126)
03-30 22:44:32.676 3311 3311 W System.err: at java.lang.reflect.Method.invoke(Native Method)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
03-30 22:44:32.676 3311 3311 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
03-30 22:44:32.677 3311 3311 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]]
03-30 22:44:32.677 3311 3311 W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
03-30 22:44:32.677 3311 3311 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
03-30 22:44:32.677 3311 3311 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
03-30 22:44:32.677 3311 3311 W System.err: ... 17 more

Application crashed during menu call:

logcat_gt_n7000_com.android.phone_crash_during_boot_and_application_run.log file and filter for pid 5533:

03-30 23:00:59.525 2942 5488 I ActivityManager: Start proc 5533:com.android.phone/1001 for added application com.android.phone
03-30 23:01:01.039 5533 5533 D TelephonyProvider: dbh.onOpen: ok, queried table=siminfo
03-30 23:01:01.044 5533 5533 D TelephonyProvider: dbh.onOpen: ok, queried table=carriers
03-30 23:01:01.612 5533 5533 W System : ClassLoader referenced unknown path: /system/framework/qti-telephony-common.jar
03-30 23:01:01.615 5533 5533 W System.err: java.lang.ClassNotFoundException: com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
03-30 23:01:01.617 5533 5533 W System.err: at java.lang.Class.classForName(Native Method)
03-30 23:01:01.617 5533 5533 W System.err: at java.lang.Class.forName(Class.java:400)
03-30 23:01:01.618 5533 5533 W System.err: at com.android.internal.telephony.TelephonyComponentFactory.getInstance(TelephonyComponentFactory.java:71)
03-30 23:01:01.619 5533 5533 W System.err: at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java:133)
03-30 23:01:01.619 5533 5533 W System.err: at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java:91)
03-30 23:01:01.619 5533 5533 W System.err: at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:282)
03-30 23:01:01.619 5533 5533 W System.err: at com.android.phone.PhoneApp.onCreate(PhoneApp.java:41)
03-30 23:01:01.620 5533 5533 W System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
03-30 23:01:01.620 5533 5533 W System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5410)
03-30 23:01:01.620 5533 5533 W System.err: at android.app.ActivityThread.-wrap2(ActivityThread.java)
03-30 23:01:01.622 5533 5533 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)
03-30 23:01:01.622 5533 5533 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
03-30 23:01:01.622 5533 5533 W System.err: at android.os.Looper.loop(Looper.java:154)
03-30 23:01:01.622 5533 5533 W System.err: at android.app.ActivityThread.main(ActivityThread.java:6126)
03-30 23:01:01.623 5533 5533 W System.err: at java.lang.reflect.Method.invoke(Native Method)
03-30 23:01:01.623 5533 5533 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
03-30 23:01:01.623 5533 5533 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
03-30 23:01:01.625 5533 5533 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]]
03-30 23:01:01.625 5533 5533 W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
03-30 23:01:01.625 5533 5533 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
03-30 23:01:01.626 5533 5533 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
03-30 23:01:01.626 5533 5533 W System.err: ... 17 more

Can you please help me to understand the cause of such behavior ?

and last interesting fact: after last flash firmware, android said that my internal storage /data is almost full and I found this interesting fact: lost+found directory has 9Gb trash in it.

n7000:/ # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 404M 500K 404M 1% /dev
tmpfs 404M 0 404M 0% /mnt
/dev/block/mmcblk0p9 839M 740M 99M 89% /system
/dev/block/mmcblk0p7 197M 4.2M 193M 3% /cache
/dev/block/mmcblk0p1 20M 9.1M 11M 47% /efs
/dev/block/mmcblk0p10 10G 10G 242M 98% /data
tmpfs 404M 0 404M 0% /storage
/dev/block/vold/public:179_11 3.0G 1.1G 1.8G 39% /mnt/media_rw/sdcard0
/dev/block/vold/public:179_11 3.0G 1.1G 1.8G 39% /mnt/secure/asec
/dev/fuse 3.0G 1.1G 1.8G 39% /mnt/runtime/default/sdcard0
/dev/fuse 3.0G 1.1G 1.8G 39% /storage/sdcard0
/dev/fuse 3.0G 1.1G 1.8G 39% /mnt/runtime/read/sdcard0
/dev/fuse 3.0G 1.1G 1.8G 39% /mnt/runtime/write/sdcard0
/dev/block/vold/public:179_13 30G 26G 3.6G 88% /mnt/media_rw/sdcard1
/dev/fuse 30G 26G 3.6G 88% /mnt/runtime/default/sdcard1
/dev/fuse 30G 26G 3.6G 88% /storage/sdcard1
/dev/fuse 30G 26G 3.6G 88% /mnt/runtime/read/sdcard1
/dev/fuse 30G 26G 3.6G 88% /mnt/runtime/write/sdcard1

n7000:/ # du -shc /data/*
4.0K /data/adb
24K /data/anr
29M /data/app
4.0K /data/app-asec
4.0K /data/app-ephemeral
4.0K /data/app-lib
4.0K /data/app-private
36K /data/backup
4.0K /data/bootchart
16K /data/cache
309M /data/dalvik-cache
62M /data/data
12K /data/drm
96K /data/gps
8.0K /data/local
4.0K /data/log

9.0G /data/lost+found

12K /data/media
32K /data/mediadrm
2.7M /data/misc
8.0K /data/misc_ce
8.0K /data/misc_de
4.0K /data/ota
4.0K /data/ota_package
28K /data/property
4.0K /data/pxtmpdir
4.0K /data/radio
4.0K /data/resource-cache
4.0K /data/security
4.0K /data/ss
8.0K /data/ssh
1.7M /data/system
276K /data/system_ce
288K /data/system_de
44K /data/tombstones
4.0K /data/user
3.1M /data/user_de

I removed all trash, but I have no idea how it was not cleaned during format. I guess this made my device very slowly.

That's all and I hope I was not very annoying and you will answer on my questions.