yashsingh1/xdaforums huggingface dataset:
[G2 Themes and Apps] Diechel:
After you press the flash confirmation box, the app creates an file called 'openrecoveryscript' in the folder /cache/recovery/.

When created it verifies if the file is present.

So its just a check of the app to make sure the file exists.
[G2 Themes and Apps] TMG1961:
oh ok, i havent flashed kernel yet so there cant be a file. Will check if its there after flashing kernel

---------- Post added at 11:35 AM ---------- Previous post was at 10:46 AM ----------

I have flashed the 3.2 kernel but i cant find the 'openrecoveryscript' file anywere. Is it deleted after the reboot?

In the folder dorimanXOTA/cache i have only boot.md5 and webcache.txt

In the folder cache/recovery only the folder last_log
[G2 Themes and Apps] bender_007:
Yap. It has to be deleted. Imagine what would happen the next time you enter twrp :)

Poslano sa mog LG-D802 koristeći Tapatalk
[G2 Themes and Apps] TMG1961:
thanks for your answer
[G2 Themes and Apps] Brahialis:
Something wrong with changelog. Ota version 2.91.
[G2 Themes and Apps] Diechel:
Thank you, will check
[G2 Themes and Apps] akaloith:
Md5 error. Updated busybox. Is that ok or doing something wrong
[G2 Themes and Apps] Diechel:
Kernel 3.5 has problems with Busybox

Install 3.5.1 manually through recovery
[G2 Themes and Apps] Diechel:
Because the text Kernel 3.4 is also in the Linux version it will take that one with regex.....

Will only happen with 3.4, will see if I can fix the regex. For now it's not critical.
[G2 Themes and Apps] Mystique:
Hello sir,

Great app.. One question..

VS980..

How do you get the no knock code version?

Is it possible?

Thanks in advance.
[G2 Themes and Apps] Diechel:
When it's available it should be shown in list.

I get the data from the server as json format.
[G2 Themes and Apps] MilanStojkovic:
Just an observation. Gsam shows this app right below the kernel and os in the length of keeping the device awake. 3min in half a day. That's a lot if you ask me. Maybe it can be optimized or something, I doubt it needs to keep the phone awake for that long. And I wasn't even using it recently, at least not after reboot.
[G2 Themes and Apps] Diechel:
I think that's because of Tasker, it has some wakelocks.

Can do anything for that. You can check the logs of the app if it gets disabled or if you want to fix the wakelocks Greenify it.
[G2 Themes and Apps] runekock:
Hi Diechel

Thanks for this great tool.

As you know, recently some Dorimanx users have lost their IMEI. That hasn't happened to me, but some other strange occurrence did happen: after flashing a kernel with the OTA app, I lost my pull-down toggles. They came back when I wiped cache and dalvik.

That got me thinking that perhaps there is some problem with the OTA flash? Like maybe it doesn't sync the cache partition after writing after the flash?

Anyway, if you would share the openrecoveryscript that you use, I would like to take a look, and see if anything seems wrong to me (not that I'm an expert in these things, but still I might stumble over something).
[G2 Themes and Apps] Diechel:
Hi, the openrecoveryscript only contains the rule:

install /sdcard/.........zip

That's all. Before rebooting i run the command 'sync' two times as dorimanx advised that.
[G2 Themes and Apps] runekock:
OK, in that case there isn't any way that this can be a bug in the OTA app. Thanks for enlightening me!

I still suspect that there may be a problem with the sync, but it will have to be a kernel or recovery bug, if anything.
[G2 Themes and Apps] merlin21:
When i try to flash a new version via app i see a shortly red failed word and the phone reboots without installed new kernel.

This is since i use LP rom.

Installing manually works still perfect, but why?

In OTA Folder no log file appear with this error.

Any help?
[G2 Themes and Apps] Diechel:
Red word has been mentioned earlier and I also have it as other users also. Has to do with mtp mount failing if iam right.

Can you take a log with DorimanX OTA app. You need to enable logging in settings before. Log file will be in the ota folder on the sdcard.
[G2 Themes and Apps] merlin21:
Bitteschön - here you go:

http://wikisend.com/download/
244292/DorimanXOTA_log.txt.zip

But for me nothing to see there
[G2 Themes and Apps] Diechel:
We are sorry, but the requested file doesn't exist or has expired and is no longer available.
[G2 Themes and Apps] merlin21:
[APP][ROOT][KK][LP] DorimanX OTA V2.91 (21-06-2015)

Please try again, for me download works

http://wikisend.com/download/244292/DorimanXOTA_log.txt.zip
[G2 Themes and Apps] Diechel:
Log looks good

Try updating twrp, maybe that works
[G2 Themes and Apps] merlin21:
With blastagators 2.8.7.1 twrp it works again - thanks
[G2 Themes and Apps] merlin21:
Now by trying flash 4.5 i get:

"Recovery folder not existing, creating" and nothing more is happening?!

File was downloaded and matches the md5 but can't flash.
[G2 Themes and Apps] 1stichiban:
Worked fine on D802. I'm using Philz recovery although the OP states TWRP :) maybe my lucky day. Updating to latest kernel will now be a lot easier. Thanks for your development :thumbup:
[G2 Themes and Apps] oTeMpLo:
Latest kernel change log could be parsed and displayed too! Than would be very usefull!
[G2 Themes and Apps] Diechel:
Sorry mate with this little information i can't fix it for you .

What i need are logs from my app, you can get them by enabling logging in settings.

Then you need to restart or force close the app.

After you have taken logs you can save them to a file with the button.

Waiting for it.

What [MENTION=1952778]siggey[/MENTION] said, not needed

Thanks will edit OP and play store

First thing, its already in my TODO list

TODO:
- Download progressbar (if possible)
- Changelog (if possible)
- Better error handling
- UI layout when rotating, or turn off rotating

Second thing i dont know where to parse from. When i need to load a huge web page my app will be incredibly slow.

If you have ideas i would love to hear them.
[G2 Themes and Apps] bender_007:
Besides OTA it should also download and install the latest one if it doesn't detect dori kernel, in case someone wants it. (just a suggestion)
[G2 Themes and Apps] Wimmme:
Needed this too when coming from bruce's kernel.
[G2 Themes and Apps] Diechel:
Thought about this and think I will remove the check and build something else.

Need some time to think about it

Thanks
[G2 Themes and Apps] bender_007:
Based on variant info and user input:"are you currently using a rom with knock code support?" yes/no .
[G2 Themes and Apps] dorimanx:
One more check.

If kernel file size is smaller than 9mb do not download and show that kernel is in upload right now.

So people will not rush to install not fully uploaded kernel.

Also before rebooting to recovery please run sync command x2 times to flush all ram to disk so we will not loose data if journal was not updated in same sec...

Sent from my LG-D802
[G2 Themes and Apps] :
Flashed 7.2 to my d802 no problem. Great work! Changelog would be very cool addition. Look forward to watching this develop. [emoji106]
[G2 Themes and Apps] Diechel:
Wow [MENTION=2376110]dorimanx[/MENTION] many thanks for your donation.
[G2 Themes and Apps] Diechel:
This is implemented already, when detected LS/VS980 it will give an option no knock code in settings

Not tested fully but test it today

Will search how the sync command works and see if i can regex the online kernel size out of it

EDIT:

Another thought i think it cannot go wrong with downloading/uploading

- New update available

- User downloading through app

- Download finished

- App will check local md5 and online md5 afterward.

- Online MD5 changed because of uploading so flashing not possible in app

Need to implement webcache update after download to ensure to have new data

Let me know what you think

EDIT

For sync command just run

Run shell(sync)

2x

right ?
[G2 Themes and Apps] dorimanx:
Happy to support you, and asking other to show how much they love your work.

it's FREE but i am sure you have worked many hours to make it as is :)
[G2 Themes and Apps] dorimanx:
Good that app do this check with MD5 :)

And yes, it's just run sync, it's simple adb command as ls or free :)
[G2 Themes and Apps] Diechel:
Thank you, yes many days in time

Is the 'Online MD5' calculated when page is loading? so if you are uploading is the MD5 then contantly changing.

If yes, then i think i dont implement the online file size check for now. Maybe later

Sync implemented in next version, you can see next version changelog in the OP
[G2 Themes and Apps] KJW979:
file:///storage/emulated/0/DorimanXOTA/DorimanXOTA_log.txt

Here is my log from VS980. For some reason had hard time posting from phone, hopefully shows why not working for me.

Edit:still not working will try later.
[G2 Themes and Apps] dorimanx:
well if you check the page, it's auto create new MD5 if file in storage is changed.

so yes, it's do change MD5 during upload if page browsed by any type of browser...

when i am uploading and someone just pushing F5 on page, he see new MD5 every sec.
[G2 Themes and Apps] Tinchoska:
About this was my post of showing file size.... I've not explain well lol

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Themes and Apps] Diechel:
Oké now it's clear, so the MD5 check alone should be good, I will give a message when MD5 not match that it can be caused by uploading.

Aha oké its fixed then
[G2 Themes and Apps] Diechel:
You can use pastebin or upload to Dropbox or so
[G2 Themes and Apps] KJW979:
https://www.dropbox.com/s/x1k8vi5nq78r1fa/DorimanXOTA_log.txt?dl=0

Ok finally got some time to do this. Here is the log from VS980.
[G2 Themes and Apps] Diechel:
What is the permission of the /cache/ folder?

Should be 777
[G2 Themes and Apps] merlin21:
It was 770 but why? Last time it works?
[G2 Themes and Apps] Diechel:
Idk, DorimanX kernel should set it to 777.

Have you fixed it already?
[G2 Themes and Apps] merlin21:
I fixed permissions manually - but didn't have time to test it yet. Reporting back with new flash. At the moment v4.5 is incredible and i don't want to reboot [emoji56]

Edit: after setting permissions to 777 manually OTA app works. I successfully flashed 4.6 yesterday. Thanks for your help.
[G2 Themes and Apps] Diechel:
Currently working on the OTA app, are there any features you guys want to have?

As i don't get reports of users who have problems i think there are no critical bugs in the current version V2.91.

Features for next version:

[GENERAL]

- Abort flash when battery < 5%

- Give more information when pressing flashing confirmation

[PRO]

- Automatic download new kernel when new one is available (scheduler)

- Automatic download only on WiFi

Do you guys need more timestamps for the scheduler or is once a day good enough?
[G2 Themes and Apps] dorimanx:
Suggestion.

When i upload kernel, i am uploading to both mirrors and to all folders in one session.

So md5 change every second if site is refreshed.

Then you can add is a check, that see if md5 didnt change in 3 sec or 3 page refresh for kernel that selected for download.

If its in upload, then tell user to wait for few minutes and try again.

Then people will not download not full kernel zips.

Sent from my LG-D802
[G2 Themes and Apps] merlin21:
And how a about to choose the version to install if an elderly version is still available in case of problems?

And perhaps - don't know if it exist... the possibly to delete dori folder (i read often that people get said to delete that folder if they have errors)

Just a suggestion [emoji106]
[G2 Themes and Apps] Diechel:
You can install other versions by pressing on available kernels, is that what you mean? Maybe i need to make a help/manual for the usage of it. And maybe a page navigation :) Thanks.

I will add manual clearing of dori folder in next version (Other options)
[G2 Themes and Apps] merlin21:
Ahhh, never knew that i can push on available?

Great that was it... Perhaps a little help text for other users to let them know that it could be chosen - thx
[G2 Themes and Apps] Diechel:
Haha yes, was since first version available.
[G2 Themes and Apps] Diechel:
The idea is good but :) ... get the json data twice will take a huge hit on the performance.

For me pings are not ideal to your servers, also tasker can only do one task at a time.

When users download a not fully uploaded version they will indeed waste traffic.

Its difficult to flash a not complete uploaded kernel because after download the data is refreshed and the app will detect the MD5 is not matching.

Maybe you have another idea how to check uploading of kernels.

So the only downside users will have without MD5 recheck is wasting their data and yours from the server.

Users will need to redownload 16MB indeed.
[G2 Themes and Apps] Diechel:
V2.92(19-08-2015)

GENERAL:

- Add battery check > 5%

- Manual clearing dori folder [See settings -> other options -> app options]

- Show logging in window after pressing flash confirmation

PRO:

- Auto download + wifi check [See settings -> scheduler(click on it)]

- Fixed kernel version comparison for scheduler

Updated OP with page navigation and added some things to FAQ
[G2 Themes and Apps] merlin21:
Perhaps you can check the size of the kernel- file with some seconds delay between - if changing you could make a pop-up with warning that upload is still in progress. No need to calculate md5?!
[G2 Themes and Apps] Diechel:
Thanks for thinking with me.

The MD5 calculation is not the problem but downloading the data from the server.

Now the data from the server is refreshed when the cache time has expired or the user presses the refresh button.

When you switch available version it will use the cache [/sdcard/DorimanXOTA/cache/webcache.txt] to get its data.

When i implement the MD5 upload check i need to update the cache in between the version switches, this will cause some waiting time.

The filesize has the same problem, the filesize data needs to come from the server.

Because taskers is single task only i cannot check the file size while downloading.
[G2 Themes and Apps] merlin21:
isn't it possible to get the filesize without downloading? So only one tasker safes localy the file size and after 2 seconds it gets a new request for filesize - then compare both and if different...

Don't know if that's possible - I'm grown with vb6 :)
[G2 Themes and Apps] Diechel:
Will think about it all, maybe in next versions I will implement a setting where you can choose for extra check.

It will not be more safe with that option.

EDIT: Upload check implemented, need to test when [MENTION=2376110]dorimanx[/MENTION] is uploading new kernel
[G2 Themes and Apps] merlin21:
Thanks for Updates!
[G2 Themes and Apps] Diechel:
Yesterday evening/night spend much time to work on DorimanX OTA, so here is a new update :P

The upload checker is enabled by default, if you want to debug it and help me test please enable logging in settings.

Let me know if something is not working well.

V2.93(20-08-2015)

GENERAL:

- Upload checker, can be disabled in settings -> Other options

- Fixed floating button action while loading

- Floating button shows a coffee icon when busy

- Better floating icon animation

- Removed floating background animation

- Fixed clear dori directory confirmation

PRO:

- Changes to check on boot and verified that it works

FAQ

Q: What is the function of 'Upload checker'?

A: Upload checker prevents you to download a file which is currently uploading by [MENTION=2376110]dorimanx[/MENTION]. The MD5 is double checked with an interval of 2 seconds. When dorimanx is uploading, MD5's codes constantly change. When the temp MD5 does not match the refreshed data MD5 you cannot download the kernel.

This is currently in test phase to determine the interval, but its implemented in V2.93.

Upload checker can be disabled in Settings -> Other options -> Upload checker. The advantage of this is speeding up the process, disadvantage is the possibility to download a not fully uploaded kernel and need to redownload it (will cost traffic from server and phone).
[G2 Themes and Apps] Diechel:
Was thinking about upload check and came to this conclusion myself:

It only needs to check the highest version number for uploading. Now it does with every version which are not on sdcard. Something for next version, will take a few days because I don't want to push updates everyday. People getting crazy about that... At least i think.

If I was a user of a app I would like that the developer pushes updates (flashaholic). But don't know what OTA users like.
[G2 Themes and Apps] Diechel:
At the moment 2350 [free] active users of DorimanX OTA, thank you all for using it :)

I can say the last months i dont get any reports of the app, which is good.

Today or tomorrow i will push a new update to the Play Store, changelog for now is:

V2.94(Not released, updated 22-08)

GENERAL:
- Optimised upload checker, now only checks when pressing download button.
Only highest kernel version will be checked
- Changed update checker timeout from 2s to 3s
- Added notification in statusbar when update checker is working
- Show available kernel count so it's a bit easier to know you can press on available kernels to show all
PRO:
- Changed changelog regex to show date
- Implemented upload checker in download function, this way it should also work on auto download kernel function

Yes i know iam pushing an update almost everyday this week, if you don't like that i would like to hear it. The main goal of pushing that much updates is to give the best possible experience and safety and i cannot test all myself of course. Hopefully you guys (and girls?) can give me feedback when dorimanx is uploading a kernel and you get a message of the upload checker. Please let me know if it is working because i cannot test it though the whole day. If you want to know what the app is doing, you can enable logging in settings, to watch the log click on the logging text or open /sdcard/DorimanXOTA/*log.txt.

If you have an idea or think something can be better, let me know.

BETA TESTING

With the Play Store it is possible to test BETA versions of your app.

I can start a closed beta test team based on email adresses. First thing is that i dont know exactly how it works but we can try. Beta testers will get the PRO version to test! Let me know if you want te be a BETA tester to help me out and maybe think about new features.

Also my app AutoTrim will be released these days on the Play Store for easy updating and some fun statistics.
[G2 Themes and Apps] merlin21:
At least for me it's ok to update often. All is running great and I'm already a pro user [emoji106] thx to dorimanx also for giving the great stuff for your app.

I could also beta test if you like, but can't promise a real deep test - but always will mention it here if something went wrong and don't work with ota app. Thanks for the update of choose for abailable old kernel versions.

Good app - great dev team for our g2! [emoji106]
[G2 Themes and Apps] Peppe91:
+1

Inviato dal mio LG-D802
[G2 Themes and Apps] TMG1961:
I downloaded the 5.2 kernel with the app and md5sum was ok..flashed the kernel and now i get error message in DorimanX OTA

MD5 says Error and the messaages says error getting local md5 hash, try updating busybox with app called busybox on rails.
[G2 Themes and Apps] Diechel:
First:

FAQ:

Q: I have a problem with DorimanX OTA or found a bug, how to report?

A: Without logs I can't and won't do anything. You can get them by enabling logging in settings. Logs are saved on /sdcard/DorimanXOTA/DorimanXOTA_log.txt.

Second:

http://xdaforums.com/showpost.php?p=62568773&postcount=4406

Not to be rude, but it's not a problem of the OTA app so logs are not saying more to me.
[G2 Themes and Apps] TMG1961:
sorry, i looked for the log but couldnt find one. Forgot to check if the logging was enabled.

Here is the log file
[G2 Themes and Apps] Diechel:
Can you post the output of the command 'busybox' in the terminal.
[G2 Themes and Apps] TMG1961:
only busybox doesnt give me an output..it wants an extra command
[G2 Themes and Apps] TMG1961:
That is the same as i see. Tried to make screenshot but it doesnt work :(
[G2 Themes and Apps] Diechel:
dorimanx already responded

http://xdaforums.com/showpost.php?p=62570240&postcount=4412

http://xdaforums.com/showpost.php?p=62571620&postcount=4414
[G2 Themes and Apps] TMG1961:
I already saw that but isnt that a fix just untill you reboot the phone and after the reboot you need to do that again?

If so then i wait for a permanent fix and stay untill then on 5.1.
[G2 Themes and Apps] Diechel:
True, i don't know how to fix for now
[G2 Themes and Apps] TMG1961:
No problem, 5.1 runs perfect so i just wait till a permanent fix is available.
[G2 Themes and Apps] Diechel:
Small update

V2.95 (01-09-2015)

GENERAL:

- Added slider for animation time (settings -> other options)

- Changed default animation time from 100ms to 50ms

- Removed busybox alert, error still written in log.

PRO:

- Fixed text layout in scheduler
[G2 Themes and Apps] Ginel:
anywone have a mirror for 2.95 apk ? i dont have google playstore.
[G2 Themes and Apps] Diechel:
Yes, i have :)
[G2 Themes and Apps] pitsgraft:
[MENTION=1559352]Diechel[/MENTION],

Hi im having difficulties after every kernel download since 5.1 the OTA app keep resulting "error".

I have tried uninstalling, clean cache, clean any remaining folders from Dori OTA the app kept resulting error.

Here's the link for OTA log.

https://mega.nz/#!wkxERIiK!VVJ5ti6uiIz5QRT5YRgXaA4NhYLPBRuxDwv7VA1dCQU

I hope you can sugggest a solution for me.

Cheers,
[G2 Themes and Apps] Diechel:
Have you tried manually installing 5.2.1?

Can you type 'busybox md5sum' in terminal?
[G2 Themes and Apps] pitsgraft:
Hi,

I flashed manualy the 5.2.1, but still unresolved with "error" after every download. (trying to flash 5.3).

I use terminal emulator it say "killed".
[G2 Themes and Apps] Diechel:
Hmm the big problem here, is that you are the only one with this problem.

In next version i will try to log the output of the shell commands into my log file to get some more info :)

My output of the command ' busybox' in terminal:

shell@g2:/ $ busybox
busybox
BusyBox v1.24.1-Dorimanx (2015-04-04 16:47:37 IDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.

Currently defined functions:

Output of 'busybox md5sum' = empty (waiting for input or something)

shell@g2:/ $ busybox md5sum
busybox md5sum

Output of 'busybox md5sum *FILE*'

127|shell@g2:/storage/sdcard0 $ cd DorimanXOTA
cd DorimanXOTA
shell@g2:/storage/sdcard0/DorimanXOTA $ ls
ls
DorimanXOTA_log.txt
Kernel-Dorimanx-V5.0-LP-[23-11]-[24-08]-LG-D802-PWR-CORE.zip
Kernel-Dorimanx-V5.0-LP-[23-11]-[24-08]-LG-D802-PWR-CORE.zip.md5
Kernel-Dorimanx-V5.1-LP-[17-07]-[26-08]-LG-D802-PWR-CORE.zip
Kernel-Dorimanx-V5.1-LP-[17-07]-[26-08]-LG-D802-PWR-CORE.zip.md5
Kernel-Dorimanx-V5.2-LP-[15-37]-[29-08]-LG-D802-PWR-CORE.zip
Kernel-Dorimanx-V5.2-LP-[15-37]-[29-08]-LG-D802-PWR-CORE.zip.md5
Kernel-Dorimanx-V5.2.1-LP-[15-48]-[30-08]-LG-D802-PWR-CORE.zip
Kernel-Dorimanx-V5.2.1-LP-[15-48]-[30-08]-LG-D802-PWR-CORE.zip.md5
Kernel-Dorimanx-V5.3-LP-[21-48]-[03-09]-LG-D802-PWR-CORE.zip
Kernel-Dorimanx-V5.3-LP-[21-48]-[03-09]-LG-D802-PWR-CORE.zip.md5
cache
shell@g2:/storage/sdcard0/DorimanXOTA $ busybox md5sum Kernel-Dorimanx-V5.3-LP-[21-48]-[03-09]-LG-D802-PWR-CORE.zip
usybox md5sum Kernel-Dorimanx-V5.3-LP-[21-48]-[03-09]-LG-D802-PWR-CORE.zip <
6ed0c29cd4e38915c91f839ad0e90daf Kernel-Dorimanx-V5.3-LP-[21-48]-[03-09]-LG-D802-PWR-CORE.zip
shell@g2:/storage/sdcard0/DorimanXOTA $