Questions tagged [custom-rom]

88 questions
9
votes
0 answers

Firebase Job Dispatcher not working properly on Custom ROMs like OnePlus, Xiaomi, Lenovo

I have a task to perform which requires internet and has to be performed everyday indefinitely, below is the code I had written to perform the same FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(this)); Job…
6
votes
2 answers

TWRP constantly crashing and rebooting back

My phone (Nexus 5) is constantly rebooting to the TWRP screen where it crashes, shuts down and repeats. TWRP error: Could not mount /data and unable to find crypto footer Failed to mount '/data' (Invalid argument) Unable to recreate /data/media…
Kesi
  • 77
  • 1
  • 1
  • 4
6
votes
1 answer

check permission of draw over apps for Custom ROM

As per standard android document we need to ask for permission on Marshmallow or newer versions. Right now I done with checking for M device and the particular permission. App is working fine on all devices. Actual Problem I come up with MIUI and…
Shabbir Dhangot
  • 8,954
  • 10
  • 58
  • 80
4
votes
2 answers

Integrate separately built android kernel into AOSP

How do I properly build an Android kernel then build the AOSP with this kernel? For now I am virtualizing Android on a Linux x86_64 host. The AOSP lunch option I use is aosp_cf_x86_64_phone-userdebug. The AOSP is on the master branch and synced back…
davidj361
  • 147
  • 7
3
votes
1 answer

Building android go from AOSP Q Beta 1 code

I am newbie to ROM development. I have a Moto e 1st gen device sitting around. I wanted to give it another life. So I was trying to build Android Go from AOSP Q Beta 1 source code. I don't know how to add a product and how to configure it to build…
VivekRajendran
  • 676
  • 1
  • 6
  • 21
3
votes
0 answers

How to start the SetupWizard on an emulator?

I am working on a custom SetupWizard for a Android ROM and would like to test it on a VD but even with cold boot the devices skips the SetupWizard. Does anyone know how to do this?
Felice Anno
  • 121
  • 1
  • 9
3
votes
1 answer

AOSP Build error: EXECUTABLES/iw_intermediates/version.c

I've made a AOSP build 7.1.1 couple of days ago and it works well. Today I decided to make a clean build (make clean) and start working on it. After that when I'm trying to compile by make otapackage after some time it gives me below error. [ 44%…
A_47
  • 45
  • 5
2
votes
0 answers

How to shutdown android device programmatically having DPM privileges(single app/Lock task mode) NON rooted?

Developing an app to run in single app mode/Lock task mode having DPM(device policy manager) access and privileges, But how to make device to shutdown programmatically without rooting. Tried these below links, but they work with system app or ROOTed…
virtplay
  • 550
  • 7
  • 18
2
votes
1 answer

How to set kernel parameters when building a custom android ROM?

I am trying to build a custom ROM on my own. I got hold of the kernel source, android code (LineageOS), device tree and the vendor files. I do a mka bacon -j8 and am getting this error: In file included from…
daltonfury42
  • 3,103
  • 2
  • 30
  • 47
2
votes
1 answer

Stock boot.img not booting after re-packing

I have a fully functional and previously tested official boot.img for my device. But when I tried to unpack it and repack it again(with no modifications whatsoever), the kernel fails to start as usual. I get a "Kernel is not seandroid enforcing"…
2
votes
3 answers

FAILED: setup-jack-server when building LineageOS

I'm attempting to build LineageOS for the Moto Z (griffin) on a server, but the build crashes and burns 5 minutes out the gate. FAILED: setup-jack-server /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server…
Cowbolt
  • 158
  • 1
  • 10
2
votes
1 answer

INSTALLED_KERNEL_HEADERS missing while trying to compile ROM for android

Sorry but I m kind of new to this development world. So basically when I tried to compile lineageos15.1 from source I recieved this error ninja: error: 'INSTALLED_KERNEL_HEADERS', needed by…
Oveno
  • 21
  • 1
  • 3
2
votes
0 answers

Is it possible to install new OS in dead and unknown android phone?

I have one android tablet installed custom ROM, I don`t know device manufacturer or even model number, is there any ways to install completely new android OS?
varotariya vajsi
  • 3,965
  • 37
  • 39
1
vote
2 answers

Is there anyway to disable the factory reset functionality in the android recovery?

Creating an MDM and want to ensure the device cannot be factory reset. Is there anyway to either disable the factory reset functionality or either have recovery mode as a whole unaccesssible or password protected? Third party recoveries such as twrp…
1
vote
2 answers

vendor/lineage/build/soong/Android.bp:24:8: module "generated_kernel_includes": cmd: unknown variable '$(PATH_OVERRIDE_SOONG)'

Hi There i'm newbie in building rom and im facing this error while building ricedroid(Android 13) for Mi A1 (tissot):- [100% 1/1] analyzing Android.bp files and generating ninja file at out/soong/build.ninja FAILED: out/soong/build.ninja cd…
1
2 3 4 5 6