USB Debugging – What would it take to use a Rasperry Pi Zero W as a WiFi to USB-C gateway for Android Auto?

So many new infotainment systems in cars support Android Auto, but not wireless. I was wondering if I could program something that would allow an inexpensive Raspberry Pi to be used as a gateway. Effectively emulate a phone on the USB side, but receive real data from a real phone via wifi. I am a programmer, but I do not understand the inner workings of the Android USB system to know if it is possible or not (with or without root).

If I know where to start, I can create an open source project on github. I have experience both in small Android programming and in some languages ​​like .net core or python to make it work on the raspberry side.

android phone <--wifi--> raspberry pi <--usb--> car system

Like for example Renault easy link which is in my Renault Twingo (2019).

adb – Are there tools (developer) to delete files from the Android "Rom" cache, if the smartphone does not start correctly?

(I also asked about stackoverflow, as I guess using development tools is necessary, but I would be very happy to get some practical help here as well.

The Google Photo app filled the 16 GB "Rom" of my Motorola G5: the overview of Google memory showed around 6.5 GB of "Google Photo" data, while the photos and videos actual (not deleted) were only 4 GB and I had moved those 4 GB to the SD card. To be on the backup side before pressing "delete" of the 6.5 GB, I removed the SD card beforehand. But now when you try to restart, Android is stuck in the boot / boot sequence. (I can still enter the PIN code, then the normal startup / startup screen appears, but it only disappears briefly every 5-10 seconds. Stuck there.)

Question: Can I access the "Rom" of the smartphone in any way, so that I can delete all or part of the 6.5 GB occupied by "Google Photo", for example by using adb?

I have Android 8.1 on the G5 and Win 10 on my computer.

wi fi – is dhcpcd used in new versions of Android?

Basically there is a file /etc/dhcpcd/dhcpcd.conf . Is this file or dhcpcd used at all? My phone is running Android 7.1.2 and I wanted to change the default host name using the hostname somename line in this file, but it looks like it was ignored (there was no change in the DHCP request). I read something about the "DHCP client inherited from Android" in the development options, but I don't have that position there, nor did I find anything on the modern DHCP client, which I think is used now.

android – Recommended framework for the development of cross-platform gamified utility applications?

What type of framework should I use to create a gamified utility application?

I need something with cross-platform support.

My goal is to create a light utility application that would work similar to

It must be able to handle a large number of online users at the same time.

Must be light, fast and support Android, iOS, web.

Is there a framework that would work best for this?

I was recommended to flutter and told that Unity would be too "heavy" for an application.

Any other options?

networking – Musl's getaddrinfo () doesn't work on Android (try again)

I am creating an SSH client for Android. The binary is statically linked for maximum portability. Runtime dependencies C are resolved by linking to the Musl library. Overall, this solution seems to work well, with the exception of domain name resolution:

ssh: Could not resolve hostname : Try again

I noticed the implementation of Android getaddrinfo indeed has little in common with Musl. Could you please advise on the minimum workaround for this problem, which should preserve the static link?

storage – what can be used as a Windows registry equivalent in Android?

I am creating an application on Android. Before, I had the same app in Windows Mobile, so you can guess why I'm doing this.

Anyway, there are important values ​​(encryption keys) that I need to store. It used to be done in the Windows registry, but now I don't know where it would be safe enough to do it.

I don't want to build a SQLite database for this because the key would be used to encrypt / decrypt a SQLite database.

I also know that there are user settings, which I'm not sure is safe enough.

I am not sure whether to use internal or external memory as is.

What would you suggest?

Encryption – What is the equivalent of the Windows registry on Android?

I have had a set of applications written for Windows Mobile, and I need to pass them to Android (Xamarin.Forms). When I had them in Windows, I used the Windows registry to save some data (encryption keys). I need to know where to save this data.

  1. Android does not have a registration as such.
  2. SQLite is not a good option because one of the encryption keys is for a database, so you should be able to see it.
  3. The memory (internal or external) does not seem too secure.
  4. User preferences, this does not seem very safe.
  5. Hard coded: bad practice.
  6. Resources or configuration of the application. I am trying to separate the code from the key … for security reasons, so neither.
  7. Where application passwords are usually stored, but no idea where.


installation – Prevent installation of unsolicited / malicious applications on Android

Recently, I noticed that I had installed an opera browser. I definitely didn't install it because I was sleeping at that time. I checked the installation time and revealed that it was the day before yesterday

enter description of image here

Check the installation source like this does nothing

adb shell dumpsys package com.opera.browser | grep -e "installerPackagename"

so I don't know if it was via Play Store or via APK.

Can I find out who did this and how can I prevent future intrusions?

P.S. I have a device based on MIUI 11.0.3 Global

java – URGENT – ANDROID – Create an application that loads information before any component being initialized

I'm about to take an exam on mobile architectures and I have the following question during an exam from the previous year:

"Consider an application that loads all of the information from a JSON object stored in internal storage (in a txt file), before one of its four typical components is initialized (I assumed that they meant activity, service, broadcast receiver and content provider). Explain all the procedures and objects created to create it. "- I just translated it from the Portuguese, so I'm sorry for any translation errors.

I (think I) know that I need a JSONObject and a JSONArray to decrypt the information, as well as the openFileOutput method to load the information. The only thing I have no idea is when and how. This type of question drives me crazy but that's what it is. Ideas?

Wireshark – Android: How to capture packets from an Android device?

For my university project, I need to find the IPs and ports used by an application.

I have tried Wireshark for packet capture because my device and my machine are on the local network, but it does not display packets for Android devices. I applied Android IP in the display filter, but there was not a single packet of this IP.

Q. How do I capture traffic from my Android device? (please recommend any open-source or free tool or procedure, based on Windows or on an Android application)