yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] Patrics83:
Please answer my question :)

Do you have, stock browser, FM radio, Polaris Office, Calculator Widget, etc.... After using ROM Cleaner with your ROMCleaner_user.txt?

I'm working hard to find out the reason why system apps are reappearing in your case. And everything you share/say to me is very important...

Showing a screenshot of the appdrawer is not helping that much ;)

(most of them was Google Play apps and system apps that won't be removed by ROM Cleaner...)
[One (M7) Original Android Development] Shentok:
Finally got it to work, just restored to an older backup and it worked. But now my problem is that I can't change the ROMCleaner_user.txt file. It keeps saying I don't have permission when I do. So presently I can't edit/change/delete/replace it currently. Is there a way around that or do I just have to restore from an older backup again to fix that issue?

Thank you very much for your time, it really means a lot that you're willing to help me in your spare time.
[One (M7) Original Android Development] MarckX:
Nice you got it working except for the _user.txt. For editing it, first check permissions for the file and the folder. Try set to full permission and try again.

Now, seeing you being thankful is great, but I really think Patrics83 (and his team) would be pleased if you just answered his questions. Think of this: you want (and get) help, but you don't help us trying to find the actual culprit here.

We would be grateful if you would cooperate a bit here, as that actually can contribute to this thread/community. And just that's what XDA is all about, right?
[One (M7) Original Android Development] GCbard:
just used this! It is great. I do have a question. I am not sure what scripts and mods are located in this zip. I do not want to run it in aroma before knowing what will come up next. Can someone help me on that,.

My main question is would the scripts interfere with scripts already installed through AD revolution and elemental kernel.

Thanks
[One (M7) Original Android Development] Patrics83:
1) Not really sure what you mean.

If you want to decide what to remove and not, you can edit your own ROMCleaner_user.txt (see the guide for more info.)

2) No, ROM Cleaner will only remove apps that are safe to remove.

Build.prop tweaks will not be affected by this script.

Sent from my HTC One X
[One (M7) Original Android Development] bl4ckdr4gon:
Deleting ROM Cleaner folder

Hi guys,

I just wanna ask, what do you do if you want to delete ROM Cleaner folder permanently from your phone? I tried deleting via PC but to no avail. It just reappears. I can't delete it through ES File Explorer and Root Explorer too.

I found two similar posts by searching but I think it wasn't answered properly? I'd appreciate help, thank you guys in advance. :o
[One (M7) Original Android Development] Patrics83:
Why would you want to remove that folder? ;)

Internal or external sdcard?

Sent from my HTC One X
[One (M7) Original Android Development] bl4ckdr4gon:
Internal sd.

I didn't use my phone much before so I barely noticed the difference. I just want to try running ARHD without it, and with it. Then I saw that the folder didn't actually get deleted? Why so? :confused:

And one more question, the apps it did backup, will it be safe to delete them? Or no? I'm afraid it will conflict with TB.
[One (M7) Original Android Development] Patrics83:
Not sure why you cannot remove the folder...

Do like this, enter the ROMCleaner folder and delete everything inside it then try to remove the ROMCleaner folder.

Let me know how it goes.

Sent from my HTC One X
[One (M7) Original Android Development] bl4ckdr4gon:
"Sorry, operation failed" notification comes up using ES File Explorer

I think I was able to solve the problem, deleted the folder using Aroma File Manager. After reboot so far the folder's not there anymore.

I understand I have to backup again using ROM Cleaner for next ROM flashing, yeah?

Sent from my HTC One
[One (M7) Original Android Development] Patrics83:
Yes, and once you flash the ROM Cleaner the ROMCleaner folder will be recreated. (All folders are created during the RC splash)

Yes always run Backup Tool before wiping anything and before ROM flash. Then flash your ROM and ROM Cleaner (before first boot).

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
So how do we get this to work from a complete fresh wipe if we have a custom user.txt?
[One (M7) Original Android Development] Patrics83:
Complete fresh wipe of internal sdcard?

Create a folder in /data/media/0/ROMCleaner and put your user.txt in the ROMCleaner folder, flash ROM Cleaner

If you are unsure about creating the folder then just flash the ROM Cleaner zip and exit the installer from advanced power menu. Now you will have full folder structure on your internal sdcard.

Copy your user.txt to the ROMCleaner folder and then flash ROM Cleaner (for more info, check out the guide)

Good luck! :thumbup:

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
ok, I've got ROMCleaner_user.txt in /sdcard/0/ROMCleaner but I can't figure out how to run that script now?

Edit: Oh right, if I have that txt file present in above locale then it runs instead of, for example, Sense option when I select it.
[One (M7) Original Android Development] amkivb:
Hey guys I have a problem here. I think I accidentally deleted something essential to the camera app. I ran tmobiles .11 ruu and an update came up for the camera app. I updated it and after that it wasn't working. I think I deleted some system file in root browser or in romcleaner. Help. Please and thanks.
[One (M7) Original Android Development] Patrics83:
Doesn't the camera work or doesn't the phone work?

By default ROMCleaner will not remove anything that breaks the camera as far as I know.

Do you have a backup from before the ruu?

Sent from my HTC One X
[One (M7) Original Android Development] amkivb:
No its just the camera...although I have a had problems with nova launcher where I uninstall an app play store crashes. But whenever I open the camera app the screen gets brighter then it force closes. A backup? I have a stock deodexed ROM so I could just flash that again. It wouldn't really matter because I would delete the same things with romcleaner and root browser. You can change what you want deleted in romcleaner so maybe I deleted something without realizing it or maybe I deleted something when I was in root browser. Maybe if I knew what system files the camera needs to run
[One (M7) Original Android Development] Patrics83:
Ok, well do like this. Don't remove anything that isn't described in the user.txt then check if everything works. Also it's better to add everything you want to remove to your user.txt instead of deleting stuff manually.

Good luck and please let us know how it goes! :thumbup:

Sent from my HTC One X
[One (M7) Original Android Development] amkivb:
Here's my user,txt. I don't know if there's something I might've overlooked or something important when taking things out
[One (M7) Original Android Development] ABDOKRO1:
Nice workaround my dear Patrics83, but as stated long time ago, it might prevent newcomers to try this great tool.
[One (M7) Original Android Development] WastedJoker:
I tried editing the default cleaner txt files to my preferences but the installation is aborted every time :( do I need to re-zip them a particular way?
[One (M7) Original Android Development] Patrics83:
You shouldn't touch the zip at all...

*_user.txt from download post are there for a reason ;)

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
Well I saw it as a workaround to having to push the files, that's all.
[One (M7) Original Android Development] Patrics83:
Push files?

Why are you making it harder then what it is? :)

Sent from my HTC One X
[One (M7) Original Android Development] Patrics83:
I will offer teamviewer support for only €100

Or they just create the folder manually on the internal sdcard (free)

:thumbup:;)

Edit: it's actually pretty funny... Remember the good old DesireHD days?

ROM Cleaner was nothing but a updater-script and I was spammed with status 6 questions and corrupted zips...

Then ROMCleaner_user.txt was born... And now it's hard to make a folder on the sdcard? :D

Sent from my HTC One X
[One (M7) Original Android Development] ABDOKRO1:
True. Because of HTC, phones are now smarter than us...

Anyway, thanks for the opportunity you gave me back then to participate to your project.
[One (M7) Original Android Development] WastedJoker:
Explain where I'm going wrong then.

I completely wipe my device.

I flash a new rom.

how else am I to get my user.txt file to my device other than pushing?

I just thought it would be a good idea to edit the zip then sideload it, that's all.
[One (M7) Original Android Development] bl4ckdr4gon:
Today I spent some quality time with my M7. Took it out of my DDFC to clean it, did firmware upgrade to 3.06, deleting and organizing some files on my sdcard, Updated ROM to ARHD 12.2. Earlier I tried latest GE ROM, maybe it's just me but I like the look of Sense-based ROM over that of GE - so I went back to ARHD12.2.

After which, I went on, using ROM Cleaner and choosing No-Sense option. Wow that really hit the sweet spot. This is the first time I tried this option and I must say, one of the most creative, genius ideas I've seen yet on M7.

Thanks guys!:good:
[One (M7) Original Android Development] amkivb:
I figured it out :) I accidentally deleted something in root browser but I'm not all to sure what it was :confused: I guess all I can do is be careful
[One (M7) Original Android Development] belloni:
When I go to clean it just hangs on installing?! % doesn't change..?
[One (M7) Original Android Development] bl4ckdr4gon:
Did you check if before you press "Next", did you actually choose one option? I remember before it hangs like that when I pressed Next without choosing

Sent from my HTC One
[One (M7) Original Android Development] Patrics83:
That's some really nice feedback!

Thank you sir and I'm glad you like it :thumbup::D

Ok, well it can be a bit tricky to remove stuff using root explorer or similar.

Some apps can be removed before first boot but after initial boot process all apps have built up data and other apps might relying on just that data from an app you just deleted.

Who said it was easy to debloat? At least I didn't :p

Maybe you should try with another recovery?

Also you might wanna try to re-download the zip (is it possible that you have been tampering with the zip in anyway?)

It's not possible to go through the menus without selecting anything.

If the user didn't select anything all parameters will be set to "0"

However I have heard that if you rush though the menus (next, next,next) aroma might crash/freeze.

Sent from my HTC One X
[One (M7) Original Android Development] fichl:
Hi [MENTION=2374587]Patrics83[/MENTION], i just had a look into rom cleaner cause i want to use the backup feature.

i have to say you did some really good scripts there... :good:

theres one thing i´d like to suggest if i may...

could you start the free disc space calctulator only if backup apps is checked ?

i just wanted to backup accounts and mail and wifi and my sd is pretty much full...

so the app tells me to free another 500mb which shouldt be needed for only that.

no biggie anyway... great app you created...

thanks
[One (M7) Original Android Development] WastedJoker:
Hi,

when I first ran ROMCleaner it created the path /0/Romcleaner etc and now I have no permissions to that folder - I can view the files but can't edit/delete them so now I'm locked out of making amendments to the user.txt.

I've tried changing permissions using Root Explorer but no such luck.
[One (M7) Original Android Development] migascalp:
remove Romcleaner folder from twrp revovery and recreates all folders manually
[One (M7) Original Android Development] res0prw2:
I have tried to use the restore script feature twice now, once after installing RageRom v1 and again after installing Bad Seeds' rom, both times gave me problems. The first time Sense would crash on me immediately on boot, so I had to restore a previous Nan. The second time everything looked like it had worked out perfectly and I was extremely impressed, until I opened the playstore and found out it wouldn't let me download anything.

I ran the backup script prior to wiping and then I would run the restore script after an initial bootup of the new rom. Is this the correct way, or am I missing some step?
[One (M7) Original Android Development] Patrics83:
I will look into it. If it isn't too much work then I will change the calculation parameters, else please de-bloat your sdcard :p

If it created "/0/" then you have been using wrong zip.

ROMCleaner_v1.6_cmw.zip

- use this if your recovery is based on cwm.

ROMCleaner_v1.6_twrp.zip- if you are using twrp recovery.

Hopefully I will be able to fix that when we get Sense 5 to OneX

Until then I have no idea why it doesn't work you.

Sent from my HTC One X
[One (M7) Original Android Development] Fatelord:
Does it work permanently despite the system write protection HTC implements ? or do I have to disable that somehow first through a custom kernel or something ?
[One (M7) Original Android Development] Patrics83:
Too be honest I'm not really sure. (I don't have the device myself...)

But let's say like this. If you can flash a custom ROM on your device then you can use ROM Cleaner without any problems.

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
I was using the correct version but I recently did a full wipe and it worked perfectly using TWRP - CWM has been really weird with creating odd folder structures lately so I'm sticking to TWRP!

Would you recommend we still opt to remove software in a custom rom's aroma installer then let romcleaner remove the same stuff + more or should we let the rom initially keep all standard software at first install and just rely on romcleaner to do the removing straight after?
[One (M7) Original Android Development] MarckX:
If TWRP works for you, just keep on using it :D

It makes no difference letting the rom's aroma clean the software first. As long as it's before first boot.

The only thing is ROMCleaner's logs will show you what RC cleaned up and not the total amount of cleaning. As I'm fond of statistics, I would recommend cleaning it all with RC.

Now if you use just RC for cleaning with a user.txt, the chance of mistakes will be less imo.

But as stated, it will make no difference in cleaning itself. :)
[One (M7) Original Android Development] WastedJoker:
Thanks - I did let RC do all the work and was surprised to see it removed almost 325mb of stuff!
[One (M7) Original Android Development] WastedJoker:
nvm
[One (M7) Original Android Development] WastedJoker:
I'm again suffering issue with the contents of the ROMCleaner folder being unchangeable.

I'm trying to amend the user.txt entry but I can't overwrite or delete the file via device or on pc when plugged in.

Prior to flashing update of rom then applying ROMCleaner I was able to put user.txt into thr ROMCleaner without a problem. I can't even repair permissions.

What's going on?

I'm using appropriate version for my recovery on Trickdroid 9.
[One (M7) Original Android Development] Patrics83:
Mtp devices won't allow editing of files located on the sdcard.

Only delete/overwrite/copy/read.

To edit the txt, copy it to your pc then make your edits. When done move it back to the sdcard again.

What's strange is the permissions you have on the folders...

Is it the same for all other folders on your sdcard?

And one more thing, you cannot change permissions on your sdcard.

Also I would like to know if everyone has this issue...

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
That's the thing - if I delete the user.txt file from sdcard on pc, it disappears but then I can't copy anything to sdcard. It says disk is full. I disconnect device and go to folder on device and the user.txt file is still there.

I just did a quick check of perms and other files on sdcard have the same perms as user.txt. I can delete those other files but not user.txt.

Is it an ownership issue?

---------- Post added at 02:23 PM ---------- Previous post was at 02:19 PM ----------

Hmmm.

Just installed different explorer and when I try to delete file it says "Permission denied. Root needed".

I am rooted though! All my root apps are fine, I can access root folder and I've got superuser installed.

---------- Post added at 02:34 PM ---------- Previous post was at 02:23 PM ----------

Well I was able to delete user.txt in TWRP file manager but now I can't copy new user.txt to the folder via Root Explorer or even create a new file within /sdcard/ROMCleaner.

This is weird. I'm only getting these issues within the ROMCleaner directory but why could TWRP delete the file but nothing else can? What's strange is that before I flashed ROMCleaner after updating my ROM I downloaded my version of user.txt from gmail and copied it to /sdcard/ROMCleaner without a problem.

So it seems this issue only happened AFTER I did a clean.

Can TWRP own a directory so that only it can make changes?
[One (M7) Original Android Development] donmarkoni:
Hi Patrics83, hi WastedJoker!

Sorry in advance, if this has nothing to do with problem you're having, cause I read your posts with half my brain, other half is doing business. ;)

I had problems with permissions since I moved from 4.1.2 to 4.2.2, so I made a simple script to execute at boot.

#!/system/bin/sh
#donmarkoni's permissions fix

sleep 20

chmod -R 777 /data/media

If I understood it right, problem was that directories media and 0 had bad permissions (no adequate permissions), so everything inside inherited those.

Copy code, or download attachment and remove extension.

Sorry again if I'm being stupid. :silly:
[One (M7) Original Android Development] Patrics83:
Thanks!

That might explain why his permissions on folders and files are weird...

If that's the case I can add this permission fix to additional scripts menu.

Side note: ROM Cleaner never change any permissions except for /system/app and /data/app if the user have chosen to restore or install from sdcard.

Sent from my HTC One X
[One (M7) Original Android Development] WastedJoker:
Does the script only need to run once?

And how do I make my device run the script? Edit: I'm googling how to do it

Edit2: ok, saved attachment to init.d folder and rebooting

Also, I've completely wiped device a whole bunch of times after moving to 4.2.2....and given rOMCleaner folder 777 perms in twrp to no effect....

---------- Post added at 04:37 PM ---------- Previous post was at 04:26 PM ----------

Stuck at HTC logo when booting for a few minutes now :(

---------- Post added at 04:44 PM ---------- Previous post was at 04:37 PM ----------

ok, I forced it to shutdown and booted again and it booted up.

I can now write/read del the romcleaner folder! Bit weird that only that folder had the issue though?
[One (M7) Original Android Development] donmarkoni:
Yeah, I had some weird behavior, that's the best description. Please, do use it.

Don't worry, would never blame ROM Cleaner, I always blame myself first for glitches, then look further.

I never even used your great tool, to my shame, :o but don't hold it against me, I just like doing that manually.

Nonetheless, I respect and follow your work and learn from your and others experiences.

Great, you found your way on your own. Respect. :)

It needs to be run on every boot. Permissions change for media and 0 directories at every boot, I don't know why, and obviously it's not a common issue, as I never seen anyone with it.

In time you would notice weird behavior on other stuff. I guess it also depends on level of access some application have, so not all will have problems. Someone correct me if I'm wrong.

Cheers guys! :)
[One (M7) Original Android Development] WastedJoker:
As a test I removed the script from init.d and rebooted - I still have full acess to romcleaner to delete etc.

Weird.

I'm gonna do a full wipe flash tonight and use romcleaner (with my new edition of user.txt) so I'll be interested to see if it happens again!

I wasn't aware of perm issues going from 4.1.2 to 4.2.2 although I did have huge issues with CWM being weird with the scard paths.
[One (M7) Original Android Development] donmarkoni:
Really weird... :eek: Hmm... I'll try that now... No, mine media and 0 don't stay 777, they get 770.

Oh yeah, check permissions on newly created files, or edited ones. Mine always get 600.

Full wipe didn't help, at least in my case, did a few since then. Internal SD reformat might, but I'm reluctant, or maybe just lazy, as my fix fixes the problem. ;)
[One (M7) Original Android Development] WastedJoker:
Newly created files for me, after removing your script and booting, show as rw-rw-r-- which is 664, I think

anyway, this isn't the thread for this type of discussion as we seem to have ascertained ROMCleaner is at fault considering what you've highlighted.

Edit: Found this thread: http://xdaforums.com/showthread.php?t=2239421 - it contains a flashable zip which repairs permissions on internal sdcards that use data/media path. The deve states:

I used adb push to put my romcleaner_user.txt onto my device after doing full wipe install of new rom. That must be the source of my permissions issue!?
[One (M7) Original Android Development] donmarkoni:
I never implied it's ROM Cleaner's fault. :( I even explicitly stated otherwise.

Never mind, I'm glad you sorted it out, let's drop the subject.

Cheers!
[One (M7) Original Android Development] WastedJoker:
oops, didn't mean to imply that :)
[One (M7) Original Android Development] Sloth:
Hi mate,

I just used v1.7-TWRP for the first time :D

It did not restore my home screens like it usually does( very disappointing :( )

I did a log collection before finishing but cannot find the .tar there is nothing in the Logs folder the only thing I have close is ROM_Cleaner_v1.7_TWRP.zip.log on my sdcard

This is the first time I have had issues with RC :(
[One (M7) Original Android Development] amathophobia:
Nevermind. Figured it out.
[One (M7) Original Android Development] keikun007:
hey patrick, do you know if any of your scripts will work in a Nexus 4? i used it in my One X and was awesome, i would like to clean my N4 with this tool as well

kind regards
[One (M7) Original Android Development] Patrics83:
Only one way to find out :p

Give it a try and let me know the results. If it fails I will help you get it right ;)

If possible make a log collection. And if you are ensure about which version you should pick, just reboot your device into recovery and "adb pull /tmp/recovery.log" then upload the log here or send it to me via PM.

Good luck! :thumbup:

Sent from my HTC One X
[One (M7) Original Android Development] s_o_r_e_n:
I have a small problem, I'm trying to use rom cleaner, but it always reboots just after it starts cleaning. And no apps are removed. I tried all options (Sense, No-Sense) and it doesn't remove anything.
[One (M7) Original Android Development] Patrics83:
What recovery are you using?

And just to be sure, do you have a HTC One?

Sent from my HTC One X
[One (M7) Original Android Development] s_o_r_e_n:
I'm using latest CWM and as I know I have the HTC One;P

----------------------

OK, just reflashed ROM and used RomCleaner just after flashing and it worked,
[One (M7) Original Android Development] Patrics83:
I asked about the device because I checked your post history (mostly S3 threads) ;) so I just wanted to make sure that you have been using the correct version.

You could always try Philz touch (cwm based recovery)

Sent from my HTC One X
[One (M7) Original Android Development] keikun007:
fair enough. do you recommend any specific version/release?

will try asap
[One (M7) Original Android Development] res0prw2:
Non-HTC devices?

Any chance on a Samsung port? I recently switched carriers and had to leave my HTC One for the S4, but I really enjoyed using this during my flashaholic fits.