yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S22 Ultra] Bluesquidd:
It's the top one I have attached to this thread. I started using the bottom one that's attached.

It looks different because I was using different app Icons.

But, last Friday it was draining my battery faster than usual. From 100% to 75% within 3 hours. View attachment 5890213View attachment 5890215
[Android Head-Units] rikooaliraqi:
Hello guys,

I would appreciate your help if you could provide me the latest firmware available for my head unit. In the attached pictures you'll find the information about the hardware.
[Android Head-Units] sandroaw:
I have the same unit and also appreciate if somebody could indicate wich files could work for an android upgrade for ver. 9 or higher, because I need to install Android Auto in my unit.

Maybe @ahmed68 could help us?

I've read several other topics but I could no find any firmware for that.

Thank you in advance!
[Android Head-Units] Danisy:
Hi all.

I installed an aftermarket headunit for my F10 535d with CIC system.

After installation by myself, the Android headunit itself works, but when I double click on the menu button/press My BMW try to get to iDrive menu, it just show black/blank screen.

I did not disconnect the battery when I install it, which I really regret about this.

Since I cannot go to the iDrive screen I cannot select AUX output to test the sound yet.

May I ask if anyone know how to get iDrive works properly on the aftermarket headunit?

Tried to contact the seller but no response yet.

Thanks!

View attachment 5890193
[Android Head-Units] Anton TNT:
Hi, can you provide system info ? Take snapshot of device infotainment - info of device..
[Android Head-Units] Danisy:
Just want to report back so can help others.

The issue as simple as you need to go to Android menu->Factory Settings->Enter password your seller provided->Select your iDrive system (i.e. CCC/CIC/NBT/EVO) resolution (i.e. 640/1080)

Password can be 0000/1234/1314/7890/8888/9999 or others depends on which seller you got it from.

Once selected and go to MyBMW, you should have your iDrive screen.

If not, that could be other problem causing the Black/Blank screen.

Hope this can help someone.
[Android Head-Units] Irisheyesaresmiling:
Hi did you did you get your issue fixed mines the same regards only issue is I can’t get to anything on the screen

Have radio but no images
[Introductions] Neo09091968:
I found this forum while looking for answers to removing un-needed packages on Android. It's been a big help. I was recently a victim of my phone being hacked several times. What I'm looking for now is specific package names of stalkerware/spyware/malware so I can identify them on my phone and add the removal of them to my shell script.

On a personal note, I've given up the petro powered vehicles for an E-Scooter. One of the beefier ones. Can hit 60mph. Talk about an adrenaline rush! I worked in IT most of my life after the Army. A lot of website development in my later years. I ignored the mobile technology until recently due to the hack problems. Trying to catch up.
[Introductions] ethical_haquer:
Welcome to XDA! Enjoy the forums, and let me know if you have any questions. :) By the way, nice profile picture!
[Redmi Note 10S] YozoraOT:
First of all an apology for my lousy writing, English is not my first language.

I recently updated my phone to MIUI 14 and I honestly didn't like it, That is why I would like to install a custom ROM that improves the productivity of my device, so I would like to know what steps and methods I should follow to install a custom ROM And which ones can you recommend.
[Redmi Note 10S] tutibreaker:
The only step is read carefully the guide within the rom you want to install that all
[Redmi Note 10S] YozoraOT:
Yes, but since I am a newbie to this custom roms issue, I would like to know if there is a much more detailed guide especially related to my phone. Besides that when asking someone If I could do it, he told me something that scared me, because the processor of my device is Mediateck and its low range is very likely to brick my phone.
[Redmi Note 10S] tutibreaker:
just read the guide dude
[Redmi Note 10S] musicx1612:
Ive bricked my phone a lot of times but everytime managed to get it up running quickly, read the guide for the rom u want to install+make sure you erase all data before booting into your new rom as it won't boot otherwise.

I would also suggest researching on how to instantly unlock your bootloader. But be careful as your warranty would void.

Kindly do NOT hold me responsible for any damages or loss of files as I'm only giving tips.
[Java for Android App Development] DiamondJohn:
I cant seem to find an example of a simple "Hello World" terminal / shell application, in Java. All the simple examples on the web I find are for a simple "Hello World" GUI app. I wish to write some small utility apps to extend the shell with stuff I can easily do in Java, but not directly in the shell with ASH (ie android BASH).

Because it should be very tiny, I would like to write multiple tiny single use ones using a text editor, once I have a template up.
[Java for Android App Development] alecxs:
I guess that is a programming tool question? C++ or C? No clue what you're asking, but I am sure you're not asking about a simple Terminal emulator because it's you ;)
[Java for Android App Development] DiamondJohn:
Its written in Java. It could of been written in C++, but thats not what I want. And its not writing the terminal itself, but a java app with no GUI, but access to the android API.

Most examples I have seen are just too complex. For example. sqlite2 shell binary is one, but it does so much. If you look in /system/bin there are many of them, but I would guess a lot are written in C++. I have thought about checking the ROM source to see how these are coded, but I really suspect many are C++ and with the size of code for a ROM, it would take time, and many are more complex than an "hello world".
[Java for Android App Development] DiamondJohn:
I had an idea for some more search terms, and came across the following; and similar. But none show how to compile it down to a standalone executable. All the examples I found require you to run it interpreted.

Hello World

introcs.cs.princeton.edu

Maybe now is a trim e too try and integrate what I see in SQLite3 make file and the above link

EDITY: Arggghhh SQLite3 source would be C/C++ not java
[Java for Android App Development] alecxs:
I don't know if you can compile standalone executable. have a look into cat /system/bin/sm
[Java for Android App Development] DiamondJohn:
I think I have may of found something.... its getting late and it can wait.

Command line Java on DalvikVM

Command line Java on DalvikVM. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

AND

Android: Compiling and running a Java command-line utility

billauer.co.il
[Java for Android App Development] DiamondJohn:
Im getting close, but have to move onto other things.

Had to download SDK etc and modified the build scripts to newer methods/modules. I have the dex, next to compile that to static executable

just looks like downloading a dependency. Or maybe a path as that error looks familiar

diamondjohn@DeepThought:~/android/helloworld$ dalvik.sh HelloWorld.java
** Compiling java file...
** Creating temporary jar...
added manifest
adding: HelloWorld.java(in = 170) (out= 141)(deflated 17%)
adding: diamondjohn/(in = 0) (out= 0)(stored 0%)
adding: diamondjohn/android/(in = 0) (out= 0)(stored 0%)
adding: diamondjohn/android/utility/(in = 0) (out= 0)(stored 0%)
adding: diamondjohn/android/utility/HelloWorld.class(in = 590) (out= 356)(deflated 39%)
** Creating DEX file...
** Creating Android compatible file...

<-=ERROR=->
aapt: error while loading shared libraries: /lib/x86_64-linux-gnu/libc++.so: file too short
[Java for Android App Development] DiamondJohn:
one step closer!

I can now

write a simple java class with a single method using a text editor

package diamondjohn.android.utility;
public class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

compile it to a dex on Ubuntu (a couple of steps I need to clean up)

zip the dex (actually did this step on windows using the GUI ;) )

Copied the files to and run the class using the following in an android shell over ADB WiFi.

dalvikvm -cp /data/local/tmp/HelloWorld.zip diamondjohn.android.utility.HelloWorld

and the output is as expected

Hello World!

two things before I am actually there

1. Its still not a standalone executable, but, if need be, I can write a shell script wrapper to handle the execution using the dalvikvm. What it does show is that I can write shell executable code using Java (Instead of C/C++). And, it looks like it *should* only be a small step to make it executable in itself. At absolute worst, I could write a simple C++ executable to wrap my java executable that calls dalvikvm, if I didnt want to use the shell at all.

2. The next thing to try is to actually use an include of an android specific API and get that to compile on ubuntu and run.

for example

import android.util.Log;
public static void logInfo(String logText) {
Log.i(TAG, logText );
return;
}
[Java for Android App Development] Renate:
In ye olde days all the Android commands like am, pm, etc used a shell script that called /system/bin/app_process.

Now those use the /system/bin/cmd executable.

Usually I go the other direction. I avoid running things in Java.

You can just have a regular ELF executable.

If you need to interact with Android (Java) you can directly use Binder. (I have.)
[Java for Android App Development] DiamondJohn:
Do you have an example of creating Java code run via this technique? I searched the web and all I found looked very similar to in practicality to what I have done above, but maybe cached.

How to run Java programs directly on Android (without creating an APK)

A step by step instruction for compiling a Java program into an Android executable and using ADB to run it.

raccoon.onyxbits.de

I note that example uses "dx" to DEX the file, but its now "d8". The example also includes includes that I dont think are part of Android AOSP
[Java for Android App Development] Renate:
No, but it's basically all the same. You need an ELF (like dalvikvm or app_process) to load a jar/apk and a method for it to start with.

I didn't know about dalvikvm.

The way that app_process works is that the ELF uses libbinder.so to ask zygote[32][64] to fork itself, load some classes and start somewhere.

Try this:

time dalvikvm -cp /data/local/tmp/HelloWorld.zip diamondjohn.android.utility.HelloWorld

You'll see that this is comparatively slow (certainly over a plain C program).

dx is still around and it might be less trouble.

d8 has wacky new Java features.

Do you mean include or import? Which ones?
[Java for Android App Development] DiamondJohn:
No GUI/Activity, so no APK.. As for ELF, from what I read now, it appears to be similar to OAT files, pre-compiled for native execution?

I havent looked into it, but maybe an extra step to call dex2oat and then run that (ie the OAT), may work. I will look into it later, as Its a pretty easy process to get to the DEX. Now that I know an example of the method.

The thing to remember, I want to be able to call these methods from the shell, not from another Java app.

Yeah, you an me both!

Speed is not of concern at this stage. Functionality is first. I do not expect to be calling these in hard loops. And if I did, I would put the hard loop in the compiled Java code.

My original findings were using dx but when I downloaded the latest A13 SDK, there was no dx but there was a d8 so i guessed and it worked. I am not expecting to write huge programs, most of the functionality will be in the shell, with calls out to these tiny utilities for what cant be done in the shell i.e in exceptional cases. For example, in prior android versions, one could media scan a specific single file. Now, you can make the same call in the shell, no error is returned, but no file is scanned. i.e. it is ignored and you are not informed that it was ignored. I havent checked the logcat.

My bad, I mean import

import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;

These names do not look like AOSP available imports.
[Java for Android App Development] Renate:
They look like some Apache libraries for their idea of what you need to interact with command lines.

There's no reason that you have to use them.

If you did you'd have to get (or make) a jar (with classes, not dexes) to compile against.

You haven't given us any hint of what you are trying to do with this all.

You might be better off with a standard app with a service that can be commanded by a pipe or socket from the command line.

$ time input keyevent 4
0m00.82s real 0m00.21s user 0m00.16s system
$ time ./lgtest unix.txt 55>/dev/null
0m00.04s real 0m00.02s user 0m00.01s system

This is just a comparison between the system input and a random non-Java utility of mine.

And this is what is inside the input shell script.

#!/system/bin/sh
export CLASSPATH=/system/framework/input.jar
exec app_process /system/bin com.android.commands.input.Input "$@"

So you see that it has to spin up a VM just to do trivial things.

As I said, I very much tend the other direction, avoiding Java for utilities (of course I use it for apps).

The advantage is not only faster operation but that it can work when the Android subsystem is stopped or in recovery.

In any case, our interests are diverging here.
[Java for Android App Development] alecxs:
It's possible to run it in recovery though.

https://xdaforums.com/t/2934449/page-22
[Java for Android App Development] DiamondJohn:
Wait... what...um... WT..

I think you may of just inadvertently just resolved the majority of my need/wishes!

The whole reason I was looking into all the above was to be able to access the Android base API from the shell. The following code you just posted appears to be doing exactly that, without needing to be compiled. Ironically you chose as your example a JAVA call to a method that is available in the shell

#!/system/bin/sh
export CLASSPATH=/system/framework/input.jar
exec app_process /system/bin com.android.commands.input.Input "$@"

I havent tested it yet for myself.

Sure, there will be some interfaces that will be practically unusable directly from the shell (due to data types/object refs, activity contexts etc etc etc_) but I think you just gave me an "out"

As for "what" I wanted to do with it, nothing at this exact moment, it was more of something I keep repeatedly hitting but never got around to solving. I had work arounds for some. For example, the app in my sig is basically a GUI menu system as an entry point into shell commands/scripts. However, I have a small number of items I did outside of this concept to meet my personal needs when I could not find shell solutions (apart from the App GUI of course). This original post was a few weeks back now, and the idea was from a few years back, not a specific need right now, just randomly got around to finally asking the question.

On my way out now, but I am interested to be testing this sooner than later.

THANKS!
[Java for Android App Development] DiamondJohn:
I didn't read the whole thread, but basically the concept is the same, except the methods created there would be specific to install apps. For example, there probably isnt a method to scan a media file into the media dB. So it would have 100 different methods I dont need, yet missing the one i do need. And even if it did have the one above, next week there will be something it does not do, that I wish it to do.
[General Questions and Answers] WhyZee1:
So I want to spoof my phone and make it so an app that requires new users in exchange for points can be unlimited. I want to do this by spoofing my device and making the app think im a new device registering for their app.

So far I have:

Galaxy S7 Edge

Rooted the device

Using Magisk Delta

Hide all the root stuff

(Root Undetectable)

If someone could suggest an apk or module that would do just that please lmk
[General Questions and Answers] @ralphy._ralphy:
Is there a way to be able to use integrated Google features in Chinese phones not running the Global ROM? (Realme GT NEO 5 instead of Realme GT3 for ex) And am not talking about Gmail and PlayStore, those can be installed easily thru APKs, I'm talking about features like Nearby Share, waking up Google Assistant with your voice,...etc, those seem to be absent from the device and cannot be installed/activated.
[Android Software/Hacking General [Developers Only]] Chexet48:
Hi to all, yesterday I tried to root my phone following a guide here on XDA Developers (I don't remember which one). I have a Pixel 6 Pro and I tried to flash boot.img when the phone, after being restarted, starts to bootloop and then I try to turn it off. Then, the panic. The phone doesn't seem to be recognizable by ADB nor fastboot and the screen is permanently black. When I try to hold Power button and other combinations (while plugged to my PC) Windows emits some system sounds like "plugged" or "unplugged device" but I can't find my phone like recognizable.
[MIUI Central] zoinksy:
These notifications literally keep spamming up my notification bar, and It doesn't even happen occasionally. I can't even disable it as It is blacked out in the settings.. It keeps notifying me like any other notifications, vibrating etc. Plus unnecessarily keeps me checking my phone. I'm fed up of it.

How do I disable these voicemail notifications? I can use root solutions as well, just need to know the directions. My phone is running MIUI 14.0.4, and device is Poco F3. Thank you in advance.
[Android Auto General] seemebreakthis:
Title says it all.

This is the country list: https://partnermarketinghub.withgoogle.com/brands/android-auto/overview/country-availability/

I think the situation was different a few years back with older versions of AA, where it was relatively easy to circumvent the restrictions and still use AA anyway on a car's head unit. But with current A12 / A13 OS plus the current versions of AA, do people still have success using AA on their head unit in countries where AA isn't officially available?
[Android Auto General] psycho762:
You can uncheck auto updates of the play store and just regularely update through 3rd party versions.

Thanks for posting!
[Android Auto General] italodance:
You must be a naive to believe this, anything is available in any country.
[Android Auto General] zidane:
AA isn't available in my country, but it works on my older cars.

On my new car BMW iX 2022, it doesn't work and I get an error showing "connection failed"

I posted about it here with more details:

https://xdaforums.com/t/android-auto-connection-failed.4493825/

I'm going to try and find one of those google play services builds and try and hope to get it working.

Update:

Unfortunately, I couldn't get an apk to install successfully.

I tried many APKs from apkmirror that show build variant 200400, but they all give me an error "App not installed as package appears to be invalid"
[Redmi 9 / Poco M2 Questions & Answers] Lasivian:
Long story short I boot-looped my Redmi 9 by flashing the wrong boot.img and I cannot find the right one. (Rooted or stock)

I'm guessing it is somehow "made" from the images at Xiaomi Firmware Updater, and I got the right firmware file, but I can't figure out how to create the boot.img.

I either want to find the 13.0.2 boot.img or figure out how to downgrade the phone to the previous MIUI. Intermediate skils here (Enough to screw things up but not enough to fix things on my own)

Thanks
[Redmi 9 / Poco M2 Questions & Answers] Lasivian:
Fixed my own problem. I did not realize the boot.img was in the 3gb ROM file. Leaving this here in case someone else is trying to figure out the same kind of thing.
[Samsung Galaxy Tab S6 Lite Questions & Answers] Dakotalee24:
I have a stock S6 lite and I have it rooted with LSPosed installed. I was wondering if there is a way to enable usb c to hdmi out using root in any way. I know this tablet does not suppot MHL (Mobile High-definition Link). Was hoping there was a LSPosed module for this.

Thanks
[Google Pixel 6 Pro] wasdwasd0105:
Hi all,

I updated Limbo pKVM to 0.5.0. You can now run Windows 11 on ARM with KVM Virtualization now.

You need to flash a Magisk module to run unlocked KVM.

I need some testing & feedback on pixel 6/6a.

Need more tests on the Magisk module and more effective ways to add boot cmdlines!

A pre-build Tiny Windows 11 pro arm64 drive file below 5GB:

4.32 GB file on MEGA

mega.nz

Here is the demo video:

Run Windows 11 🪟 on Google Pixel 7🚀

Run Windows 11 on Google Pixel 6/7 using limbo KVM See the project link: https://github.com/wasdwasd0105/limbo_tensor/

www.youtube.com

The project link:

GitHub - wasdwasd0105/limbo_tensor: Limbo for Tensor is a QEMU-based Hypervisor for Tensor-based Google Pixel devices such as Pixel 6 & 7 & 8 series.

Limbo for Tensor is a QEMU-based Hypervisor for Tensor-based Google Pixel devices such as Pixel 6 & 7 & 8 series. - wasdwasd0105/limbo_tensor

github.com

Please read the Windows 11 installation guide first!

https://github.com/wasdwasd0105/limbo_tensor/blob/master/docs/windows11arm.md

Special thanks to @coreycusick

View attachment 5890221

View attachment 5890217

View attachment 5890219

/* *** Disclaimer

* I am 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 app

* before flashing it! YOU are choosing to make these modifications, and if

* you point the finger at me for messing up your device, I will laugh at you.

*/

Troubleshooting​

1. limbo return error:

xxxxxx D SHELLOUT: Could not access KVM kernel module: No such file or directory

0xxxxx SHELLOUT: qemu-system-aarch64: -accel kvm: failed to initialize kvm: No such file or directory

xxxxx D SHELLOUT: (exit code: 1)

xxxxx E MachineService: QEMU return error!

solution:

enable pkvm using fastboot:

"fastboot oem pkvm enable"

2. cannot run Windows and Unlocked UEFI:

solution:

flash the magisk pkvm unlock module.

If still not work, run "su -c cat /proc/cmdline" in the phone's terminal and check if the output contents "kvm-arm.mode=nvhe"

View attachment 5913047

If not try flash the module one more time.
[Google Pixel 6 Pro] kpirnie:
Interesting concept mate. I'm certainly curious enough to give Ubuntu a run ;)
[Google Pixel 6 Pro] fil3s:
Hi. Where does one obtain the Windows Insider Preview ARM64 vmdk? Thanks
[Google Pixel 6 Pro] TheColin21:
Hi, I tried loading the VHDX which Microsoft offers. Limbo couldn't boot from it so I converted it to VMDK.. which also couldn't boot. Any idea what I'm doing wrong?
[Google Pixel 6 Pro] wasdwasd0105:
I didn't test VHDX Maybe I‘ll upload a prebuild win11 disk
[Google Pixel 6 Pro] wasdwasd0105:
Try this one: https://mega.nz/file/KZB3AKwb#FL9iczKvMkwZ85oskhQDElrhKNcFFai_EPHdFPNJzHM
[Google Pixel 6 Pro] TheColin21:
Thanks, after a few more tries with the converted VMDK it worked though. No idea why it didn't in the first place. After vmdk didn't work I converted the vhdx to qcow, attached all three disks and if suddenly booted the vmdk... I didn't change any other setting but after that boot each boot with the vmdk worked ...

I was now able to inplace upgrade the insider build to "standard" Windows 11 22624 and it works pretty well... Just audio is missing and the Limbo app dies each time the vm is shutdown.

Also reboots dont work of course because by that point I enabled all cores and with that the UEFI crashes but that's absolutely no big deal...

Overall: great app, thanks a lot!

Touch support via Microsoft Remote Desktop app is pretty good too...
[Google Pixel 6 Pro] TheColin21:
Now that I think about it, another thing: the kvm unlock magisk module didn't work. I flashed it, rebooted, tried to boot the vm and got an error saying some kvm file couldn't be found.

I still had a Nestbox APK though, installing that and letting it unlock kvm worked.