yashsingh1/xdaforums huggingface dataset:
[Amazfit] jprelay:
There is still the typo in the remover routine:

adb shell rm -f /system/etc/init.d/Battey_tweaks

it should read

adb shell rm -f /system/etc/init.d/Battery_tweaks
[Amazfit] Damoedge:
There is no init.d support in the OP's own Rom (Pacificator Rom) for the pace, the folder init.d is there but it is not working at all, i think not linked correctly,,, so no scripts at all will work at boot... No support and yes i have tested it.

I hope it is fixed soon
[Amazfit] Damoedge:
OK after hours of trying to figure this out and mistaken [MENTION=5062938]Saratoga79[/MENTION] as the mod developer (sorry again about that and thanks for your help) ihave sorted it out.

Your busybox is defo broken and if you delete al the lines in your batch script containing "busybox" it will work because it will use the busybox already on a custom Rom just like [MENTION=5062938]Saratoga79[/MENTION] said...

Thanks for your hard work on this mod i got it working after all....it brought me back down memory lane in the old days when we all first realised we had an init.d folder and what we could do with it...lol...lol...
[Amazfit] polfrank:
In which way isn't the included busybox file working?

I omited the line that you sugget, but I let the script install the busybox file and I get this through adb shell:

1|root@watch:/ # busybox
busybox
BusyBox v1.21.1 (2013-07-08 11:09:23 CDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
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:
[, [[, acpid, add-shell, addgroup, adduser, adjtimex, ... zcip
[Amazfit] Saratoga79:
AFAIK, adb shell busybox uses busybox binary from /system/bin and its built-in in all firmwares. Latest version for MIPS is 1.29.3 compiled by [MENTION=4544860]osm0sis[/MENTION] but you can find some other versions here at XDA. I always use latest version on my ROMs.

adb shell busybox
BusyBox v1.29.3-osm0sis (2018-09-25 17:50:03 ADT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

The busybox in /system/xbin is the binary needed to run init.d scripts and the binaries used in those scripts. That's why I think that there is something wrong with /system/xbin busybox binary and/or the command I mentioned last day, I may be wrong, but latest mod installer breaks something in my init.d support, not 100% sure about what it is.

Replacing the busybox binary installed by this mod with the one I use, v1.29.3 for MIPS, enables again init.d support.
[Amazfit] AmazDev:
Hello, can you share this binary so I can add it to my mod? Thanks!

Inviato dal mio G8141 utilizzando Tapatalk
[Amazfit] Saratoga79:
Sure, and the source thread is this: https://xdaforums.com/showthread.php?t=2239421
[Amazfit] osm0sis:
You're better off getting it from my module's GitHub: https://github.com/Magisk-Modules-Repo/busybox-ndk?files=1

Please just remember to provide credit for using my binary. I have no plans to stop supporting mips any time soon. :)
[Amazfit] polfrank:
I copied your busybox file both on /system/bin/ and /system/xbin/ . (It was needed to mount system as rw)

However, when I do a "adb shell busybox" command it says it is version 1.21.1 or something.... :/

Then:

rm /system/bin/busybox

ls /system/bin/ --> busybox is missing, wich is fine.

adb shell busybox --> shows busybox content and version normally! How is this possible, since I delete the busybox file from "/system/bin/" ??
[Amazfit] AmazDev:
I don't get how MIPS links to busybox in Android. I think the arm release should be fine right? [emoji848]

Credit is a must of course, its your work, people must know it. [emoji736]

Inviato dal mio G8141 utilizzando Tapatalk
[Amazfit] osm0sis:
If this device is mips, use mips.
[Amazfit] Saratoga79:
Did you set correct permissions for each file and reboot? Windows installer attached.

[COLOR="Blue"]adb devices
adb root
adb remount rw
adb push busybox /system/bin
adb push busybox /system/xbin
adb shell chmod 0755 /system/bin/busybox
adb shell chmod 0755 /system/xbin/busybox
adb remount ro
adb reboot[/COLOR]

To check Busybox version

[COLOR="blue"]adb shell busybox cat --help[/COLOR]

Thanks for your work, really appreciated! Btw, do you know if zipalign binary needs/exists a MIPS version as I don't get any zipalign.log, just the zipalign.db
[Amazfit] Damoedge:
If you read my post and leave out the op's busybox on his mod it will work... So delete the install busybox line and run the batch script to install,,, after doing this his mod will still use the busybox already provided on your Rom,, that is if you are using a custom ROM....
[Amazfit] osm0sis:
zipalign doesn't make a log or use a db file. Probably no mips build around, but you could build one using my standalone source from my GitHub. I'm planning to update it to AOSP latest later today.

Edit: Updated. [MENTION=5062938]Saratoga79[/MENTION], here's a mips zipalign for you. ;)

https://basketbuild.com/filedl/devs?dev=osm0sis&dl=osm0sis/binaries/zipalign-mips.zip
[Amazfit] Ericmo:
Interesting but what to do on our watches?
[Amazfit] ngtfr:
hi, it tells me it can't be install on production build (no root?)

how to make it work on a not flashed watch?

Thanks!
[Amazfit] chenrp:
Anyone noticed a difference between the original rom and this tweak?
[Amazfit] Hawk84r:
No. You can have root on stock, but you can't have init.d.
[Amazfit] enroag:
What I did to make it work after many tries:

1) Unlock Bootloader using Huami_AMAZFIT_Tool (different post)

2) Start the watch in fastboot screen to gain temp root access

* I did use the US img beacuse other were not getting root access:

fastboot boot boot-US-adb-root.img

3) Activate init.d support using enabler.sh (different post)

I had some issues here, so I ended up entering the commands one by one myself

4) Not sure if this step is required but I have installed the latest busybox using the busybox.bat

5) Finally install using AmazBoost using AmazBoost_installer.bat

Good luck!
[Amazfit] lawrnz:
How's the battery performance after installing this MOD? I would like to try it to see if it does make the transitions faster and smoother. Feedback anyone?
[Amazfit] chenrp:
any before and after battery life comparison?
[Amazfit] JessyRmT:
How do you see if amazboost is active ?
[Amazfit] lawrnz:
UPDATE: battery performance seems to be better. Got only 15% decrease after 24 hours compared to about 20% before. Regarding the smoothness and faster performance however is not really noticeable. I mean I did not notice much lag before installing this MOD so can't really tell if there's a difference. Using Pace running WOS 2 6.3.1. Maybe this version has fixed lags on previous versions?
[Amazfit] Pistacholoco:
Do you recommend this mod for amazfit stock rom? I hadn't modified it and I don't know which are the advantages of other different roms ?
[Amazfit] saarakura:
there is any way to install this on my stratos with Stock ROM ?
[Amazfit] saarakura:
what custom rom do you recommend?
[Amazfit] ronaldheld:
Before the unit.d and your mod, what method of permanent root should be used for A stratos custom ROMs?
[Amazfit] Babloo289:
Theoritically this should. Work on the amazfit verge too. Am I right ??? Or any changes needed.

Since Verge is new in Indian market, I don't think it has permanent root enabled roms. Could anyone throw some light on it.
[Amazfit] p13rr0t:
Someone tried to install this mod on latest firmware? I get to this part where I need to install mod (root acquired and init.d installed), however it fails to install.
[Amazfit] saarakura:
i think this cannot be installed on stock FW
[Amazfit] illkid69:
did you perma-root your watch and enable init.d?

i would like to test this mod on the latest stock ROM too, since the [MENTION=9467432]AmazDev[/MENTION] mentioned that it can be installed on rooted ROM with init.d enabled.

mind to share which watch that you are using now and how did you perma-root and enable init.d?

i just cannot get the init.d enabler : https://xdaforums.com/smartwatch/amazfit/mod-universal-init-d-enabler-t3858849 works.
[Amazfit] polfrank:
[MENTION=5062938]Saratoga79[/MENTION]
[MENTION=9467432]AmazDev[/MENTION]

Hello. Are the files and comands of the latest release updated? Is the mod usable now by just running the installer? Thanks!
[Amazfit] gironz:
More thks
[Amazfit] bccsergio:
That's not true, it can be installed.

I have a Stratos with international stock rom (model A1619 - ROM 2.3.10.5) and I installed this MOD without problems...

Step 1: Unlocked bootloader with "TOOL_ALL_IN_ONE" ( https://xdaforums.com/smartwatch/amazfit/tool-tool-one-driversunlocktwrpfactory-t3874802 - if for any reason http://unlockamazfit.com/ is unreachable, jus try again using TOR browser )

Step 2: Installed TWRP 3.2.3 with "TOOL_ALL_IN_ONE" ( https://xdaforums.com/smartwatch/amazfit/tool-tool-one-driversunlocktwrpfactory-t3874802 )

Step 3: Rooted my device ( reboot in recovery from "TOOL_ALL_IN_ONE", then flashed "SuperSU-v2.82-wear.zip" from this link: https://androidfilehost.com/?fid=889764386195925570 )

Step 4: Enabled init.d ( https://xdaforums.com/smartwatch/amazfit/mod-universal-init-d-enabler-t3858849 - I had problems with the automated script, so I opened "enabler.sh" in a text editor and executed the installation commands manually in ADB (with "su"). Everything worked out )

Step 5: Installed AmazBoost ( https://xdaforums.com/smartwatch/amazfit/mod-amazboost-speed-watch-t3846136 - Again, I had problems with the automated script, so I opened "AmazBoost_installer.bat" in a text editor and executed the installation commands manually in ADB (with "su"). Everything worked out )

That's it, things are smooth here...
[Amazfit] lfom:
Of course it worked once you unlocked bootloader, now it is not stock anymore...
[Amazfit] cyanides13:
Hi after getting it to work on your device does it really have any noticeable performance boost? What about the battery life?
[Amazfit] bccsergio:
Performance after applying this MOD is amazing... without this mod, my watch was really laggy... after getting the MOD to work it's fast and responsive! Like a difference from water to wine. I have reseted my watch a couple of times due to random reasons and I can't even think of using the watch without the MOD... it's impossible! My battery is lasting for about 2 to 3 days, depending on my use... I guess it's the same as before...

If you can install this MOD, go for it! it's a wonderful job by [MENTION=9467432]AmazDev[/MENTION]!
[Amazfit] hpto:
Awaiting a day that this awesome mod will be available to Verge... :)
[Amazfit] enmriley:
Hi, I am coming from a non-rooted Stratos and want to install this mod. As you know when you want to switch paired phones you need to reset the watch. Once this or any other mod/root is obtained on the Stratos, does it need to be flashed back to stock and unrooted to pair with another phone?

Thanks!
[Amazfit] TheLocke:
is a Version for Amazfit Verge in progress?
[Amazfit] enmriley:
Quick note,

I followed the instructions from "bccsergio" and have a few findings that should help those using his instructions (by the way, thank you bccsergio - you can ignore my PM now :)).

1. The instruction to push the "enable.sh" file fails because the file downloaded is "enabler.sh".

2. Within the "enabler.sh" file there are two errors

A) "chown 0:2000 /system/ect/install-recovery.sh" should be "chown 0:2000 /system/etc/install-recovery.sh"

B) "chmod -R 755 /system/bin/system/etc/init.d" should be "chmod -R 755 /system/etc/init.d"

3. I was able to execute the AmazBoost_installer.bat simply by double clicking the file once the above was corrected.
[Amazfit] McClane685:
Very Good Rom. Easy to Install.

Watch is running since 5 days 2 hours. Still 31% remaining. Amazing !! Runs very smooth
[Amazfit] pidobeuliou:
Hi,

With few difficulties, I have been able to install (I presume) all the tweaks. The scripts didn't work correctly and I made it manually command per command...

How can I verify that the tweaks are well installed and running in my system?

Thanks
[Amazfit] blitzcat:
Hi,

Just want to share my steps installing AmazBoost on stock rom (model A1619 - ROM 2.3.10.5).

Many thanks to bccsergio and polfrank for the insights.

1. Unlock bootloader using TOOL ALL IN ONE (Bootloader -> Unlock)

2. Install TWRP 3.2.3 STRATOS using TOOL ALL IN ONE (Recovery and Root -> Recovery Flasher and Device Rooter)

3. Reboot Recovery and flash SuperSU-v2.82-wear.zip using TOOL ALL IN ONE (Recovery and Root -> Recovery Zip Flasher)

For next steps, since I always got permission error when executing adb command that involved /system, therefore I did it manually executing line by line from command prompt using su. We can copy paste the commands though. Feel free if you want to compile it into .sh

P.S: I did some research, this won't happen if I use modified ROM, because adbd has to be insecure.

4. Enable init.d:

a. Download and extract AmazBoost

b. Open command prompt on the AmazBoost directory

c. Enter this commands:

adb devices (making sure your device is detected)

adb root

adb shell

su

mount -o remount,rw /system

touch /system/etc/install-recovery.sh
chmod 755 /system/etc/install-recovery.sh
chown 0:2000 /system/etc/install-recovery.sh
touch /system/bin/sysinit
chmod 755 /system/bin/sysinit
chown 0:2000 /system/bin/sysinit
mkdir /system/etc/init.d
chmod -R 755 /system/etc/init.d
chown -R 0:2000 /system/etc/init.d

echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
echo "# init.d support" >> /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh
echo "/system/bin/sysinit" >> /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh

echo "#!/system/bin/sh" > /system/bin/sysinit
echo "# init.d support" >> /system/bin/sysinit
echo "" >> /system/bin/sysinit
echo "export PATH=/sbin:/system/sbin:/system/bin:/system/xbin" >> /system/bin/sysinit
echo "run-parts /system/etc/init.d" >> /system/bin/sysinit
echo "" >> /system/bin/sysinit

5. Install AmazBoost (based on AmazBoost v3.2):

a. Copy AmazBoost tweaks (all files ends with _tweaks) and busybox to internal storage (/sdcard), we can do it from windows explorer

assuming tweaks will be inside /sdcard/tweaks/

busybox will be inside /sdcard/busybox/

b. Open command prompt on the AmazBoost directory

c. Enter this commands:

adb devices (making sure your device is detected)

adb root

adb shell

su

mount -o remount,rw /system
mkdir -p /system/AmazBoost/LOGS/

cp -r /sdcard/tweaks/* /system/etc/init.d/
cp -r /sdcard/busybox/* /system/xbin/

chmod -R 0755 /system/AmazBoost
chmod -R 0755 /system/AmazBoost/LOGS
chown 0:2000 /system/xbin/busybox
chmod 0777 /system/xbin/busybox
chmod 0777 /system/etc/init.d/*
busybox ln -sf busybox "/system/xbin/$i"

reboot

6. Done!

Links:

TOOL ALL IN ONE: https://xdaforums.com/smartwatch/amazfit/tool-tool-one-driversunlocktwrpfactory-t3874802

SuperSU-v2.82-wear.zip: https://androidfilehost.com/?fid=889764386195925570

AmazBoost: https://xdaforums.com/smartwatch/amazfit/mod-amazboost-speed-watch-t3846136
[Amazfit] pidobeuliou:
Great ! But how are you sure that the tweaks have been well installed on your Watch?

Is-there any way to check that?
[Amazfit] blitzcat:
If you want to verify result of the tweaks, it is quite noticeable. Now, my Stratos becomes more responsive ;)
[Amazfit] pidobeuliou:
Ok I understand :) I have also installed the tweaks line by line manually as the scripts went in error. I've sucessfully rooted the stratos. I've got some difficulties with the "init.d" step… But at the end, the last busybox command was apparently sucessful without error… :confused:

My Stratos had already a good responsiveness per default without the tweaks. My objective is to extend the battery life up to 7 days without GPS workout.

After 36 hours (1.5 days), the battery is at 78%. So, theoretically, I'll be able to reach ~6,8 days.

Before the tweaks, the Watch reached almost 6 full days.

And you, what is your battery life duration?

PS: I have also an Amazfit BIP with 30 days battery life duration. It's why I'm now a bit frustrated with the Stratos with its "only" 5/6 days ;)
[Amazfit] blitzcat:
Ahh I see, if you want verify, you may do the following:

1. Check the file content of /system/etc/install-recovery.sh and /system/bin/sysinit. You can use "cat" command

2. Check list of files in /system/etc/init.d, make sure the _tweaks files are there. You can use "ls" command

I run 4 times a week, so it wouldn't be apple 2 apple comparing battery life with mine. But usually I charge my Stratos once a week ;)
[Amazfit] pidobeuliou:
Thank you. So I have checked and obtained the following results:

Content of /system/etc/install-recovery.sh is:

Content of /system/bin/sysinit is:

And content of directory /system/etc/init.d is:

I hope it's ok...

I did again the init.d and busybox commands as the battery life was only 6 days.

But I've got an error at the last-1 command:

chmod 0777 /system/xbin/busybox

Unable to chmod /system/xbin/busybox: Too many symbolic links encountered

But the last command busybox was ok apparently. Let's see...
[Amazfit] Kiskor:
Hi, I have a problem with my Stratos. When I try to reboot to recovery, I get "No command" on display. What should I do? Thanks for your help!
[Amazfit] pidobeuliou:
Yes, I've got this message but, if I remember well, the Watch has finally displayed the recovery commands on the screen after few minutes. Then, it has been difficult through the very little screen and big fingers to select the zip file to root the Watch. After many attempts, I succeed.

Not obvious and the procedure is quite unclear and random…

For information, I have finally succeed to install the tweaks. The battery life duration is now very closed to 7 days.
[Amazfit] Kiskor:
Thanks for your reply. I gave up on installing this mod, because I am not able to run the init.d: the procedure is very unclear and there are some misspellings in the script. I am getting the following error:

Mounting system...

Usage: mount [-r] [-w] [-o options] [-t type] device directory

: not foundbler.sh[12]:

/sdcard/enabler.sh[13]: syntax error: 'if' unmatched

I cannot find any information about it. So I gave up. I installed Paceficator (with AmazMod) and it runs ok, but the battery is draining quickly. And I am still getting the "No command" error when trying to boot from recovery.

Thank you again!
[Amazfit] pidobeuliou:
It's a pity to give up as the tweaks really improve the battery life duration and improve a bit the responsiveness of the Watch.

Before doing the init.d configuration, check first if your Watch is well rooted via adb : "adb shell", then "su". The prompt should display root.

Then, you just type line-by-line the commands indicated in the post above from blitzcat posted the first of september.https://xdaforums.com/showpost.php?p=80165007&postcount=141
[Amazfit] Kiskor:
Thank you! It shows root@watch:/ #, is that is? Besides, I don't know if I have TWRP installed because I can not boot into recovery. How do I know it? Bootloader is already unlocked.

---------- Post added at 03:14 PM ---------- Previous post was at 02:39 PM ----------

Well, I think I did it! How can I see it? I think the smartwatch reacts more quickly, but I am not sure. Thank you again for your precious help! Even I can reboot to recovery! MERCI BEAUCOUP!
[Amazfit] reffu:
I had a similar error.

If it's like mine, the issue is that the script uses windows-style crlf line-endings, but the shell is linux-based and looks for lf.

I fixed it by replacing all crlf with lf. To do that , in your favorite editor (not windows notepad) replace \r\n with \n

The process in Notepad++ -> go to search and replace (ctrl+h)-> search mode extended (or regex)-> find what: \r\n replace with: \n -> replace all

After saving and trying again it worked without issue.
[Amazfit] pidobeuliou:
:good:

You are at the same situation than me few days ago!! How to make sure that the tweaks are well installed?

I have checked the files as proposed by blizcat:

1. Check the file content of /system/etc/install-recovery.sh and /system/bin/sysinit. You can use "cat" command

2. Check list of files in /system/etc/init.d, make sure the _tweaks files are there. You can use "ls" command

And I have got the results in post #146.

https://xdaforums.com/showpost.php?p=80211947&postcount=146

Then, you have just to wait 7 days to check if your watch is still alive :)

For your information, this is the second Week I have installed the tweaks.

First Week: 7 days duration (but no more)

Second Week: The Watch has been reloaded 1 day 17 hours ago, and the battery is at 80%.

This means, in theory, without any GPS workout, the battery duration should be 8.5 days.

Wait and see ;)
[Amazfit] Kiskor:
Yes, I have similar results as you, I am getting some additional files (not tweaks, but 00-Setperm, 01-NNTeam and 99SuperSUDaemon) in the last part. I will see, thanks again!
[Amazfit] simcold:
With this mod bateery improve on Pace?

Wysłane z mojego MI 9 przy użyciu Tapatalka
[Amazfit] Kiskor:
Well, I think the battery is draining faster than with factory ROM, but maybe it is my feeling. I reloaded the watch 22 h ago and the battery level is 79%. What do you think?
[Amazfit] enmriley:
Blitzcat,

Thank you for your post. I was able to get Amazboost to work once, but after restoring the watch, I was having a difficult time getting root to stick. Following your instructions worked.

Just a note for others, your statement "a. Copy AmazBoost tweaks (all files ends with _tweaks) and busybox to internal storage (/sdcard), we can do it from windows explorer assuming tweaks will be inside /sdcard/tweaks/busybox will be inside /sdcard/busybox/" is a bit confusing.

I understand what you you are referring to, in laymen's terms, the user needs to create the two folders (using Windows Explorer) on the watch, "tweaks" and "busybox". Then still using Windows Explorer, copy all the _tweaks files to the tweaks folder, then copy the busybox file to the busybox folder.

Following your instructions after this, worked without flaw! I (and I am sure others) appreciate you taking the time to post your process.
[Amazfit] zakk83:
Hi, sorry for this kinda of necroposting. Have anyone notice if this mod works even for Stratos 3? Thanks in advice
[Amazfit] fash99:
Hi.

This mod should be works on the last rom version 2.8.5 in amazfit Pace?

thanks
[Amazfit] hpto:
Hi! No way to extend this mod to Verge? Tks a lot.
[Amazfit] Fabio Feher:
Anyone knows if WOS or Hybrid ROM implemented this? Im running WOS, if I use this mod my Pace will run faster? Anyone tested?
[Amazfit] sakaki14567:
i would like to know too if this works on stratos 3
[Amazfit] pentedemadeira:
Working in a Stratos 2 amazing well
[Amazfit] stepanoff68:
I had Amazfit Pace, on them AmazBoost worked perfectly! Now I have changed Pace to Stratos 3. I am also interested in how this Mod will work on them.
[Amazfit] InsertCoin_Pls:
Deleted
[Amazfit] astilita:
Ever got an answer for this, mate?
[Amazfit] stepanoff68:
There was an answer, then it was deleted. I installed Amazboos, everything works fine, it seems to me a little smoother and there are fewer errors with the clock.
[OnePlus 6 Questions & Answers] MattNoblett:
So I've just updated to the Official Android Pie stable and have been flicking through the settings to see if there's anything new.

I searched the settings to see if the fingerprint gesture was available and it appeared to be available (see image), however when I select the the option it takes me to the section within settings and it's not there (again see attached).

Does anyone have information on this? Has it been disabled by OnePlus?