Unable to delete Priv-app folder, Device or resource busy. - Xiaomi Mi Mix 3 Questions & Answers

Using Systemizer, I made an application a system app and downloaded the folder with the APK prematurely. Using the ES File Explorer, I cannot delete the empty priv-app folder. I get the error message "Device or resource busy". I can't attempt to systemize the app again because it believes it already exists, referring to the empty folder I assume.
Is there any way to get rid of this folder and start over correctly? The solution could be to find the source where the folder is being used, but I don't know how to go about finding this.
Phone details: Mi Mix 3 10.2.1, running Magisk 18.1

Nsweeney said:
Using Systemizer, I made an application a system app and downloaded the folder with the APK prematurely. Using the ES File Explorer, I cannot delete the empty priv-app folder. I get the error message "Device or resource busy". I can't attempt to systemize the app again because it believes it already exists, referring to the empty folder I assume.
Is there any way to get rid of this folder and start over correctly? The solution could be to find the source where the folder is being used, but I don't know how to go about finding this.
Phone details: Mi Mix 3 10.2.1, running Magisk 18.1
Click to expand...
Click to collapse
I just want you to know, you can't modify files in system/app nor system/priv-app after flashing magisk modules. You need to disable all your magisk modules before altering any files

A.Zain.A said:
I just want you to know, you can't modify files in system/app nor system/priv-app after flashing magisk modules. You need to disable all your magisk modules before altering any files
Click to expand...
Click to collapse
Does this mean all of the modules have to be disabled or only systemizer? I've tried reverting the apps Using systemizer, but the I'll get the error message that "Can't create : No such file or directory" so that ends up being a dead end.

Yes disable all, and remove emoty folder using TWRP recovery file manger

Related

Spice Stellar MI 500

Hi, I have a spice stellar mi 500. i tried rooting the phone which worked fine and then I tried removing some of the system apps like Rail yatra,, facebook, dhingana. i was able to remove them and then i finally booted my device. Since then I am getting the error "unfortunately system UI has stopped working" I am not able to open apps or receive calls. the system hangs. not even able to unroot the phone now as any apps will hang. even the control bar does not slide from the top. I am screwed. I have tried factory reset several times. in all different ways like from with system recovery or android settings. but i guess i am out of luck. can someone help me. :crying::crying::crying::crying::crying::crying::crying::crying:
depanakar said:
Hi, I have a spice stellar mi 500. i tried rooting the phone which worked fine and then I tried removing some of the system apps like Rail yatra,, facebook, dhingana. i was able to remove them and then i finally booted my device. Since then I am getting the error "unfortunately system UI has stopped working" I am not able to open apps or receive calls. the system hangs. not even able to unroot the phone now as any apps will hang. even the control bar does not slide from the top. I am screwed. I have tried factory reset several times. in all different ways like from with system recovery or android settings. but i guess i am out of luck. can someone help me. :crying::crying::crying::crying::crying::crying::crying::crying:
Click to expand...
Click to collapse
You have most probably messed the systemUI.apk which is located in /system/app or files associated with it. Did you remove any other apk's in which you weren't sure what it does?
In this case, Factory reset won't work because it just wipes user data and /system partition remains in tact. The nearest possible thing to do is to flash a stock ROM if exists or copy the deleted apk's borrowing from some one else's phone and place those apk's in /system/app partition setting the correct permission.
I remember exactly what I deleted. I I uninstalled Dhingana.com, Facebook and Rail yatra. I cannot start third party apps though I can install them. So I am not sure how to place the systemUI.apk in the directory /system/app. Can it be done through inbuilt file manager?
depankar said:
I remember exactly what I deleted. I I uninstalled Dhingana.com, Facebook and Rail yatra. I cannot start third party apps though I can install them. So I am not sure how to place the systemUI.apk in the directory /system/app. Can it be done through inbuilt file manager?
Click to expand...
Click to collapse
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
coolsandie said:
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
Click to expand...
Click to collapse
it get an error when i try yo copy the file to \system\app\. the error is copy failed. i am doing this with supersu previelege using esexplorer
coolsandie said:
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
Click to expand...
Click to collapse
I tried replacing systemUI.apk to \system\app folder using esexplorer but i got error. error: copy failed.
is there a possibility I can get hold of a stock rom and flash it using update from SD card. the default android update manager?
depankar said:
I tried replacing systemUI.apk to \system\app folder using esexplorer but i got error. error: copy failed.
is there a possibility I can get hold of a stock rom and flash it using update from SD card. the default android update manager?
Click to expand...
Click to collapse
Make sure you've mounted the /system partition as R/W before attempting to Copy or setting permissions.
coolsandie said:
Make sure you've mounted the /system partition as R/W before attempting to Copy or setting permissions.
Click to expand...
Click to collapse
now how do i do that ? sorry for my questions.

[Q] need help to make a .apk installable from another rom

hi guys i have a .apk file i.e. sectabletplayer.apk from another rom i dont want to mention name. when i tried to install it like a general .apk file it says "Aap not installed" . i googled around alot found ADB injecter it says "installation failed" and reason for this error is "unable to mount system r/w " tried to make custom flashable .zip file the file existed in given path but not installed i mean not running totally useless. can anybody help me out of this?
try to set ON Unknown-Sources in Settings/Security/Device-management
ameya1990 said:
hi guys i have a .apk file i.e. sectabletplayer.apk from another rom i dont want to mention name. when i tried to install it like a general .apk file it says "Aap not installed" . i googled around alot found ADB injecter it says "installation failed" and reason for this error is "unable to mount system r/w " tried to make custom flashable .zip file the file existed in given path but not installed i mean not running totally useless. can anybody help me out of this?
Click to expand...
Click to collapse
First this app will only work on a stock/stock base ROM. Second, you need a root file app, like root explorer or root browser. In root explorer you have to select to give r/w permission.
Go to the location of the app, long press it and select copy. Then navigate back to
/system/app and paste it. Then long press it again, select permissions and make it rw-r--r--. Then reboot
Hopefully this will install for you. If it doesn't than the apk itself would need to be modified.
One last thing, if you have another sec.player.apk in system/app, you might need to change it from .apk to .bak then reboot before you begin the other process. You can just rename it back to
.apk and make sure permissions are right then reboot to re-enable it.
Lies, spewed poetically from galaxy S3!

I'm rooted, trying to install Xposed Framework, how do I delete a file from /system/?

I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Highfiverobot said:
I tried installing it with both Flashify and Magisk, but both methods failed.
When I tried installing it via the included Xposed Installer, it also failed, but gave me the message:
> Error: Xposed_Framework.jar already exists in /system/framework
I'm guessing a previous installation failed, but left the file there.
My next idea is to delete that file from /system/framework and try again, but since it's in an RO directory I don't have permission.
I tried using a terminal emulator to mount the drive in rw mode, and also tried using a root file explorer, but either both methods don't work, or I just couldn't figure it out.
Anyone have an idea of how to remove or rename that file so I can try to install the .zip ?
-Thanks
Click to expand...
Click to collapse
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
D3RP_ said:
In the Xposed app you should be able to just run the uninstaller script. If that doesn't work, boot TRWP and delete it from there.
Click to expand...
Click to collapse
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Highfiverobot said:
Unfortunately, the uninstaller also fails.
It says it can't remove that file from a read only directory..
Click to expand...
Click to collapse
flash installer or uninstaller through TWRP
wmcdrugs said:
flash installer or uninstaller through TWRP
Click to expand...
Click to collapse
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify any system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
djer34 said:
Root Explorer....
This app does wonders, it allows you to modify directories in /system and other root folders. You can even change permissions of specific folders/files from read/write/read-only....etc. I've had this app since the earliest of android days and it has been my go to file explorer. Root Explorer of course requires root....but it completely unlocks your phone and allows you to modify and system file that is set to any permission. Of course there are other file explorers that allow you to modify system files, but this is the one that i have the most experience with. You should be able to access the system folder where the Xposed file remains and modify it so it can fix your problem.
Click to expand...
Click to collapse
This!. I've used it for years. Not muss no fuss. It's not bloated like a certain couple others I know of. It just does what it does and does it well. Manages files. No extra garbage.Give it a try. I'd be surprised if you can't delete it with Root Explorer. If you do try it, go to the folder you want to delete the file from. Once in there, look at the top right of the screen. Somewhere up there It will say MOUNT R/W. Touch that and you should be able to do whatever you want to within that folder.
Do you have the magisk DNSCrypt module installed? If so, thats why you cant modify anything in /system. Not sure why or how it breaks it, but it does. Took me for ever to figure out what was causing it. Now that i removed the module, i can modify anything i want again.
Sent from my [device_name] using XDA-Developers Legacy app

Oxygen OS 11-, Systemizing with twrp.

A reference to ware the file system in oxygen lays for apps.
User app= /data/app (the folders for each user app are not labeled after what they are.)
System apps (in OxygenOS))=/system/product/priv-app or /system/product/app
It depends which type of system app you intend to make to app. Either directory works.
So I like viper4android and will use it as an example.
1 download this version ViPER4Android-FX_2_7_1_0.apk
2: install it as a user app. It should work now but need the rootless driver install in twrp for it 1st.
3: boot 2 twrp, mount all partitions (works better). Flash the zip, reboot to system.
4: verify the app functions add the Ulta low buffer module or what ever else need to be hooked to the app were Systemizing.
5: everything set use a app like Sdmaid to get the actual directory name that oxygenOS installed it to. Just the 1st two letters works for this to ID it in twrp (ware we won't be able to check.
6: boot to twrp. Mount all partitions. open a file manager it has. Go-to the app's directory under /data/app/... That apps directory. Open that directory and move the next directory to...
/System/product/priv-app or /app.
7: you don't have to but you can now use the file manager in twrp to verify that the app folder moved there and rename it to a better ID if you want. Also you better compare the app's permissions to another system app in that directory and match it up.
Reboot and if the directions were followed, you have systemized an app.
This works better than a systemized app, or a magisk/twrp module. Why cause twrp work is the hands-on management.
The droidware I recommend is.
Sdmaid (lookup apps given directory name.)
Orangefox (dual boot) cause I use it.
A file manager to check you work helps. Need root authority. I recommend the one I'll linkup.
In other roms and OSs the system directory for system app placement is just /system/app or prive-app.
Don't forget to mount the partitions before any working in twrp. I realized that about flashing and twrps modules running while I'm editing my system.
Sorry not adding links or apps good luck with it.
One other thing the boot animation.zip file for changing in located /system/product/media on Oxygen 11.
Ohh yeah theirs a app on play store called partitions manage. You can save any partition live while running you OS to a .omg file. If I do that after Systemizing some apps. It makese a system.img with them included. No more work to redo.
Well gonna go get beer or white pirate stuff. Lol
Mod edit: removed references to warez app.

help edit android file

Hello, I am trying to modify my cell phone "samsung galaxy s6" with android 11 "lineage 19.1 unofficial", twrp and magisk installed, the root is working, I have modified several files with a magisk module that I am doing, the file that I want to modify is "/sys /kernel/debug/sched_features" but I can't. It has permissions of 666 and it is the root owner. Is there any way to edit it? . i was thinking of editing twrp backup but i dont know how to unpack the *.win file
You have root in TWRP, so what's the problem?
twrp does not save changes
kuroro82 said:
twrp does not save changes
Click to expand...
Click to collapse
What are you doing?
I create a backup with zip I open it in notepad++ without decompressing it I edit it I give it save the 7zip it asks me if I want to update the file I put it if I put it on the cell phone and flash it I restart the cell I check the changes and nothing happens
You can change the contents of the file directly in the TWRP terminal while keeping the ownership of the file (chown) and its permissions (chmod)?
kuroro82 said:
I create a backup with zip I open it in notepad++ without decompressing it I edit it I give it save the 7zip it asks me if I want to update the file I put it if I put it on the cell phone and flash it I restart the cell I check the changes and nothing happens
Click to expand...
Click to collapse
Make sure the partition where the mentioned file should be copied onto is mounted as RW.

Categories

Resources