Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
359 views

Access "data/tombstones/" dir from Android application

Trying to get access to "data/tombstones" directory from my rooted phone. I am implementing a crash collector application (system application) which would help to record the system's ANRs ...
Lavyansi's user avatar
0 votes
0 answers
1k views

open failed: EACCES (Permission denied)

I am trying to copy the file from /storage/emulated/0/test.txt to /cache/SH_DIR/ via android user application , getting error like below : java.io.FileNotFoundException: /cache/SH_DIR/test.txt: open ...
GNK's user avatar
  • 129
2 votes
1 answer
2k views

Need to add custom script as service in init.rc for Android 10

I am trying run shell script in device boot-up time. Steps: Created shell script and placed into /system/bin/usbmountd.sh Added test.sh in inir.rc. service usbmountd /system/bin/usbmountd.sh user ...
GNK's user avatar
  • 129
1 vote
0 answers
101 views

How to add a simple file on /system without actually modifying it but with using kernel sources? [closed]

From the time system-as-root came, developers have rooted different devices by patching the Magisk su binaries in the kernel. I want to understand how exactly they have done this so to start from ...
Vatish Sharma's user avatar
1 vote
0 answers
428 views

How can I record call using c code(c executable that can run on Android-Linux) on rooted Android device?

I want to record a call that is called by my application for the call test purposes. We record a call and compare it with a high-quality WAV file to determine the call quality. But the call recording ...
Vatish Sharma's user avatar
4 votes
1 answer
4k views

How to disable dm-verity on `Treble` , `system-as-root` device?

Background: Please check following links How to disable dm-verity on Android with “user” build type ROM? Stuck in boot-loop when unpack and pack system.img? Update: So, I am trying to disable dm-...
Vatish Sharma's user avatar
0 votes
0 answers
3k views

Stuck in boot-loop when unpack and pack `system.img`?

Background: I have a treble and system-as-root but it is not an A/B Samsung device. I am trying to modify the system.img. Before that, I have rooted it with the steps given here. After following these ...
Vatish Sharma's user avatar
3 votes
1 answer
29k views

How to fix: only official released binaries are allowed to be flashed(recovery) on device / FAIL! (Auth) on Odin3 v3.13?

I have Samsung S10 5G(Qualcomm) device. This device has unlocked bootloader but it is not rooted yet. I am trying to learn Unpack-Modify-Pack the ROM images. Currently, I have VZW stock ROM ...
Vatish Sharma's user avatar
16 votes
4 answers
66k views

How to unpack/repack system.img of android ROM?

I have OnePlus 6T device which has A/B partition system and has a ROM of user type i.e [ro.build.type]: [user]. This device is rooted with Magisk. I have a requirement(Want to place customized ...
Vatish Sharma's user avatar
0 votes
1 answer
2k views

SELinux Policy from Permissive to Enforcing

Using Nexus 5 with AospExtended ROM (Android 9) 19/04/05 The ROM, by default, has the SELinux policy set to Permissive instead of Enforcing. Is there any way, perhaps using TWRP Recovery, to change ...
sheldonm301's user avatar
2 votes
1 answer
9k views

SELinux prevents my init.rc exec command to execute

I've added a exec command at the end of init.rc file. on property:dev.bootcomplete=1 exec u:r:shell:s0 shell shell -- /system/bin/am start -n com.example.package/com.example.package.MainActivity ...
frogatto's user avatar
  • 157