yashsingh1/xdaforums huggingface dataset:
[Android General] MrRob0t:
if you have enough hard drive space, you can dual boot.

that's what I'm currently doing. it's an older PC with 6GB RAM and 1TB HDD.

I split it in half and gave 500gb to Windows 7 and 500GB to Linux.

A dedicated laptop to linux is definetly the way to go if you are able to.

For me I like both, windows 7 and linux, so you get the best of both worlds.

since my PC is pretty old, virtual machine just didn't run as good as a dual boot setup.

Just a suggestion. :highfive:
[Android General] K-alz:
Thanks a lot for the insight. I have dual booted once in the past and it took over my bios and made permanent changes to my bios that I couldn't rid of until I fresh reinstalled windows 10. It was some weird stuff with all command lines and stuff. Lmao.

Now, I have a dedicated PC with an i3 processor and 6 GB of ram just for linux. Man, I dont why linux feels like a retarded brother of macos. Haha
[Android General] MrRob0t:
Ahh yes, the grub bootloader. I haven't looked into if there is a way to get around having to reinstall Windows to remove Linux. I do know all too well the scary feeling when you delete Linux and can't boot into Windows! :laugh:

I have a CD of SuperGrub2, Gparted, Linux 14, and Linux 16 JUST encase, been through that too many times, haha.

But that is great! I wish I had a dedicated laptop. I hate having to work on my desk all the time, a laptop would be really handy.

And I agree, being a Windows user my entire life basically, Linux is a new beast, that is just a little weird, but I am starting to really like it.

I think another distro might be better, and may use VirtualBox machine to try them out.

I've personally never used MacOS, though, but have used a Mac PC once or twice, and do understand what you are saying. :laugh:

Thank you, Sir!

I actually did stumble across this page, but I either was messing around with other stuff, didn't understand what it is telling me to do, or was getting frustrated and started going too fast (most likely).

Today was good, as I took some time off, and with your help, was ready to dive back in! :cool: :highfive:

So today,

I first set arch/arm64/kernel/vdso/gen_vdso_offsets.sh permissions to 755 by doing:

chmod 755 gen_vdso_offsets.sh

-- I believe this is what it was telling me to do.

I also made sure that I edited the file correctly and found that I did not:

's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\[U]#define vdso_offset_\2\t0x\1/p'[/U]
[COLOR="SeaGreen"][B]to[/B][/COLOR]
's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\[U]#define vdso_offset_\[B]2 0x\1[/B]/p'[/U]
[COLOR="seagreen"][B][B]but it seems that I messed up and was missing the space in the edit[/B][/B][/COLOR]
's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\[U]#define vdso_offset_\[B]20x\1[/B]/p'[/U]

so I fixed that missing space.. Not sure if I needed to even change this line in the first place, but we will see. :)

I then went to out/pme/...../include/generated/vdso-offsets.h and put this code inside:

#define vdso_offset_sigtramp	0x04e0

After this, I was looking around my build, and realized that I messed up again :laugh:

When I was making my pme.xml file, I put it in .repo/local_manifest

so I fixed this and made the correct folder .repo/local_manifests

Anyway, I am at 32% building.. progress!!

I will be back to inform if build was successful or failed, fingers crossed. :eek:

Really I want to build for P, but wanted to try my hand at O first. Need to crawl before I walk!

Thanks again for everything! (I'm still watching the videos, the HD quality is incredible and very easy to understand and follow along with.. you should be a teacher!)

You've put in so much work for us. I am so blessed I found this thread!

You rock! I don't have a lot to my name, but once my funds transfer from bank to PP I'll be tossing you $5-10 here and there when I can. I know it isn't much and you aren't doing this for $, but your time isn't free.
[Android General] K-alz:
Now I'm running into another issue with ubuntu. Nothing installs. Period. Everything fails. Now I'm making a bootable USB of mint. Hopefully this one would work better. I hate how I have to install everything from repositories and command lines :/. I like mu .exe files.
[Android General] lucki1000:
Linux it's open source use donations to compensate effort, but if you interested in Linux it makes a lot fun, Linux is fast and with the right settings it look very modern and nice.

Built for people not for profit ~Mozilla

---------- Post added at 12:18 AM ---------- Previous post was at 12:13 AM ----------

The most Linux distributions have a pre-installed software-center, Ubuntu have apt(command line), ubuntu-software-center and aptitude.
[Android General] K-alz:
Nothing works. All packages fail to install. I'm giving up. Trying to install mint and now it's asking for a mint account login. What a pain.
[Android General] zelendel:
Then linux might not be for you then. It is a very back to basics os. There are ways to build android in windows these days for those that are less tech inclined.
[Android General] K-alz:
It's just not installing at all. Lol

Ubuntu failed to download any package and now mint wouldn't even load up. I'm in no way a "less tech inclined". I just have not had enough interaction with linux. A couple of tutorials and I'll rock it out. [emoji108]
[Android General] zelendel:
And see that's the thing is those are very basic things. Ubuntu is almost idiot proof. As is mint.

So that leads me to wonder what the issue is. Mind you they do happen. I had a few with my old laptop (no open source lan drivers, so no internet all unless I dual booted) I also had a few with my new station due to some settings in the bios.
[Android General] K-alz:
And that's what I mainly dont like about linux, these little nuggets here and there that cause frustration. Hey, I got mint running now. Much better than ubuntu. Wish me luck.
[Android General] zelendel:
It is very windows like. It is my currant build environment (I use different distros for different work stations.)

That is the challenge of linux. It's for those that like to get their hands dirty.

Good luck.
[Android General] K-alz:
Thanks, man. Here I come with my hands covered with mud lol
[Android General] DJABHipHop:
I agree thats one way to go about, but I like using an Ubuntu-18.04 base server for webhosting, file sharing, and android rom/device building with one user account per custom rom per android version and it's faster because there no overhead with a GUI its all done remotely via ssh and ftp witch mean you can use cron job to automate the process and report and error if you code skills are really good and you know what your doing and you can used windows with out messing up your bios at all and build from powershell or winscp and use use your faveroite window based IDE. In simple you can one account for bulding a rom device over night and sign the build once you work out the bugs and one account for making test build whenever you wanted to. Its more work to setup but the payoff is worth it. Just suggesting.

Expsample

Account 1: LineageOS-14.1

Account 2: AOSP PIE
[Android General] K-alz:
Just wanted to let you know that mint is running beautifully with no issues. I've enabled system snapshots and I'm gonna back up the crap out of it just in case. I might even switch my main powerful machine to it in a week or two after I try it.
[Android General] youngAvJ:
yes sir. I did.
[Android General] DJABHipHop:
Did you edit vendorsetup.sh & candy.mk that does make a diffrent if you edit those files and change PRODUCT_NAME := lineage-your-device-name with PRODUCT_NAME := candy-your-device-name in both files;

Rember your-device-name=what ever divice the tree is for
[Android General] AlaskaLinuxUser:
Sounds to me like [MENTION=1140856]zelendel[/MENTION] should make a video tutorial on that!

I don't even own a computer running windows. I had to borrow one to make the windows videos for how to use qfil and odin. Even my wife uses Linux! (#lovethatwoman) :cool:
[Android General] DJABHipHop:
True but you can run window on a vm and make the video that ways can you with a windiw demo version or there test vbox img
[Android General] youngAvJ:
sir there is nothing to change in vendorsetup.sh.

this is my /home/abhijith658/candy/vendor/candy/vendorsetup.sh file

. "$(gettop)/vendor/candy/build/envsetup.sh"

candy_device_combos
[Android General] MrRob0t:
[MENTION=7026648]AlaskaLinuxUser[/MENTION]

Los15.1 built! :highfive:

onto Los16

got a strange one here, at least for me trying to decipher exactly what this is telling me to do. :confused:

kernel/htc/msm8996/include/linux/compiler.h:465:38: error: call to '__compiletime_assert_134' declared with attribute error: BUILD_BUG_ON failed: sizeof(task_name) != TASK_COMM_LEN
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:448:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:465:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
../../../../../../kernel/htc/msm8996/include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
../../../../../../kernel/htc/msm8996/include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
../../../../../../kernel/htc/msm8996/include/linux/sched.h:2769:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(sizeof(buf) != TASK_COMM_LEN); \
^
../../../../../../kernel/htc/msm8996/drivers/gpu/msm/kgsl_htc.c:134:4: note: in expansion of macro 'get_task_comm'
get_task_comm(task_name, task);
^
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:465:38: error: call to '__compiletime_assert_137' declared with attribute error: BUILD_BUG_ON failed: sizeof(task_parent_name) != TASK_COMM_LEN
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:448:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:465:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
../../../../../../kernel/htc/msm8996/include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
../../../../../../kernel/htc/msm8996/include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
../../../../../../kernel/htc/msm8996/include/linux/sched.h:2769:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(sizeof(buf) != TASK_COMM_LEN); \
^
../../../../../../kernel/htc/msm8996/drivers/gpu/msm/kgsl_htc.c:137:5: note: in expansion of macro 'get_task_comm'
get_task_comm(task_parent_name, parent_task);
[Android General] lucki1000:
I get an new MotoActions error

error: /aosp/device/motorola/cedric/MotoActions/src/com/moto/actions/KeyHandler.java:465.12: The return type is incompatible with DeviceKeyHandler.handleKeyEvent(KeyEvent)

help....
[Android General] AlaskaLinuxUser:
I'm not sure what the problem is. Question: does lineage os build for you?

Great work! That's fabulous! :highfive:

So, your current error:

. ./../../../../../kernel/htc/msm8996/drivers/gpu/msm/kgsl_htc.c:1:
../../../../../../kernel/htc/msm8996/drivers/gpu/msm/kgsl_htc.c: In function 'kgsl_dump_contextpid_locked':
../../../../../../kernel/htc/msm8996/include/linux/compiler.h:465:38: error: call to '__compiletime_assert_134' declared with attribute error: BUILD_BUG_ON failed: sizeof(task_name) != TASK_COMM_LEN
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)

Search this file:

kernel/htc/msm8996/drivers/gpu/msm/kgsl_htc.c

For this phrase:

BUILD_BUG_ON

Is it in there? If so, does it specify any number or value?

Did this file change in any way? E.g., did you edit it or add commits from something else?

Did you apply any patches to the kernel?

Building with a newer tool chain? E.g., is pie using a newer prebuilt toolchain than Oreo was? I can't remember, and it's 1 in the morning here. (My son is sick, so I am up with him).

That should get you pointed in the right direction. :fingers-crossed:
[Android General] AlaskaLinuxUser:
Can you post your KeyHandler.java file, so I can look at it?
[Android General] youngAvJ:
Yes los available for poco.

Yes.
[Android General] lucki1000:
here the link to my java file https://drive.google.com/open?id=1zZ4AwtpxVC5r8mU_EahZh5DvBqW1HmoL
[Android General] youngAvJ:
Yes. Lineage os build for my device.

You are my only hope.
[Android General] AlaskaLinuxUser:
I've looked at the file, I don't see anything wrong with those lines. You have three choices:

1. Remove moto actions from your build.

2. Fix the keyhandler file by changing the type of the method at line 465.

3. Remove the keyhandler method at lines 465.

If you want to fix it, I do not know what the answer is, so you will need to web search or ask your phone specific forum for help.

That is not what I asked. I asked can you build los? Since starting out we have not gotten any build to start, so let's go back to the basics and build los first, then branch out from there. :good:
[Android General] rajesh@xda:
Nougat used .dat compression on its rom zip .while oreo and pie uses .br compression. Where this is defined in ROM source or in device tree.?
[Android General] youngAvJ:
Ok sir. I'll try to build los. And report back.
[Android General] MrRob0t:
I'd still be working on Nougat without you!

So, since I am using a devs files for vendor, device, kernel

he has new branch for eas-O and eas-P kernels

I checked the file, and BUILD_BUG_ON is not present in either kgsl_htc.c from eas-O and eas-P

So now I am a lil confused.

I hope your little man is feeling better! :(
[Android General] AlaskaLinuxUser:
This is in rom source.

/external/brotili is the folder with the compression tool but /build/tools is the folder where things like how to build images and ota packages are kept. :good:
[Android General] AlaskaLinuxUser:
Thanks! He's a little better, I was cheering him up by playing monster trucks with him! We ran over all his sister's stuffed animals...... :cool:

I think I meant this file: kernel/htc/msm8996/include/linux/compiler.h:465:38

Line 465, or in that method. :good:
[Android General] lucki1000:
How can I remove Moto actions from my build?
[Android General] dean a12@#:
Hello guys,debugging a clock app and came when error of this type:-

---- 30-Dec-2018 11:04:19 PM ----

12-30 23:04:07.249 1625 5797 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.deskclock/.DeskClockTabActivity (has extras)} from uid 10087

12-30 23:04:07.280 1625 3404 W WindowManager: Token{33826fd ActivityRecord{3e4754 u0 com.android.deskclock/.DeskClockTabActivity t28}} failed creating starting window

12-30 23:04:07.313 1625 2121 I ActivityManager: Start proc 15026:com.android.deskclock/u0a101 for activity com.android.deskclock/.DeskClockTabActivity

12-30 23:04:07.390 15026 15026 W System.err:	at com.android.deskclock.DeskClockApp.<init>(DeskClockApp.java:22)

12-30 23:04:07.404 15026 15026 E AndroidRuntime: Process: com.android.deskclock, PID: 15026

12-30 23:04:07.407 1625 5593 W ActivityManager: Force finishing activity com.android.deskclock/.DeskClockTabActivity

12-30 23:04:07.417 1625 2114 I ActivityManager: Showing crash dialog for package com.android.deskclock u0

12-30 23:04:07.911 1625 2111 W ActivityManager: Activity pause timeout for ActivityRecord{3e4754 u0 com.android.deskclock/.DeskClockTabActivity t28 f}

12-30 23:04:08.645 1625 5593 W ActivityManager: Force finishing activity com.android.deskclock/.DeskClockTabActivity

12-30 23:04:08.654 533 581 W SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{f77dff2 token=Token{33826fd ActivityRecord{3e4754 u0 com.android.deskclock/.DeskClockTabActivity t28}}}#0

12-30 23:04:08.680 1625 5593 I ActivityManager: Killing 15026:com.android.deskclock/u0a101 (adj 900): crash

---- 30-Dec-2018 11:04:19 PM ----

The things I'm not understanding are these PID:15026 and u0a101 stuff.I reached the destination Smali folder but how to identify which file causes error in case of PID:15026?.Exactly what is PID Address of file?
[Android General] AlaskaLinuxUser:
You would need to search your device tree and source directory and remove the call to build it.

PID is a Linux term for process identity. Every time any process is started, it is given a number (typically the next sequential number). This number is used to reference it at all times until it is removed or stopped or killed. So the number 15026 is only valid for that one instance. Next time you start the phone, the number for that process may be 15011, or some other number.

UID is the user identity who called for the action. This number should always be the same. Typically, in Linux, the first user, e.g., you, is 10001, or 1001, depending on the distro. Other users include the network user, the mail user, etc. Each user including apps, get a unique uid when installed that they keep forever.

You problem is here:

12-30 23:04:07.390 15026 15026 W System.err:	at com.android.deskclock.DeskClockApp.<init>(DeskClockApp.java:22)

In your DeskClockApp.java line number 22. Something on that line, or a call from that line kills the app. :good:
[Android General] DJABHipHop:
How do i build root by default into all lineage except user build and how would sign my custom rom build plus setup an update api for OTA update if I decide to in the future.
[Android General] Amit Kumar R:
Please Upload Your TWRP from scratch Video Daily.

Upload Your TWRP video daily as I want to build specifically for my LYF WIND 3 which got Snapdragon 410 and adreno 306 with Android lollipop 5.1.1.

I wanted to learn quickly.

Thanks again for your time and support!

And as always,

Keep this good work going on.

I'm a big fan of your work!
[Android General] AlaskaLinuxUser:
Custom ROMs used to come with root built in all the time, however, with safety net, they now do not put it in so the user can download the appropriate magisk or SuperSU to their liking. Now days, twrp is usually built with SuperSU available at the swipe of a screen.

As for signing builds and ota updates. I'll be honest, those are things I don't do. But I'll look into them. Ota updates requires an ota server, so most people only do that of they are building official ROMs with the financial backing of the official ROM team. :good:

Thank you! As always, you can get the entire video series off of my gitlab (link in op), but here is a direct link to the one in question:

https://gitlab.com/alaskalinuxuser/twrp-for-a-new-device-videos

Do keep in mind, the gitlab repositories are often works in progress, while the YouTube videos are finished products. :good:

This one is tough. I've been thinking on this for a while and don't have a good answer for you yet. You may do well to ask the developer from whom you borrowed the work. But when I have time I'll think on it some more. :fingers-crossed:
[Android General] MrRob0t:
Hey man I appreciate everything! :cool:

I've been scoring the internet for awhile trying to find what I can but seems to be pretty strange, and not a lot of info on it.

I'm going to try posting in the thread.

The dev doesn't have a lot of time and I haven't been successful in getting a response yet. :eek:

fingers crossed :fingers-crossed:
[Android General] dean a12@#:
thanks sir for guiding.Figured it out.

But now I am getting an error in modifying google camera apk,I added maximum brightness mode in app and all is going good but when I declared string in public.XML file and went to compile the apk then got this error:-

/data/user/0/com.gmail.heagoo.apkeditor.pro/files/Camera(1)/res/values/public.xml:4835: error: Public resource string/pref_max_brightness_title has conflicting type codes for its public identifiers (0x13 vs 0x14).

I tried every technique to give it new I'd at end of public.XML file to changing its position in file but nothing helped.
[Android General] AlaskaLinuxUser:
The power is out here. Fortunately it is warm today, just below freezing. Still pretty dark here for the next few hours, but I am entertaining the kids with glow sticks (a must have around here)!

Often devs can be busy, but sometimes they have a different method preferred for contract. Their github/lab may provide further insight. :good:

Glad you figured it out. Not sure about the new error. I've never seen that issue. :confused:
[Android General] lucki1000:
[MENTION=7026648]AlaskaLinuxUser[/MENTION]

I have tried to install my experience rom and when I start the systemui stopped working and I see only black screen adb won't go because adb is not enabled in developers options can you help me?
[Android General] DJABHipHop:
Well adb can be enabled in build.prop

Try this

Reboot into recovery

then run this comment below then reboot to system and you should now have adb on boot in order to bull logcats and tombstone as well.

adb remount&&adb shell "echo '# Default.prop overrides to get adb working at boot' >> system/build.prop"&&adb shell "echo '# ADB' >> system/build.prop"&&adb shell "echo 'ro.secure=0' >> system/build.prop"&&adb shell "echo 'ro.adb.secure=0' >> system/build.prop"&&adb shell "echo 'sys.usb.config=mtp,adb' >> system/build.prop"&&adb shell "echo 'persist.sys.usb.config=mtp,adb' >> system/build.prop"
[Android General] lucki1000:
add=b

thanks.
[Android General] DJABHipHop:
Try this

Reboot into recovery

then run this comment below then reboot to system and you should now have adb on boot in order to bull logcats and tombstone as well.

adb remount&&adb shell "echo '# Default.prop overrides to get adb working at boot' >> system/build.prop"&&adb shell "echo '# ADB' >> system/build.prop"&&adb shell "echo 'ro.secure=0' >> system/build.prop"&&adb shell "echo 'ro.adb.secure=0' >> system/build.prop"&&adb shell "echo 'sys.usb.config=mtp,adb' >> system/build.prop"&&adb shell "echo 'persist.sys.usb.config=mtp,adb' >> system/build.prop"
[Android General] MrRob0t:
Oh man I can relate, no power and freezing cold, or near enough!, but Vermont is not nearly as cold as Alaska! That and the light hours. I'd be sleeping during the day and awake at night.. not all that different for me now. InsomniaS*cks!!

very good idea with the light sticks! actually going to bring some over to my buddies later on, gunna grab some at walmart. I love kids!

and boy I feel like a dunnski. so I got a response!, very fast too. So I read in his lineageO thread to use the eas-o kernel and not the lineage-15.1 branch. there wasn't any info in the LineageP thread about building, so I figured use the eas-p branch..

so this explains why you were having so much trouble. all my fault. he said to use lineage-16.0 branch and not the eas-p for kernel. doyyy:eek::o

sorry man!! :(

cloned the kernel, force syncing then re-building!

:fingers-crossed:

Also, have you any experience with VOLTE and aosp roms?

I know it takes great work, I have some experience getting it working on the stock based rom that comes with HTC. It's been eluding our HTC 10, however.

Like phones, such as xiaomi, oneplus, and HTC M8 have it working, perhaps I can search out the IMS files and do (many) tests, lol.

---------- Post added at 10:16 PM ---------- Previous post was at 09:39 PM ----------

Is this thread any help? (post #62 specifically)

https://xdaforums.com/showthread.php?t=1290292&page=7

I used to add the ids and strings and never bothered with public.xml as they got added automatically during compile.
[Android General] dean a12@#:
So you saying that I can only add the value in "ids.xml" and rest will be handled automatically at time of compiling????. Will try now....

---------- Post added at 05:25 AM ---------- Previous post was at 05:24 AM ----------

Hmm.OK thanks sir?