yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] chesebrgr:
I use my phone to back up, view and sort photos from my camera when travelling. This means I have a lot of files on my phone. There are .jpg files in one folder, and .cr3 files in another folder. Both folders have the same file names, only the extensions are different. There can be 1,000 or more files in each folder.

For example:​

Folder JPG contains files img00001.jpg, img00002.jpg, ... all the way up to img01000.jpg​

Folder CR3 contains files img00001.cr3, img00002.cr3, ... all the way up to img01000.cr3​

Each evening I go through the .jpgs, deleting the bad photos (maybe around 50% of them).

So now I have:​

Folder JPG contains files img00001.jpg, img00005.jpg, ... approx 500 more .jpg files​

Folder CR3 still contains files img00001.cr3, img00002.cr3, ... all the way up to img01000.cr3​

What I need, is a way to delete all of the .cr3 files which no longer have a corresponding .jpg file. Or alternatively, copy the .cr3 files which do still have a corresponding .jpg to a new folder and delete the original CR3 folder. Is there a file manager app, or any other method, of doing this? It needs to be automatable since there are so many files, I can't delete the .cr3's manually. And it needs to be repeatable every day in the field (without connecting to a PC or anything like that).
[General Questions and Answers] TheMystic:
I'm not aware of any app that can look up filenames in one folder, and delete files from another folder if the filenames don't exist.

You can move all files from one folder into the other, sort them by filename and then choose files that don't have pairs, and delete them (send them to recycle bin). The process will be tough initially, but when done on a daily basis, it should be manageable.
[General Questions and Answers] chesebrgr:
Thanks for the suggestion - but I normally take at least 1000 photos every day, and delete around 500 of them each evening. So unfortunately a manual method like that is definitely not going to be practical. My eyes would go crazy looking at all those numbers and checking if each one has a pair, 500 times, every evening for 2 weeks!
[General Questions and Answers] chesebrgr:
Thanks for this. So now I've got 2 batch files. How do I execute these on my Android phone in the field when it's not connected to the Windows computer?
[General Questions and Answers] TheMystic:
1000 photos everyday is indeed a very large number. I couldn't find a way to get this done on a mobile phone without manual work. If it was a Windows PC, I could suggest some workarounds, but you have ruled that out.
[General Questions and Answers] TheMystic:
There are no duplicates here. Rather, files with duplicate names (but different extensions) need to be retained in this case, and not deleted.
[General Questions and Answers] chesebrgr:
OP's requirements are that the phone can do it while not connected to a PC. If you can help with that part, I'm sure I can fix the batch files.
[General Questions and Answers] TheMystic:
I may have found a workaround for your requirement, and it should reduce your workload by a significant extent.

For this, you'll need a file manager that supports bulk renaming of file extension. I will use MiXplorer for this purpose:

1. Delete all files you don't need using MiXplorer (Image filter). Make sure to send them to recycle bin and not delete them permanently. Let's assume you have deleted 400 files and retained 600 files from your jpg folder.

2. Copy all files from the recycle bin (400 of them in this example) to a new folder, let's call it 'TEST'. Select all files (using Select All button) in the TEST folder and choose rename option. Now choose the extension button and type cr3 and click OK. This will change the extension of all jpg files to cr3.

3. Select all files in the TEST folder and copy them to the cr3 folder. You'll be asked if you want to overwrite files with the same names. Choose YES. This will replace the RAW versions of files you don't need with their corresponding jpg version.

4. Sort the files by size. I'm assuming your RAW files will be much larger in size compared to the jpg counterparts. Once sorted by size, you can quickly choose all the jpg files (whose extension were changed) and delete them. You can now delete the TEST folder and empty the recycle bin.

If this was Windows, step 4 would be unnecessary because Windows will autoselect all files that were replaced. You can just delete them in one go.

In case size is not a reliable criteria, use a duplicate cleaner app like SD Maid to delete duplicate files from the cr3 folder.

Hope this helps reduce your workload significantly.
[General Questions and Answers] xXx yYy:
@TheMystic

IMO the only reliable method to find out whether a file is a duplicate of another one is to compare the hash code of the files: the hash code is a unique identifier for the file's contents, and it is generated by a mathematical algorithm that takes into account the order of the bytes in the file. The file name is simply a human-readable identifier for the file, and it does not affect the hash code.

In other words, two files with the same contents will have the same hash code, regardless of what their filenames are.
[General Questions and Answers] TheMystic:
This is not what we are trying to do here.

MiXplorer (or any other file manager on Android) allows you to overwrite files if they have the same names, even if they are completely different files.
[General Questions and Answers] chesebrgr:
Wow... thanks so much for this! Yes even the smallest CR3 is at least 4x bigger than the largest JPG, so safe to use the ordering by size. It's a bit fiddly, but I've given it a go and it works, and I'm sure I'll get used to it with practice. It's a LOT less work than any other method I have so far. (y)(y)(y)
[General Questions and Answers] chesebrgr:
Thanks so much for this!

A script will probably be much easier to use in the long run so I will definitely give it a go when I have more time to get it all up and running. :cool:
[General Questions and Answers] TheMystic:
Glad that you found it helpful.

MiXplorer also has a search feature that allows you to filter files based on several criteria, including file size. You can use that to filter all files from your current folder (cr3) that are smaller than a value you specify. You can then select all and delete them in one go, without having to manually select a very large number of files, even if they are all sorted together.
[General Questions and Answers] runs:
foldersync can do that ,x-plore also
[General Questions and Answers] xXx yYy:
IMO FolderSync does not automatically delete file duplicates - regarding their filename.

The problem here is, that CR3 files ( CR3 files are a RAW image file format developed by Canon) stored in one directory got compressed to JPEG files stored in another directory and now the source CR3 files should get (automatically?) deleted, this because CR3 files are typically larger than JPEG files - CR3 files can be up to twice the size of JPEG files.
[General Questions and Answers] TheMystic:
Can you elaborate how?
[General Questions and Answers] runs:
copy the .cr3 files which do still have a corresponding .jpg to a new folder and delete the original CR3 folder.
[General Questions and Answers] chesebrgr:
To clarify, I don't want to delete duplicates. Exactly the opposite, in fact. I want to delete .cr3 files which DO NOT have a .jpg with the same name.

How do I do that?
[General Questions and Answers] xXx yYy:
Wondering why you still are posting here because you already marked this thread is solved.
[General Questions and Answers] chesebrgr:
Apologies if I've broken some forum etiquette there, but I'm replying to your posts which were also made after I marked it as solved, so... ;)

The solution that I marked does achieve what I need but it's quite complex and convoluted, and therefore a high chance of human error when following the procedure. If anyone can think of a simpler, easier way of doing it then it would be really appreciated.
[General Questions and Answers] TheMystic:
Marking a post as solved does not mean there can be no further discussion.

I'm quite surprised you're saying this. The only time consuming part is going through your photos and deleting the ones you don't need. This part has to be done by you anyway.

Once you have deleted the files you don't need, the rest of the process when this workaround starts should take just a couple of minutes to do, no matter how many files there are to delete, and there is very little chance of human error. Did you read my comment #16?

Where is the scope for human error? What is so complex or convoluted about it?
[General Questions and Answers] chesebrgr:
I mean it's quite fiddly procedure with multiple steps, if I get one of them wrong then it could mess it up. For example my partner deletes some of the JPGs with a different image viewer, or I accidentally don't send them to the recycle bin, or get half-way through day 1's pics then start day 2's, etc.

Definitely grateful you came up with the method, it's 100% better than what I had before, which was no way of doing it at all! :)
[General Questions and Answers] xXx yYy:
IMO using an Android bash script is the simplest way to achieve your goal: it takes no longer than some minutes to get 1000 images compared and / or deleted. What else are computers like android devices for?
[General Questions and Answers] billa:
I manage my files by inserting the SDcard from the phone into a PC card reader, and using a program called ZTree in Windows. I can specify files by name range like img00001.jpg to img01000.jpg, extensions .jpg or .cr3, or by date range like 2024-01-01 to 2024-01-15, or any combination of all those specs. It's extremely flexible and quick to work with a large number of files. The only downside is that it only works with a removable SDcard, currently ZTree won't work over ADB.

You could try an ADB file manager in Windows called Total Commander which I believe has similar functions and file specs as ZTree.
[Google Camera Mods] gmjh:
Hi. I installed Gcam 8.1 on my Moto 5g stylus 2021 (that was the version chosen by the Gcamator app) and most of the functions work very well apart from one aspect which is baffling me. When using night mode and keeping the phone rock steady in a stand or tripod the camera makes a shutter noise but never takes a picture. If I handhold the phone in night mode then the photo is taken. It's like it has to be aware of movement before it'll take a photo. Any thoughts about this or why it happens? Thanks very much.
[Google Camera Mods] gmjh:
Well. I guess I'll never know.
[Huawei P20 Questions & Answers] mrlombo:
Following problem:

P20 EML-L29

tried official upgrade with HiSuite: only an update to newer 8 version showed up

I updated and after this the phone could not start anymore: after the starting HUAWEI splash screen the first letters H, U are showing and the starting melody abruptly ends

after this Huawei eRecovery is showing up

"Download latest version and recovery" ends in "getting package info failed"

I have not done yet "Wipe data/factory reset" because I want to rescue the photos on the phone (I have no backup!)

What I have tried already:

HiSuite Proxy with official HiSuite and various Packages from https://professorjtj.github.io/v2/

according: https://github.com/ProfessorJTJ/HISuite-Proxy/wiki/System-Recovery-Rom-Instruction-(-Soft-Bricked-)

HiSuite is making the recovery in Fastboot as expected

But after finishing the boot problem still exist :-( don't matter which packages I use

Questions:

Are there some other possibilites to rescue the photos on this phone?

I have heard about TWRP but do not know how it works exactly, do you have an URL with explanation?

I have heard about dload and stock roms, but also not sure how it works and where get them?

Also heard that after "Wipe data/factory reset" there could be a small possibillity to rescue the photes with a dedicated tool like Wondershare Recoverit - do you think it could work?
[Huawei P20 Questions & Answers] parrots_:
In short, TWRP is just a custom recovery for flashing custom ROMs. You could recover the data via TWRP via making a backup. Since you're able to enter fastboot, it should work, assuming the device is BL unlocked.

[Recovery][P20][Unofficial]TWRP 3.2.1-0 [16/04/2018]

Disclaimer This software comes with no warranty,XDA staff ,myself or TeamWin stuff can't be hold responsible for any damage it may cause to your device. Note: Currently Oreo 8.1 custom roms are not supported,only stock EMUI 8.x . Download and...

xdaforums.com

You're better off trying a custom recovery than trying to use Wondershare tools. 99% of their features are locked behind a pay wall.
[Huawei P20 Questions & Answers] mrlombo:
Thanx!

I will try it.
[Huawei P20 Questions & Answers] parrots_:
Did you have the bootloader unlocked before?
[Huawei P20 Questions & Answers] mrlombo:
I have tried the following:

fastboot flash recovery_ramdisk twrp_p20_0.1.img
Warning: skip copying recovery_ramdisk image avb footer (recovery_ramdisk partition size: 0, recovery_ramdisk image size: 24107008).
Sending 'recovery_ramdisk' (23542 KB) OKAY [ 0.746s]
Writing 'recovery_ramdisk' FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

thus it failed...

How can I recognize if the bootloader is unlocked?

(And if not unlocked, how to unlock the bootloader?)
[Huawei P20 Questions & Answers] parrots_:
Might be because the bootloader isn't unlocked. Try running 'fastboot oem device-info' to see if it is.

You could also try 'fastboot oem unlock' and see if that does anything.
[Huawei P20 Questions & Answers] mrlombo:
[]$ fastboot oem device-info
FAILED (remote: 'Command not allowed')
fastboot: error: Command failed
[]$ fastboot oem unlock
(bootloader) Necessary to unlock FRP!
(bootloader) Navigate to Developer options, and enable "OEM unlock"!
FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

[]$ fastboot devices -l
U*********1 usb:1-4
[]$ fastboot getvar all
getvar:all FAILED (remote: 'Command not allowed')
Finished. Total time: 0.005s
[]$ fastboot oem oeminforead-CUSTOM_VERSION
FAILED (remote: 'The reason of failed input oem_nv_item error!')
fastboot: error: Command failed
[]$ fastboot getvar vendorcountry
vendorcountry: hw/eu
Finished. Total time: 0.002s
[]$ fastboot oem get-product-model
(bootloader) EML-L29
OKAY [ 0.002s]
Finished. Total time: 0.002s
[]$ fastboot oem get-build-number
(bootloader) :Chipset-boston 8.1.0.001(01JA)
OKAY [ 0.002s]
Finished. Total time: 0.002s
[]$ fastboot flashing get_unlock_ability
FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

Things looks black?
[Huawei P20 Questions & Answers] parrots_:
It's fixable, but data recovery seems black. No backups to the cloud or anything?

As to unlock the bootloader, do you have a MI account associated with the phone?
[Huawei P20 Questions & Answers] mrlombo:
I have done backup manually from time to time and the last time is too long ago :-(

I have no MI account associated with the phone.

MI = Xiaomi? Why? It is a Huawei phone...

And what about USB OTG? Could this help to unlock the bootloader, or recover the photos?
[Huawei P20 Questions & Answers] parrots_:
Try 'fastboot boot (twrp file name).img'

You might have a shot with that. If not, your best shot is trying to recover from EDL. However, you'll need more files, and possibly opening up your phone.

Try seeing if 'fastboot oem edl' does anything.
[Huawei P20 Questions & Answers] mrlombo:
[]$ fastboot boot twrp_p20_0.1.img
Sending 'boot.img' (23542 KB) OKAY [ 0.743s]
Booting FAILED (remote: 'Command not allowed')
fastboot: error: Command failed
[]$ fastboot oem edl
FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

it seems that my only happy shots will be today at night of New Year's Eve ;-)

How does "recover from EDL" work?
[Huawei P20 Questions & Answers] parrots_:
Found a link that explains better than I could.

Recovering data from Mi 4c able to get only to fastboot

my phone has fallen and it cannot boot. The only accessible thing is fastboot, but even there I cannot flash TWRP. When I try to flash TWRP 3.1.1 or 3.1.0 I get: >fastboot.exe flash recovery twr...

android.stackexchange.com

Additionally, as for fastboot commands not working, are you sure you're on the latest version?
[Huawei P20 Questions & Answers] mrlombo:
As I understood, EDL is not for P20 since:

I updated fastboot from version 34.04 to 34.0.5 but the results of fastboot commands did not changed.
[Huawei P20 Questions & Answers] parrots_:
Sorry for the late response, some stuff came up.

As far as I can tell, I don't think there's much of a chance of recovering data. As to fix it, I believe there are some methods to bypass the locked bootloader.

I'll try to see if I can dig up some information.
[Huawei P20 Questions & Answers] mrlombo:
I'm thinking about using DC-Unlocker

to unlock the bootloader
[OnePlus 10R / Ace] Wesley_NL:
hello guys i have a question, i have a one plus 8T Cyberpunk KB2000 (CN), it came with hydrogen os,

somehow i have a global rom on it and didn't lost my cyberpunk stuff ,

i beleve when using global rom the cyberpunk stuff got disabled,

i don't remeber how i changed to global rom or that update did changed to oxygen os,

anyways that aside

i bought a new one plus ace a PGP110 Hu Tao Edition, but i want to flash to global rom,

will i lose hu tao stuff if i attempt to flash global rom ?

if not can someone please guide me through it ?

i beleve i used some tool called

Msm Download Tool V4.0 that time but i cant figure out how to anymore
[Google Pixel Fold] Newrooter22:
I wondering if anyone has/could advise on if there are any good phone cradles for the pixel fold yet ? I am looking to get one that'll allow me to have the phone unfolded, cheers in advance 👍
[Google Pixel Fold] Haizum74:
I have and use this and it's been great. Sturdy and well made. You can get various versions offering different mounts but this for the CD works spot on.
[Google Pixel Fold] sawdoctor:
I bought this when i had my zfold3 but works just as well with the pixel fold

Lopnord Z Fold 5 Car Mount, Wireless Car Charger Mount Compatible with Samsung Galaxy Z Fold 5 4 3/S23 Ultra/S22, Wireless Charger for Air Vent/Dashboard Car Phone Holder for iPhone 15 14 Pro Max Plus https://amzn.eu/d/j3PVAci
[Samsung Galaxy S10 Questions & Answers] DocMAX:
Anyone succeeded in installing KernelSU on S10?

I compiled LineageOS 20 with KernelSU with instructions from https://kernelsu.org/guide/how-to-integrate-for-non-gki.html.

After boot the KernelSU App shows it's "working", but superuser settings will not work.

Also i get errors in dmesg:

View attachment 6049379
[Samsung Galaxy S10 Questions & Answers] Ravindu_Deshan:
[Kernel] KernelSU and Ramdisk Support for Galaxy S10 5G Korean Variant.

The major problem with S10 series is it don't have a Ramdisk, So root is gone after reboot, twrp not working after rooting via magisk etc. So, I built KSU and used it for months.. The major problem with KSU is it don't have a R/W support for...

xdaforums.com
[Samsung Galaxy S10 Questions & Answers] DocMAX:
Just found a MUCH easier way: Just download the release zip from https://github.com/awakened1712/android_kernel_samsung_exynos9820. Et voila it works with LineageOS 20! :-)
[Samsung Galaxy S10 Questions & Answers] Cosbot_:
Can you please make a step by step guide? I am using beyond0, s10e. Thanks
[OnePlus 7 Pro Questions & Answers] pratham200209@gmail.com:
I have been away from custom rom community for like 4-5 years now , but my mom's op7pro is giving her alot of issues so I wanted to ask you guys about the best ROM that will be the most stable and everything will working banking apps are must no apps crash good battery life and voice calls . Close to stock experience as she's long time stock android user. She's currently using oxygen os but oneplus have made op7pro software so laggy and bad . I also need the best way to backup her data including whatsapp and images and restore them again on the phone its close to 180gb of data. So please give me directions and save me some research here as I don't have time to do all the research . What I heard is TWRP is still there but magisk is dead apparently I dont know when I was moding magisk was the new kid in the town.
[OnePlus 7 Pro Questions & Answers] harshparmar:
i always recommend clean flash. first we need to backup data, i assume currently the phone is bootloader locked (if it's unlocked, then root and use swift backup or neo backup).

if you have good internet speed and data then upload whatsapp chat+media to whatsapp backup (google drive), and restore later. or make local backup of whatsapp data, copy to safer place and restore later. also try google one backup. manually copy other important data to external media like usb, laptop or other phone and restore later.

follow rom installation instructions. you need to use msm tool, then go to oos11 because most roms are based on that.

for stability, working banking apps and close to stock android, use yaap, aopsa or project ice. i recommend aospa.

if somehow some banking app(s) doesn't work then root using ksu (not magisk) and use hiding modules. you don't need twrp and magisk.
[General Questions and Answers] Nitrox92:
Hi, forgive me I'm new to this stuff and don't know all the terminology and such. I just got a picassotab X as a gift, however the only bad part is it was android 10 and some of the art apps I like require 12+. Luckily, simbans provides the os firmware upgrades on their website and Android 12 seemed compatible. Now fast forward to being an idiot and failing to do this, I used the "format all+download" option of the sp flash tool, this apparently does not simply remove the old info and replace with the new info, and subsequently bricked the device.

Since then I have installed all mediatek drives both vcom and cdc. Now for the device, when initially plugging it in, it's comes up as being unrecognized, but after I press the volume up and power button, it becomes "Reloader USB vcom (android) (com7)" which to my inexperienced self means that perhaps the reloader is intact. I have been trying to get the flash tool to down the os back on it but I hit several error types.

The most recent error is "PMT changed for the rom; it must be downloaded. Please select "Format all + download" scene and try again"

(this of course gives me huge anxiety to try again)

The chip is MT8168, the scatter matches, if i try firmware update instead of download, it seems to be sitting on read back 20% for quite awhile. Then getting "ERROR: STATUS_READ_DATA_EXCEPTION (0xC0050007)"

I'm really at a loss
[General Questions and Answers] mvikrant97:
Use mtk client tool to flash the firmare on the device.
[General Questions and Answers] Nitrox92:
So after alot of finangling, I figured out that the android 12 firmware update, was mislabeled and did not actually match the MT8168 according to the program, so, figuring I couldn't brick it more than it was already, I took the android 10 firmware again and ran format + download, and then let it charge for awhile, and now it is reset to how it was when I first opened it, so I guess I'll just forget about updating it and avoid this all again
[Kindle Fire General] Woolium:
This is a place to place all of the fire max 11 news so far, just post it in this thread

Custom Roms,

Linux,

all of that good stuff.
[Introductions] Sn0Ow:
Im new here!

I've been modding stuff since i was a kid with alternate results

Just came since i ****ed up my zenfone :D