Sample Header Ad - 728x90

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

Latest Questions

1 votes
0 answers
234 views
How can I launch a camera app from the command line, and have it stored somewhere predictable on android?
Basically... I am writing a script on Termux and I need to take and store a photography. I tried to start "android.media.action.IMAGE_CAPTURE" via am supplying it with the uri of both a non existent and empty file for that sake, but I was unable to get it to work consistently... More details [Here][...
Basically... I am writing a script on Termux and I need to take and store a photography. I tried to start "android.media.action.IMAGE_CAPTURE" via am supplying it with the uri of both a non existent and empty file for that sake, but I was unable to get it to work consistently... More details Here . So I am reconsidering my approach... Do you guys know some way (built-in way, third party app or library, Termux specific command, idk) to be able to launch some camera app in order to be able to point the camera and take the photo, and then return to the terminal in order to handle it. It would be nice to write it directly into Termux's storage, but it's fine if I can write it literally anywhere.
Lucastegano X (11 rep)
Feb 4, 2025, 05:49 PM • Last activity: Feb 6, 2025, 01:14 PM
0 votes
0 answers
15 views
Samsung Galaxy a136u 5g frp locked no PC
I have a a136u 5g phone I forgot my pin code and no access to account associated I need help with frp bypass. Nothing is working. None of the exploits I see online work. In talkback instead of talking back it says stop. I really need I. This phone it's all I have tyia
I have a a136u 5g phone I forgot my pin code and no access to account associated I need help with frp bypass. Nothing is working. None of the exploits I see online work. In talkback instead of talking back it says stop. I really need I. This phone it's all I have tyia
James Jay Mimbs (1 rep)
Nov 4, 2024, 09:32 PM
67 votes
9 answers
25340 views
How can I do development on my Android device?
I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train. I've been looking through the android market but haven't found any apps t...
I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train. I've been looking through the android market but haven't found any apps that offer a "development environment" or an editor with a compiler. Is any development ON the Android possible? Does an app for this exist?
Slamice (781 rep)
Jan 10, 2012, 03:11 PM • Last activity: Jul 26, 2024, 05:02 AM
0 votes
0 answers
66 views
How to prevent apps for second user showing in list of apps for first user?
How can I make sure that the apps in my secondary space don't appear in the list of apps in my primary profile? I would like it to appear only the installed apps according to active space, I looked for commits or instructions to edit this behavior in the settings APK but I can't find it, this behavi...
How can I make sure that the apps in my secondary space don't appear in the list of apps in my primary profile? I would like it to appear only the installed apps according to active space, I looked for commits or instructions to edit this behavior in the settings APK but I can't find it, this behavior is very common in ROMs on Android 11, in others most are fixed. enter image description here enter image description here
zinn (1 rep)
Mar 24, 2024, 11:45 PM • Last activity: Mar 25, 2024, 08:13 AM
0 votes
0 answers
1500 views
Adding prebuilt APK to Android system.img (stock firmware from manufacturer)
Can someone help add a prebuilt APK to an Android `system.img` for me? I’ve obtained `boot.img`, `system.img`, etc. (the full firmware) from the manufacturer of the device. I’ve been trying for hours to add the .apk files to the `system.img`. (I’ll share it here) **My steps:​** 1) What I did was ext...
Can someone help add a prebuilt APK to an Android system.img for me? I’ve obtained boot.img, system.img, etc. (the full firmware) from the manufacturer of the device. I’ve been trying for hours to add the .apk files to the system.img. (I’ll share it here) **My steps:​** 1) What I did was extract the image, add my apk to /app, or /priv-app, or vendor/operator/app. 2) Convert the folders/files of the extracted image to an ISO. 3) Convert the ISO back to .img file using WinISO software 4) Added the system.img converted in step 3 back into the main folder where all the original firmware images are. 5) Flashed the new firmware with the modified system.img back to the device. **Problem:​** The device boots up to the brand logo. However, it just gets stuck at the brand logo. VERY IMPORTANT => If the flash is successful, then the brand logo turns into brand logo animation, but every time I flash with my APK, it just gets stuck at the unanimated boot logo. Thus there are two stages: Boot logo = if stuck, then flashing/APK adding failed Boot Animation = everything works (I know this because the stock flash works just fine) = extra info=​ Android: 4.4.2 Flash tool: MTK SP Flash Tool XDA Forums attachment link: https://xdaforums.com/attachments/mx2-wvga_tm-wv3-22-20230418-rar.6039930/ (The above link is the firmware I was able to obtain from the company)
Meunk .3 (1 rep)
Dec 4, 2023, 05:28 AM • Last activity: Feb 17, 2024, 03:00 PM
2 votes
1 answers
3327 views
Compile apps from GitHub source on device via Termux or apps?
Are there any ways to compile APKs on the device from GitHub source, like ["APK builder" by heagoo](https://github.com/heagoo/apk_builder_tutorial)? Termux method would be nice too if anyone knows. I have tried the [sdrausty.github.io](https://sdrausty.github.io/docsBuildAPKs/) method, but I believe...
Are there any ways to compile APKs on the device from GitHub source, like ["APK builder" by heagoo](https://github.com/heagoo/apk_builder_tutorial) ? Termux method would be nice too if anyone knows. I have tried the [sdrausty.github.io](https://sdrausty.github.io/docsBuildAPKs/) method, but I believe that's more for his pre-configured APKs. I want something more universal. Specifically, I'm looking to build this app: https://github.com/ukanth/afwall
AndroidS7edge (21 rep)
Jan 26, 2019, 09:36 PM • Last activity: Dec 25, 2023, 04:43 AM
0 votes
1 answers
132 views
modify apk content
Do you know if it possible to edit compiled code in apk package? I tried followed steps: 1. Unpack xapk file by command: `unzip my-app.xapk` (I have there multiple apk and I need to modify one of them, due to bug fixing...) 2. Unpack one of the apk: `apktool d my-component.apk` 3. Modify one of the...
Do you know if it possible to edit compiled code in apk package? I tried followed steps: 1. Unpack xapk file by command: unzip my-app.xapk (I have there multiple apk and I need to modify one of them, due to bug fixing...) 2. Unpack one of the apk: apktool d my-component.apk 3. Modify one of the smali files 4. Build apk: apktool b ./my-component -o ./my-component.apk 5. generate cert: keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias 6. sign all unpacked from xapk files: find ./ -name "*.apk" -exec apksigner sign --ks my-release-key.jks --ks-pass pass:123456 --out {} {} \; 7. install all component: adb install-multiple -r my-component.apk another-component.apk.... After all these steps my application works partially and I got some errors in logcat: ArtManagerService: Failed to prepare profile for my-package:/data/app/~~SeVk-WOasdas3A-hIPw==/my-component-TwgvYqasd_uL4r2tgdBZ-og==/base.apk
lolcio (101 rep)
Nov 16, 2023, 06:34 PM • Last activity: Nov 16, 2023, 10:08 PM
2 votes
3 answers
23776 views
How to use Visual Studio Code on an Android device?
I have Samsung Galaxy Tab S6 and it has cool features to replace laptops, but it is unfortunately running Android OS, and not many development apps are available for Android. Is there an option to run VS Code at least on an Android device?
I have Samsung Galaxy Tab S6 and it has cool features to replace laptops, but it is unfortunately running Android OS, and not many development apps are available for Android. Is there an option to run VS Code at least on an Android device?
solimanware (155 rep)
Jan 9, 2020, 07:59 AM • Last activity: Nov 4, 2023, 06:28 PM
3 votes
1 answers
187 views
Make an Android app keep its spot on the home screen on uninstall/reinstall
When developing Android apps, I will often end up reinstalling the app I'm working on (deliberately after uninstalling it, or when the build signatures are different). It's bothersome to always put this app back on the home screen where I want it. And if I don't, I either have to type its name in th...
When developing Android apps, I will often end up reinstalling the app I'm working on (deliberately after uninstalling it, or when the build signatures are different). It's bothersome to always put this app back on the home screen where I want it. And if I don't, I either have to type its name in the app directory (which can take a few letters depending on how similar its name is to other apps) or scroll to find it. Has anyone found a way to have an app find it's previous spot on a reinstall, or something that would make finding it easier ? I'm familiar with Tasker and Llama, but couldn't find such options.
Julian Honma (133 rep)
Oct 8, 2019, 12:59 PM • Last activity: Nov 4, 2023, 12:05 AM
2 votes
1 answers
1889 views
Recover user data (photos videos) from a Poco X3 Pro forgotten pattern
So, I decided yesterday to change my pattern to something more complicated for terms of privacy. For my bad, I had such an awful day yesterday and I honestly don't remember the whole pattern. My fingerprint is also registered on the device, but it won't use it since I have my pattern set too. The re...
So, I decided yesterday to change my pattern to something more complicated for terms of privacy. For my bad, I had such an awful day yesterday and I honestly don't remember the whole pattern. My fingerprint is also registered on the device, but it won't use it since I have my pattern set too. The related Google account and Mi account belong to me, and I have the users/passwords. I've been taking pictures and videos for over a year without syncing in the cloud (dumb me, really). I've been trying to find my pattern by drawing what I remember for almost eight hours. I have an important amount of information that I care in my phone, like a concert I went with my brother and so on. Initially my personal computer had the usb-debugging allowed and I tried some stuff with adb, like trying to pull my gesture.key from my device for trying a brute-force attack for my pattern, but I was unable get my key since my phone is not rooted. I also tried to pull all my personal data from adb but I needed to grant the permissions from my device, which I couldn't do. I downloaded some of those trash-software that promise you to get away the pattern (by deleting the data, which is something that I don't want to do) and constantly updated my usb drivers it seems like in some point my PC got unauthorized for the usb debugging. So, some of the adb stuff that I could try is discarded now. I also tried to boot in recovery mode (stock recovery) and activated the safe assistant mode, but the mi desktop software did not recognise my phone. I tried to boot some custom recovery, but I don't have my bootloader unlocked. I took my phone to different mobile care centers, and they told me that only way to get away the pattern is by deleting my data, which again is something that **I don't want to happen**. For now, I'm trying different patterns that kind of come in mind and registering theme to keep track of those which are not the right ones. I'm desperate and running out of ideas. I'm a developer with knowledge on C, C++, JavaScript, TypeScript, Python and some others, so any developer-approaches are welcome. Also, I'm willing to offer rewards or pay for overcoming this. My Device is a Xiaomi Poco X3 Pro.
JMRMEDEV (21 rep)
Oct 11, 2022, 05:32 AM • Last activity: May 1, 2023, 08:26 AM
1 votes
1 answers
154 views
FastHub for GitHub
I've used the FastHub for GitHub Android app in the past, but can no longer find it on the Google Play store. Has it been replaced by the GitHub app for Android? What are the differences, or any changes, between the two apps (if any)? Why has the old app been delisted? Thanks.
I've used the FastHub for GitHub Android app in the past, but can no longer find it on the Google Play store. Has it been replaced by the GitHub app for Android? What are the differences, or any changes, between the two apps (if any)? Why has the old app been delisted? Thanks.
Joselin Jocklingson (855 rep)
Mar 19, 2023, 11:46 AM • Last activity: Mar 19, 2023, 12:07 PM
0 votes
1 answers
533 views
Bluetooth Process is Dying constantly
My phone's bluetooth keeps disconnecting and connecting constantly. I recently built my first custom ROM, Lineage OS 20 for my Redmi Note 9 (Merlin/Merlinx). Lineage OS is not officially supported on my device, so I used the community maintained device tree from [here][1]. The build went smoothly an...
My phone's bluetooth keeps disconnecting and connecting constantly. I recently built my first custom ROM, Lineage OS 20 for my Redmi Note 9 (Merlin/Merlinx). Lineage OS is not officially supported on my device, so I used the community maintained device tree from here . The build went smoothly and my phone is running just fine on it. BUT I'm facing this issue bluetooth. I ran adb logcat and in the logs I found this particular line: > Process com.android.bluetooth (pid 3034) has died: psvc PER I don't know how to fix this. I am a complete newbie at rom development. Any insight into this would be highly appreciated. I am attaching the full 1-min long log in the pastebin . Please ask for any more info if needed. Thanks !
user384711
Jan 15, 2023, 03:49 PM • Last activity: Jan 16, 2023, 02:15 PM
0 votes
1 answers
6302 views
Send "step" sensor event from ADB
My smartphone has sensors those: Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last= Step Counter | Qualcomm | 0x0000001f | on-demand | no batching support | last= I think , when I shake phone (or when walk), Step Detector is running and send a data to applications. If I'...
My smartphone has sensors those: Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last= Step Counter | Qualcomm | 0x0000001f | on-demand | no batching support | last= I think , when I shake phone (or when walk), Step Detector is running and send a data to applications. If I'm right, I can send a fake event with ADB connection. But I can't find anything about this. For example: > adb shell sendevent StepDetector
SamedDeger (1 rep)
Jul 16, 2016, 10:46 PM • Last activity: Aug 31, 2022, 03:00 PM
1 votes
2 answers
2196 views
What programming languages are used in Android OS development?
I know we can develop Android apps in Java and also that the base of Android is Linux. However, I don't know what programming languages are used in the Android Open Source Project. I try to find out the answer to this question many times but was still unable to find out an answer. Any idea?
I know we can develop Android apps in Java and also that the base of Android is Linux. However, I don't know what programming languages are used in the Android Open Source Project. I try to find out the answer to this question many times but was still unable to find out an answer. Any idea?
Ranjit (123 rep)
Jan 17, 2014, 07:10 AM • Last activity: Aug 23, 2022, 11:35 AM
1 votes
0 answers
645 views
Shutdown android device after disconnect charger
I need shutdown android system after disconnect charger. I have android 6.0.1 (rooted), and I'm looking for to power off phone, when it's not charging. I'm looking for programming solution. I have power on phone when I start charging phone. To do it I changed init.rc file. Now I looking for which fi...
I need shutdown android system after disconnect charger. I have android 6.0.1 (rooted), and I'm looking for to power off phone, when it's not charging. I'm looking for programming solution. I have power on phone when I start charging phone. To do it I changed init.rc file. Now I looking for which file I can change, to achive power off phone after disconneted charger. I have this code in init.rc:
on charger
    setprop ro.bootmode "normal"
    setprop sys.powerctl "reboot"
To test, I added this to function "on charge"r too: sleep 300 /system/bin/busybox poweroff -f and finally I have:
on charger
    setprop ro.bootmode "normal"
    setprop sys.powerctl "reboot"
    sleep 300
    /system/bin/busybox poweroff -f
but it didn't work. I tested:
/system/bin/setprop sys.powerctl shutdown
/system/bin/svc power shutdown
/system/bin/busybox poweroff -f
Phone never shutdown after connect charger (this was only test, I need shutdown after disconnect charger, not after connect, but why this commands didn't work?).
Krzysztof Em (31 rep)
Aug 21, 2022, 07:28 PM • Last activity: Aug 22, 2022, 08:32 PM
1 votes
0 answers
565 views
Do android roms with only boot.img file available in fast boot rom don’t have separate recovery.img
I have phone named **Vivo Y83 /(vivo1802)** I wanted the stock recovery image of my device to port twrp recovery since it’s not officially available for my device. But after getting hands on my fastboot rom…. There is only boot.img present in rom So my question is is the recovery image is part of bo...
I have phone named **Vivo Y83 /(vivo1802)** I wanted the stock recovery image of my device to port twrp recovery since it’s not officially available for my device. But after getting hands on my fastboot rom…. There is only boot.img present in rom So my question is is the recovery image is part of boot image in my rom? And if yes….how would I proceed to build twrp for myself?
Click Bait (31 rep)
Jul 15, 2022, 06:12 PM • Last activity: Jul 15, 2022, 06:35 PM
1 votes
0 answers
574 views
How does Android creates block devices and mounts it?
How does Android create block devices in `/dev`? Android does not support `devtmpfs` and Android /init does not use udev or (busybox) mdev. **ueventd.rc** doesn't contain strings for `/dev/block/...`. But, there is one difficult thing. There is many different Android devices and they have got differ...
How does Android create block devices in /dev? Android does not support devtmpfs and Android /init does not use udev or (busybox) mdev. **ueventd.rc** doesn't contain strings for /dev/block/.... But, there is one difficult thing. There is many different Android devices and they have got different partitions - by size, type, number of partitions. But /init is the same for any device... Also, I have tried to "trace" ramdisk: I replaced magiskinit with my custom init:
~ # mkdir ramdisk
 ~ # unmkbootimg boot.img
 ~ # gzip -dc ramdisk.cpio.gz | cpio -i -D ramdisk
 ~ # cd ramdisk
 ~/ramdisk # mv init magiskinit
 ~/ramdisk # mv ../init .
 ~/ramdisk # cat ../src/init.cpp
#include 
#include 
#include 
#include 
#include 
#include 
#include 
using std::string, std::vector, std::ifstream, std::ofstream, std::ios, std::endl;

int main() {
    string devd;
    mount("proc", "/proc", "proc", 0, NULL);
    vector devblks;
    vector mounts;
    for (auto a : std::filesystem::directory_iterator("/dev")) {
        string pth = (a.path()).c_str();
        devblks.push_back(pth);
    }
    const bool mountext = std::filesystem::exists("/proc/mounts");
    if (mountext) {
        ifstream opn;
        opn.open("/proc/mounts", ios::in);
        while(getline(opn, devd)) {
            mounts.push_back(devd);
        }
        opn.close();
    }
    pid_t parent = fork();
    if (parent) {
        rename("/magiskinit", "/init");
        execlp("/init", "/init", NULL);
    } else {
        while (true) {
            bool ifext = std::filesystem::exists("/data/media/0");
            if (ifext) {
                ofstream output;
                output.open("/data/media/0/sys.log", ios::out);
                for (unsigned int k=0; k < devblks.size(); k++) {
                    output << "Block: " << devblks[k] << endl;
                }
                for (unsigned int j=0; j < mounts.size(); j++) {
                    output << "Mount: " << mounts[j] << endl;
                }
                output.close();
                break;
            }
        }
    }
    return 0;
}
// My /init is statically linked binary
But my init does not work, it bootloop my device. My device - Android 10 (system-as-root). Maybe it could be work into Android < 10 (ramdisk-as-root devices). I can't use UART, my device does not support LLCON and FBCON, I can't replace /init with bash shell for checking initramfs)) Also, I can't run it into chroot, it fails:
~ # chroot android /init
And I don't know way to run it on QEMU... Sorry, but there is too difficult to read source code for me... I just want to know how Android create blocks, mounts and switch_root to /system without devtmpfs and even without ueventd...
RandomDice 779 (111 rep)
Jul 1, 2022, 07:39 PM
0 votes
0 answers
1111 views
Is it possible to run KVM-Accelerated VM on Android Devices?
I am trying to enable KVM on the Android kernel so that I can run KVM accelerated VM on my Android phone. However, after enabling KVM, checking the dmesg, I get this: ``` [ 1.039716] c3 1 kvm [1]: HYP mode not available ``` Do you know why this is happening? Is it possible to somehow enable KVM on A...
I am trying to enable KVM on the Android kernel so that I can run KVM accelerated VM on my Android phone. However, after enabling KVM, checking the dmesg, I get this:
[    1.039716] c3       1 kvm : HYP mode not available
Do you know why this is happening? Is it possible to somehow enable KVM on Android?
overkill (83 rep)
Nov 15, 2021, 03:57 AM • Last activity: Nov 26, 2021, 08:05 AM
2 votes
0 answers
130 views
How to cryptographically verify the authenticity and integrity of Android Studio releases (with gpg?)
For a given Android Studio release published by Google, how can I cryptographically verify the authenticity and integrity of the `.tar.gz` file that I downloaded before I copy it onto a USB drive and attempt to install it on my laptop? Today I wanted to download Android Studio, but the download page...
For a given Android Studio release published by Google, how can I cryptographically verify the authenticity and integrity of the .tar.gz file that I downloaded before I copy it onto a USB drive and attempt to install it on my laptop? Today I wanted to download Android Studio, but the download page said nothing about how to cryptographically verify the integrity and authenticity of their release after download. https://developer.android.com/studio#downloads I expected to see a message on the download page telling me: 1. The fingerprint of their PGP release signing key, 1. A link to further documentation, and 1. Links to [a] a manifest file (eg SHA256SUMS) and [b] a detached signature of that manifest file (eg SHA256SUMS.asc, SHA256SUMS.sig, SHA256SUMS.gpg, etc) Unfortunately, the only information I found on the download page was how to verify the integrity of the tarball using a SHA-256 checksum found in a table on the same page. Obviously, this checks integrity but not authenticity. And it provides no security because it's not out-of-band from the .tar.gz itself. How can I preform cryptographic integrity and authenticity verification with Google's Android Studio releases?
Michael Altfield (526 rep)
Mar 23, 2021, 10:47 PM • Last activity: Mar 23, 2021, 10:54 PM
0 votes
1 answers
347 views
Samsung galaxy a7 2018 hangs after update android 10
Recently I updated my device from android 9(one UI 1)to android 10(one UI 2) After updating to android 10 it freezes again and again,not the whole phone freeze, only display hangs but background working properly, when i push power button and lock device, and after unlock by power button it works nor...
Recently I updated my device from android 9(one UI 1)to android 10(one UI 2) After updating to android 10 it freezes again and again,not the whole phone freeze, only display hangs but background working properly, when i push power button and lock device, and after unlock by power button it works normal, but after sometime it freezes again. I repeat this task again for unfreezing. I checked device logs for hangs reason, where I found EGLNativeWindowType 0x79466cd890 disconnect failed It looks like openGL problem, is some driver corrupt or missing in new update, Samsung block downgrade from bootloader,So I have no choice, Note:*I updated with latest ota update,there is no new update from Samsung, *Device was working well with android 9 one ui1(means there is no hardware fault) * Model: samsung sma750f
Praveen Yadav (121 rep)
Aug 1, 2020, 05:19 PM • Last activity: Sep 29, 2020, 07:29 PM
Showing page 1 of 20 total questions