Automated TWRP Nightly Backup - LG K20 Plus Guides, News, & Discussion

Love flashing @Travisholt92 's Custom ROMs but want to make sure you have a backup on hand? Here's your solution.
1) Download Tasker
2) Open Tasker, under profiles tab click the + button in the bottom right corner
3) Click Time, set a time you'd like to perform a backup. (Both start and end times make the same [i.e. 4AM;4AM])
4) Click the back button once time is selected, then click the + on the new task button
5) Type "Nightly Backup" and click the ✓
6) In the "Task Edit" window click the +, scroll down to "code"
7) Enter
Code:
rm -rf [COLOR="Red"]/storage/2151-1D18/TWRP/BACKUPS/LGMP2602ef1e4ad/nightlybackup*[/COLOR];
chmod 664 /cache/recovery;
echo "set tw_storage_path /external_sd";
echo "backup SDBOM nightlybackup \ncmd reboot" > /cache/recovery/openrecoveryscript
Note: Go into a Root Browser add a folder in your backup location called "nightlybackup". Copy the location of the folder and paste it into the red area specified, add the * after
8) Check off "Use Root"
9) Go back to the previous (Task Edit Screen) and press the + button again, scroll down and click "System" and then "Reboot"
10) Select "Type" as Recovery
11) Finally, press the ► button in the bottom left of your screen. It should reboot, backup and then reboot automatically again (May prompt to press power button as usual)
Note: I set my backup at 4AM after my Titanium Backup at 3AM so my phone is completely backed up and rebooted for my alarms to go off in the morning!
This code will also remove the previous Nightly Backup in that folder to be replaced with the new one upon Reboot to Recovery so you don't max out your storage! Enjoy!
Credit to @MishaalRahman for the original Tasker source!
Credit to @Travisholt92 for making awesome Custom ROMs

Related

How to install ClockworkMod Recovery on Android 1.5 when permission is denied Cliq XT

Phone is Rooted. Trying to install CyanogenMod by following official instructions: http://wiki.cyanogenmod.com/wiki/Motorola_Cliq_XT:_Full_Update_Guide
Cliq XT phone was never updated from Android 1.5 so directly installing ROM Manager from Market is not an option since it requires Android 2. Trying Method 2 and this part is a problem:
adb push recovery-clockwork-4.0.0.5-zeppelin.img /sdcard/recovery-clockwork-4.0.0.5-zeppelin.img
* * * Permission Denied * * *
There is nothing in official instructions talking about enabling permissions.
EDIT, fixed: I turned the USB drive off on the phone. I guess you are supposed to not turn on USB drive on the phone.
1. I moved image file recovery-clockwork-4.0.0.5-zeppelin.img to
C:\android-sdk-windows\platform-tools
2. Rooted phone can be accessed from Windows and USB Debugging is checked under Phone Settings > Applications > Development
3. Windows DOS prompt
cd android-sdk-windows\platform-tools
adb push recovery-clockwork-4.0.0.5-zeppelin.img /sdcard/recovery-clockwork-4.0.0.5-zeppelin.img
* * * Permission Denied * * *
After that I would try to do the following but there is nothing in official instructions talking about enabling permissions.
adb shell
su
cd /sdcard/
flash_image recovery recovery-clockwork-4.0.0.5-zeppelin.img
reboot recovery
The ClockworkMod Recovery should now be installed on the Motorola Cliq XT.
CyanogenMod 7 for Cliq XT
0. The Cliq XT is known as Zeppelin.
CyanogenMod nightlies changelog: http://cm-nightlies.appspot.com/?device=zeppelin
CyanogenMod nightly download: http://download.cyanogenmod.com/?type=nightly&device=zeppelin
1. Install Motorola USB drivers:
http://www.motorola.com/Support/US-...tware_and_Drivers/USB-and-PC-Charging-Drivers
2. Copy latest version of Google Apps like gapps-gb-20110828-signed.zip and the latest nightly build like cm_zeppelin_full-246.zip to the SD card.
http://wiki.cyanogenmod.com/wiki/Latest_Version#Google_Apps
http://download.cyanogenmod.com/?type=nightly&device=zeppelin
3. Install Java SE Runtime Environment (JRE): http://www.oracle.com/technetwork/java/javase/downloads/
4. Get Android SDK zip: http://developer.android.com/sdk/
5. Unzip it and start SDK Manager.exe and download Android SDK Tools.
6. Get ClockworkMod Recovery:
http://download.clockworkmod.com/recoveries/recovery-clockwork-4.0.0.5-zeppelin.img
Copy recovery-clockwork-4.0.0.5-zeppelin.img to
Android SDK folder android-sdk-windows\platform-tools
7. Phone Settings > Applications > Unknown sources (select green check mark to activate it)
Settings > Applications > Development > Enable USB Debugging
Make sure the phone is rooted. Check if Superuser icon is in the drawer menu.
In case of problems, flash back to Blur_Version.1.31.44
*** Connect the phone to computer but DO NOT enable USB Drive ***
8. Use DOS to navigate to the android-sdk-windows\platform-tools directory
for example, if the folder location is C:\android-sdk-windows\platform-tools
then in type this in DOS:
c:
cd android-sdk-windows\platform-tools
adb shell
su
***You must press on Allow on the phone when prompted***
cd /sdcard/
flash_image recovery recovery-clockwork-4.0.0.5-zeppelin.img
reboot recovery
As the phone reboots, hold the Camera button (top of the phone on the right) while phone is powering on.
When prompted, press Volume Down button (bottom of the phone on the right).
9. Use Volume buttons to navigate, Camera button (top of the phone on the right) to select:
wipe data/factory reset > Yes -- delete all user data > * wait for Data wipe to complete * >
10. Use Volume buttons to navigate, Camera button (top of the phone on the right) to select:
wipe cache partition > Yes -- Wipe Cache > * wait for Cache wipe to complete * >
11. Use Volume buttons to navigate, Camera button (top of the phone on the right) to select:
Install zip from sdcard > choose zip from sdcard > CyanogenMod update.zip, for example cm_zeppelin_full-246.zip > Yes - Install cm_zeppelin_fu > * wait for Install from sdcard to complete * >
12. Use Volume buttons to navigate, Camera button (top of the phone on the right) to select:
choose zip from sdcard > Latest version of Google Apps, for example gapps-gb-20110828-signed.zip > Yes - Install gapps-gb-20110 > * wait for install from scdard to complete * >
13. Press Power button to go back to main list > reboot system now
Make a backup of this initial state before starting your personal customizations and app installs:
14. Wait for the first boot to settle, go to your Android drawer and Open ROM Manager app > Backup Current ROM > Install ClockworkMod Recovery when prompted > Allow > Backup Current ROM
• Updating from a previous build:
Open Rom Manager > Install ROM from SD Card > Select the latest nightly >
A window will pop up [Leave Wipe Dalvik CHECKED here]
(optionally, CHECK: Backup Current ROM)

[Q] [SL4A] Noob problem: SL4A + Pyton doesn't work.

Hello
I have started to read "Pro Android Python with SL4A" by Paul Ferril & immediately failed while trying to execute Python script. I'd be very thankful to anybody who can provide a little explanation about SL4A + Python installation process.
So, my steps:
1) I opened this page, read QR code, downloaded and installed sl4a_r6.apk.
2) I opened previously installed SL4A app on my phone, press Menu > View > Interpreters, the list of the interpreters appeared with only one item - "Shell".
3) I pressed Menu > Add > Python 2.6.2, this started downloading of the "PythonForAndroid_r5.apk". I downloaded that file & installed it.
4) I opened newly installed "Python for Android" and press "Install" button in the app. Some components and scripts were installed successfully.
5) I opened the "SL4A" app again, press Menu > View > Interpreters, the "Python 2.6.2" item appeared in the list together with the "Shell".
6) I pressed "Back" button, the "Scripts" screen appeared with a list of scripts with the "py" extension.
7) I pressed on the "hello_world.py", the little pop-up appeared with the buttons "Execute", "Settings" (at least, with the settings icon), "Edit" and so on.
8) If I press the "Execute" button, I get only the black screen with the label "hello_world.py exited".
9) If in "SL4A" app I press Menu > View > Interpreters and the select "Shell" I will get terminal with the Linux Prompt ".... $". But If I go to the SL4A > View > Interpreters and the select "Python 2.6.2" I will receive black screen with the label at the top: "Python 2.6.2 exited."
So, as from the novice's point of view, the Python process is terminated each time I try to start it. What can be done in this situation?
--
Device: Lenovo Vibe Z2 Pro (international version) / Android 5.0.2, Stock Rom - K920_S230_150506_ROW / Rooted
It seems I've created this topic in the wrong forum section, so I ask the respectable moderators to delete this topic. Thank you.

[Q] SL4A + Pyton doesn't work.

Hello
I have started to read "Pro Android Python with SL4A" by Paul Ferril & immediately failed while trying to execute Python script. I'd be very thankful to anybody who can provide a little explanation about SL4A + Python installation process.
So, my steps:
1) I opened this page, read QR code, downloaded and installed sl4a_r6.apk.
2) I opened previously installed SL4A app on my phone, press Menu > View > Interpreters, the list of the interpreters appeared with only one item - "Shell".
3) I pressed Menu > Add > Python 2.6.2, this started downloading of the "PythonForAndroid_r5.apk". I downloaded that file & installed it.
4) I opened newly installed "Python for Android" and press "Install" button in the app. Some components and scripts were installed successfully.
5) I opened the "SL4A" app again, press Menu > View > Interpreters, the "Python 2.6.2" item appeared in the list together with the "Shell".
6) I pressed "Back" button, the "Scripts" screen appeared with a list of scripts with the "py" extension.
7) I pressed on the "hello_world.py", the little pop-up appeared with the buttons "Execute", "Settings" (at least, with the settings icon), "Edit" and so on.
8) If I press the "Execute" button, I get only the black screen with the label "hello_world.py exited".
9) If in "SL4A" app I press Menu > View > Interpreters and the select "Shell" I will get terminal with the Linux Prompt ".... $". But If I go to the SL4A > View > Interpreters and the select "Python 2.6.2" I will receive black screen with the label at the top: "Python 2.6.2 exited."
So, as from the novice's point of view, the Python process is terminated each time I try to start it. What can be done in this situation?
--
Device: Lenovo Vibe Z2 Pro (international version) / Android 5.0.2, Stock Rom - K920_S230_150506_ROW / Rooted
Did you ever find an answer to this? I'm having the same issue.

[Help!] Update System with Terminal Emulator with Error "no space left on device"

[Help!] Update System with Terminal Emulator with Error "no space left on device"
I follow the following instruction to update my Meizu Pro5 with success for several times, but i got an error message "no space left on device" this time. Is there any way to solve this?
1. Enable root
Enable root by tapping on Settings-> Accounts-> My Flyme-> Personal settings (first option) -> System privileges and set it to open - accept disclaimer and confirm.
2. Download and successfully install Busybox (from Google Play or see .apk below)
3. Download and install a Terminal Emulator (from Google Play or see apk below)
4. Download the correct and desired international (i) ROM/firmware (update.zip) for your device
5. Download and use the update.zip (firmware) converter that creates the required system-i.img
Click here to download converter first
Copy system.new.dat and system.transfer.list (from the update.zip) to the folder “in” (see converter folder)
Then start the converting process by starting System-conVERTER.cmd and pressing option 1 [enter]
If successfully converted you can find the system-i.img in the ‘‘out’’ folder.
6. Copy the converted system-img from ‘‘out’’ to the internal memory of your Meizu device
7. Go to Settings-> Display-> Sleep and set it to at least 10 minutes
8. Start the Terminal Emulator and run (type) the super user command
su
A permission popup will come; give permission by tapping allow (always allow).
9. Now run (type) the command for installing the system-img.
dd if=/sdcard/system.img of=/dev/block/platform/XXXXXXX/by-name/system
Replace XXXXXXX with the correct partition system for your device
MX4 Pro = 15540000.dwmmc0
M2 note = mtk-msdc.0
MX4 = mtk-msdc.0 (OR mmcblk0p6)
MX5 = mtk-msdc.0 (OR mmcblk0p18)
Pro 5 = 15570000.ufs
Example for MX5 : dd if=/sdcard/system.img of=/dev/block/platform/mtk-msdc.0/by-name/system
Note: Pro5 might require: dd if=/storage/emulated/0/system.img instead of /sdcard/
10. The installation should start after the ‘‘dd if’’ command, but please note…
…it may seem that the copying/process did NOT start because you didn’t notice it, but it DID start.
do NOT type a new command or whatsoever, just…
…be patient and give your device 5-10 minutes to process.
11. When the process is done you’ll see a # at the very end
Your device should be unresponsive by now - this is normal
12. Now just shutdown your phone (hold power button) and reboot it
13. Once successfully booted your device should be running an I-rom
Once in Flyme again it is wise - but not necessary - to completely reset your phone. Go to settings->about phone->memory->factory data reset-> check both boxes and click start cleaning (this could take 5-10minutes). Always backup your stuff if necessary.

How To Guide Disabling Boot Animation & Sound

This is more of a personal preference type of deal. If you have the T-Mobile model of the phone, you might notice how jarring the jingle is when you're booting up the phone every time. Here's what to do if you dislike the noise:
1. Install Magisk (either using TWRP or the boot partition method)
2. Go to the fourth tab in the Magisk app and search for MagiskHide Props Config. Enable MagiskHide in Magisk settings and any other modules you want
3. Reboot
4. Connect to PC and run adb shell.
5. Enter "props"
6. Select "Add/edit custom props"
7. Select "New custom prop"
8. Enter "debug.sf.nobootanimation"
9. Enter "1" as the value,
10. Select "Default" as the boot stage
11. Save and reboot.
12. No more T-Mobile boot sounds!
EnumC said:
This is more of a personal preference type of deal. If you have the T-Mobile model of the phone, you might notice how jarring the jingle is when you're booting up the phone every time. Here's what to do if you dislike the noise:
1. Install Magisk (either using TWRP or the boot partition method)
2. Go to the fourth tab in the Magisk app and search for MagiskHide Props Config. Enable MagiskHide in Magisk settings and any other modules you want
3. Reboot
4. Connect to PC and run adb shell.
5. Enter "props"
6. Select "Add/edit custom props"
7. Select "New custom prop"
8. Enter "debug.sf.nobootanimation"
9. Enter "1" as the value,
10. Select "Default" as the boot stage
11. Save and reboot.
12. No more T-Mobile boot sounds!
Click to expand...
Click to collapse
Excellent tip! Thanks for sharing it.

Categories

Resources