**** BEGIN LOGGING AT Wed Dec 18 03:00:35 2019 Dec 18 06:28:37 Hobbes was added by: Hobbes Dec 18 08:03:49 Betty was added by: Betty Dec 18 09:14:42 Driekes was added by: Driekes Dec 18 11:26:13 @Shakendo [I apply it to my source files, then mka systemimage, and go from there], I see Dec 18 11:53:02 Nived Demery was added by: Nived Demery Dec 18 11:53:06 http://bit.ly/2YZ3tmy Dec 18 12:17:46 when im trying to unpack ramdisk from halium-boot.img i can't find init.rc, i can only find an init script Dec 18 12:32:07 guys how do i edit init.rc of haliumboot.img for ubuntu touch Dec 18 13:13:14 @abtekk [mkdir myfolder … sudo mount -o rw,loop system.img myfolder], https://paste.ubuntu.com/p/QZynw9PYzS/ Dec 18 13:13:27 why is it so Dec 18 13:13:59 @Win32_downdadup [why is it so], https://github.com/anestisb/android-simg2img … You might need to do this first, remember to img2simg afterwards though Dec 18 13:14:48 oh Dec 18 13:15:00 does it unpack the system image? Dec 18 13:15:16 No, it should make it so then you can run the mount command above. Dec 18 13:15:24 oh i see Dec 18 13:20:28 @abtekk [No, it should make it so then you can run the mount command above.], oh yeah i could unpack it Dec 18 13:20:30 thanks :D Dec 18 13:23:28 oh but now I have to do this . I got the system image but now where to add this : https://paste.ubuntu.com/p/Hvq9Jfrrts/ Dec 18 13:23:53 I dont know the location to where it should be added Dec 18 13:25:29 Copy … ```usr.bin.media-hub-server``` to … ```system image/halium/etc/apparmor.d/local``` Dec 18 13:25:33 And so on Dec 18 13:25:54 oh u mean the folder from github has to be copied to the location? Dec 18 13:26:10 respective locations? Dec 18 13:29:25 @abtekk [And so on], so its a matter of copying and pasting the folders Dec 18 13:30:21 For each copy rule just copy and paste each item from the first half of the rule, to the location in the second half of the rule, then repack. Dec 18 13:31:33 ah i see :D Dec 18 13:31:37 thanks again Dec 18 13:32:06 repack can be done by what command? should i use the perl implementation for this? Dec 18 13:32:36 @abtekk [For each copy rule just copy and paste each item from the first half of the rule …], repack-bootimg.pl? Dec 18 13:32:55 Did you mount the image as rw like I initially said, or did you unpack it? Dec 18 13:33:02 @abtekk [Did you mount the image as rw like I initially said, or did you unpack it?], like you said Dec 18 13:33:07 not unpack Dec 18 13:33:34 Then just unmount it, then just run img2simg over it to get it back to its original format Dec 18 13:33:58 oh so that's it? Dec 18 13:34:01 i see Dec 18 13:35:13 thats better Dec 18 13:35:14 because Dec 18 13:35:26 else using that perl implementation im getting error Dec 18 13:35:34 android magic not found or something Dec 18 13:35:47 it couldnt find the kernel and the ramdisk Dec 18 13:36:58 @abtekk [Then just unmount it, then just run img2simg over it to get it back to its origi …], using simg2img do i have to convert it back again? Dec 18 13:37:31 simg2img so you can mount it, img2simg so you can flash it. Dec 18 13:37:47 oh i see Dec 18 13:38:22 so it basically converts back raw image to sparse Dec 18 13:38:28 Correct Dec 18 13:38:28 right? Dec 18 13:38:35 so i need to use it Dec 18 13:38:36 yeah Dec 18 13:38:40 thanks :D Dec 18 13:38:44 👍 Dec 18 13:39:13 @Win32_downdadup [guys how do i edit init.rc of haliumboot.img for ubuntu touch], btw do you know ? Dec 18 13:39:42 i need to edit init.rc but it seems...its not there in halium-boot Dec 18 13:42:53 Is it in /system/etc/init? Dec 18 13:42:58 (just guessing here) Dec 18 13:43:38 @abtekk [Is it in /system/etc/init?], As in the mounted image? Dec 18 13:43:45 Yeah, check. Dec 18 13:43:51 Yeah I'll see Dec 18 13:44:00 I could be talking rubbish... Dec 18 13:44:17 Oh Dec 18 13:44:24 No no it's fine it's worth a check Dec 18 13:44:27 😁 Dec 18 13:45:25 One moment😅 I closed by laptop to go home, I'll reboot Dec 18 13:45:37 Lemme see Dec 18 13:47:44 @abtekk [Is it in /system/etc/init?], Oh it's init-debug.rc Dec 18 13:48:01 Is it because mine is a debug kernel? Dec 18 13:48:30 Oh but it doesn't contain much data Dec 18 13:50:08 Not sure. Leaving my level of expertise here a bit. Dec 18 13:50:22 Oh Dec 18 13:50:36 This is what I found Dec 18 13:51:17 https://paste.ubuntu.com/p/Nrk4dY3z74/ Dec 18 13:51:44 Go to the init folder Dec 18 13:51:52 ok i will see Dec 18 13:52:35 @abtekk [Go to the init folder], https://paste.ubuntu.com/p/8T9kbxBF9w/ Dec 18 13:52:59 Hmm, then I'm not sure. Dec 18 13:53:08 i see Dec 18 13:53:11 btw Dec 18 13:53:54 i need to apply kernel patches to apparmor but then i have to do this in the device right? not in pc Dec 18 13:54:25 I never did this before Dec 18 13:54:48 kernel_3.18_apparmor_patches … Apparmor patches for linux kernel 3.18 … Usage: … git am --signoff < 0002-0010_xxxx.patch … Patches from https://kernel.ubuntu.com/git/jj/linux-apparmor-backports/refs/heads and fix build error with https://lists.ubuntu.com/archives/kernel-team/2016-January/068128.html Dec 18 13:55:03 @abtekk [Hmm, then I'm not sure.], its what i have to apply Dec 18 13:55:37 You apply the kernel patches before you build the kernel. Dec 18 13:55:45 oh that means in the system Dec 18 13:56:30 but from which directory Dec 18 13:56:38 like builddir? Dec 18 13:57:44 @Win32_downdadup [oh that means in the system], No, you're not applying anything to the system, you apply these to your kernel source code. Dec 18 13:58:29 @abtekk [No, you're not applying anything to the system, you apply these to your kernel s …], its not defconfig right? Dec 18 13:59:27 kernel source code filename would be...?🤔 Dec 18 14:07:46 @Win32_downdadup: You fork the repo on Github that has the kernel, then apply changes and update the Halium device manifest to point to your updated kernel repo Dec 18 14:08:40 I.e. you fork https://github.com/herrie82/android_kernel_xiaomi_msm8953 then apply the patches and point the https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/xiaomi_mido.xml#L5 to your kernel repo instead of mine Dec 18 14:10:02 And build a new Halium image... Dec 18 14:10:35 Or just the kernel itself, but I'm not familiar with how that works in UBPorts Dec 18 14:11:10 Since for LuneOS we build the kernel ourselves using Yocto and recent GCC and we don't use the one Halium generates with GCC 4.x Dec 18 14:23:01 Thanks herrie Dec 18 14:23:03 I'll try Dec 18 14:24:15 @Herrie [Since for LuneOS we build the kernel ourselves using Yocto and recent GCC and we …], Ah I see Dec 18 15:33:08 Dante Mossi black was added by: Dante Mossi black Dec 18 15:33:12 @RippleAlert Dec 18 15:34:21 AlexPvl was added by: AlexPvl Dec 18 16:19:07 @Herrie [I.e. you fork https://github.com/herrie82/android_kernel_xiaomi_msm8953 then app …], https://paste.ubuntu.com/p/7FqGsw74CK/ it says nothing to commit after applying patches running "git am", i ran the command from the kernel directory of the repo Dec 18 16:24:01 @Win32_downdadup: I usually use a GUI client for git. When I use command line to force push my changes after a rebase I use: "git push origin --force" Dec 18 16:24:09 So I guess you could simply try "git push origin" Dec 18 16:24:20 THey are already applied with git am, so you don't need git commit Dec 18 16:24:47 git am and git push should be enough I'd say normally Dec 18 16:33:48 Oh but Dec 18 16:34:03 @Herrie [git am and git push should be enough I'd say normally], wont git status pick it up Dec 18 16:34:13 its a change right Dec 18 16:34:22 how can i confirm that it has been applied Dec 18 16:55:47 Git am already commits it, so there's no pending change Dec 18 16:56:10 oh i see Dec 18 16:56:21 thanks herrie :D Dec 18 19:27:14 @abtekk [Copy … usr.bin.media-hub-server to … system image/halium/etc/apparmor.d/local], I just checked but i dont have a system/halium when i mount system.img, rather i have an etc/ and there is no apparmor in it Dec 18 19:28:15 i mounted the system.img and checked Dec 18 19:28:44 @Win32_downdadup [yeah but here they say like Add them to system.img: … PRODUCT_COPY_FILES += \ …], but they told Dec 18 19:28:52 but i dont have the path Dec 18 23:59:41 Bemni✌ zhang was added by: Bemni✌ zhang Dec 18 23:59:46 bit.ly/38UY5VZ Dec 19 01:12:23 Shigazaru was added by: Shigazaru Dec 19 01:13:38 I would like to install Halium on a recent Xiaomi phone. anyone succesfully done that before? is it possible to Keep a dual boot with Android ? Dec 19 01:13:45 or run Android apps on Halium ? Dec 19 01:16:24 Kernel source code is available at https://github.com/MiCode/Xiaomi_Kernel_OpenSource Dec 19 01:17:32 @Shigazaru [or run Android apps on Halium ?], Running android apps on UT is possible, its still very much a "not ready for daily use" feature aym though, as far as getting itnon a Xiaomi device it depends on 2 things … 1) Has someone ported it for your device? … 2) If you answered no to 1, are you willing to take on the task yourself Dec 19 01:45:12 Tygerpro, I am willing to take on the task, but I would like some help... so far I have created the manifest files in my halium-devices fork. and I am looking at starting the first build Dec 19 01:45:41 this doc (https://docs.halium.org/en/latest/porting/get-sources.html) refers to Android 7 and 5 ... what about Android 8,9,10 ? Dec 19 01:48:13 I see that Halium 7.1 was based on LineageOS 14 (Android 7 IIUC) but LineageOS 16 is out .... Dec 19 01:48:46 or maybe there isn't any benefit going to the latest LineageOS and/or this is an entirely unrelated different topic. in order words, porting to Halium 7.1 is fine ? Dec 19 01:52:47 Well when it comes to android versions higher than 7.1, you will be on your own for now as halium doesnt support higher Dec 19 01:56:13 makes sense Dec 19 01:56:36 I am going the repo sync stuff now, I will test if my manifest file was proper and try to build it Dec 19 02:01:32 Good Luck Dec 19 02:02:28 is there somewhere that I could read on what is Halium doing on top of LineageOS ? it is quite confusing for a new comer to get in. even with Linux and programming background. So many different projects, we are not sure what is doing what... Dec 19 02:30:31 *Doesn't higher then 7 yet Dec 19 02:30:55 Iirc work is being done to support higher Dec 19 02:31:28 Docs.halium.org is a good place to start Dec 19 02:31:28 Indeed, but I dont think they've gotten a successful UT boot yet Dec 19 02:32:16 Sure but we're just talking about halium atm, ut is a layer higher :p Dec 19 02:32:52 [Edit] Sure but we're just talking about halium atm, ut is a layer higher iiuc :p Dec 19 02:35:24 [Edit] Docs.halium.org is a good place to start to get to know halium … But the short answer is: halium makes use of an minimal android container to utilize android drivers to run glinux distros on android hardware Dec 19 02:39:13 @Shakendo you had sent me a documentation page right? In that they have told me to do this https://paste.ubuntu.com/p/Hvq9Jfrrts/ … Had you ever had to do this? … Because I can't seem to find /system/halium path in it, as they had told. I'm confused Dec 19 02:40:00 I only have a /etc and it doesn't have apparmor.d path Dec 19 02:40:14 @Win32_downdadup [@Shakendo you had sent me a documentation page right? In that they have told me …], It's system image that I mounted Dec 19 02:42:43 That goes in your device.mk on your dev machine, you have to get the files off the repo linked in that link I sent you Dec 19 02:43:10 @Shakendo [That goes in your device.mk on your dev machine, you have to get the files off t …], I did clone the repo Dec 19 02:43:27 Oh in the mido's mk Dec 19 02:43:35 In vendor Dec 19 02:43:47 Is it? Dec 19 02:44:47 https://github.com/tyg3rpro/android_device_samsung_trlte-common/blob/11921b5b92a720bf8b481a8b6ef764ac99281e14/trlte.mk#L285 Dec 19 02:44:59 Thats my setup Dec 19 02:46:02 Omg I got so confused, I was gonna copy the thing into the folders Dec 19 02:46:14 Of system image Dec 19 02:46:35 Because the used the statement "in system.img" Dec 19 02:47:43 @Shakendo [Thats my setup], So this "$(LOCAL_PATH)/ubuntu/70-trltetmo.rules:system/halium/lib/udev/rules.d/70-android.rules" Dec 19 02:48:28 This local path with /Ubuntu Dec 19 02:48:36 It will be handled? Dec 19 02:48:42 By the system? Dec 19 02:48:50 I don't have to manually create anything? Dec 19 02:48:55 Any folders Dec 19 02:50:17 @Shakendo [Thats my setup], I have one more doubt where did you keep the cloned repo files? In what directory? Dec 19 02:53:58 You will have to copy the files you need in to a folder somewhere in your build directory, and in your device.mk (whatever he name for it is) you tell the build system where to put them in the system.img during compile, you could manually copy everything to the folders and whatnot, but its easier to do things this way Dec 19 02:54:46 @Shakendo [You will have to copy the files you need in to a folder somewhere in your build …], Oh so the first path is like a reference Dec 19 02:55:53 First path is copy from location, second is copy to location Dec 19 02:56:05 Oh like a cp command Dec 19 02:56:22 Thats exactly what it is Dec 19 02:56:28 Oh I see Dec 19 02:56:42 I'm so sorry😅 I'm a bit new to this Dec 19 02:56:54 Thanks for the help Dec 19 02:57:37 @Win32_downdadup [I'm so sorry😅 I'm a bit new to this], No worries, we were all new once Dec 19 02:57:53 😊😊😊 **** ENDING LOGGING AT Thu Dec 19 03:00:12 2019