yashsingh1/xdaforums huggingface dataset:
[FYT Android Head Units] bambapin:
Hi [MENTION=2550900]surfer63[/MENTION], sorry if i disappeared for a while but the return from holidays was terrible :(

I don't know if you managed to solve the problem, in the meantime i ordered another type of SWC and i saw that with this model i obtained inconsistent measurements, as happens to you, but in a different way (with the multimeter i get negative volts at the press of some buttons ....).

So i suspected that depending on how the SWC control unit is made, the data should not be read by the KEY cable but you need to measure on the negative.

I have tried this way, check the attached image (the connections have to be changed and we need to add a resistance to avoid fluctuating the signal).

Now i get correct values on the new SWC, i have not yet tried to use the same technique on the old ones to see if they can work with the same logic.

Below is the sample code to print the arduino readings

int analogPin = 2;
int raw = 0;
float Vin = 4.8;
float Vout = 0;
float R1 = 1000;
float R2 = 0;
float buffer = 0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
raw = analogRead(analogPin);
if (raw)
{
buffer = raw * Vin;
Vout = (buffer) / 1024.0;
buffer = (Vin / Vout) - 1;
if (Vout > 0.2)
R2 = R1 * buffer;
else
R2 = 0;
Serial.print("Vout: ");
Serial.println(Vout);
Serial.print("R2: ");
Serial.println(R2);
delay(500);
}
}
[FYT Android Head Units] surfer63:
I have not been succesful in getting it to work. I completely lack your hardware skills. It would never have occurred to me to measure it like you did now.

But ......

In 1-2 weeks I will have a Joying 9853i VW/Skoda/Seat JY-VO132N4GS unit with a universal motherboard and the new 1280x720 screen. This means that I can directly couple the SWC to the unit. It also means that I will not have a CAN bus, but without CAN SWC buttons on my steering wheel, I consider this useless anyway (overlays showing temp/airco changes getting annoyingly in the way; see if a door is open, which is displayed in my dash anyway, etc.).

So I will try your solution to see if it works for me, but my final solution will be the new 9853i unit with directly connected SWC (hopefully).

And to explain: Joying likes me to test the unit, do some bug tracking and write a review. I have to pay some 38 euros taxes and that's it.
[FYT Android Head Units] bambapin:
Yes of course this is the best solution... and finally Joying will be able to listen to someone competent to fix the bugs ;)
[FYT Android Head Units] Grigory72:
Could you help me?

Hi! I read the topic and became very interested. I have Chinese multimedia in my car. I wrote an app to automatically adjust the screen brightness. I want an autostart for my app. I used your FYT_Starter it works great! Now I would like to add the autostart feature to my app. I tried to do everything that you wrote in the topic:

package="com.cpsdna.mirror"

<action android:name="com.fyt.boot.ACCON"/>

<action android:name="com.glsx.boot.ACCON"/>

But my app didn't work. Maybe I'm missing something? Could you help me figure it out?
[FYT Android Head Units] bambapin:
If you still have FYT_Starter installed, you can't reuse the same package name "com.cpsdna.mirror".

Did you try to uninstall FYT_Starter and then reinstall your app?
[FYT Android Head Units] Grigory72:
Yes. I've uninstall FYT_Starter before reinstall my app.
[FYT Android Head Units] Grigory72:
Could you help me?

I'm very sorry for the trouble. Do you have a moment of time to watch my very simple example? Can you tell me what the problem is? Thanks a lot!

github.com/GrigoryCherkasov/AutostartTest
[FYT Android Head Units] bambapin:
Ok, I understand what happens.

To make your app work, you must use "com.cpsdna.mirror" as the applicationID, in your app's build.gradle instead of "ws.grigory.autostarttest".

It's what names your app within Android, it's not enough just putting it in the manifest.
[FYT Android Head Units] Grigory72:
Could you help me?

It works! Thanks a lot! You are best!:good::good::good::good::good::good::good::good::good::good:
[FYT Android Head Units] Matt89s:
Hi all friends, I've been trying to solve a really annoying problem for a while but without success.

I own a golf 7 with navifly android radio uis7862. The car was born without the steering wheel controls.

The main motivation that prompted me to have an android radio is precisely because I wanted the steering wheel controls

The main unit works quite well, and to make up for the lack of steering wheel buttons I bought this kit from aliexpress

steering wheel button golf 7

These steering wheel buttons are done quite well and come with a receiver connected to key 1, key 2, lighting and acc of the unit

When the buttons are saved through learning, the radio learns and saves.

I get to the point, "everything" works (almost), except that two of the five buttons available on the right side (phone and home) that conflict with each restart

Sometimes one activates the other function and vice versa, or they do nothing.

This malfunction happens upon reboot for about 5 minutes, then everything resets normally and works fine again.

If I avoid connecting one of the two buttons, the other works on every reboot.

I tried to change canbus, learning methods, take out the battery on the transmitter. But nothing

The two buttons in question during learning are unstable, let me explain better. they have a different resistance sequence, but similar as a result, one is 22 and the other 21, but sometimes they are 21 and 20 and this I think may be one of the causes

I also tried to replace with a flash the original app 190000000_com.syu.steer.apk with the teyes one, but without success (does not learn the functions)

I think it's the right post to ask for help if it was possible, do you have any ideas to fix? Thank you
[Xiaomi Redmi Note 7 Pro Questions & Answers] hackeroid:
does viper support android Pie or not, i tried to use it but it gets disabled on it's own.
[Xiaomi Redmi Note 7 Pro Questions & Answers] Naveenthemi:
Try the magisk module....it worked fine..
[Xiaomi Redmi Note 7 Pro Questions & Answers] Akash Raj0123:
give the permissions of auto start to viper4android and that fix the issue
[Huawei P20 Guides, News, & Discussion] bender8125:
Hello everyone,

Maybe it's already explain in old thread but i didn't find information easily.

Also i tried a lot of method and spend time before to find how works, hope this can help beginners and others

( also sorry for bad english, i'm French )

Before all, please backup all your data with hisuite, just a precaution not mandatory

Only works with unlock bootloader

Tools need:

- HuaweiUpdateExtractor ( 0.9.9.3 works, 0.9.9.5 don't seems work )

- Fastboot mode ( P20 shutdown, hold vol down and plug usb C cable )

Steps:

- Find & download your official rom version, you need the update.zip

- Extract update.zip

- Use HuaweiUpdateExtractor and extract your RECOVERY_RAMDIS from update.app

- Copy RECOVERY_RAMDIS to root of you P20 storage

- Install Magisk apk from official website; update Magisk if need

- in Magisk, choose install with zip and select your RECOVERY_RAMDIS

Magisk works and make a new file magisk_patched in download folder by default

- Back to windows, plug your P20 and copy the magisk_patched to your computer

- Enter in fastboot mode

- type "fastboot flash recovery_ramdisk magisk_patched.img"

Here steps to focus:

- type "fastboot reboot"

- Unplug the P20, wait for boot vibration and hold vol up button until you see "Your device has been unlocked"

If you're not sure, shutdown P20, hold vol up and press power button until vibration.

Release power button and keep hold vol up until "Your device has been unlocked"

- Check Magisk app, P20 is rooted

Important ! When you get new OTA update, don't update with root and the magisk_patched file.

- Extract again your RECOVERY_RAMDIS from actual version

- type "fastboot flash recovery_ramdisk RECOVERY_RAMDIS" to place original recovery_ramdisk

- type "fastboot reboot" ( don't need to hold any button this time )

- Update your phone with OTA update

- Find & download your new rom version and follow this guide from beginning

Important ! Each time you reboot your phone, you need to press and hold vol up button

If you don't, you lose the root benefit

Don't worry, just reboot and press and hold vol up

Information: while your press the vol up button at boot, you won't see the erecovery option

Enjoy !
[Huawei MediaPad X2] LH88:
my device is (702L), I use B206 stock rom recently. last week, I found the new B230 (stock rom for 703L), so,

want to try it. so, I flash to (B112 rooted rom) first, then to (B112 stock rom) after then to upgrade to B230 stock rom. and everything OK.

& after few days use (B230), I still like B206 more, so, I try to flask back to B206, but, it failed.

I tried 2 different ways to flash (but, all failed) :

- flash to (B112 rooted rom) first, then to (B112 stock rom) after then to upgrade to B201 (or B202) stock rom. this way failed when I to flash B201 (or B202).

as this flash always stop at 5% (flash).

- flash to AJ's (flashable stock B205), then, to flash B205's official recovery. then to flash stock B206. to me, this flash is failed too,

as I can flash to (flashable stock B205) + flash B205's official recovery. but, after then, when I use HUAWEI standard flash : (press 3 bottoms) to

flash stock B206, it still stop at 5% (flash). so, I guess my device now is not (or not yet) with a real stock B205 Rom in. so, an not flash to B206.

anyone can help ?

it seems to me (but, now I can not remember where I saw it) that there is a special made (cust) file, I can flash it first, then

it can let me to easy flash between 702L rom & 703L rom(s) without fail. do anyone still have this (cust) file ? thanks in advance.
[Samsung Galaxy J7 NXT ( J701F Core NXT Exynos 7870] Ajay gorai:
Please make a custom touchwiz rom for j701f only for gaming and working volte updated with nano gapps

:fingers-crossed: smooth liquid performance ...and automatic save power when not in game mode
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
http://devotag.com/threads/9-0-unof...o-open-source-project-for-xiaomi-a2-lite.441/

Link to the rom. I'm just sharing it. It's from a Turkish developer! thank you
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gearswar:
Thanks for sharing.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kenetix:
I have went to the website, and even with Google Translate, I can't figure out how to download anything. It looks like a good rom. So, if someone can figure out a way to get it, I would try it. I don't speak or read Turkish.:D
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gearswar:
I dont read turkish but its easy to quess to hit the download link. Where you see the download symbol you click underneath it. But first you must be logged in. So create an account if you dont have one.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gearswar:
To make life easy heres the link to the rom.

https://mega.nz/#!1MxmyICb!yxYtG13uges_U5_nSHoeL0SYYjdrxltXxIp5Avb99dk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
First make an account and there is an button/ picture that will takevyou straight to the download link
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kenetix:
THAT was the problem. I couldn't get the pop-ups to translate. So, making an account wasn't an option. Anyway, I went to the Mega link and got it. Anybody running this thing yet? I mean, what is not to like with a "potato" build? If that isn't original, what is?!?!?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gearswar:
Flash it and find out. You'll find your answer doing so. ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
I'm gonna try this yet. I'm using his DOTos 3.0 at the moment. I'm gonna test this for few days and check the performance
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gumka1977:
Fatihesergg is amazing his POSP is great! Now i tests Bootleggers 4.2 also from him (today's compilation 01_07) and is totally brilliant! :) GCAM (hass31) front camera works in HDR+ mode - shock!

Recommend
[Xiaomi Mi A2 Lite Guides, News, & Discussion] menphis:
Gcam mode portrait work? HDR+ front work?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grofweg:
[MENTION=642572]menphis[/MENTION] don't believe everything they say and be careful with ROM's with unknown sources ...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] zitronenmelissa:
Actually it's a very good rom (Bootleggers) I was also carefully with this "beyond xda", but it's working very good. There is no reason for not giving it a chance.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
I installed gcam and you have to turn off hdr mode in front cam.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
which is better? this or bootleggers? I'm using this rom right now tho.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] YeQiu:
It's really a good rom tho. worth the try
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Gumka1977:
Potato - simple custom set.

BL - more adv. custom set.

Need to emphasize that both roms are very good I recommend it.

PS. I with potato changed to BL but does not use all the functions so the choice is yours.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] leechgid:
In my case, Potato works greats for all

BL Works fine, except one or two things...

Ambient display not work or maybe idk set property (No important for me, i dont link these function, but one user wonder about this)

Data connection, sometimes, at change the wifi for data connection, dont work, i need to set airplane mode at seconds and data works fine
[OnePlus 6 Questions & Answers] MANICX100:
I have problem with the onePlus 6. When recording in 60fps there is no problem, but with 30fps the video randomly jumps. Any advise on how to fix this?

It is resolution independent and shows itself at 720/1080
[XDA-University] Raiz:
Hi there, in this guide I’ll try to explain the most complicated part of theming (at least for me) : Finding what line of code I want to modify in order to change one specific element of the app I want to theme.

I will show you the method that I use in order to do so, and trust me, that was a pain in the neck to find this method, because I had to try hard, make test, theme many apps…

But XDA is a place of sharing, and I want to share my experience with you, so you don’t toil as I did.

This tutorial isn’t for newbies, I would recommend to check XML 101 from [MENTION=4315551]Ticklefish[/MENTION]

And the How to theme any android apps guide from me, where I use the color method detailed in the third post.

Once you’re more comfortable with those, you’ll understand better what I’m telling you now.

Required knowledge:

XML basics that you can learn with XML 101

Know how to use apktool (Go there, thanks [MENTION=4677294]A_U[/MENTION], it's pretty old but it can get the job done)

Being comfortable with sublime text or notepad++ (or another text editing software file "search in folder" feature)

Know approximately how an apk file works (file structure, check out that: it's a quick summary)

One general method:

Unless you are a genius, you can’t guess how a developer named elements of the app you want to theme in the code.

For example, factory reset in the setting app from Xiaomi is named « master_clear_... »

Several lines referenced the same name:

-	master_clear_apply for the apply menu

-	master_clear_button for the button to press in order to reset the phone

-	etc …

What you want to do in order to find the name of those elements (for example the reset button that someone asked me to erase), you have to find something that characterizes it, something that only this element has, and it can be many things. This thing will help you recognize the element in the code, so you’ll be able to find how it’s named in the code. I call this name a code name, what you should do is find this code name with the method I'll give you, and then search for those codenames in the layout folder.

The posts below will detail methods that I use to find the code name of the element I want to theme.

Update : What I call a code name is called a resource ID

Summary :

Strings

Colors

Drawables

Layout

To search for something in every file of one directory, you can use notepad++ or sublime Text (on Linux)
[XDA-University] Raiz:
Strings :

​

The first thing I recommend to dig into are strings.

Strings are the most specific thing in the element you want to theme.

To go back to my example, I wanted to erase the « Reset » button from the setting app (a user asked).

The things that I know just by looking at this element:

-It’s a button

-« reset » is written on this button

So I go to the Strings.xml file and I search for the « reset » keyword.

How lucky! I found exactly what I wanted, next to the reset word, was written:

<string_name=master_clear_...

But there were several line mentioning it: whatever!

I just found the name for factory reset! It’s called master_clear (usually, names in the code make sense, so when I saw reset next to « <string_name=crypto… » I knew that it wasn’t the right name. Master clear fits perfectly, because I knew that factory reset means cleaning the device. Plus the other lines with a name starting by « master_clear » were the text warning before doing a factory reset, the « cancel » button, etc…)

So now that I’m sure that master_clear is for factory reset I searched in the layout folder (in every file using Notepad++) if some lines in those files were referencing « matser_clear_... »

Hopefully I found some files named maste_clear_....xml and they were pretty short, so I read them and I saw in one of them a « <Button… », with an attribute referring to the reset text I saw on the button.

The line was:

<Button android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/initiate_master_clear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20.0dip" android:layout_marginBottom="12.0dip" android:text="@string/master_clear_button_text" />

You see the android:text attribute ? It's referring to a line in the String.xml file:

<string name="master_clear_button_text">Reset phone</string>

Hopefully, we found the exact button with the "reset phone" text on it: let’s add the android:visibility="gone" attribute to make this button gone.

Usually it’s a bit more painful because sometimes you have large layout files that are difficult to read and understand, I’ve been lucky this time.

That’s how you do when the thing that characterize your element is a string (a text)
[XDA-University] Raiz:
Colors :

​

So the element you want to theme has nothing particularly, except his color, what you want to do is to identify the hex code of the colors corresponding to the element you want to theme.

Use this app to proceed:

https://play.google.com/store/apps/details?id=net.blackdevelopers.colorpicker

Also check out my tutorial part II-1 and part I-2)A) to know how to identify the colors.

https://xdaforums.com/android/themes/guide-how-to-theme-android-app-t3777101

Now that you got the hex code of your color, search for it in /value/colors.xml file. If you don’t find it there, search for it in the whole /color directory (it's veeeeerry rare that a dev puts colors here, I haven't seen that yet). If you don’t find it, it means that the hex code is wrong, maybe the alpha channel is wrong, give it another try.

An example:

I have an element with this color code: 80cbc4 and this alpha channel: 66 (go check out my guide to know how to find approximately the alpha channel)

I found this line in the colors.xml (in the value folder)

<color name="highlighted_text_material_dark">#6680cbc4</color>

It means that the code name is : "highlighted_text_material_dark" (but that's just an example, if I want to find the code name of an element with text, I won't search for the color of the text, I would search for the text codename itself)

Again, the code name must be logical. If you want to theme a factory reset button and the code name is “wifi_confirmation_reset”, that may not be the one that you’re looking for.

But sometimes, some elements have a weird code name, if you’re hesitating, give a try to both code names: try to modify the color for the first one, recompile everything and see if it changes something. If not, modify the second one, make some test.

Once you get the codename, search for it on the layout folder and here you go, you’ll find one file or some file mentioning it. If it’s only one, you’re lucky, if there are more files, try to see by reading them if they correspond to the layout where your element is located.

Once you got the right layout, have fun modifying it :)
[XDA-University] Raiz:
Drawable:

​

Let’s say now that you have on your element an image, this image can be find under /drawable-…

The “…” thing is for hdpi, xhdpi… and every folders starting by drawable. Once you found the right image (make sure it’s the right one, if there are two similar images), copy its name and search for it on the layout folder.

Open the file that mentions it and modify it.

This method doesn’t work every time so make sure that you have a backup idea (like a color or something)
[XDA-University] Raiz:
Layouts:

​

If you haven’t any idea of what makes your element special, just look into the layout folder and try to find a name that seems to be correct and logical (if you want to modify a volume rocker, try to find a name related to that)

Try to read some layouts and draw them fast on a piece of paper next to you. If it looks like yours, then try to modify it and see if you get what you expected.

Conclusion:

​

You’ll always make a LOT of test before getting what you want because code is always like that. But don’t give up, and with those method, I’m sure I’ll save you some time.

Enjoy !

I'm open to every questions, come on, don't be shy

;)

So in conclusion, yee haw :cowboy:
[XDA-University] Raiz:
My Guides

​

[GUIDE][INDEX]How to modify an apk

[GUIDE][THEMING]How to find in the code what you want to theme

[THEME & GUIDE][XDA]XDA Reloaded

[GUIDE][THEMING]How to theme any Android App

[Newbies][Documentation]What's an apk and how does it work

My "Welcome to XDA" thread

​

[WELCOME]Hello iPhone Users, Quick message for you fellow "old" XDA users
[Sony Cross-Device Development Themes and Apps] jnappert:
Is there a universal version of the current Sony EMail App (i think this version is the newest:

Sony Email 15.0.A.1.20 ) for installation in Lineage OS 16.0?

[Edit]: See #5 for universal Version.
[Sony Cross-Device Development Themes and Apps] darkjedi:
I second this and would appreciate any help. :)
[Sony Cross-Device Development Themes and Apps] CM17X:
Hi there! Can someone port this one or tell how to do it? Someone suggested using Mixeplorer and signing it, but it didn't the trick. I'm using Android one. Thanks for your help.
[Sony Cross-Device Development Themes and Apps] rade5:
For me too need this port apk.
[Sony Cross-Device Development Themes and Apps] jnappert:
Just try the universal version (15) or the version (16) i ported for my Nokia 8.3 5G and Android 10 (Android One).

15.0.A.1.20 Universal

16.0.A.0.12 Universal
[Sony Cross-Device Development Themes and Apps] old.splatterhand:
v16 works perfectly fine for me. Thanks a lot! Searched for long time for a version with dark design.
[Sony Cross-Device Development Themes and Apps] rade5:
Thank you, mate, that's what I was looking for long time. I have a samsung s7 edge on which I installed android 11 but applications that are installed with gaaps are not something good, and because of this system are great because they have no advertisements and are fully functional. Xperia keyboard is great because it has a 3x4 option while this google has only a qverty shape that I do not use, then Xperia Music, Xperia email, Asus filemanager, Xiaomi Calculator,Asus Music Player and other.
[Sony Cross-Device Development Themes and Apps] jnappert:
Update:

17.0.A.0.4 Universal (ported for my Nokia 8.3 5G Android 11, Patch 03/2021)

If you have issues creating more than one EMail-Account install V15 from #5 and update to V17.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Can u port it for android 10 please