yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] gauravc12:
Hello Everyone,

This is regarding modifying AOSP and trying to add my own system service as part of the system for customized application. I have tried all the places I could from documentation on source.android.com to trying to post a query on their official Google Groups and also tried out reading out books on AOSP. Unfortunately the OS code is changing so rapidly the documentation is rather old and not up to date. And now this seems to be my last hope to find a lead on how to achieve this.

(This is the first time I am posting so please guide me in case of discrepancies)

So, I am trying to create a system service from scratch and bake it inside the AOSP build. The steps I figured out and followed are as following:

1. Create an AIDL file inside frameworks/base/core/java/android/os/IFooService.aidl

2. Create the implementation in frameworks/base/services/core/java/com/android/server/FooService.java

3. Modify SystemServer.java at frameworks/base/services/java/com/android/server/SystemServer.java and use the ServiceManager to start the service.

4. I need to specify SELinux permissions which I wasn't able to figure out even after checking out whatsoever documentation I can find online. So I went to device/google/bonito/BoardConfig-common.mk file and added BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive text to ensure I get through the SELinux enforcement (though I know its a temporary solution).

5. I modified Android.bp file under frameworks/base to include IFooService.aidl file during compilation.

Unfortunately, after I successfully built the project and try to flash it on the Pixel 3a, the system is stuck at boot with Android logo.

I could see the service was successfully started after checking logcat and logcat -b but dies soon after. I can see that's the case with all the other services too. So probably its the boot time issue. Secondly, I can see the SEPolicy warning but the permissive parameter is set to 1 so that shouldn't be the issue. But still the Android doesn't boots up.

So my question is, is this the right way to define a new system service? I also read that it is not recommended to make changes to original files and try to create new service in the vendor directory. In this article https://devarea.com/aosp-creating-a-system-service/ it does just that by creating a persistent app inside the vendor directory and hosting the service inside. I tried even that but the build fails. And I could see the SELinux implementation has changed a lot with a need to include version compatibility changes which has to be incorporated manually but there is very limited and too confusing documentation regarding that!

Please guide me on what I might be doing wrong and how to resolve it? I have tried AOSP books, documentation and browsing the source code in last 30 days but with no luck.

I am also planning to share a comprehensive sample with the community post this because I feel it could help many people trying incorporate new system services and the documentation is also few and far between.

I'll add the actual code and logs if anyone can help me finding a way.

Thanks,

Gaurav
[About XDA developers] The_Anomaly88:
Hi, Please can someone fix the checkout page or at least honor the deals you are throwing out if its not fixed.

I am trying to purchase "The Complete 2020 IT Certification Exam Prep Mega Bundle" ( https://depot.xda-developers.com/sales/the-complete-2020-it-certification-exam-prep-mega-bundle?utm_source=xda-developers.com&utm_medium=referral&utm_campaign=the-complete-2020-it-certification-exam-prep-mega-bundle&utm_term=scsf-360951&utm_content=a0x1P000004N4fW&scsonar=1 ) but when checking out I cant select country. The network traffic shows an error to your API ( https://api.stackcommerce.net/api/countries?fields[countries]=name,postal_code,require_phone_number&sort=name )which is breaking the country selection. Its more than that though because I tried recreating the HTML for the dropdown and posting but it needs the trigger change javascript to run bla bla... its broken.

I have intent to buy and vouchers that expire but all of this is in vain since checkout dont work. Please assist in fixing it or honor the vouchers after they expire since the problem is yours not ours. Can you assist?
[About XDA developers] sd_shadow:
https://xdaforums.com/showthread.php?t=1976627

[All XDA Members] Requests to Moderators and Admins
[About XDA developers] The_Anomaly88:
Not sure what I am supposed to do with that link but I resolved it by finding another website having the same offer and 20% off deal. So business went elsewhere, this site is so buggy.
[About XDA developers] ddrager:
Thanks for the heads up, this is a 3rd party provider so we will send the issue to them.
[Android Q&A, Help & Troubleshooting] Vlad3:
The instructions given on some pages about how to root DEXP AL140 with Android 8.1.0 are too complex for me to understand easily, since I had never been regularly using smartphones. Can someone guide me step by step on how to root DEXP AL140 with Android 8.1.0?

I have downloaded the following files on the computer and need to know what to do with them and in what order:

al140_s1_20180901.zip ( this is the smartphone’s firmware )

adb-setup-1.4.3.zip

latest_usb_driver_windows_2.zip

Magisk-v20.1.zip

MT65xx_USB_VCOM_DRIVERS.zip

platform-tools-latest-windows.zip

SP_Flash_Tool_v5.1824_getdroidtips.com - Latest.zip
[Motorola One Questions & Answers] nashi_jee:
Hey everyone

My motorola one deen xt 1941-4 64GB PVT1 is not starting up

its just giving error Start Up Failed

Its just starting up in bootloader mode with locked oem and AP Fastboot Flash Mode (Secure).

Not going into recovery

not going into factory mode

Can you plz help me out to solve it plz
[Motorola One Questions & Answers] sd_shadow:
Are you familiar with flashing moto firmware with fastboot.exe ?

Did it install an update recently?
[Motorola One Questions & Answers] nashi_jee:
Not much familiar but know some basics.

No it did not install any update.

My wife just powered it off during a call and when tried to turn it on it showed up with the message

I have tried to unlock bootloader but it requires developer option to be turned on.

Simply I can follow the instructions if you provide some.

And thanks for reply buddy
[Motorola One Questions & Answers] sd_shadow:
I would start with

Motorola smart assistant

It has a recovery option

There's a link in my

Moto Drivers, Firmware, RSD Lite, and other Unbricking Tools
[Motorola One Questions & Answers] nashi_jee:
I have already tried this LMSA. It shows its model in recovery option i.e xt1941-4. But when I try to recover it ends up with MODEL NOT SUPPORTED
[Motorola One Questions & Answers] nashi_jee:
Waiting for reply / solution from any expert please.
[Motorola One Questions & Answers] sd_shadow:
You could flash firmware but if you don't flash the correct firmware for the software channel on the device it won't work.

Usually the software channel is the named for the carrier or region.

https://mirrors.lolinet.com/firmware/moto/deen/official/

You can flash the firmware with fastboot.exe

Setting up and Using adb.exe and fastboit.exe https://xdaforums.com/android/general/index-links-setting-using-adb-fastboot-t3495167

The flashing commands should be

fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp_a adspso.bin
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash dtbo_a dtbo.img
fastboot flash system_a system.img_sparsechunk.0
fastboot flash system_a system.img_sparsechunk.1
fastboot flash system_a system.img_sparsechunk.2
fastboot flash system_a system.img_sparsechunk.3
fastboot flash system_a system.img_sparsechunk.4
fastboot flash system_a system.img_sparsechunk.5
fastboot flash system_a system.img_sparsechunk.6
fastboot flash system_a system.img_sparsechunk.7
fastboot flash system_a system.img_sparsechunk.8
fastboot flash system_a system.img_sparsechunk.9
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot flash oem_a oem.img
fastboot flash oem_b oem_other.img
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot

Another option would be trying to switch a/b system

Hoping that the non active partition is bootable.

Some instructions about that in my adb thread.

---------- Post added at 05:58 PM ---------- Previous post was at 05:57 PM ----------

Switching active system partition is the easiest

If the bootloader will even allow the commands

It may not.
[Motorola One Questions & Answers] nashi_jee:
Thanx to help me.

But I am confused.

Can you plz help me through team viewer or wonething like that if you dont mind
[Motorola One Questions & Answers] nashi_jee:
I tried RSD Lite last night and successfully flashed the firmware but the problem still exists.

Everything gone good then why its not back into life?

One more thing I am thinking that the firmware folder does not contain any recovery file. Is it normal?
[Motorola One Questions & Answers] sd_shadow:
Recovery is part of the boot.img now
[Motorola One Questions & Answers] nashi_jee:
It finishes successfully but again comes up with same error
[Motorola One Questions & Answers] imeicodes:
i face same problem you solve that problem or still not?
[Motorola One Questions & Answers] ZaInT_:
Same problem :(
[Motorola One Questions & Answers] yehison:
Hey guys. Wait please I'm working for your blank flash for your device . Recently I worked two models before . Check this coming soon I'll add your model.

https://xdaforums.com/one-vision/how-to/start-failed-motorola-one-macro-t4082275/amp/
[Motorola One Questions & Answers] nashi_jee:
still No luck mate.
[Motorola One Questions & Answers] nashi_jee:
Should I try this method for Motorola XT1941-4?
[Android Head-Units] kevbo001:
Hello everyone, I am looking for ideas, as Eonon Technical Support has been of no help whatsoever. I have been struggling with issues on my GA2171s, that I believe are MCU-related. occasionally, especially when it is warm or hot out, the unit powers-up with absolutely no sound output, and must be shut down for at least 20 seconds before attempting startup of the vehicle again. Most of the time, a single pause of 20 seconds or more is sufficient, but it has required multiple pause-and-restarts. I have appealed to Eonon technical support for assistance, they have provided android firmware updates, and most recently, an MCU update that has been disastrous. The MCU update I was provided looked like it installed correctly, but after completion I have no AM/FM tuner, no Bluetooth, constant beeping and a red on-screen warning indicating a version mismatch (please see the attached image). I have emailed Eonon technical support MULTIPLE times since, have been give an additional (alleged) MCU update that will not install because it is not recognized as an MCU update by the head unit and am left with a practically useless device. Eonon is now stating that, as the unit is outside of their one-year warranty, it's not their problem (nevermind that I brought it to their attention 6 months ago and have been on-and-off with their technical support people since then). the most recent email suggested I consider buying a newer unit rather than them providing any real solution. I can provide links to download the MCU files I was provided if anyone out there has time to take a look, and I would be very grateful for any assistance offered.
[Android Head-Units] kevbo001:
Eonon GA2171s addendum

for some reason, the image did not attach; take two.
[Android Head-Units] 007matman:
I had issues installing the latest MCU update on mine too.. i think it had something to do with the file.

What I noticed was that you NEED to use WinZio to unzip the file. And follow the instructions exactly. I was relying on the stock windows extractor and it didn't work the same. Using WinZip there were multiple files that were extracted and after that it installed correctly.
[Android Head-Units] kevbo001:
I have been using WinRAR rather than the in-built windows extractor; I will try WinZip just to be certain. Thanks for the tip!
[Nexus 7 (2013) Android Development] JT1510365:
reserved for future use!

Happy new year you guys and happy 2020 to everybody:)
[Nexus 7 (2013) Android Development] eyosen:
As my flo is no more functional, had to drop it from my portfolio but still great to see interest in it.

Better to provide links to how to resize the system partition in the OP.
[Nexus 7 (2013) Android Development] jpk 71:
Thank you

I installed it last night and everything I use is working great. Thank you for your hard work.
[Nexus 7 (2013) Android Development] JT1510365:
Some more screenshots
[Nexus 7 (2013) Android Development] JT1510365:
Two new builds uploading for flo with the camera fixed. You should now be able to use the camera again and it shouldn't disappear from the app drawer. I tested and I have no problems:)

Why 2 builds? Well one will be the stock 320 DPI and one will be the custom 480 DPI. You will be able to flash the one you prefer and want to use:)
[Nexus 7 (2013) Android Development] JT1510365:
Thread has been updated and two new builds for flo are uploaded and posted. Camera is now fixed in the new builds:)
[Nexus 7 (2013) Android Development] L.F.B.:
This rom is maybe the most complete and finished.

Android 10 gestures working fine with Nova launcher.

Only problem is safetynet and magisk hide not working. I've tried canary, beta and stable. All say safetynet failed...
[Nexus 7 (2013) Android Development] rainux:
I've tried several Android Q ROMs including Pixel Experience, AospExtended, LineageOS, this is the only one boot my Nexus 7 2013 correctly to the home screen.

However, every time reboot the device, the date will be set to Aug 31, 2033. In the first boot that will cause Wi-Fi got a limited connection and can't connect to the Internet, which is a bit annoying. Manually set date to 2020 will resolve this issue. When you can correctly connect to the Internet, use the following command to set a ntp server and reboot the device, then the date will be automatically corrected on boot, after entering the home screen.

adb shell settings put global ntp_server asia.pool.ntp.org
[Nexus 7 (2013) Android Development] GeekyTanuj:
@JT1510365 Kinda craving an update for this ROM! This seems to be one of the most intriguing android 10 ROMs out there for our N7!
[Lenovo K6 / K6 Power / K6 Note Questions & Answers] theflyingrahul:
Hi all,

I am new to ROM development. I had repo synced "lineage-16.0" successfully by following the port guide for "bacon" on Lineage Wiki.

I do not know what to do with the "breakfast" command as "karatep" (this phone) is not supported by Lineage.

Can someone guide me through the ROM building process?

What should I to do get the device-specific code? The device is not officially supported by Lineage, but there are unofficial ROMs out there... Can we extract this device specific code from the unofficial ROMs or from the phone itself?

This is not about "karatep", this is about the ROM building process, I'm trying to learn how it's done.

And I'd tried to reach many who were involved in this process for karate/p, none responded.

I'd be glad if someone helped me with this part.

Thanks in advance!

XDA:DevDB Information

LineageOS 16 for Lenovo K6 Note (karatep), ROM for the Lenovo K6 / K6 Power / K6 Note

Contributors

theflyingrahul

ROM OS Version: 9.x Pie

Version Information

Status: Testing

Created 2020-01-01

Last Updated 2020-01-01
[JAMin, XDA Neo, S200 General] Jerkyist:
Hi everyone,

i get a warning "DATA CRASHES PLEASE CONTACT YOUR SERVICE CENTER" from my qtek and it does not work with any kind of sim cards. How can solved this problem?

thanks,
[JAMin, XDA Neo, S200 General] Jerkyist:
Update,

please help me
[JAMin, XDA Neo, S200 General] polaris008:
You should unlock the net lock of your phone. Good luck!
[JAMin, XDA Neo, S200 General] deniwilliam:
do a hard reset (camara+comm+reset botton)
[Samsung Galaxy J7 NXT ( J701F Core NXT Exynos 7870] Bellkumar77:
Binary 8.

Can any one have working TWRP, ROM for this?
[Samsung Galaxy J7 NXT ( J701F Core NXT Exynos 7870] Belco02:
https://drive.google.com/file/d/0ByNCDHNtZ8nPUjlUT1ZRS2lrQ2M/view
[Samsung Galaxy J7 NXT ( J701F Core NXT Exynos 7870] Bellkumar77:
Thanks

But where is the ROM?
[HTC U Ultra Questions & Answers] Saeed Nawrez:
Good evening my friends, I hope you help me with my HTC u ultra, it just freeze and then shot down then it never turned on, I tried to get to the bootloader every 10 times it turned on one time to the HTC logo and then freeze again what I can do our what is the problem, thank you all
[HTC U Ultra Questions & Answers] EAEmadinho:
from where did u buy it ?
[HTC U Ultra Questions & Answers] Saeed Nawrez:
From Middle East
[HTC U Ultra Questions & Answers] EAEmadinho:
unfortunately a lot of bricked devices that stopped working suddenly were from middle east they were plagued with bad motherboards , I'm in Egypt and faced that problem many times with various users
[Samsung Galaxy S10+ Questions & Answers] Kaloob:
Has anybody else experienced this?

Also, 3850 MAh is normal, right?
[Samsung Galaxy Tab E  Questions & Answers] ElevyNJ:
I want to be able to use this tablet for the Uber and Lyft driver software in Split Screen mode. Is there a way to upgrade to a more recent version of Android and remove the AT&T Bloatware. It will only be connecting over WiFi
[Samsung Galaxy Tab E  Questions & Answers] blaze2051:
yes you can but can remove bloatware ATT but dont upgrade to 7.0 or 7.1.1 because then you wont be able to de-bloat it just stay with 6.0.1 and use kingoroot to gain temporary root access to delete or disable all the ATT stuff and samsung stuff
[Samsung Galaxy Tab E  Questions & Answers] teso21:
hello , so if any one can help so, am also with Tab E that is from AT&T. i cant use it with out a wifi , no root access too , so what is the way to downgrade to 6.0.1? and if success can i use my simcard really ?
[Samsung Galaxy Tab E  Questions & Answers] androidmaster3343:
kingroot is spyware, DONT DOWNLOAD IT
[ASUS ROG Phone II Questions & Answers] Dead Short:
I have a normal 30W PD 3.0 charger (and a proper cable) and the phone doesn't fast charge with it on neither USB port. Not even at 18 or 24W, but appearantly at the regular 10W you'd get from most USB ports.

Is this a bug? Shouldn't QC4 support mean that PD is inherently supported? And if not, how do I spot if a charger is supported properly?

Update: Fastcharge does in fact work over PD, I just had to unplug the USB C cable from my charger once, for whatever reason. Maybe there was a problem with the controller or the chip inside the USB plug?
[Tilt, TyTN II, MDA Vario III General] pandaboyy:
I've Dutty's Hybrid V2 Rom... I love it...

I wanted to change the folder icon and I did a very stupid mistake... I forgot to back up the original one. I installed these icons

Little did I know, I hate them... now that I uninstall them, I've lost all the original icon on Dutty's Hybrid v2

Can anyone kind enough to make me a copy of their Start Menu?

it's just a bunch of shortcuts (including the icon file in each folder), no personal info, so don't worry.

"\Windows\Start Menu\" Please zip/Rar me the folder "Programs"

Thanks a million.... I've the copy of shellres.dll so no worry there.
[Tilt, TyTN II, MDA Vario III General] theclear:
New flash

I think is better if u flash again , u dont know but is possible that u made more changes that u think :(
[Tilt, TyTN II, MDA Vario III General] pandaboyy:
you gotta be kidding right?

it's just some shortcuts that are missing.

Can you zip me a copy of your start menu "Program"?
[Tilt, TyTN II, MDA Vario III General] carphead:
Try deleting or renaming the icon.lnk file in each folder. As the original files are in the rom it should revert back to normal.

Use totalcmd to go to \Windows\Start Menu\Programs\Games and rname the icon.lnk file to iconxxx.xxx reset and hopefully that folder should be back to the original Dutty's Rom default.
[Tilt, TyTN II, MDA Vario III General] pandaboyy:
That's the problem... I have all the shortcuts, but I'm missing the icon file... The shortcuts are messy, but I can rearrange them without problem
[Tilt, TyTN II, MDA Vario III General] se0siris:
I'm giving this a go straight from Opera on my phone, so I hope it works for you. There should be a .zip file attached with the folder structure and icons in place but everything else removed.
[Tilt, TyTN II, MDA Vario III General] pandaboyy:
That's all I need... thank you
[Tilt, TyTN II, MDA Vario III General] SH4YD33:
If noone will send you the start menu you can always make a backup with spb backup or sprite and hardreset and copy your start menu/restore from there...
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] oguz298:
Team Win Recovery Project 3.x, or TWRP3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*

Features:

Data decryption

Zip flashing

Backup/Restore

All partitions can be backed up

Tianma and Truly panel support

Bugs:

Data decryption is not working on Android 10

Downloads and Installation:

https://twrp.me/xiaomi/xiaomiredmi8.html

If you have any problems while installing or using the recovery, feel free to ask questions below.

Device tree:

Latest device tree(Unofficial)

Official device tree
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] altsec:
Thanks for your and TeamWin

For build worked device tree and worked recovery [emoji2]

UPD:

I read in device tree BoardConfig.mk

This recovery not support treble and SaR?

Or Twrp building this feature on default?

UPD2:

Truly touch screen not work

Please add hovatek_fw.bin in device tree

Отправлено с моего Redmi 8 через Tapatalk
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] oguz298:
hovatek support added with this commit https://github.com/oguzbakir/twrp_device_xiaomi_olive/commit/68c2e8a6f0af7dc58c328f74355a2b90c01b6ac9 Further builds will have support for truly touch.

BOARD_BUILD_SYSTEM_ROOT_IMAGE flag is needed only on a/b devices i think. This device is not an a/b device, it is an Aonly device.
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] altsec:
our device has a new type of system-as-root, it is simultaneously a only and SaR but gsi firmware is installed only a / b

This information for support gsi roms on devices

https://github.com/phhusson/treble_experimentations/wiki

Отправлено с моего Redmi 8 через Tapatalk
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] J0SH1X:
delete
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] oguz298:
removed
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] jprimero15:
Great.. Official
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] gaboca0817:
Problem with touch

I've downloaded and installed the IMG, but the touch is not working. How can i fix this? (Step-By-Step pls, i'm beginner :D )
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] JaSomTy:
Looks like you have novatek screen, I do too, we'll have to wait for new build.

Edit: I read somewhere you can connect mouse and use it.
[Xiaomi Redmi 8 ROMs, Kernels, Recoveries, & Other ] gaboca0817:
I don't have type-C to USB cable, but thx