yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] Beukhof1:
i get an error flashing gekkehenkie's zip that the device is not right. i have a 910F.
[Galaxy Note 4 General] allenjthomsen:
You need to edit meta-inf so it reads trtletmo
[Galaxy Note 4 General] albireox:
Try then with Phils recovery. It worked here without problems. Also, see if the ROM downloaded correctly.

---------- Post added at 02:56 PM ---------- Previous post was at 02:54 PM ----------

It worked perfectly here. 910F also and I haven't edited anything.
[Galaxy Note 4 General] Beukhof1:
it is the trelte right? what recovery are you using? i have twrp.
[Galaxy Note 4 General] albireox:
I use Phil's recovery.
[Galaxy Note 4 General] Beukhof1:
ill try that! Thanks!

So whats not working at the moment?
[Galaxy Note 4 General] albireox:
I installed it just to see how it looks, nothing more. I play with it around 30 minutes then restored the old rom.

AFAIK the radio and camera, possibly Bluetooth and NFC don't work on this build, probably many others. I didn't had any problems connecting to WIFI , downloading apps from Playstore or browing the internet.

It seems that the T-Mobile versions is (much) more usable, but still, these are early builds, anything can happen.
[Galaxy Note 4 General] Beukhof1:
Any updates coming gekkehenkie11?
[Galaxy Note 4 General] gekkehenkie11:
LOL I just woke up :) I see people have got radio working, just 2 RIL files were missing ? Very nice !!
[Galaxy Note 4 General] Beukhof1:
Sorry man! Grab a cup of coffee first! Haha
[Galaxy Note 4 General] jazzypit:
when i install your version my model change to 910T. it is normal ??? you wrote it is for 910F
[Galaxy Note 4 General] gekkehenkie11:
Hehe :) Besides I'm by no means 'THE' dev here, this is a joint project, I really like it others are jumping in, great work from [MENTION=4748177]vogli[/MENTION] and [MENTION=3198335]allenjthomsen[/MENTION] on the RIL part ! I'll also be off on holiday as off next monday till next year so don't expect too much input from me hereon. I will try to help out though whenever and wherever I can.
[Galaxy Note 4 General] gekkehenkie11:
Actually, I just flashed this ,doesn't work !?!

*EDIT* Ah wait, this is supposed to go over exisiting CM12 install I assume now ? To fix RIL we'd only need the files in system\lib, the rest is gapps I guess ?
[Galaxy Note 4 General] jazzypit:
why can i make it work for N910F? my phone has no data and model change to N910T (t-mobile).
[Galaxy Note 4 General] gekkehenkie11:
[MENTION=3198335]allenjthomsen[/MENTION]: I just flashed your file, RIL still doesn't work, can't call. Anyone who got RIL up ?
[Galaxy Note 4 General] albireox:
The current build doesn't have Radio, camera and probably many others working. Noone said they work :).
[Galaxy Note 4 General] jazzypit:
i think its no normal that the model change to N910T in setting.

what do you think gekkehenkie11 ?
[Galaxy Note 4 General] gekkehenkie11:
Like said, this is a pre-Alpha release, only meant to get a taste of CM12. If you want to use it as a daily driver, just wait a while till we have something stable.
[Galaxy Note 4 General] jazzypit:
i know its a pre-alpha. i just want to infor you that the name of model change . i think its good to know bug for resolve them.
[Galaxy Note 4 General] lycan_codex:
Hi, I have flashed the said zip above CM12, still do not have RIL working. Have anyone got it up?
[Galaxy Note 4 General] allenjthomsen:
Hmm maybe we need to incoperate ril files out of stock international can someone test please
[Galaxy Note 4 General] gekkehenkie11:
BTW I just flashed the default file (using the standard USB settings from CM12) but USB doesn't seem to be working for me that way .... How is it for you guys ? I do see the hardware ID's in windows but it's not working ...
[Galaxy Note 4 General] allenjthomsen:
https://mega.co.nz/#!OR1ynJoa!Beqtr32M5CyMZQRo0Kbg-bc-FJ4nevXiqqIlYyDiSbw

Flash this and let me know if data and signal work
[Galaxy Note 4 General] gekkehenkie11:
I just copied all *ril* files uit de lib directory 910F stock, didnt work ...
[Galaxy Note 4 General] allenjthomsen:
[MENTION=3296134]gekkehenkie11[/MENTION] try my zip with gapps then flash most recent zip and let me know
[Galaxy Note 4 General] allenjthomsen:
This is what I get when I flash my zip I made with gapps
[Galaxy Note 4 General] gekkehenkie11:
Sure. You don't have a phone yourself though ?
[Galaxy Note 4 General] gekkehenkie11:
Ah so you've got it up yourself !! Nice !!
[Galaxy Note 4 General] Charper99:
[MENTION=3296134]gekkehenkie11[/MENTION] is this working on trilte versions because is not flashing with me ? Am i doing something wrong?

Many thanks
[Galaxy Note 4 General] gekkehenkie11:
No this is for trlte. For trlte version see the thread fattire opened.
[Galaxy Note 4 General] gekkehenkie11:
But wait, t-mobile, isn't that trltetmo ? Are you sure you have 910F ?
[Galaxy Note 4 General] allenjthomsen:
I have n910t but the method I speak of works for you guys its as easy as flashing my first zip then flashing the one I just posted

---------- Post added at 06:57 AM ---------- Previous post was at 06:55 AM ----------

The reason its the same is because your ril files are messed up that's why I say flash my first zip with gapps then the zip I just posted and then you should have data
[Galaxy Note 4 General] Beukhof1:
Is there a reason why I can't see some apps in the plays tore? Like chrome and backup+.
[Galaxy Note 4 General] gekkehenkie11:
I'm pretty sure 910F will need other RIL files than 910T. I will try anyway.
[Galaxy Note 4 General] allenjthomsen:
They are not allowing it on note 4 5.0 ports don't know why but I have a fix making zip as we speak for chrome
[Galaxy Note 4 General] Beukhof1:
Can you make 1 zip file for all the things you posted?
[Galaxy Note 4 General] gekkehenkie11:
I'm testing now but I'd be very surprised if it works. I'm pretty sure 910F needs other RIL files than 910T
[Galaxy Note 4 General] allenjthomsen:
The last post where I added the last zip is rils from stock n910f flash that after my other zip with gapps
[Galaxy Note 4 General] gekkehenkie11:
I did. NO go. "COuldnt activate network".
[Galaxy Note 4 General] Beukhof1:
Hope that a RIL and playstore fix will soon be created... Really like the speed of cm12.
[Galaxy Note 4 General] utopiate:
Yep same, didnt work for me either
[Galaxy Note 4 General] allenjthomsen:
lr

Hmm I'll keep digging but that's what I originally replaced in mine to get signal on T-Mobile on your cm12
[Galaxy Note 4 General] Charper99:
Sorry [MENTION=3296134]gekkehenkie11[/MENTION] i meant trlte, i have this version but its not flashing for me
[Galaxy Note 4 General] pbedard:
That's a gappps not cm12
[Galaxy Note 4 General] Beukhof1:
Maybe gekkehenkie11 can create a new thread for the rom and list working/not working and changelog (rom tread)
[Galaxy Note 4 General] albireox:
+1, that would be a great idea. Here things start to go South...
[Galaxy Note 4 General] gekkehenkie11:
Yeah but that makes sense, I just ported the ROM from 910T, so no wonder it works for 910T :)
[Galaxy Note 4 General] gekkehenkie11:
Can you maybe get me a RIL logcat, preferably just after boot:

adb logcat -d -b radio -v time >radio_out.txt

That would help !
[Galaxy Note 4 General] allenjthomsen:
Yea give me a while

Am working on 5 differnt roms all at once isnt easy lol 2 of those are cm12 2 are note 3 and 1 international port for tmobile

And not to mention trying to figure out root for att note 4

will do as soon as i play catch ip
[Galaxy Note 4 General] gekkehenkie11:
HOw is USB working for you guys ? can you access the phone storage from within cm12 ?? I could yesterday but today it doesn't work, not sure if that's because i changed some stuff or something in my windows ...
[Galaxy Note 4 General] gekkehenkie11:
I hope you can ! If USB works it's a piece of cake. Make sure you have ADB installed and you can go.

I see this kind of stuff in samsung stock output, I don't see it in Cm12, I wonder how that is for tmobile !

12-10 00:11:16.434 D/ATD ( 406): gUartPath = /dev/ttyHSL0
12-10 00:11:16.434 D/ATD ( 406): UART ttyHSL0 is not used by console
12-10 00:11:16.454 D/ATD ( 406): MakeLocalServer(): FactoryClientRecv Communication: Server_socket 7
12-10 00:11:16.454 D/ATD ( 406): InitSocketAcceptHandler(): FactoryClientRecv, id(0), fd(7)
12-10 00:11:16.454 D/ATD ( 406): MakeLocalServer(): FactoryClientSend Communication: Server_socket 8
12-10 00:11:16.454 D/ATD ( 406): InitSocketAcceptHandler(): FactoryClientSend, id(1), fd(8)
12-10 00:11:16.454 D/ATD ( 406): MakeLocalServer(): ATDMultiClient Communication: Server_socket 10
12-10 00:11:16.454 D/ATD ( 406): InitSocketAcceptHandler(): ATDMultiClient, id(6), fd(10)
12-10 00:11:16.454 D/ATD ( 406): MakeLocalServer(): DiagApp Communication: Server_socket 11
12-10 00:11:16.454 D/ATD ( 406): InitSocketAcceptHandler(): DiagApp, id(2), fd(11)
12-10 00:11:16.454 D/ATD ( 406): first start
[Galaxy Note 4 General] fattire:
So wait a second allenj--- I thought you said you had the F variant working. If you have the T-Mobile version working then what you had done is this:

WORKING T-MOBILE VERSION ---> non-working 910F version (Gekke) --> YOU -> WORKING T-MOBILE VERSION (released to everyone)

This is the problem with having two threads. People may not realize that Slayher's original thread is the mainline, working T-Mobile port. This thread is an offshoot, an attempt to modify the slayher device to the 910F variant.
[Galaxy Note 4 General] utopiate:
Just wanted to say before this thread gets retired. I have been registered here since 2010 and by far this has been the best thread. Granted, I understand very little but as a peek into the process it has been wonderful. I hope other devs see what a benefit this has been and follow suit. Congratulations to all those that have contributed here ?
[Galaxy Note 4 General] gekkehenkie11:
What do you suggest fattire ? Make one thread ? Anyway could you maybe get me that logcat file please ? :)
[Galaxy Note 4 General] Preaper:
this thread is a whole different beast.

Plus who says this thread is the redundant one..? ;)
[Galaxy Note 4 General] fattire:
Hmm. Well maybe make it super-clear in the OP that this is a spinoff of Slayher's thread... maybe something can be done to the subject too because obviously people are coming here and 'fixing' your work to re-make working T-MObile builds, which as I saw in the last few pages, people are trying either expecting it to work on 910F. Worse still, they don't notice the 901F in the subject and are coming here for the T-Mobile builds :/

But anyway... I don't have a simcard in the device right now-- you might want to install stock though and capture the log from there if you wanted a "good" boot-- it might help you figure out what needs to be done for RIL.

Also, I haven't been paying close attention, but have you forked slayher's repo into an android_samsung_trlteintl or whatever on github? You can continue to pick up commits from the mainline trltetmo as we move forward, but that may help organize your work and other people can see what your'e doing and submit changes...
[Galaxy Note 4 General] fattire:
No one said "redundant". But the 910F "port" is taking the working 910T repo, stripping out the TMobile RIL, and then the attempt by gekke is currently to replace it with something that works.. This is a fork of Slayher's work.

What *IS* redundant is coming in here, taking the broken 910F, adding the TMO RIL files back, and then releasing the new binary as some kind of working port to 910T. It's like walking into a garage while someone's working on changing the tire, putting the hubcap back on, and saying "hey everyone, look! I made a working car!!!"

(and yes, I know you were joking :) )
[Galaxy Note 4 General] utopiate:
I can't understand why people are confused really. Slayher's thread is in the right forum and this one needs closing and a new 'rom' thread opened in the snapdragon forum. I really don't get why tmob peeps are trying to use this when they already have the original port. Ce bizarre
[Galaxy Note 4 General] Beukhof1:
+1
[Galaxy Note 4 General] fattire:
This is probably just inherent confusion when there are multiple versions of the same device-- how do other forums handle it? Maybe one development thread for porting all variants vs. a general discussion for people using the builds (ie, slayher's thread)? I dunno. Just want to avoid situations like above if possible as this confusion has happened previously.

At the very least, move this thread out of "general" and into development.
[Galaxy Note 4 General] gekkehenkie11:
Ok fattire, I changed the first post of the thread with credits to you guys !

Hehe. I tried that two times, my thread got two times moved to this sectoin. Beats me why ...
[Galaxy Note 4 General] fattire:
Thanks-- it's not so much about the credit, but more about just making it clear so people don't duplicate effort and go to the right place.. as far as moving this thread, maybe a mod could get on it or something...
[Galaxy Note 4 General] isaakmg:
Thanks for the big work. [emoji6]

I have a problem for download rom of filedropper.

Is impossible for me....[emoji25]

Is possible upload to mega?

Thanks in advance....
[Galaxy Note 4 General] Beukhof1:
Any luck man? You're awful quite... Haha
[Galaxy Note 4 General] gekkehenkie11:
Yeah doing nothing, waiting for someone with 910T to get me a logcat. That should help a lot.
[Galaxy Note 4 General] gekkehenkie11:
Also would really like to know if people have USB working with 910F
[Galaxy Note 4 General] utopiate:
Just reinstalling it now, 'Activating mobile service....; lol I'll usb for you in a sec
[Galaxy Note 4 General] gekkehenkie11:
EDIT
[Galaxy Note 4 General] gekkehenkie11:
So ? Does USB work ? Do you see drivers in windows device manager for it ?
[Galaxy Note 4 General] utopiate:
Confirmed - USB not working. Driver issue?
[Galaxy Note 4 General] utopiate:
Now working, Just toggled MTP connection which initiated the driver install
[Galaxy Note 4 General] gekkehenkie11:
Nice ! But what do you mean with 'toggle MTP connection' ?
[Galaxy Note 4 General] utopiate:
In my notifications it was saying that the phone was connected as something sry cant remember. Anyway just tapped it for more options which took me to 'USB computer connection' setting page, I simply toggled MTP which initiated the driver install. I hasten to add that I cant find this setting page via the settings ??
[Galaxy Note 4 General] spleef:
Settings/storage/menu (might be 3 dots in top right corner/USB connection
[Galaxy Note 4 General] utopiate:
Nice one ;), I've tried the call data fix a couple of times but still no worky, you any closer to a fix?
[Galaxy Note 4 General] gekkehenkie11:
Nice find !!! :) Not sure what's going on here though, something is weird in the USB settings, it uses other hardware device ID's than samsung stock. I've been messing around with the settings but couldnt get it exactly like stock just yet. Anyway at least this way it's easy to have ADB again :)
[Galaxy Note 4 General] utopiate:
LogCat from start of boot anim
[Galaxy Note 4 General] gekkehenkie11:
I need a radio logcat for a working RIL on CM12, for example 910T would be great (or any other version)
[Galaxy Note 4 General] gekkehenkie11:
Ok I did some more research and I have a lead on the RIL issue ... Working on it now :)
[Galaxy Note 4 General] allenjthomsen:
No the fixes i provided bere should enable it to work for n910f also because i used n910f files and tmobile files also to get his working on my n910t so thats why im looking into the build also

---------- Post added at 03:25 PM ---------- Previous post was at 03:17 PM ----------

The zips with the gapps only had 3 sets of files that were differnt .

1. gapps was added

2. Rils were tmobile

3. Time service was from nexus 6

4.everything else in zip is from n910f files

So in all reality changing ril files shouldve enabled data for both n910t and n910f
[Galaxy Note 4 General] isaakmg:
Any news about ril n910f? With the fix, I haven't signal.........

Thanks
[Galaxy Note 4 General] isaakmg:
I can't signal....is impossible...that somebody explain how enable....with fix ril....without...

Thanks.....
[Galaxy Note 4 General] jazzypit:
no news about this rom
[Galaxy Note 4 General] isaakmg:
Is a pity, the rom work fine....
[Galaxy Note 4 General] allenjthomsen:
Ive figured there is a lib missing somewhere for you guys
[Galaxy Note 4 General] Beukhof1:
Any updates guys?
[Galaxy Note 4 General] jazzypit:
now wait for dev found what lib are missing for activate RIL
[Galaxy Note 4 General] gekkehenkie11:
So an update: I've been comparing radio logcats for touchwiz and CM12. One thing that was quite different were services, that were missing in CM12. I've added them, so output looks a lot more similar now. However RIL still doesn't function. I then saw this difference:

12-11 09:07:49.084 E/RIL-QMI ( 395): [SMDPORT] >> BEFORE, Read SMD Port [fd = 11]
12-11 09:07:49.084 E/RIL-QMI ( 395): [SMDPORT] << AFTER, Read SMD Port [num_read = 12]
12-11 09:07:49.084 D/RIL-QMI ( 395): [SMDPORT] >> BEFORE, Write SMD Port [fd = 11] [msg_len = 12]
12-11 09:07:49.084 D/RIL-QMI ( 395): [SMDPORT] << AFTER, Write SMD Port [rc = 0]
12-11 09:07:49.084 E/RIL-QMI ( 395): [SMDPORT] >> BEFORE, Read SMD Port [fd = 11]
12-11 09:07:49.084 E/RIL-QMI ( 395): [SMDPORT] << AFTER, Read SMD Port [num_read = 19]

This is not present in CM12 logcat. This is the qmuxd service reading from an SMD port, which is not happening in CM12. So I figured, let's reverse engineer qmuxd and I loaded it up in IDA. I quickly saw that this the above is output from an "RX thread", so a thread for reading data from a port. I then saw that this thread only starts when qmuxd can open a port. If it cant open that port, it keeps on looping until it can and then it starts that RX thread. So the problem is that it can't open that port. And every time it cant, it outputs this message to logcat:

01-13 12:20:02.119 E/RIL-QMI ( 395): linux_qmi_qmux_io.c: Unable to open port id /dev/mhi_pipe_14, error [2:No such file or directory]

So I then look if "/dev/mhi_pipe_14" exists. It does exists on original Touchwiz ROM, but doesn't exist on CM12 ! So that seems to be the problem, this 'mhi_pipe_14" is never created on CM12. But why not ? I tried to grep "mhi_pipe_14" and it seems it's only referenced by qmuxd. So I'm not sure what's going on. But I've just started to think that it might be a kernel problem. We're still using 910T kernel and not 910F kernel, so that might be a problem. I then dumped the bootimage from original stock firmware, replaced the ramdisk with our ramdisk but that didn't boot ... So most probably some settings must be changed, but I don't know which. And again, I'm not even sure if it's the kernel that's causing that mhi_pipe_14 to not be created. ...
[Galaxy Note 4 General] fattire:
Wait-- are you not using the kernel source for the 910F as well as the defconfig for the 910F? If you look under arch/arm/configs you'll see that there are specific defconfigs for different carriers and such...
[Galaxy Note 4 General] gekkehenkie11:
So should i just use a different Defconfig ? Or also replace kernel files ?
[Galaxy Note 4 General] fattire:
Well I don't know if Samsung provides separate code for their various kernels... what is this: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=910f

As for the config... your choices are here: See all the apq8084_sec_trlte_***** ones? I still am not clear what the 910F is ("international"... but what carrier or network or wahtever)... but maybe it's something like apq8084_sec_trlte_eur_defconfig ? In any event, the point of having separate device_samsung_trltetmo and maybe device_samsung_trlteintl (the one you're doing) is that you can set up your own defconfig and other specific bits for your device in your own BoardConfig that won't interfere with the tmo one. If you haven't, you should copy the device_samsung_trltetmo to your own version-- I'm just saying device_samsung_trlteintl but whatever is appropriate, and put it in /device/samsung/trlteintl/ and modify stuff in there to use your kernel (if it's different) and your defconfig (definitely change this) as well as anything else that looks different. You should then "brunch trlteintl" and will end up with an unofficial-cm-12-trlteintl.zip (I'm just making that up but it's basically it)...

Hope this helps.

Note to anyone else reading about defconfigs--

apq8084_sec_trlte_spr_defconfig <-- sprint, I think

apq8084_sec_trlte_vzw_defconfig <- verizon

etc. Each individual flavor of the note 4 for different carriers should have its own variant of /device/system/trltespr or /device/system/trltevzw or whatever. So if you're porting for one of these, fork off the /device/system/trltetmo in github, rename the project, set up roomservice to download your fork, make your local modifications, then brunch trlteYOURVARIANT.

Be sure though to set up a git remote so that you can pull future work from slayher and myself and you'll always be up to date.
[Galaxy Note 4 General] gekkehenkie11:
But you guys didn't change anything in the kernel or in the configuration ? So I should just use the kernel files as supplied by Samsung and the Defconfigs from Samsung for our 910f ?
[Galaxy Note 4 General] fattire:
We did make changes, which are in the history, and you'll likely have to mak ethe same changes. My GUESS is that the kernel code is the same and only the defconfig is different, but you can do a side by side comparison to make sure. If that's the case, that they are the same, then you can probably use the same source code but a different defconfig, in which case you'll want to make the same changes (git blame) that we did to yours to enable MTP and vibrator and a few other tweaks I think.

Assuming the kernel is the same, you'll want to use the same repository and submit your defconfig changes to slayher so it becomes part of the official version..
[Galaxy Note 4 General] gekkehenkie11:
OK makes sense ! A last thing, do you have any suggestions on how to compare kernel code ? I have been using beyond compare but that only seems to check file names when comparing dirs. I might have not configured it correctly though
[Galaxy Note 4 General] fattire:
From the command line you can use diff (linux/os x). See here and here.
[Galaxy Note 4 General] gekkehenkie11:
Thanks mate ! Going to look into it
[Galaxy Note 4 General] fattire:
Sure. Be sure to use the -r argument so that it is a recursive search, comparing not only the directories but the subdirectories and the subdirectories of the subdirectories...
[Galaxy Note 4 General] gekkehenkie11:
Wow that diff tool rocks :) Ok so I compared, quite some differences in source code, so I'm going to use my kernel's source code. I also compared apq8084_sec_defconfig between samkernel and your kernel and only difference was:

#CONFIG_USB_ANDROID_SAMSUNG_MTP=y

(and then those 4 security restrictions that you guys of course relieved).

and then in your tmo defconfig the only changes with stock are that you removed:

CONFIG_TACTILE_ASSIST=y

CONFIG_VIBETONZ=y

I guess I'll need to remove those 2 too then (tactile_assist seems indeed motor related)
[Galaxy Note 4 General] fattire:
yes, those were the changes we made to get rid of samsung's super-ninja advanced vibe server (VibeTonz) which requires oem participation with the standard one. Same with MTP. We wanted to use the standard.

Also-- I outlined some more stuff you should look at in a little more detail here. At some point I might want to update the wiki with this information-- but better yet, you can do it since you're goign through the process and what a terrific way to give back :)