yashsingh1/xdaforums huggingface dataset:
[Android General] mafianet:
SD Card Booting

[MENTION=7026648]AlaskaLinuxUser[/MENTION]

Thanks for your time.

Just to be sure, "Busybox" will mount all necessary partition on sdcard, change that I need to make on the "ramdisk" scripts after extracted the boot.img from my build.

3 questions if I may;

1. Isn't there a way to make those change before building my AOSP code, considering I will anyways build the code?

2. Correct me if I am wrong, but I will still need the boot.img on my physical HDD in the phone, to mount all partition on sdcard. Isn't there a way to boot directly from other drive than the one on the phone?

2.5 So, if I can't change the heart of phone booting sequence, do you think I can remove all other partition from (except from boot.img and recovery.img) then keep booting on the sdcard?

3. Or, is there a way to make a "if.... else" statement in the init script to check "IF there is a sdcard... mount the sdcard... ELSE mount the HDD normally"

Thanks again for your time, I appreciate.
[Android General] widi aprianto:
ok. now how to generate kernel config/defconfig?
[Android General] AlaskaLinuxUser:
There are more videos on gitlab than on YouTube. All the gitlab ones end up on YouTube. Often they are a work in progress, but you can certainly check them out. :good:

I'll have to keep that on the back burners. Good suggestion. :cowboy:

Does the camera flash work? :fingers-crossed:
[Android General] widi aprianto:
Ok then how to generate kernel defconfig?
[Android General] kush57:
[MENTION=7026648]AlaskaLinuxUser[/MENTION] help needed :)
[Android General] AlaskaLinuxUser:
Perhaps you should consider the alternate recoveries, such as Redd wolf or orange fox. I have videos for that. They are based on 8.1. :good:

When you find out, you let is know. :cool:

What I mean is, there isn't such a list. If there was, this would be much easier. Your best bet is to compare the kernel of a similar device that went from Oreo to pie, and see what they had to change.

Since every device has a different kernel version or patch level, and every device has different drivers, it is very difficult to know what pieces may need added or changed between android versions. All you can do is compare similar device to see what you need, or compile as is and see what crops up. :good:
[Android General] AlaskaLinuxUser:
When I load the link to your paste bin, it is blank. Perhaps you could upload it again. ( see pic). :confused:

If you want to build Oreo, you need to find a repo with an Oreo kernel, or you will need to upgrade the nougat one. If this is your first build, I recommend you build nougat first to get the hang of things. :good:

You can do anything you want to your phone. That's the beauty of android development. However it may not work anymore when it is done.....

Correct me if I am wrong, but I will still need the boot.img on my physical HDD in the phone, to mount all partition on sdcard. Isn't there a way to boot directly from other drive than the one on the phone?

2.5 So, if I can't change the heart of phone booting sequence, do you think I can remove all other partition from (except from boot.img and recovery.img) then keep booting on the sdcard?

The chip in the phone, the SoC, comes programmed from the board manufacturer to load about, then boot partitions. You can't change this. Well, you can, but if you knew how, you would not be asking for my help, you'd be teaching the class!

So you will always need the about and boot partitions. As for the others, well, that depends on how good you are and how brave you are. :laugh:
[Android General] AlaskaLinuxUser:
Here is what I get when I try to load the log cat link.
[Android General] lukaspieper:
The Ubuntu page is very slow, have you tried leaving it open for a minute vor two?

Else I will upload a cleaner version when I am back at home. Thanks.
[Android General] DJABHipHop:
Quick question how would I add a folder that a user to add custom Ringtones without having to use twrp or root to flash new ringtones or does that function already exists in LineageOS. either way can that be moved over to the external sd card along with photo,movie,music,document,downloads & application data like setting, to save space to older or low storage capacity devices 16GB & under in the LineageOS Source or for that matter any Android base rom Nougat or newer.

I know there thing like expandable storage & probably some root method or exposed tweak for that but i'd rather not deal with that at all if possible and use the full capacity of the external sd card.
[Android General] widi aprianto:
Back camera work with flash, but when switched to camera with flash is error, cannot take picture
[Android General] widi aprianto:
ask

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/camera.device@1.0-impl.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/camera.device@3.2-impl.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/camera.device@3.2-impl.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/camera.device@3.3-impl.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/camera.device@3.3-impl.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/android.hardware.camera.provider@2.4-impl.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/android.hardware.camera.provider@2.4-impl.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/consumerir.default.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/consumerir.default.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/fingerprint.default.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/wufix/android/system/out/target/product/vince/vendor/lib64/hw/fingerprint.default.so'
ninja: error: '/home/wufix/android/system/out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar', needed by '/home/wufix/android/system/out/target/product/vince/dex_bootjars/system/framework/boot.prof', missing and no known rule to make it
09:06:17 ninja failed with: exit status 1

#### failed to build some targets (01:33 (mm:ss)) ####

get error like this when build lineage os 16, whats wrong?
[Android General] Dat0dinh:
thanks bro
[Android General] AlaskaLinuxUser:
I'll be honest, I'm not sure what package you need, but I am sure that you need to find that package. :laugh: You are missing some repository that is required to finish building the remote preference updater. You'll have to do some web crawling on that one. :good:

What does the key word "error" tell you? It says:

'/home/wufix/android/system/out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar', needed by '/home/wufix/android/system/out/target/product/vince/dex_bootjars/system/framework/boot.prof', missing and no known rule to make it

So this is missing:

'/home/wufix/android/system/out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar'

You need to find it and add it to your vendor files. Do you have your vendor files downloaded and put in the vendor folder for your device? :good:

Glad you like the videos! :cool:
[Android General] GreatGodvin:
Really awesome video tutorials. It helped me a lot :)
[Android General] lucki1000:
Okay now I have this:

error: frameworks/base/libs/hwui/Android.bp:1:1: "hwui_defaults" depends on undefined module "skia_deps"

Thanks for any help.
[Android General] prabhjot368:
how can i figure out the issue if an app takes time to load in nougat version but loads faster in oreo version on my device..
[Android General] beast97:
how to merge security patch??

for eg some of the roms dropped oreo 8.1 to merge latest security patch .since they move on to pie

so how to commit the latest security patch
[Android General] widi aprianto:
Try this https://gerrit.aicp-rom.com/c/AICP/device_leeco_msm8996-common/+/61138/2/msm8996.mk#159

---------- Post added at 11:18 AM ---------- Previous post was at 11:16 AM ----------

How to make this kernel https://github.com/LineageOS/android...xiaomi_msm8953 support or compatible for xiaomi redmi 5 plus(vince) ?

---------- Post added at 11:20 AM ---------- Previous post was at 11:18 AM ----------

How to make this kernel https://github.com/LineageOS/android...xiaomi_msm8953 support or compatible for xiaomi redmi 5 plus(vince) ?
[Android General] krishV:
I will try thanks and are you asking or telling to me about vince
[Android General] widi aprianto:
What the mean?
[Android General] krishV:
How to make this kernel https://github.com/LineageOS/android...xiaomi_msm8953 support or compatible for xiaomi redmi 5 plus(vince) ?

This are you asking or tell to me
[Android General] AlaskaLinuxUser:
You are very welcome! :cool:

I'm not sure lucki. :confused:

Did you pull any logs from the Nougat and Oreo versions while opening the app? That would be the best place to start. :good:

I've covered this before in an article I wrote detailing the entire process. You can check it out here:

https://thealaskalinuxuser.wordpres...custom-rom-source-code-with-security-updates/

You should never use "ALLOW_MISSING_DEPENDENCIES=true" unless you are building TWRP.

Not without a lot of work. You will have to research it. :good:
[Android General] holleyphillip444@gmail.co:
Need help with rooting Samsung J327T1,prices,places to get help and imfo. Custumizing in general,Roms Kernals exc.prices,imfo.
[Android General] krishV:
Sir ,if i am not allowing missing dependence is true at this lines getting errors

including vendor/xiaomi/whyred/Android.mk ...

build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/framework/qcrilhook.jar'

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/framework/qcrilhook.jar'

build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/framework/qti-telephony-common.jar'

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/framework/qti-telephony-common.jar'

build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/bin/hw/rild'

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/bin/hw/rild'

build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/lib/libril.so'

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/lib/libril.so'

build/make/core/Makefile:28: warning: overriding commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/lib64/libril.so'

build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/vamsi/h9.0/out/target/product/hydrogen/system/vendor/lib64/libril.so'
[Android General] dharanifoxx:
Hi, I've Had Sony Xperia Z3+ Dual [ E6533 ] Running Android Nougat. I Like To Know Is There Any Way You Help Me To Build Lineage OS 16 For My Device. My Phone Developers Left The Rom Development. Wish If You Build Or Help Me To Build Android 9.0 Pie ROM...

Thanks:

Source For Lineage OS 15.1 : https://github.com/LineageOS/android...e/lineage-15.0

---------- Post added at 06:24 AM ---------- Previous post was at 06:19 AM ----------

it's seems like Developers Halted the Rom development For My Device [ Xperia Z3+ Dual , Codename: ivy]. Make A tutorial for Developing ROm For My Device. Deu To DRM Restrictions Making a Working Camera in Custom Rom is Difficult For This Device. Hope You Help Me To Guide or Build For Me
[Android General] theincognito:
Help!

I was trying to build PE for my dipper and this happened:

[532/947] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[947/947] including vendor/qcom/opensource/dataservices/Android.mk ...
[ 80% 4/5] glob kernel/xiaomi/sdm845/include/**/*
[100% 1/1] build bacon
FAILED: bacon
/bin/bash -c "(mv /home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip ) && (md5sum /home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip | sed \"s|/home/pe/out/target/product/dipper/||\" > /home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip.md5sum ) && (./vendor/aosp/tools/generate_json_build_info.sh /home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip ) && (echo \"Package Complete: /home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip\" >&2 )"
mv: missing destination file operand after '/home/pe/out/target/product/dipper/PixelExperience_dipper-9.0-20190112-1637-UNOFFICIAL.zip'
Try 'mv --help' for more information.
ninja: build stopped: subcommand failed.
22:08:37 ninja failed with: exit status 1

#### failed to build some targets (02:37 (mm:ss)) ####
[Android General] Techguy777:
Anybody know why the twrp GitHub 7.1 branch isn't available? This is for the regular twrp not the minimal twrp manifest.
[Android General] lukaspieper:
I've been trying to fix the APN bug for days now. It really gets on my nerves that this is such a torture with the logs. I tried with two Win 10 devices and a Linux laptop to get a logcat, all get device_descriptor_failure. It seems to hang on the build since TWRP works, but I haven't changed anything on the ADB settings.

Nevertheless I see in current builds the wallpaper of LOS 14 for one second after the display was black for one minute. A red frame also appears from time to time, I found out that it is displayed in engineering builds when something is working for a long time in the main thread. Probably the main thread is still trying to get the APNs.

Is there any way to get logs without adb or do you habe an idea how to solve the device_descriptor_failure? Shouldn't it be possible that e.g. at the end of the boot animation the log is written to a file? Or how can the phone function be deactivated completely, since I am developing for a tablet anyway?

Thanks!
[Android General] DJABHipHop:
Try the code below

adb root
adb shell stop
adb shell dumpstate > state.txt
adb shell dumpsys > sys.txt
adb shell dmesg ;
adb logcat -b all
[Android General] DJABHipHop:
heimdall read my Samsung Galaxy Tab 4 10.1 as Manufacturer: "Sasmsung" & Product: "MSM8960" that's really odd?
[Android General] lukaspieper:
Thank you so much for taking the time to answer me. But I'm not sure if you understood my problem. How can adb commands help me if I can't connect to adb during the boot process? As I said before, it's due to the builds, because I can run adb in TWRP. But during boot adb devices is empty and lsusb doesn't show me a device either.
[Android General] DJABHipHop:
Try this in recovery mode after mounting the system

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] lukaspieper:
# ADB debugging
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
ro.secure=0
ro.debuggable=1

These settings are set. I will add 'ro.adb.secure=0' and 'sys.usb.config=mtp,adb' with the next build. Also I tried your command to be on the safe side, adb devices is still empty. I already watched this video, it didn't help.

https://youtu.be/E7evKGTgLk4
[Android General] DJABHipHop:
Good luck
[Android General] AlaskaLinuxUser:
Two thoughts:

#1. These listed warnings are not errors. These will not stop a build. If your build stops, something else is the problem.

#2. Saying allow missing dependencies is bad because it allows you to build when it knows there are missing parts. E.g. if you take your car to the shop to fix the engine and tell them it's okay to fix it without all the parts, just leave those out. The engine will not run. Instead, you should find the missing parts. You should only use that when building twrp, because it didn't need everything. :cowboy:

Absolutely, that's what we are here for. Please watch the videos for compiling custom ROMs. Then build the 15.1 version for your phone, so you know it works. Then we can talk about building pie. :good:

It appears something is messed up in the pe build scripts. I do not know his to fix it. You will need to ask this question to the pe community. :confused:

Can you be more specific? E.g. so you mean omni 7.1 branch is missing? Perhaps a link would help me understand better. :confused:

Did it say that before? It may be normal. :good:

Perhaps mtp or USB is not working in your build.

You could try this:

persist.sys.usb.config=ptp,adb

To set it to camera mode instead of mtp. That may help. :fingers-crossed:
[Android General] lucki1000:
[MENTION=7026648]AlaskaLinuxUser[/MENTION], can you say me which mk uses

frameworks/base/libs/hwui/Android.bp

this bp file (LineageOS 16)?
[Android General] DJABHipHop:
Never really, Because i've never gotten it to work properly really can you make a video on Haimdall

---------- Post added at 04:47 PM ---------- Previous post was at 04:37 PM ----------

How would modify the LineageOS lock screen to add cool functions like pressing home to prompt the user to enter the there pin,password,pattern unlock the phone and auto unlock the device when user to enter the correct pin,password,pattern without exposed or root + change the lock screen shortcuts to just have the camera only
[Android General] AlaskaLinuxUser:
A while back I made this video on heimdal:

https://www.youtube.com/watch?v=3bD...LRJ9-cX1yE1l6eu-vkgsj61U-Zv3fjzwZ&app=desktop

You can edit the lockscreen app, or make your own, if you need something specific, here's a tutorial on that:

https://medium.com/@ssaurel/creating-a-lock-screen-device-app-for-android-4ec6576b92e0

Not off the top of my head. Most likely, it is called in an inclusive statement, such as a "all in this folder" statement.
[Android General] Techguy777:
You should do a video on how to use Android image kitchen and how to use twrp tree builder. I'm looking for that Omni that was missing the 7.1 branch it's not the right Omni is twrp is what it is. I got confused on it.
[Android General] DJABHipHop:
Thank for the advice but lock-screen app is it separate or part of a another app
[Android General] AlaskaLinuxUser:
Several have mentioned android kitchen. I'll think on it. :good:

It's called keyguard, and you can read all about how this guy modified it here:

https://progur.com/2017/12/create-custom-lock-screen-android.html

In this tutorial, he is actually changing the aosp lock screen. :cowboy:
[Android General] DJABHipHop:
Thank I wasent sure
[Android General] beast97:
i look at u r post regarding security patch & if i vl change default.xml to latest tags

willl it merge latest security patch????
[Android General] theincognito:
Okay! Thanks mate! :)
[Android General] lucki1000:
Hello,

Can anyone say me how can I move the time display on the notification bar from left in the middle of the bar, and how can I activate show seconds, Pixel Experience 9.0 ?
[Android General] DJABHipHop:
I want know what the difference is between a device built using BLOCK_BASED_OTA := true vs one not using BLOCK_BASED_OTA := true is there really a difference & what the purpose of BLOCK_BASED_OTA := true in the first place.
[Android General] Ashish Gupta1999:
hello sir , i compiled Twrp but it is not Gsi compatable as i don't see any option to flash system image (only boot and recovery option is available ), also the internal storage is encrypted , and after wiping data , camera nd flashlight dont work , how to deal with this encryption issue.

i Have the kernel sources available of the device provided by the manufacturer
[Android General] AlaskaLinuxUser:
Yes and no. Yes, the latest tags will have the latest applied patches, if patches were applied to those. Where you run into trouble is that all the custom roms stop updating with security patches at some point. So, in your default xml there are two parts (typically) :

part 1 : rom specific source

part 2 : aosp source

What can be a problem is updating the tags for the aosp source part may cause the rom specific parts to stop working. E.g., if the rom part requires an aosp part to be a certain way, and that way changes. Then your builds will not work. Then again, manually updating the security patches can also break your build. It is a lot of work. I did it once for several months for SlimLP on the Samsung Galaxy S4, but it was so much work I had to stop.
[Android General] DJABHipHop:
Is it possible to remove Set Warranty Bit: Kernel on Samsung devices or I'm stuck with it for life Plus I have these error

01-01 20:50:23.572 210 216 E vold : Failed to chmod /data/system_ce/0: No such file or directory

01-01 20:50:23.572 210 216 E vold : Failed to chmod /data/misc_ce/0: No such file or directory
[Android General] Techguy777:
https://github.com/TeamWin/Team-Win-Recovery-Project

Sorry I found the twrp link I was talking about no 7.1

I don't know why sometimes I search Google that twrp GitHub comes up other times it does send me to the right one I see it says click here for updated version now.
[Android General] Einfach_Yannic:
So i found a Rom for my device(cynagogen mod 13[Android 5.1]).

The only Problem are the mobile data and Bluetooth wich are both not working,i think that everything else works.

Could someone teach me how to get this stuff working Plesse?
[Android General] DJABHipHop:
There are videos on how to do that in the how build a device tree from scratch series on youtube although there not hd there worth watching none the less to fix the blue tooth. Bluetooth is easy to fix if you post you device tree I can explain how to
[Android General] Ashish Gupta1999:
i build twrp for asus zenfone lite l1 , and i compiled version 3.2.3.0 latest version , also i compiled redwolf recovery it also has same problem , also is there a chance of getting encryption key from kernel source code of the phone ?
[Android General] Einfach_Yannic:
OK,i will try it
[Android General] AlaskaLinuxUser:
Thanks! :cowboy:

That is odd. I see. Well, you could use this:

https://github.com/minimal-manifest-twrp/platform_manifest_twrp_lineageos

Which is nougat. This is what I use in the video series. :good:
[Android General] AlaskaLinuxUser:
No way that I know of to fix the warranty bit warning. However for the other errors, I would look in your unit files and see if there is a command to chmod /data/misc_ce/0 and remove it, since the files don't exist. :good:
[Android General] DJABHipHop:
i've look and there no command for that