[MOD] Zipalign And SQLite3 Binaries

Status
Not open for further replies.
Search This thread

qubbus

Senior Member
Dec 24, 2012
623
228
Last edited:

Danster840

Senior Member
Feb 14, 2011
230
105
South Florida
thanks.
I isntaled init d from playstore.
now can I flas this binari ?
Yes if after you install the app, as well as busybox and after the app confirms you have init.d reboot 2 times and check /data/ for test.log.

The app should right a test.log if it's working correctly. You can flash the zip but I recommend you update your sqlite3 binary with the one linked earlier 3.8.8

I did something similar to the post directly above this one. I used a different sql script to this one, but I use this zipalign script
 
Last edited:

hiyachi-32

Senior Member
Nov 12, 2013
258
57
İZMİR
REINDEX=SUCCESS
Database /data/data/com.sec.android.mimage.photoretouching/databases/common_button_table.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/media/0/Android/data/pl.solidexplorer/index.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/media/0/baidu/tempdata/ls.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/validity/template.db: VACUUM=SUCCESS REINDEX=SUCCESS
SQLite database VACUUM and REINDEX finished at 01-09-2015 00:04:47

Here is my part of log
Is it ok know?


SMG900H
Android 5(root)
 

qubbus

Senior Member
Dec 24, 2012
623
228
REINDEX=SUCCESS
Database /data/data/com.sec.android.mimage.photoretouching/databases/common_button_table.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/media/0/Android/data/pl.solidexplorer/index.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/media/0/baidu/tempdata/ls.db: VACUUM=SUCCESS REINDEX=SUCCESS
Database /data/validity/template.db: VACUUM=SUCCESS REINDEX=SUCCESS
SQLite database VACUUM and REINDEX finished at 01-09-2015 00:04:47

Here is my part of log
Is it ok know?


SMG900H
Android 5(root)

Is there anything to explain in word "SUCCESS"? :angel:

Sorry in init.d folder files MUST have permissions: - 0755 (rwx r-x r-x)
 
  • Like
Reactions: Danster840

hiyachi-32

Senior Member
Nov 12, 2013
258
57
İZMİR
Is there anything to explain in word "SUCCESS"? :angel:

Sorry in init.d folder files MUST have permissions: - 0755 (rwx r-x r-x)
I guess its mean done :)

---------- Post added at 01:31 AM ---------- Previous post was at 01:19 AM ----------

Yes if after you install the app, as well as busybox and after the app confirms you have init.d reboot 2 times and check /data/ for test.log.

The app should right a test.log if it's working correctly. You can flash the zip but I recommend you update your sqlite3 binary with the one linked earlier 3.8.8

I did something similar to the post directly above this one. I used a different sql script to this one, but I use this zipalign script
OK what did step by step
1. Download squlit3 open zip copy file and move to system/etc/init.d folder
2. I open init.d and click squlite3 than pressed start button.
is it ok now? did I did this correctly ?
 

Danster840

Senior Member
Feb 14, 2011
230
105
South Florida
I was originally speaking about installing init.d support, but as far as updating the sqlite binary, unpack the binary from the zip file and replace the sqlite binary in xbin with the 3.8.8 version in the zip. Only scripts go into init.d folder
 
  • Like
Reactions: hiyachi-32

intxeon

Senior Member
Aug 8, 2013
255
95
Have you done everything as was said in this thread?
I and other users have this working. You had to do something wrong.

sqlite3 v3.8.8 in xbin and 91sqlite in init.d with right permissions for both folder.
I don't think I did something wrong because what I had to do was a simple copy&past in the right folders.
Anyway the sqlite script generates a log so it should works...
 

qubbus

Senior Member
Dec 24, 2012
623
228
sqlite3 v3.8.8 in xbin and 91sqlite in init.d with right permissions for both folder.
I don't think I did something wrong because what I had to do was a simple copy&past in the right folders.
Anyway the sqlite script generates a log so it should works...

busybox installed and init.d support from Gplay?
 

qubbus

Senior Member
Dec 24, 2012
623
228

Vaccum gives me the same errcode14 - seems to unable with access db...
working on it. But I used script from xstrestolite rom. Script from zip dont generate sqlite.log

Yes if after you install the app, as well as busybox and after the app confirms you have init.d reboot 2 times and check /data/ for test.log.

The app should right a test.log if it's working correctly. You can flash the zip but I recommend you update your sqlite3 binary with the one linked earlier 3.8.8

I did something similar to the post directly above this one. I used a different sql script to this one, but I use this zipalign script

what script did you used?


sqlite3 v3.8.8 in xbin and 91sqlite in init.d with right permissions for both folder.
I don't think I did something wrong because what I had to do was a simple copy&past in the right folders.
Anyway the sqlite script generates a log so it should works...

what script sqlite are you using?
Script from this zip will not generate sqlite.log. How do yo know about errcode14?
 
Last edited:
  • Like
Reactions: intxeon

intxeon

Senior Member
Aug 8, 2013
255
95
Vaccum gives me the same errcode14 - seems to unable with access db...
working on it. But I used script from xstrestolite rom. Script from zip dont generate sqlite.log



what script did you used?




what script sqlite are you using?
Script from this zip will not generate sqlite.log. How do yo know about errcode14?

Sqlite script

#!/system/bin/sh

LOG_FILE=/data/sqlite.log

#Interval between SQLite3 runs, in seconds, 604800=1 week
RUN_EVERY=86400

# Get the last modify date of the Log file, if the file does not exist, set value to 0
if [ -e $LOG_FILE ]; then
LASTRUN=`stat -t $LOG_FILE | awk '{print $14}'`
else
LASTRUN=0
fi;

# Get current date in epoch format
CURRDATE=`date +%s`

# Check the interval
INTERVAL=$(expr $CURRDATE - $LASTRUN)

# If interval is more than the set one, then run the main script
if [ $INTERVAL -gt $RUN_EVERY ];
then
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "SQLite database VACUUM and REINDEX started at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

for i in `busybox find /d* -iname "*.db"`; do
/system/xbin/sqlite3 $i 'VACUUM;';
resVac=$?
if [ $resVac == 0 ]; then
resVac="SUCCESS";
else
resVac="ERRCODE-$resVac";
fi;

/system/xbin/sqlite3 $i 'REINDEX;';
resIndex=$?
if [ $resIndex == 0 ]; then
resIndex="SUCCESS";
else
resIndex="ERRCODE-$resIndex";
fi;
echo "Database $i: VACUUM=$resVac REINDEX=$resIndex" | tee -a $LOG_FILE;
done

echo "SQLite database VACUUM and REINDEX finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
fi;



It will give you VACUUM and REINDEX results
 
  • Like
Reactions: qubbus

qubbus

Senior Member
Dec 24, 2012
623
228
Sqlite script

#!/system/bin/sh

LOG_FILE=/data/sqlite.log

#Interval between SQLite3 runs, in seconds, 604800=1 week
RUN_EVERY=86400

# Get the last modify date of the Log file, if the file does not exist, set value to 0
if [ -e $LOG_FILE ]; then
LASTRUN=`stat -t $LOG_FILE | awk '{print $14}'`
else
LASTRUN=0
fi;

# Get current date in epoch format
CURRDATE=`date +%s`

# Check the interval
INTERVAL=$(expr $CURRDATE - $LASTRUN)

# If interval is more than the set one, then run the main script
if [ $INTERVAL -gt $RUN_EVERY ];
then
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "SQLite database VACUUM and REINDEX started at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

for i in `busybox find /d* -iname "*.db"`; do
/system/xbin/sqlite3 $i 'VACUUM;';
resVac=$?
if [ $resVac == 0 ]; then
resVac="SUCCESS";
else
resVac="ERRCODE-$resVac";
fi;

/system/xbin/sqlite3 $i 'REINDEX;';
resIndex=$?
if [ $resIndex == 0 ]; then
resIndex="SUCCESS";
else
resIndex="ERRCODE-$resIndex";
fi;
echo "Database $i: VACUUM=$resVac REINDEX=$resIndex" | tee -a $LOG_FILE;
done

echo "SQLite database VACUUM and REINDEX finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
fi;



It will give you VACUUM and REINDEX results

THX, found another one.
Have no clue why this is not working well, errcode14 is reffered to no access to DB. When Vacuum command is started, there must me created templorary DB, it seems that there is no rights to do it.
 
  • Like
Reactions: Danster840

Danster840

Senior Member
Feb 14, 2011
230
105
South Florida
THX, found another one.
Have no clue why this is not working well, errcode14 is reffered to no access to DB. When Vacuum command is started, there must me created templorary DB, it seems that there is no rights to do it.
After double checking and trying two different scripts I get same, vacuum error only. I must of just noticed the success and not the errors. I'm thinking it could be lollipop doing it to me? Zip align script fails as well all together since I went to touch wiz lollipop. I confirmed that the binary at least for me isn't causing it. I get same error with the supplied binary. Could someone also confirm that binary version isn't causing this?
 

Atento

Senior Member
Jun 18, 2010
623
244
Curitiba
If I just replace SQLite 3.8.8 without this script, will it work? Is this script really necessary to make everything work?
 
  • Like
Reactions: qubbus
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    WORKS ON ALL ANDROID DEVICES

    Be sure to have busybox and init.d support, thank you.

    Hello everyone. Today, I present my first mod for you guys XD

    This installs the zipalign and sqlite3 binaries, also puts scripts in the init.d folder.

    These will improve performance and smoothness of apps :)

    HOW TO INSTALL?

    1) Download the zip file

    2) Put it in your phone

    3) Boot into recovery and flash it :)

    HOW TO REMOVE?

    1) Download the removetweaks.zip

    2) Put it in your phone

    3) Boot into recovery and flash :)
    2
    thanks.
    I isntaled init d from playstore.
    now can I flas this binari ?
    Yes if after you install the app, as well as busybox and after the app confirms you have init.d reboot 2 times and check /data/ for test.log.

    The app should right a test.log if it's working correctly. You can flash the zip but I recommend you update your sqlite3 binary with the one linked earlier 3.8.8

    I did something similar to the post directly above this one. I used a different sql script to this one, but I use this zipalign script
    1
    Hello mate ! I will give a try ;) Thanks !
    1
    Buddy,

    Thanks for the effort but my device started to reset itself up after the boot process giving an error "Authorization failed." I could hardly delete the files in init.d folder and installed busybox again but it did not fix the problem. I still get the same error and resets. I am on Omega Rom v7 with ktoons kernel.

    Please attach here asap a resep .zip file so that users like me can go back when they face the same problem. I am waiting for it.

    Regards.

    Alright, sorry to hear that.
    I'll make another zip file ASAP
    1
    Thread closed at OP's request