Went waaay offtopic in someone elses thread, but would love some clarification, comment, insight.
Quote:
Originally Posted by Almighty1
productofusa:
Even though I had been using Unix since 1989, Android is still new to me but I learned this when I had a problem installing Street View for Google Maps
Yeah, when I tried to install it from the Market I got the "Install Unsucessful" thing, however after reading this post and looking I do see Street.apk in /system/app.
Quote:
Originally Posted by Almighty1
and someone said they basically moved the file from /data/apps and renamed it to Street.apk and also moved the file and renamed to Maps.apk in /system/apps so I tried it and it worked
Same file? Or am I not understanding you correctly. If yes, then why?
Quote:
Originally Posted by Almighty1
so then yesterday, I moved Twitter.apk, Facebook.apk as well as both the QuickSearchBox and VoiceSearch and they all worked.
I REALLY don't get this? Were none of these working? If yes, then what kind of screwed up ROM/Gapps are you using? LOL
Quote:
Originally Posted by Almighty1
The permissions should be owner (rw), group (r), world (r). x just means executable. Rebooting is needed unless there is a way to reload the .apk's without rebooting which I'm sure is possible if I knew the Android system well enough. The file permissions have three sets of permissions, the owner of the file need read and write access while the group and world (other users) only need read access.
Interesting, on my N1 its (on say, Street.apk) User, Group, Others, i'm maybe offbase here but I take this to mean "User" Permissions for how I interact with the file, "Group" Permissions for how other related files interact with the file? "Others" Permissions for how any file interacts with the file? Second thought, i'm probably way offbase here, but would really like some clarification from a more advanced user.
I despise bumbling around in the operating system to get things to work without understanding more about the underlying cause/effect, but in this case i'm just happy it works, and it also gives me better direction for the homework I need to do!
If I did this kinda stuff in my chosen career people would be getting electrocuted/fires/general mayhem daily LOL.
Ok, on a UNIX system, you usually have an admin and the users. The admin is named root and you can have a bunch of users. They can't view each other's files because a file is usually owned by a particular user ("owner"), but users can belong to groups and share files ("group") or the owner can make it so their files can be read by everyone ("others"). root can do anything to any file but everyone else has to follow the rules and go by whatever permissions the file has.
Permissions look like this on the command line: rwxr-xr--
Split that into three groups and you have
owner|group|users
rwx|r-x|r--
"rwx" means read, write and execute. If they're listed, that means they're enabled. If there's a dash, they're not enabled. So "-rwxr-xr--" means the owner can read, write and execute the file, people in his group can only read and execute it and everyone else can only read it.
Additionally, "rxw" are often referred to in these numerical values.
r=4
w=2
x=1
Back to the example from above:
owner|group|users
rwx|r-x|r--
Now add up the three numbers in each group. rwx=7, r-x=5, r=4. That file has permissions of "754." Since these numbers only add up one way (e.g., 4 always means "read", nothing else adds up to 4. same goes for the rest), just saying "754" tells me the nine different permission settings that make up "-rwxr-xr--"
I explained all that because the "chmod" command is usually used to change permissions and you will often see people say to use "chmod 755" or "chmod 644" or "chmod 666".
fubaya said:
Ok, on a UNIX system, you usually have an admin and the users. The admin is named root and you can have a bunch of users. They can't view each other's files because a file is usually owned by a particular user ("owner"), but users can belong to groups and share files ("group") or the owner can make it so their files can be read by everyone ("others"). root can do anything to any file but everyone else has to follow the rules and go by whatever permissions the file has.
Permissions look like this on the command line: rwxr-xr--
Split that into three groups and you have
owner|group|users
rwx|r-x|r--
"rwx" means read, write and execute. If they're listed, that means they're enabled. If there's a dash, they're not enabled. So "-rwxr-xr--" means the owner can read, write and execute the file, people in his group can only read and execute it and everyone else can only read it.
Additionally, "rxw" are often referred to in these numerical values.
r=4
w=2
x=1
Back to the example from above:
owner|group|users
rwx|r-x|r--
Now add up the three numbers in each group. rwx=7, r-x=5, r=4. That file has permissions of "754." Since these numbers only add up one way (e.g., 4 always means "read", nothing else adds up to 4. same goes for the rest), just saying "754" tells me the nine different permission settings that make up "-rwxr-xr--"
I explained all that because the "chmod" command is usually used to change permissions and you will often see people say to use "chmod 755" or "chmod 644" or "chmod 666".
Click to expand...
Click to collapse
Thats exactly what I was looking for, thanks for elaborating and making it easy to understand at my level.
Related
I hope this is the right place to post this, if not my apologies. I've had my Droid X for two weeks now, and have done a few customizations to it (NexTheme, root, BusyBox) and to be honest I'm bored already even though I'm still getting used to this phone...and even though it's my first Android powered device, and second smartphone.
Anyways, I want to dig into the guts of this and possibly contribute. I have been working with some form of Unix since the early 90's, and I'd like to think I'm quite experienced with it.
This is where I need assistance. Even though I'm quite adept with my Google-Fu, I'm still not able to point myself in the correct direction. I have a terminal app on the phone, and adb on my pc, however...to be frank...they both suck. Perhaps it's the limits of a mobile Linux platform and not having proper term types defined, but I can't get a decent working environment setup to navigate the filesystem in a comfortable and easy to read way. It's making it extremely difficult to see where I am, where I've been, and the files/directories and their permissions, etc etc. Have tried setting and resetting various TERM env types, but nothing seems to change the layout/display.
I had found an SSHd how to hoping I could install SSHd on the phone and just SSH in from a proper terminal, but it's from 2008 and deals with the G1. I wasn't able to get the steps to work for me.
Short of what I've already tried, what other options are there...if any? I don't know what, if anything, I could contribute to the community...but I'd like to give it a real go, and I *really* do love to mess with things heh heh....
The easiest way i have seen to navigate through your file system is using root explorer on the market.
Since you have adb set up, you should be able to execute "adb shell". Also, there seems to be an emulator included in the sdk, though I haven't used it myself.
Sent from my DROIDX using XDA App
mattyboy1013: I'm looking for a non-gui shell based method of navigation. A terminal is a lot easier and quicker for me.
pchop: Yea, I've used adb shell when manually rooting, and I wasn't too keen on how it laid things out. Particularly in a single column making navigation difficult. I'll take a look at the emulator though, and see what it does. Thanks.
I may be wrong but isn't android a java platform sitting on top of unix?
That's my understanding as well, and I'd like to navigate it as if it were a Linux box, ie: through a console. Problem is, the two terminal apps I have access to (as mentioned above - terminal emulator and adb shell) present the file system in a single column and with no sorting. It makes navigating and seeing whats available quite difficult.
What I'm looking for, if it even exists, is a terminal app that will display in rows and columns, and sorting alphabetically with directories first then files. Basically how most Linux distributions do by default and have for years.
I tried some more with my attempts at getting SSHd on the phone by compiling dropbear myself via the android source, but no go. The compile bails on me even after several fixes and attempts. Was hoping SSH in via a gnome-terminal, xterm, eterm, etc on one of my Linux boxes would set a proper TERM environment that the phone would respect, but I may be barking up the wrong tree there as well.
Dunno, I'm just in search of something to play with, and heck...doing all of the above has kept me pretty busy anyways lol.
Say I download an *.apk file from some site or I get one from a friend, could it potentially harm my phone, cost me money etc.? Basically what I'm wondering is, when I install an app it generally says what the app has/wants access to, is this "warning" coded by the programmer to tell the user what it's accessing or is it determined automatically by built in functions? I don't want to install and app that has access to stuff that I'm not aware of.
Regards,
B
Edit: On a second note. Say I do download some harmful application, would uninstalling it solve the problem or could there be remaining harmful files still at work? The whole Android OS is sorta worrying me...bad experiences with Windows is making me cautious.
if you can think of it
there can always be a chance of happening
yes, a malicious hacker could do something like that
yes, a pissed programmer might including something like that into their apps to stop people from sharing their apps without buying it
yes, the apk might be legit but might have been corrupted some how
yes, you might be able to uninstall if lucky
but worse case scenario if i were a malicious hacker i wouldn't code a way to uninstall the app, instead i'll probably code a way to lock the user out of all access forcing you to Flash the phone from scratch
You didn't really answer my one major question, or maybe you did but I didn't understand. Are the services that the app is able to access programmed or are they determined by a function?
Well when installing I've resorted to checking a few things:
1) Make sure the app that I've downloaded is the same size as the one in the market (for equivalent versions...obviously)
2) Compare the system permissions when installing with those found at www.androlib.com
This way seems pretty safe to me. If the size is the same and the permissions are the same...you can be quite (not 100%) certain that they are legit/the same.
Ok heres the deal. Apps have 2 types of access.
1. Standard permissions
So if u don't do adb-install (where u dont see an app's permissions), then market / copy to sdcard and install from there u'll see the permission screen. An app cannot do something w/o permissions. If an uninstaller is askin for email permissions u know somethings wrong.
2. Root
Most dangerous. An app will ask u for 0 standard android api permissions. But when u run it, u will be asked for a superuser allow/deny request. From their its up to you. An app could do anything behind the scenes from tht point.
So read reviews/ user comments before trying root apps. Standard apps, just look over the permissions thts all.
FYI : The permissions are read by android, they're not user defined. Any permissions will always show up when installing it using the native package manager.
To be honest I wouldn't advise downloading an .apk from a non-trusted source. If its on the market, you're near certainly ok, and if its from a trusted developer (say from these boards, or some other similar dev portal) then again, you are likely to be ok. In the second case, you are unlikely to be getting a finished app if you get a straight apk from boards, because when they are finished or at least solid, they go to the app store anyway, so harm in that case is more likely to be of the force close variety rather than bricked variety.
Outside of that, I can't see why you would get an apk from a friend rather than downloading it yourself, simply because that way it makes certain you get a clean, non-corrupted version. If apps don't show up in the market for you, its mostly because your device can't run them, in which case, again, force close.
Uninstalling it is possibly too late. All smartphones suffer this issue though.
As mentioned, if you get the files from market though, you are likely to be safe..
Also, not all melicious programs are obvious..
Daneshm90 said:
Ok heres the deal. Apps have 2 types of access.
1. Standard permissions
So if u don't do adb-install (where u dont see an app's permissions), then market / copy to sdcard and install from there u'll see the permission screen. An app cannot do something w/o permissions. If an uninstaller is askin for email permissions u know somethings wrong.
2. Root
Most dangerous. An app will ask u for 0 standard android api permissions. But when u run it, u will be asked for a superuser allow/deny request. From their its up to you. An app could do anything behind the scenes from tht point.
So read reviews/ user comments before trying root apps. Standard apps, just look over the permissions thts all.
FYI : The permissions are read by android, they're not user defined. Any permissions will always show up when installing it using the native package manager.
Click to expand...
Click to collapse
EXACTLY what I was looking for. Thank you.
Btw, just because security on App store says an app can do stuff like make phone calls etc, doesn't mean it's malicious.
A few people were misled by an article that stated that apps with such extreme permissions were malicious, but it's untrue. It isn't always the case, but if an app uses functionality you don't believe it should, it's possible it is dodgy
andrewluecke said:
Btw, just because security on App store says an app can do stuff like make phone calls etc, doesn't mean it's malicious.
A few people were misled by an article that stated that apps with such extreme permissions were malicious, but it's untrue. It isn't always the case, but if an app uses functionality you don't believe it should, it's possible it is dodgy
Click to expand...
Click to collapse
Aye, I know. Thanks for the advice. I've actually been comparing any app I download off the internet to the actual ones on the market (size and permissions).
Hi everyone im a noob member to the site but have read some interesting threads before membership but as usual joining when i have a problem that needs some of your help
I have had a .apk file download to my htc desire running 2.2.2. I was browsing pics of the fake kind when it started downloading. i did see some letters and numbers before the file ext. It is not an official .apk that im sure off. I have searched for it on my phone but cannot find it to delete .
can anyone help please
After hooking up htc to my pc by usb lead, I have managed to locate the file by searching. It was in the download folder, I deleted it via the pc and then did a factory reset on htc.
Would this get rid of it safely
figured it out. i had to delete the build.prop.bak file
144 views and no help. thanks guys.
on a side note. anyone successfully use a some build.prop settings to spoof a tegra device? if so, which one(s) worked for you?
x000x said:
144 views and no help. thanks guys.
on a side note. anyone successfully use a some build.prop settings to spoof a tegra device? if so, which one(s) worked for you?
Click to expand...
Click to collapse
I haven't seen the video. In general in the future, it would help if you explained what you did; you are more likely to get help if people know more details. It's also a fairly simple process and quite Google-able. I just open /system/build.prop in a text editor with su rights, and exit it like any text file.
bananagranola said:
I haven't seen the video. In general in the future, it would help if you explained what you did; you are more likely to get help if people know more details. It's also a fairly simple process and quite Google-able. I just open /system/build.prop in a text editor with su rights, and exit it like any text file.
Click to expand...
Click to collapse
There are a number of entries in the build.prop that identify the device. It may be that the specific video you looked at spoofed the device id to work with something other than Playstore. In addition, old videos may be referring to the Android Market, which may use different identifiers in the build.prop. As noted in an earlier reply, you need to be fairly specific as to what you did to get useful advice.
well after 8 hours or so i finally got it to work. for whatever reason every time i would save my build.prop it would make an additional file. a build.prop.bak or something. i had ignored that file b/c i just thought it was part of the process, and there was no mention of it in anything i read. well i finally just decided to delete the .bak file, and low and behold everything worked like it was suppose to.
i'm assuming that .bak file was, for whatever reason, overriding the edited one.
I don't know if anyone voted for new features for WP8, but if you did, you should get mail from admins that file manager is now available.
Check it here:
http://windowsphone.uservoice.com/f...ons/3365632-add-file-manager-to-windows-phone
Also I've got mail for disabling auto rotation:
http://windowsphone.uservoice.com/f...tions/suggestions/2282917-disable-auto-rotate
Anyone know what is all that about? If it's on some new update, it wouldn't say it's available now.
head0 said:
I don't know if anyone voted for new features for WP8, but if you did, you should get mail from admins that file manager is now available.
Check it here:
http://windowsphone.uservoice.com/f...ons/3365632-add-file-manager-to-windows-phone
Also I've got mail for disabling auto rotation:
http://windowsphone.uservoice.com/f...tions/suggestions/2282917-disable-auto-rotate
Anyone know what is all that about? If it's on some new update, it wouldn't say it's available now.
Click to expand...
Click to collapse
Great news.
In addition to the update on uservoice (http://www.geeky-gadgets.com/file-manager-coming-to-windows-phone-8-2-12-2013/)
there is a report that it will be coming in WP8.1 in Q2 2014 http://www.geeky-gadgets.com/file-manager-coming-to-windows-phone-8-2-12-2013/
I'm on android but I will definitely check back on WP when this happens.
CSMR said:
Great news.
In addition to the update on uservoice (http://www.geeky-gadgets.com/file-manager-coming-to-windows-phone-8-2-12-2013/)
there is a report that it will be coming in WP8.1 in Q2 2014 http://www.geeky-gadgets.com/file-manager-coming-to-windows-phone-8-2-12-2013/
I'm on android but I will definitely check back on WP when this happens.
Click to expand...
Click to collapse
And what you gonna do with the jpg file, move/copy where if only the hubs can open it? Useless feature.
djtonka said:
And what you gonna do with the jpg file, move/copy where if only the hubs can open it? Useless feature.
Click to expand...
Click to collapse
If MS implemented this feature so that the file manager would only show "hubs" and only allow you to move things in folders within these hubs, they would have to be real idiots.
A file manager means having user documents accessible by programs. Pretty much if you have one, you have the other. And ordinary people understand what a file manager is, so the request is always for a file manager, even though having a user documents folder accessible by programs is more important.
CSMR said:
If MS implemented this feature so that the file manager would only show "hubs" and only allow you to move things in folders within these hubs, they would have to be real idiots.
A file manager means having user documents accessible by programs. Pretty much if you have one, you have the other. And ordinary people understand what a file manager is, so the request is always for a file manager, even though having a user documents folder accessible by programs is more important.
Click to expand...
Click to collapse
As I have previously stated to all the QQ threads on this forum, windows phone does not need a file manager like windows 8 has.
As long as third party apps can asociate with the files they need to open, we will be fine, because developers can detect files on the phone very easily using the Microsoft API. The biggest problem is not the lack of a file manager, is the lack of permissions to allow third party apps to open files which are restricted by the system, like mp3 files.
If apps had full access to SD cards and the user file system, everybody would be happy.
Given how the API seems to be building around, this file manager will be restricted to hubs and third party apps will still not be able to open whatever files they want to.
On the other hand, they might give us a SDK update, but there are no news on the developer site...
Oh, I still disagree with that, quite a bit in fact.
Even leaving it limited to the "user" parts of the phone, there's lots of obvious cases for a file browser / manager.
* A simple one would be to provide an easy way to correct problems like duplicated files, renaming documents, copying a music file to the "ringtones" folder, and so on. Plus of course the ability to categorize and organize files using folders. Basically, the stuff you can do from a PC over USB.
* A little bit more advanced, but still pretty useful and obvious, would be the ability to open files (into whatever app the user wants) from a central location, rather than needing to go to the app first and hope that the app has a way to open the file. This is especially obvious when one considers downloaded files, which currently can only be opened once (by the app that you select at that time, which must then copy the file locally if it wants to keep it; no other app will be able to access that file unless you download it again).
* Another important need is to provide something that functions like the SD card for phones which don't have one. For an OS that doesn't require the presence of such a card, WP8 has a number of features which you can only use if you *do* have one. Example: using the standard MTP over USB access, if I want to add ebooks to my phone, I have to copy the ebooks to the SD card, then go into the e-reader app and tell it to load the books from the card. If I don't have a card, I'm screwed; there's no other way except to open them one at a time as email attachments or something similarly stupid. A universally accessible folder (even if it was read-only to third-party apps) for such content would make a lot of sense.
For those of you who say this feature would be useless, go and find a particular ringtone on your phone and share it with someone via Bluetooth, message, email or however you want heck use Skydrive and then come back and tell me if you can even navigate to the ringtones folder using Xbox Music.
---------- Post added at 06:25 PM ---------- Previous post was at 05:40 PM ----------
sinister1 said:
For those of you who say this feature would be useless, go and find a particular ringtone on your phone and share it with someone via Bluetooth, message, email or however you want heck use Skydrive and then come back and tell me if you can even navigate to the ringtones folder using Xbox Music.
Click to expand...
Click to collapse
Any one
From what I read on WPCentral, this was a mistake being marked as complete, so false alarm regardless.
P.S. I am in the camp of wanting a file manager/explorer.
Sadly, true. You can see that on the uservoice site directly... :-/
They will probably give a full file manager with windows phone 9 or something.
That's right.
The forum admin says that the thread's were mistakenly marked as accomplished.
Way go MS.Nice idea for fixing problems. ;(
Sent from my Windows Phone 8S by HTC using Tapatalk
I take it that no response to my question above means it's not possible to do on WP, Okay how about downloading a pdf file from an email or SkyDrive? The reasons for a native file explorer on WP is so obvious. Not everyone carries a tablet or laptop computer with them at all times just to be able to explore, rename, save or copy files on their phone.
Automatically optimizes SQLite databases on boot, on schedule, every X days.
Just a quick and dirty adaptation of an old SQLite3 optimizer script from init.d days to a Magisk Module using a service.sh script instead, with an internal date offset mechanism to run the script every X days (default: 3 - which is plenty, and specifically to stop silliness).
Update And credit note: finally after a fair bit of digging, i think i located the original author of the original init.d version of the main vacuum code snippet ive repurposed (stolen) for this module. It appears to be from user @mcbyte_it (doesnt seem to be current or active) and from a post here. Although i only saw derivative reworkings of this script, and used only the main sqllite script function, i arrived at a different method of tracking last run date, when his is arguably more mainstream/concise. Im fairly certain this is the originator especially as the post also has a zipalign script that was also suggested to me to do....and which i have been fiddling with for months....
The script will wait until boot is completed AND then until avg CPU usage is under 30%, to minimise the risk of possible corruption.
Disclaimer: As always any use of any 3rd party script/software/advice is at the users discretion. All reasonable efforts have been made to make this as safe as possible, but the responsibility ultimately falls to the user whether to use and run the script.
What it does:It:
Reindexes
Vacuums
Analyzes
all .db files under /data.
It runs a 1st run optimize after install (temp file optimsql_first_run on sdcard is used to enable this, and removed after first run), and then on schedule after that.
By default it logs just script progress to /storage/emulated/0/autosqlite.log, but you can choose to enable more detail in the log if you wish
User Configurable Options:The schedule and loglevel can be changed by an external file on sdcard:
Create a file named autosqlite_options on sdcard (/storage/emulated/0/)
Inside create the follow key=value pairs to suit your preference:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
loglevel=x (where x is either 1 (detailed logging) or 0 (basic logging - default))
Requirements:This module requires a working SQLite3 binary. If your ROM does not provide one (you can check via typing sqlite3 into a terminal), you can choose to use my SQLite3UniversalBinaries module located here:
https://github.com/stylemessiah/SQLite3UniversalBinaries
Dont forget you need to download a named SQLite3UniversalBinaries.vx.x.zip file from the Releases page under Assets. Do not try installing the source code with Magisk Manager, it will not go as you expect
All the modules action takes place in the service.sh file, its commented reasonably well for those wanting to check how it works
* See... now theres something else to use with my SQLite3 Universal Binaries module other than the GPay SQlite Fix Module <- dont use that anymore, it makes me stabby. It is literally the last resort for getting Google Pay/Wallet to work ,
Please note: the included LICENSE only covers the module components provided by the excellent work of @Zackptg5 's Magisk Module Extended, which is available for here for module creators
https://github.com/Zackptg5/MMT-Extended/
All other work is credited above and no one may fork or re-present this module as their own for the purposes of trying to monetize this module or its content without all parties permission. The module comes specifically without an overall license for this intent.
Download:
Repo: https://github.com/stylemessiah/AutomaticSQLiteDBOptimizer
Release: https://github.com/stylemessiah/AutomaticSQLiteDBOptimizer/releases/latest
Powered by Ponkle
@73sydney Nice! If you're looking for newer sqlite3 binaries, I have a build script you can use to build it or you can just grab the precompiled ones at my repo: https://github.com/Zackptg5/Cross-Compiled-Binaries-Android
Zackptg5 said:
@73sydney Nice! If you're looking for newer sqlite3 binaries, I have a build script you can use to build it or you can just grab the precompiled ones at my repo: https://github.com/Zackptg5/Cross-Compiled-Binaries-Android
Click to expand...
Click to collapse
cheers man, i was trying not to pinch all your toys
i mean i could have done an androidacy and scraped your repo for just the files i needed
plus im lazy
73sydney said:
optimizes SQLite databases
Click to expand...
Click to collapse
Nice
how about no schedule, i want to execute it whenever i want
possible ?
loopypalm said:
Nice
how about no schedule, i want to execute it whenever i want
possible ?
Click to expand...
Click to collapse
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
what are they teaching in school these days?
i made this to be automatic and made special note about the intervals because theres people who would abuse this and run it every day if they could, both designed to avoid misuse/abuse:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
im not really interested in making a manual version option unless you can convince me where there is a use case benefit, because all i see is potential for misuse/abuse that i specifically made this to avoid....
running it by default it runs every 3 days which is twice a week and probably still overkill, but trying to cover all bases
your other option is to ask me for permission (sadly because of abuse in the past from certain entities trying to monetize my and others work, my contributions are not GPL etc) to fork and alter the code yourself....
73sydney said:
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
what are they teaching in school these days?
i made this to be automatic and made special note about the intervals because theres people who would abuse this and run it every day if they could, both designed to avoid misuse/abuse:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
im not really interested in making a manual version option unless you can convince me where there is a use case benefit, because all i see is potential for misuse/abuse that i specifically made this to avoid....
running it by default it runs every 3 days which is twice a week and probably still overkill, but trying to cover all bases
your other option is to ask me for permission (sadly because of abuse in the past from certain entities trying to monetize my and others work, my contributions are not GPL etc) to fork and alter the code yourself....
Click to expand...
Click to collapse
i was planing to use it once a week
categorizing me with people who do dumb stuff is an 'insult'
i asked a simple question man, don't jump to level 3 mind game please ...
loopypalm said:
i was planing to use it once a week
categorizing me with people who do dumb stuff is an 'insult'
i asked a simple question man, don't jump to level 3 mind game please ...
Click to expand...
Click to collapse
Im sorry, did you miss the double smileys intended to completely avoid any misunderstanding that i was being jovial. the other tip off that i wasnt burning you was taking the time to write several paragraphs
Can i suggest you just set the options file interval to 6 or 7 and let the module do what its described in the title as doing, it would make no functional difference, other than saving you a trip to terminal?
As i said, give me a valid reason for adding a manual option and ill gladly consider it, choosing a reason that fits completely within the actual parameters of the existing module doesnt really fit that offer...
ill go further to why i specifically didnt put in an option to run it manually (really folks are lucky i didnt block the option to run it every day) because you should understand what the sqlite vacuuming and other processes do:
* They copy the data from the db file to temp file before optimising it and writing it back, at any point in this theres the potential for corruption (sudden power loss, other processes accessing the file etc). Ideally any such corruption would be minimised by journaling but anyone who had used Linux for long enough knows not to count on such things.
* If any db is being written to, then the optimization process will NOT optimize that db...for the above possible corruption reasons. Hence why i not only put in a wait till boot completed function BUT also added a function to block the script from running unless avg cpu load over 5 minutes is less than 30%. all this to try and make things as safe as possible. So im not overly fond of a manual option which bypasses these safeties i specifically put there to hopefully safeguard people as best as possible. I dont want to get messages about how my module hosed someones apps.
Perhaps that better addresses my reasons?
As said, you can also ask me to fork the code, and ill even tell you how to add a manual function, but i personally wont be releasing such a version without a better reason than i want to do it every 7 days, when the script as it stands can do that AND at a far more predictably safe time and way than you manually likely can or will use it....
BTw, how is actually responding, even taking the time to do so and being jovial about it "level 3 mind games?", whatever the hell that even is?
73sydney said:
.
Click to expand...
Click to collapse
i was planing to make a recovery backup of "DATA" after the optimization of DB files ...
if you want better result add a comand to kill the coresponding app, then it would be more stable
or tell the people to use FlushRam or something like that before the proccess start, to make sure the result will be good, or make a 2nd module for advanced users ...
even with the condition you said some system apps stays working in the background and messing with their data can lead to corruption
i don't know you or your previous work and i don't have time to care for that
i just asked a simple question
answer with "NO, my module will not do that"
this will save your time and other people time
loopypalm said:
i was planing to make a recovery backup of "DATA" after the optimization of DB files ...
if you want better result add a comand to kill the coresponding app, then it would be more stable
or tell the people to use FlushRam or something like that before the proccess start, to make sure the result will be good, or make a 2nd module for advanced users ...
even with the condition you said some system apps stays working in the background and messing with their data can lead to corruption
i don't know you or your previous work and i don't have time to care for that
i just asked a simple question
answer with "NO, my module will not do that"
this will save your time and other people time
Click to expand...
Click to collapse
1) whether before or after backup, the files will eventually get optimized - if you want a more manual version use SD Maid or as offfered you can ask me how to alter the code as it sits and make your own version.
2) Im not ever releasing a script that kills anyones apps in the background, i would consider that suboptimal, and basically malware
3) I never said that some "system apps stays working in the background and messing with their data can lead to corruption". What i said was i designed the script to best avoid corruption by running only after boot completed and when avg CPU usage over 5 minutes was less than 30%. The sqlite3 itself generally wont allow access to a file in use. Im just adding what i think is a reasonable level of extra safety by deciding when the optimization routine starts to run, and that it isnt abused/misused by running multiple times in an unreasonable timeframe
4) How does
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
not equal "NO, my module will not do that", only with some attempt at humour and a long explanation (soon followed by a more reasoned explanation) because i didnt want to appear dismissive. Yet it looks like you’d have preferred dismissive??
You seem impossible to please anyway someone tried to do it....
To be honest Im tired of this circular conversation. Everyone else knew from the word automatic in the title how things was going to work. Ive made suggestions of alternatives (SD Maid) and even offered to give you the info to change the script for yourself, and cant do more than that.... please choose one and lets move on, please?