yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Q&A, Help & Troubleshooting] Retrial:
The answer is NO.
[Galaxy S 4 Q&A, Help & Troubleshooting] Wenze76:
I have a samsung galaxy grand prime, it is possible to install ROM from j3.​
[Galaxy S 4 Q&A, Help & Troubleshooting] Retrial:
You can only install ROMs for your device. Not from other devices.
[Android Q&A, Help & Troubleshooting] KaKi87:
Hi,

I'm trying via ADB to launch my home cinema's 4K player using the am start command, inspired from the following dumpsys activity activities output :

ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
Display #0 (activities from top to bottom):
Stack #1:
Task id #3332
* TaskRecord{1e33939 #3332 A=com.archisoft.zappitiexplorer U=0 sz=4}
userId=0 effectiveUid=u0a40 mCallingUid=0 mCallingPackage=null
affinity=com.archisoft.zappitiexplorer
intent={act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.archisoft.zappitiexplorer/com.archisoft.zmc4k.pluginandroid.UnityPlayerNativeActivityOverride}
realActivity=com.archisoft.zappitiexplorer/com.archisoft.zmc4k.pluginandroid.UnityPlayerNativeActivityOverride

[...]

* Hist #3: ActivityRecord{6c7104 u0 com.android.gallery3d/.app.MovieActivity t3332}
packageName=com.android.gallery3d processName=com.android.gallery3d
launchedFromUid=10040 launchedFromPackage=com.archisoft.zappitiexplorer userId=0
app=ProcessRecord{7a2d751 21171:com.android.gallery3d/1000}
Intent { act=android.intent.action.VIEW dat=/storage/sdcard/something.mkv flg=0x8000 cmp=com.android.gallery3d/.app.MovieActivity (has extras) }

I tried the following commands without success :

am start -a android.intent.action.MAIN -n com.archisoft.zappitiexplorer/com.archisoft.zmc4k.pluginandroid.UnityPlayerNativeActivityOverride -d /storage/sdcard/something.mkv

am start -a android.intent.action.MAIN -d /storage/sdcard/something.mkv com.archisoft.zappitiexplorer

am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.MovieActivity -d /storage/sdcard/something.mkv

am start -a android.intent.action.VIEW -d /storage/sdcard/something.mkv com.android.gallery3d

In comparison, here are working commands for MPV player :

am start -a android.intent.action.VIEW -n is.xyz.mpv/.MPVActivity -d file:///storage/sdcard/something.mkv

am start -a android.intent.action.VIEW -d file:///storage/sdcard/something.mkv is.xyz.mpv

What am I missing ?

Thanks
[Android Q&A, Help & Troubleshooting] Renate:
I don't know.

Take the app and put it through apktool and look at AndroidManifest.xml

Or...

You can try my binxml or binxml.exe in two refreshing flavors, for Android or Windows (in the sig).

$ ./binxml random.apk

C:\>binxml random.apk
[Android Q&A, Help & Troubleshooting] Renate:
Try am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.MovieActivity -d file:///sdcard/something.mkv
[Android Q&A, Help & Troubleshooting] KaKi87:
Actually I did try that as well (without success), because I tried all commands with and without file://, but while MPV supports remote files hence the need for protocol, the 4K player only supports local ones, leading me to believe that it doesn't actually supports protocols. 🤔
[Android Q&A, Help & Troubleshooting] Renate:
Well, tell us what the am start says. It either says started or not.
[Android Q&A, Help & Troubleshooting] KaKi87:
Whether using file:// or not, the command outputs :

Starting: Intent { act=android.intent.action.VIEW dat=file:///sdcard/something.mkv cmp=com.android.gallery3d/.app.MovieActivity }

But then the UI says :

Thanks
[Android Q&A, Help & Troubleshooting] Renate:
That is not much of a recommendation for that app.
[Android Q&A, Help & Troubleshooting] KaKi87:
What do you mean ?
[Android Q&A, Help & Troubleshooting] Renate:
The app shouldn't crash on a trivial Intent even if it's wrong.

Run logcat in another window while you deliver the am start to see where/how/why it crashes.
[Android Q&A, Help & Troubleshooting] KaKi87:
Here's the output :

01-28 01:06:24.556 18166 18166 E AndroidRuntime: FATAL EXCEPTION: main
01-28 01:06:24.556 18166 18166 E AndroidRuntime: Process: com.android.gallery3d, PID: 18166
01-28 01:06:24.556 18166 18166 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.gallery3d/com.android.gallery3d.app.MovieActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5453)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at com.android.gallery3d.app.MovieActivity.onCreate(MovieActivity.java:520)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6251)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
01-28 01:06:24.556 18166 18166 E AndroidRuntime: ... 9 more
01-28 01:06:24.558 5738 5794 W ActivityManager: Force finishing activity com.android.gallery3d/.app.MovieActivity

Thanks
[Android Q&A, Help & Troubleshooting] Renate:
The Bundle is often null on Activity.onCreate() so it seems like this is just poor design.

I guess that they never checked the app on Intents.
[Android Q&A, Help & Troubleshooting] KaKi87:
If you're saying that supporting those aren't necessary for the app's normal operation then it makes sense, as it was never meant to receive "open with" or "share" actions.

However, how can do I just launch the activity identically to how it's launched normally ?

Thanks
[Android Q&A, Help & Troubleshooting] Renate:
Mmm, it looks like it's all supposed to go through com.android.gallery3d.app.GalleryActivity

Try am start -a android.intent.action.VIEW -n com.android.gallery3d/.app.GalleryActivity -d file:///sdcard/something.mkv
[Android Q&A, Help & Troubleshooting] KaKi87:
Well, that doesn't crash, but displays the following toast : Couldn't find item.

I tried without file:// just in case, which got the same result.

I hope it's progress ^^

Thanks
[Android Q&A, Help & Troubleshooting] KaKi87:
Well, when retrying while running logcat, I noticed the last line of this output :

01-28 20:02:59.781 5751 9854 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=file:///sdcard/something.mkv flg=0x10000000 cmp=com.android.gallery3d/.app.GalleryActivity} from uid 0 on display 0
01-28 20:02:59.785 17962 17962 D AndroidRuntime: Shutting down VM
01-28 20:02:59.789 9559 9559 W GalleryActivity: onCreate
01-28 20:02:59.790 9559 9559 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1285 android.content.ContextWrapper.bindService:604 com.android.gallery3d.app.AbstractGalleryActivity.doBindBatchService:330 com.android.gallery3d.app.AbstractGalleryActivity.onCreate:81 com.android.gallery3d.app.GalleryActivity.onCreate:396
01-28 20:02:59.794 9559 9559 D GalleryActivity: uri = file:///sdcard/something.mkv
01-28 20:02:59.794 9559 9559 D GalleryActivity: contentType = null

So I retried while adding -t video/* and got a more promising result, though not the right one yet :

View attachment 6061204View attachment 6061205View attachment 6061206

The appearance of these menu and modal is similar to the the video player's so I suppose we're going in the right direction.
[Android Q&A, Help & Troubleshooting] Renate:
It is really a badly written program.

I have an old Foxfire (because it handles tab reuse correctly).

Normally an invocation goes through an Activity to another Activity.

So if you want to deactivate animations it doesn't work because it's deactivated on the first but not the second.

But the hidden second Activity isn't exported, so you have to mod it.

Me? I'd patch the Movie thing so that it handles Intents correctly and doesn't expect the Bundle to be non-Null.

If it's open source, put in a bug report.
[Android Q&A, Help & Troubleshooting] KaKi87:
Can't I just access it anyway from ADB especially since I have root ? (Maybe I forgot to mention that, sorry if I did)

Me ? I don't know how to do that at all 😅

It's not :/
[Android Q&A, Help & Troubleshooting] Renate:
You can't send a Bundle with am start, but you might try a mini app with:

intent.putExtra("al_applink_data", bundle);
[Android Q&A, Help & Troubleshooting] KaKi87:
I'm not into Android development either 😅

How about Tasker ?
[Tilt, TyTN II, MDA Vario III General] coolcreaper20:
Hello everyone does anyone have any backups of Windows Mobile 6.1 because I recently bought a phone lot thats from Japan and it has this phone in it and I want to flash a generic HTC english ROM since the current factory one is in Japanese.
[Tilt, TyTN II, MDA Vario III General] DecentralizedMadness:
This post has the stock Windows Mobile 6 and 6.1 roms
[OnePlus 11R (Ace 2)] RootsOnly:
phone was purchased from ebay , has oxygen on it , yet said region locked (still work data/text/mms) can make calls.

anyone have the skills to flash a rom from me for some money?

a cool guy region unlocked, and bootloader unlocked and rooted my 11r, although it still doesn't receive or make calls.

so the cool guy that unlocked it said to try and put a different rom on it, although i dont know how lol

thanks
[OnePlus 11R (Ace 2)] khusika:
Asking for paid services is not allowed on this forum as per Forum Rules, and it is also better to register your device legally in your country to open access to your SIM card.
[OnePlus 11R (Ace 2)] RootsOnly:
soory

i did check and searched the rules link you shared "paid services" returned no result

1) what exactly is illegal about getting a device i paid legally for in the usa from a legally licensed usa company (nevermsrp) to work legally in the usa?

2) are roms illegal?

3) is rooting illegal ? (doesn't say so on boot up screen) i can email one plus and ask i suppose

4) is unloacking boot loader illegal? i can email support and ask this as well and post their reply if needed

not trying to be funny, just paid $550 for a phone i cant make calls on and trying to get it working.
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
I had this problem, I don’t know if it’s rare or it or I’m doing something wrong but after the loss imei i downloaded it back through backup, but after resetting it to factory settings, the original recovery overwrites it again. Is there a solution to this problem? The problem occurred on redmi 9
[Redmi 9 / Poco M2 Questions & Answers] user0u:
How did you restore it? If the restore is successful, you should try a clean flash using MiFlash afterwards and see if that helps restore it for good.
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
yes, after recovery I flashed the phone again but only with the bootloader locked, did I do it right? Or should I have flashed it with it unlocked and then blocked the bootloader via the command line? I restored it imei mtktools.
[Redmi 9 / Poco M2 Questions & Answers] user0u:
You cannot flash using MiFlash with a locked bootloader. Flash a fastboot rom using MiFlash. More instructions here.
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
You misunderstood, I was flashing with an unlocked bootloader and when flashing I selected flash_all_lock.bat I flashed it through the command line and not through miflash
[Redmi 9 / Poco M2 Questions & Answers] user0u:
You are probably using some other flashing software. As far as I know MiFlash, which is the official Xiaomi flash tool, has no such option.
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
I flashed it via adb, put the firmware files in the tools folder and selected the file flash_all_lock.bat after finishing the firmware, I did a factory reset again for testing and it disappeared again. Now I don’t know what to do.
[Redmi 9 / Poco M2 Questions & Answers] user0u:
You are doing something wrong. If I had to guess, the method you have for restoring the imei is the culprit.
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
I restored it using mtk tools
[Redmi 9 / Poco M2 Questions & Answers] amurashi:
Я восстановил его с помощью инструментов mtk.
[Redmi 9 / Poco M2 Questions & Answers] AmoKun:
You shouldn't try to relock the bootloader at all

Try restoring the IMEI then Install a custom recovery and backing it up , then booting into the system once , then flashing the backup IMEI through the custom recovery!

Otherwise just flash an Engineering Rom and changing the IMEI through that !
[Redmi 9 / Poco M2 Questions & Answers] nismo.sdt:
I have exactly the same issue. Here's what I do:

1) Unlock bootloader with MTK Sulteng tool

2) Flash engineering rom

3) Write device's IMEI using Modem Meta tool When I boot up engineering rom, all's fine. But then, when I flash stock MIUI rom (MIUI v12) it cleans all IMEIs again...

what do I do wrong?
[Galaxy S 5 Q&A, Help & Troubleshooting] djfox787:
So recently i just found my old s5 and I wanted to open it but I forgot the password since it's been a long time since a used the phone and I wanted to factory reset it but the power button is broken any tips on how to reset it?
[Realme X3 SuperZoom Questions & Answers] devireddyvinaykumar:
Guys need help for locking pci need password for locking lte cell if anyone know password share here pls
[Samsung Galaxy S24 Ultra] hfmartins:
Hello all!

I upgraded from a Samsung Note 20 ultra 5g.

When unlocking the S24 Ultra using PIN, I always need to press OK after typing my PIN code to unlock the phone. It wasn't like that on my Note20. The phone would unlock as soon as I would type the last digit of the PIN.

Can I change this on my S24 Ultra? Is there a setting I am missing, or do I have to keep pressing OK always?

Thank you so much!
[Samsung Galaxy S24 Ultra] dr.ketan:
Since A14 you needs to have 6 digits pin to unlock without pressing OK

Yes, four digit pin + OK < 6 digits Pin, so think yourself what to do lol!
[Samsung Galaxy S24 Ultra] SgtChrischi:
@hfmartins

There is a kind of glitch or bug that allows you to continue using 4 digits without OK confirmation.

Here is a translation of instructions from a German forum:

»Source
[Samsung Galaxy S24 Ultra] T1Cybernetic:
That's a good tip. I've tried and tried on my S24 Ultra but I think I am too slow to make it work :D
[Samsung Galaxy S24 Ultra] SgtChrischi:
@T1Cybernetic I made the system animation speeds faster via developer settings, maybe that makes it a bit easier😅
[Samsung Galaxy S24 Ultra] T1Cybernetic:
Haha that's amazing! Thank you very much for the tip. Animations set to 10x worked perfectly :D

Just goes to show I am indeed too slow in my old age :P
[Samsung Galaxy S24 Ultra] SgtChrischi:
Ahh, you made it slower instead of faster like I did. Makes much more sense. Great that it works.😁
[Samsung Galaxy S24 Ultra] rosedog:
That is cool it worked for you. Me? I hit that back button and the phone is like eff your developer trickery! NO!
[Samsung Galaxy S24 Ultra] T1Cybernetic:
I had to reset the phone due to some failed tinkering I've been doing :( but I can confirm that it did work for me a second time once I slowed the animations down in developer options to match my old reactions :D
[Samsung Galaxy S24 Ultra] daLareid:
I was just about to research this, as I had not issues with a 4 number pin on my S22U. But thanks to your tip I was able to get it to work on my first attempt, btw it's really not that hard guys, just have both fingers ready on the delete and next buttons after re-ticking Confirm without Ok and removing the last two digits.
[Samsung Galaxy S24 Ultra] rosedog:
After re-reading the instructions again I found my error. It works now. Thanks for the find!
[Samsung Galaxy S24 Ultra] T1Cybernetic:
Just confirming this still works perfectly fine after the two recent updates ;) another phone reset later and I set this up today to confirm.
[Xiaomi Mi 11 Lite 4G] Erwin Abs:
/*
*Disclaimer
*
* Your warranty is now void.
*
* We're 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.
*/

Introduction

Pitch Black Recovery is a fork of TWRP with many improvements to make your experience better. It's more flexible & easy to use.

Based on TWRP version: 3.7.1_12

PitchBlack version: 4.0

For device: Courbet

Maintainer/Authors build: @Erwin Abs

PitchBlack Source Code: https://github.com/PitchBlackRecoveryProject

Device tree: https://github.com/Bt-aja/device_xiaomi_sweet-TWRP

Kernel: https://github.com/crdroidandroid/android_kernel_xiaomi_courbet

PitchBlack Team: @rezaadi0105, @shovon, @manjot.gni, @androiabledroid, sagar

Features

Installation Instructions

From previous version or other recovery

Download the PitchBlack zip to your device

Reboot to your current custom recovery

Flash the PitchBlack zip

The device will automatically reboot into PitchBlack Recovery after installation

Enjoy

From PC

Download PitchBlack Recovery flashable zip from bellow

Extract the PBRP zip

Goto fastboot mode in your device

Flash the recovery.img by fastboot flash recovery.img

Boot into PBRP

Copy the zip to internal storage

Flash it

Enjoy

Changelog

PBRP Side Changelog

PBRP Version - 4.0
- Bump to 4.0
- Based on TWRP 3.7.0_12
- Redesigned homescreen
- Fixed minor glitches
- Added more languages support

Bugs

- You tell me!
[Xiaomi Mi 11 Lite 4G] Erwin Abs:
Device Changelog:

• Add Support A14 Decryption

• Add Support Nano, Bash & Python

• Add Support Erofs Rom

• Add Support Wipe Modules Magisk & KSU

• Based TWRP_3.7.1

Download: HERE

Donate: https://linktr.ee/erwinabs

Notes: Only Support A12/A13/A14
[Xiaomi Mi 11 Lite 4G] durrjunaid:
👍 Good Job
[Xiaomi Mi 11 Lite 4G] NightLight3475:
Thank you very much. I've been looking for this for a long time.
[Xiaomi Mi 11 Lite 4G] Erwin Abs:
Don't forget support me https://linktr.ee/erwinabs
[General Questions and Answers] Yusuf.H:
Is there is a way to do it myself?

Maybe with android studio or something else?

Is it hard?

Is it just like a text editor?

Is it like linux terminal?
[General Questions and Answers] Agret:
Yes very similar to Linux terminal, go onto the play store and search for "Terminal emulator" and you can use it to get a local shell on the phone.

You need to compile your binaries linked against Android NDK and disable stdlib in gcc command line. You can also build directly from Android NDK using an Android.mk file, here is a page with more answers about how to do it

Want to compile native Android binary I can run in terminal on the phone

I've been trying for a couple days to compile a native ARM Android binary that will execute on my phone using a terminal application. I want to generate the same type of binary as the standard Posix

stackoverflow.com

Here is the Android.mk to include in your Android NDK project:

ifneq ($(TARGET_SIMULATOR),true)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS += -Wall

LOCAL_LDLIBS := -L$(LOCAL_PATH)/lib -llog -g

LOCAL_C_INCLUDES := bionic
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include

LOCAL_SRC_FILES:= main.cpp

LOCAL_MODULE := mycmd

include $(BUILD_EXECUTABLE)

endif # TARGET_SIMULATOR != true
[General Questions and Answers] Yusuf.H:
Thanks for it but sorry I dont have any knowledge about it.

Can you explain me how it works how its difficult to do it?
[General Questions and Answers] xXx yYy:
Creating a terminal emulator for Android requires a solid understanding of Android development, Java programming, and terminal emulator concepts.

Essential Steps:

Understand Android Architecture: Familiarize yourself with the Android framework, Dalvik VM, and the Android Runtime (ART) to effectively integrate your terminal emulator with the system.

Create the Terminal UI: Develop a user interface that resembles a traditional terminal with a command prompt, input field, and output area. Utilize UI libraries like AndroidX and Jetpack Compose to create a responsive and aesthetically pleasing interface.

Handle Terminal Input: Implement input handling mechanisms to capture user-entered commands and translate them into appropriate system calls. This involves understanding the Linux kernel's terminal communication protocols and handling special characters like escape sequences.

Process System Calls: Dispatch user-entered commands to the Android system's shell interpreter, such as bash or sh. Use the Android Native Development Kit (NDK) to interact with the underlying Linux kernel and execute shell commands.

Display Output: Efficiently manage the terminal's output buffer, capturing and formatting the results of executed commands. Implement text rendering techniques to display output in a clear and organized manner.

Handle Multithreading: Consider using multithreading to improve the responsiveness of the terminal emulator. Separate the input handling, command execution, and output rendering tasks to ensure smooth operation.

Add Custom Features: Enhance the terminal emulator with additional features, such as tab completion, history search, and syntax highlighting. These features enhance the user experience and make the terminal more versatile.
[Android TV General] Timberwolf77:
Hello,

When you turn off the TV box using the TV Box remote control, you can turn off the TV itself as well as turn it on, but only in the first 15 seconds until the TV box has completely turned off and is in “sleep mode” (I don’t know what to call it correctly).

To turn on the TV you have to use the TV remote, which is very inconvenient.

How can this problem be solved?

Is it possible to change something in the settings?

Maybe there is an app that can keep the device in the "sleeping mode" instead of shutting it down completely?

TV box (stick) - DQ06

Operating system - Android TV 12.00

ALLWinner H618
[General Questions and Answers] duff4:
I've tried factory reset in normal settings Tried hard reset. I get a pop up after saying ' unauthorised attempt to delete files' Tried uninstall in safe mode Please help. My phone is only 6 weeks old l. It constantly runs hot. He's deleting photos files contacts listening on to my conversations . MAY I CLARIFY I AM NOT CHEATING or talking to other men i play good wife and look after our son. Please help me VidMate
[General Questions and Answers] xXx yYy:
What I would do

Flash a custom recovery image

Uninstall the spywear: Once you have flashed a custom recovery image, you can use the custom recovery to uninstall the spywear.

Reboot your device

Relock your bootloader (optional)
[Touch HD General] uaon99:
my hd's volumn button had go crazy, it keep goes up and i am not pressing it, any idea?