[Script] AndroBackup 0.2 CLI tool for GNU/Linux - G1 Android Development

This is a little tool for Android phone management under Linux:
* Ext/Swap/Fat partitioning
* Fat32 and Ext2/3/4 backup/restore
* Ext2->Ext3 and Ext3->Ext4 conversion
* Ext repair
http://www.b1project.com/files/1/androbackup.sh
Configuration :
edit the script and change the first two vars (adb path and backup path).
Code:
ADB="adb"
path="$HOME/Android/ModifDream/Backup"
Usage :
simply run it in your favorite term.
Code:
./androbackup.sh
TODO
* Display system info (disk usage, process, etc...)
* ...

Works for me. Just need to add a few more goodies to it.

Related

[SCRIPT] Cron Support Setup

This is a copy of my thread in the Gnex forum. It should work on other devices as far as I know.
This script will setup cron jobs for you. Please unzip Z_cron and run cronsetup.sh as root
How it Works
* Sets up /etc/cron.d folder
* Places file in /etc/init.d to start cron on boot
How to Use
* I have a little how-to here
https://github.com/swarlesbarkely/android-scripts
* Place scripts you want run in minutely/hourly/daily folders
* I use it mostly for renice-ing processes
Ex. 0 * * * * busybox renice -6 -u u0_a82; --> helps keep Lux from getting killed so easily. You can find the right uX_aXX by using OS Monitor
https://f-droid.org/repository/browse/?fdfilter=os monitor&fdid=com.eolwral.osmonitor
Any questions? Google it. If that doesn't work, just ask and I'll try my best to help.
If you have a useful cron script, please share! Full credit will be given!
TO DO:
* Make it recovery flashable
CREDITS FOR SCRIPTS
Credit is also given at the head of each script
DHO -- 00sqlitespeed
7175 -- fs_sync_mode, mounts, mtu_fsio, nfc_down

TWRP 2.8++ for XOLO Q800

TWRP 2.8.x.x for your belovedXOLO Q800/Fly IQ446/Gionee Gn708w
Hey friends,
Here i share you the latest twrp recoveries for our device. Hope u like it.
FYI: Options included in the recovery and its meaning.
System - contains Android o.s (rom)
Android secure - contains apps installed in sdcard
Data - contains apps installed in internal memory and data of all apps
Cache - contains temp files
Recovery - contains recovery.img
Boot logo - contains boot logo
Nvram - contains imei and wifi info
Secro - contains radio files
( nvram and secro backup can to used to retain ur old imei back)
upload pictures
free upload image
photo share
free photo hosting
pictures upload
uploading pictures
CHANGELOG for 2.8.0.0-V1:
-Add MTP support to recovery thanks mostly to bigbiff with a little help from Dees_Troy
-Add command line capabilities - you can now execute various TWRP features via adb instead of the touchscreen
-Add support for color in the console and give error, warning, and highlight lines different colors
-Track backup and restore progress based on file sizes to provide a much more accurate indication of progress
-Improve handling of /misc thanks to mdmower
-Improve setting of time on Qualcomm devices thanks to [NUT]
-Allow using images on slidervalue GUI objects thanks to Tassadar
-Allow using variables and addition and subtraction in variables for easier theming
-Add support for 1440x2560, 280x280, and 320x320 resolutions and update 240x240
-Allow ui.xml file to include additional xml files to help break up the theme and make TWRP easier to maintain
-Other minor fixes and improvements
Over the course of the last year or so, bigbiff has worked to migrate various Java functions from Android's MTP implementation to bring you a fully C++ based MTP implementation that allows you to transfer files to both emulated storage and Micro SD cards. It's confirmed to work on various Nexus devices but we may have to make some changes on other devices to keep Windows happy. Windows is very picky about USB IDs and its drivers. We have tested it on Windows 7 and 8 as well as Ubuntu 14.04 Trusty. MTP is enabled by default, but we do toggle it off and on automatically during certain operations such as if you choose to wipe a storage partition. You can enable or disable MTP under the mount menu in TWRP. For more about what MTP is here.
Note: Due to a weird bug with our MTP setup, you cannot copy a zip file to the root of storage with Windows. You can change the .zip to something else like .txt and then copy it to the root and rename the file back to .zip once it's copied to the device. You can also copy the zip into any subfolder.
Command line support is also now available. You can perform various OpenRecoveryScript commands via the adb shell. Depending on what you are doing you may wish to do a "twrp set tw_mtp_enabled 0" and then reboot to prevent the MTP auto toggle from killing your adb interface. You can use this option to create and restore backups, wipe, install zips, and more. Via adb shell, type twrp followed by a space then enter the OpenRecoveryScript command and hit enter. Find more OpenRecoveryScript commands here.
CHANGELOG for 2.8.0.0-V2:
-adb is now working with this recovery
-Other minor fixes and improvements
CHANGELOG for 2.8.2.0:
MTP fixes and improvements - you can now copy zips to the root of storage - thanks to _that
Pull in all changes from Android 5.0 lollipop into TWRP
Add decrypt support for Android 5.0 lollipop encrypted partitions including automatic decrypt when the default_password is in use
Revert some changes to exFAT that were breaking exFAT support on some devices
Other minor fixes and updates
Note: At this time we do not have a GUI representation for pattern unlock. You can still decrypt patterns though by translating the pattern dots to numbers. The pattern dots correspond to numbers in the following pattern:
1 2 3
4 5 6
7 8 9
So an upper-case L would translate to a password of 14789 entered on the keyboard. Eventually we plan to add a proper pattern unlock to TWRP but it is a relatively low priority at this point.
HTML:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
INSTRUCTION:
In case if you are using custom recovery
-Download TWRP-2.8.zip from the attachment
-Place it in root of Sdcard
-Flash it via any Custom Recovery
-REBOOT
In case if you are using stock recovery
-Make sure that your Device is Rooted
-Download and Install Rashr from Play Store
-Download Extract and Copy the recovery.img to SD card of your device
-Open app and Select Recovery from Storage
-Press Yes on asking if you're sure
-After Flashing is complete Reboot to Recovery
Bugs TWRP 2.8.0.0-V1:
-adb not working in recovery
-usb mass storage not working (mtp working sometimes)
Bugs TWRP 2.8.0.0-V2:
-usb mass storage, mtp instable (kernel related)
Bugs TWRP2.8.2.0:
-NOTHING (If u find anything, pls report)
Download TWRP2.8.4.0:
https://docs.google.com/file/d/0B-KKDkJXTNpNc2RuNjBGd2tjcEk/edit?usp=docslist_api
Credits:
[email protected]_Troy (for his contribution in TWRP)
[email protected] (for his awesome tutorials and tools)
[email protected], ANDR7E (4pda.ru forum) and Arthur Shanyazov (for their contribution in kernel of q800)
[email protected] and all who helped me everytime
-ME (for porting)
If u like my work, dont forget to HIT THANKS button
Thank you very much
quakze said:
Thank you very much
Click to expand...
Click to collapse
Welcome
Regards,
Karthick
usb mount not working
factory reset is failing
TWRP 2.8.4
https://drive.google.com/file/d/0B9GVC-8ngPfqdk5uSEVnVm9jdDA/view
quakze said:
usb mount not working
factory reset is failing
Click to expand...
Click to collapse
Download twrp 2.8.4.0
Thank you very very much for your work. All work fine
cristicaras said:
Thank you very very much for your work. All work fine
Click to expand...
Click to collapse
Welcome :thumbup:
Regards,
Karthick

[EOL] [TOOL] Droid PC Suite [Windows | Linux | MacOS]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I present you Droid PC Suite (DPCS for short), as the name suggests it is a kind of toolbox application written in java for cross platform support. This project as been inspired from Android Ultimate Toolbox Pro. Now the question arises that why reinvent the wheel? Since Android Ultimate Toolbox Pro is designed for Microsoft® Windows, So what about those users who run Linux/ macOS? So, keeping this in mind Droid PC Suite has been developed. Btw, it also works on Microsoft® Windows. Initially started as my college project and now I've released it. And did I mention that it is free? Yeah free as in free speech, not as in free beer! This project is licensed under GNU General Public License, version 2.
Caution! This program is not foolproof! Do not try to outsmart it by playing tricks, because you may result with an expensive brick in the worst case! If you don't understand a feature you probably don't need it, just lookup about it on google before trying something out.
/*
* I assume that your android device warranty may be void by now.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this application
* before using it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
*/
Features
* App Manager (Install/Uninstall Apps + Bloatware)
* Sophisticated file manager
* ADB tools
* Take screenshots
* Record android device screen
* Flash any file using flasher
* Wipe partitions
* Unroot
* Reboot to different modes
* Unlock/ Lock bootloader
* Advanced backups
* Restore from backups
* Bypass 'your' device security (Android 4.4 and below)
* build.prop Editor
* Unpack APKs
* Repack APKs
* Cryptographic hash sums comparing and calculator
* Clear battery stats
* Launch activities of the apps
* ifconfig and netstat
* View running processes
* Bundled ADB, Fastboot, sqlite3 and various other related tools for Windows
Requirements
Windows
* JRE 8 Download here
Linux (and how to install)
* Just download, extract archive and run Dependencies_Installer_for_Linux.sh (For APT package management distributions ex. Ubuntu, Linux Mint, Debian etc.)
Code:
$ ./Dependencies_Installer_for_Linux.sh
Note : You need to modify Dependencies_Installer_for_Linux.sh to install on Linux distributions like Fedora, Red Hat Enterprise Linux, Arch Linux, etc.
Workarounds
* Use USB 2.0 to connect android device to system instead of USB 3.0.
* If device is not detected by Droid PC Suite try clicking "Force connect" option.
* You may also need to install your android device USB drivers.
* If some operations do not work on windows, please replace ADB and fastboot files with their newer or older versions.
* Don't worry if the app says to connect your device while android is not booted ex. fastboot, bootloader, booting etc.
* Click here for help with connectivity of android device on Linux.
Note: Please use latest java to use this application or this application may not work as expected!
Known issues
None till now. Feel free to report them! I will try to fix them as soon as possible.
How to use?
1. Go to settings
2. Tap "About phone" if you can't see Developer options. If you can see it, tap developer options and skip to step 5.
3. Keep tapping "Build number" until it says that "No, need, you already are a developer." or something similar.
4. Go back to settings and tap Developer options.
5. Find USB debugging, turn it on and allow USB debugging.
6. If a message appears asking to allow USB debugging, check "Always allow from this computer" checkbox and tap OK.
7. Go back to home screen.
Download Now
Source here​Changelog
Code:
Version 1.9 (Build 171014)
* Removed logcat viewer and related features as "they were deprecated and buggy in DPCS"
* Support for uninstalling system apps easily without root added
* Priv-apps and System apps uninstallers are now unified into one
* Removed unreliable status "Device is not rooted" to prevent confusion
* Removed ADB Terminal since it was just experimental
* Added support for detecting official in-built root in LineageOS devices
* Fixed a bug which made device info stay intact after disconnecting the device
* Updated library commons-lang3-3.5 to commons-lang3-3.6
* Improved exception handling
* Bundled ADB and Fastboot for Windows updated to Pkg.Revision=26.0.1
* Minor improvements to UI
Version 1.8 (Build 170530)
* Added new tools: ifconfig, netstat and running processes viewer
* Now DPCS shows information like manufacturer, codename and android version of the device by default
* Added new information to common workarounds
* UI fixes and improvements
* Latest ADB and Fastboot for Windows built-in
Version 1.7 (Build 170128)
* Added a tool to clear the battery statistics
* Added a tool to start an activity of an android app on the android device
* Updated the packaged ADB and fastboot files for windows
* Updated internal commons-lang library
* Added two new tooltips
* Fixed a typo error
* Updated Dependencies_Installer_for_Linux.sh file
Version 1.6 (Build 160925)
* Click Application status to clear status
* Application version now shown with the banner
* Few changes to UI
* License added to updater src files
* Source code formatted
* Typos fixed
Version 1.5 (Build 160908)
* Windows and Linux versions are merged
* Added APK Unpacker
* Added APK Repacker
* Added Unroot to Advanced tab
* License for zip4j library listed in licenses
* Moved reboot to download mode to Device specific tools > Samsung
* Added license to every java source file
* Auto updater added
* Changelog viewer added again
* Lots of improvements
* Typos fixed
* Bug fixes
Version 1.4 Stable (Build 160810)
* HTC device specific tools (3) added
They can be accessed from :
"Menu > Device specific tools > HTC >..."
[THEY ARE "NOT" TESTED, as I don't have a HTC device,
please report bugs if you encounter them.]
* "File" in menu bar renamed to "Menu"
* "Dev. Tools" renamed to "Advanced"
* Splash screen duration reduced to 2.5 seconds
* Tabs re-arranged
* Changelog tracker removed from application to reduce size
* Other minor UI changes
Version 1.4 Beta 3 (Build 160806)
* Logger speedup
* Cache cleaning while exit added
* Improvements to view connected device
* Device connection limit detection algorithm
improvements
Version 1.4 Beta 2 (Build 160802)
* Attached device(s) list viewer added
* Device connection limit added for preventing
accidental code execution on the device(s)
other than targeted
* Marshmallow connectivity help added
* Added fastboot help
* Missing tips added
* Few things moved here and there
* Minor UI changes
* Various minor improvements
Version 1.4 Beta 1 (Build 160801)
* File Manager merged into Droid PC Suite
* Background information reporting added
* File Manager speed up while launching
* Other misc. improvements in File Manager
* Minor bug fix
Version 1.3 Stable (Build 160723)
* Screen recorder added
* Added button for taking screenshots
* Installer and Uninstaller bundled in App Manager
* Flash radio added
* Wipe radio added
* Reboot to download mode for samsung devices added
* Device feature support viewer added
* Check for max users supported by device added
* Developer tools added
* App information viewer added
* App packages list viewer added
* Battery information tool added
* CPU information viewer added
* Kill apps feature added
* Memory information tool added
* WiFi information tool added
* Force connect moved to ADB tools
* ADB help added to ADB Terminal and ADB tools
* ADB version checker added
* Device state viewer added
* Serial no. viewer added
* Wait for device added
* Cryptography sum comparing feature added
* Tips added for almost all the tools (Except File Manager)
* "More help" renamed to "Online help"
* Lot of back end improvements in File Manager
* Few UI changes
* Uninstaller improved
* ADB terminal command support improvements
* Better performance
* Code optimised and cleaned
* More minor improvements
* Bug fixes
Version 1.2 Stable (Build 160712)
* Libraries updated
* Added ADB Terminal (Experimental)
* Added build.prop editor
* Added Licenses and notices
* Added Changelog tracker to Menu bar
* Added more workarounds
* Help for connectivity on Linux added
* Force connect moved to Menu bar
* File Manager fixed, improved, themed
* Languages except English removed from File Manager
* GitHub button added in about section
* Get help renamed to "More help" and also improved
* Few changes in about section
* Minor UI changes
* Better performance
* Code optimised and cleaned
* More minor improvements
Version 1.1 Stable (Build 160616)
* Code cleanup
* Few elements resized
* "Check for updates" link added
* "Need help?" link added
* Fixed typos
* Added some more credits
* Application exit improvements
* Minor bug fixes
Version 1.0 Stable (Build 160614)
* Initial stable build
Credits
Me - Karanvir Singh
Prashotam Sensei (For teaching me some more Java)
Karun Sensei (For helping me with pure java code and bug fixes)
Chetan Sharma (for helping me with some bugs and code)
Aleksandar Despotovski (for helping me with basic algorithms and source [NOT BASED ON ANDROID TOOLBOX PRO])
d4r3T0B3 (github) (For his ADB-Explorer)
My other friends (for listening to my rants)
Bharat Suri
Anil Kumar
Raghav Gulati
Hope you guys like it!
Android, android green coloured robot are trademarks of Google, Inc. We are not affiliated with Google, Inc. in any way.
If you liked my work feel free to hit "Thanks" button!
kvsjxd said:
Click to expand...
Click to collapse
Thanks for this :good:
I love your work
This is great tools... Thanks, really appreciate it... Android Ultimate Toolbox is sucks.. it keep say "your device must be booted into android OS"
bakhtshiren said:
This is great tools... Thanks, really appreciate it... Android Ultimate Toolbox is sucks.. it keep say "your device must be booted into android OS"
Click to expand...
Click to collapse
Thank you for trying out my work
thks
thks 4 job! it's great!
i think about button "connect devices" for example
there many difficult features for novice
370lution said:
thks 4 job! it's great!
i think about button "connect devices" for example
there many difficult features for novice
Click to expand...
Click to collapse
Thanks for trying out! Droid PC Suite already auto detects the devices [emoji1]
Sent from my SM-G355H using XDA-Developers mobile app
Hi! Is it possible to create a flashable zip and how? I used to use Android Ultimate Toolbox Pro to create flashable zips for my apps to make them system apps, including placing their system libs in the right system path (for example system/lib, system/lib64, etc). Is this tool able to do that and how? Thank you so much for the tool anyway
Shady88 said:
Hi! Is it possible to create a flashable zip and how? I used to use Android Ultimate Toolbox Pro to create flashable zips for my apps to make them system apps, including placing their system libs in the right system path (for example system/lib, system/lib64, etc). Is this tool able to do that and how? Thank you so much for the tool anyway
Click to expand...
Click to collapse
First of all thanks for trying out the toolbox!
Droid PC Suite project is aimed towards beginners so I decided not to add it because flashable zip is a feature which is meant for advanced users or developers, creating them by yourself and flashing them on your device can cause bootloop. Beginners might brick their devices easily so, I recommend you to use an app from Play Store for this purpose like ZIPme.
kvsjxd said:
First of all thanks for trying out the toolbox!
Droid PC Suite project is aimed towards beginners so I decided not to add it because flashable zip is a feature which is meant for advanced users or developers, creating them by yourself and flashing them on your device can cause bootloop. Beginners might brick their devices easily so, I recommend you to use an app from Play Store for this purpose like ZIPme.
Click to expand...
Click to collapse
I already know that software, but it doesn't allow to add libs or create anything flashable besides apks, the only software that could was Android Ultimate Toolbox Pro, who is not working anymore. I found other tools to create flashable zips but they all don't comprehend creating anything flashable besides apks or custom other things. I just needed a tool who could create flashable zips for any file and any path, which doesn't seem to exist as of yet. I know there's the manual mode but it takes too damn time, as i need to add about 60 system apps and other stuff!!
hi..
this is really great.,but..
my avira detect that program contain some "drop" malicious software. is that false alarm? (TR/drop.small.ljxnw)
an-_-dro said:
hi..
this is really great.,but..
my avira detect that program contain some "drop" malicious software. is that false alarm? (TR/drop.small.ljxnw)
Click to expand...
Click to collapse
That antivirus is most idiotic program that humans ever created.:silly: This program is free from any kind of virus so it's a false positive, if you want you can look at source code or even build your own version out of that source code:highfive:
Source and Release update: Replaced false positive files with perfectly clean versions
Droid PC Suite update version 1.7 has been released! Original thread updated with latest links
Changelog
Version 1.7 (Build 170128)
* Added a tool to clear the battery statistics
* Added a tool to start an activity of an android app on the android device
* Updated the packaged ADB and fastboot files for windows
* Updated internal commons-lang library
* Added two new tooltips
* Fixed a typo error
* Updated Dependencies_Installer_for_Linux.sh file
kvsjxd said:
Droid PC Suite update version 1.7 has been released! Original thread updated with latest links
Changelog
Version 1.7 (Build 170128)
Click to expand...
Click to collapse
Will this program successfully root a Mediatek 6580 phone running Android 6.0? I've got a BLU Studio Selfie 2 that I've tried quite literally every method I can find on XDA and the web, and I cannot get it to root. Even though I select the "allow unlocking bootloader" option in Developer Options, when I power on into the boot menu it won't let me use Volume Up to select bootloader mode ... so I can't flash a custom ROM, and I can't backup the stock ROM. I also read on the web that Android 6.0 has more strict methods for preventing root access, so maybe I should downgrade to an earlier Android version first?
Regardless, there is very little I've found through weeks of searching that applies directly to this model phone, and nothing has been successful [yet] in rooting it.
uptwolait said:
Will this program successfully root a Mediatek 6580 phone running Android 6.0? I've got a BLU Studio Selfie 2 that I've tried quite literally every method I can find on XDA and the web, and I cannot get it to root. Even though I select the "allow unlocking bootloader" option in Developer Options, when I power on into the boot menu it won't let me use Volume Up to select bootloader mode ... so I can't flash a custom ROM, and I can't backup the stock ROM. I also read on the web that Android 6.0 has more strict methods for preventing root access, so maybe I should downgrade to an earlier Android version first?
Regardless, there is very little I've found through weeks of searching that applies directly to this model phone, and nothing has been successful [yet] in rooting it.
Click to expand...
Click to collapse
This tool does *not* root your device. Try kingroot or kingoroot to root your device
FanFanLaTuFlippe said:
Hello,
Many thank's for your tool, but how to install and execute on windows 10 please ??
Click to expand...
Click to collapse
Download and install latest JRE 8 from oracle and run the DPCS.jar file
kvsjxd said:
This tool does *not* root your device. Try kingroot or kingoroot to root your device
Click to expand...
Click to collapse
Okay, I kind of jumped ahead on my question. I'm trying to root my BLU Studio Selfie 2, and I can't unlock the bootloader. When I get to that menu, it says to press Volume Up to select, but the phone won't let me do that.
kvsjxd said:
Features
* App Manager (Install/ Uninstall Apps & Bloatware)
* ADB tools
* Take screenshots
* Record android device screen
* Flash any file using flasher
* Wipe partitions
* Reboot to different modes
* Unlock/ Lock bootloader
* View and save logcat
* Advanced backups
* Restore from backups
* Bypass “your” device security
* build.prop Editor
* ADB Terminal
* Cryptographic hash sums comparing and calculator
and lots more.
* Clear battery stats
* Launch activities of the apps
Click to expand...
Click to collapse
So... will this program unlock the bootloader on my phone?
BTW, Kingroot and Kingoroot are two of MANY programs I've tried to use.
uptwolait said:
Okay, I kind of jumped ahead on my question. I'm trying to root my BLU Studio Selfie 2, and I can't unlock the bootloader. When I get to that menu, it says to press Volume Up to select, but the phone won't let me do that.
So... will this program unlock the bootloader on my phone?
BTW, Kingroot and Kingoroot are two of MANY programs I've tried to use.
Click to expand...
Click to collapse
If your device is mediatek and you see very few or no custom roms, I'm 90% sure that you won't be able to unlock bootloader of this device ever. This tool unlocks bootloader of devices like nexus, pixel and android one.
Did you tried towelroot and framaroot to root your device?
Shady88 said:
Hi! Is it possible to create a flashable zip and how? I used to use Android Ultimate Toolbox Pro to create flashable zips for my apps to make them system apps, including placing their system libs in the right system path (for example system/lib, system/lib64, etc). Is this tool able to do that and how? Thank you so much for the tool anyway
Click to expand...
Click to collapse
See if this works for you? https://forum.xda-developers.com/android/software-hacking/tool-6-feb-android-flashable-zip-t3551772
Samsung GT-S5830 step-by-step please?
Hi,
I just happily made the Suite see my GT S5830 and I am about to try my first stock firmware flash. Of course I am rather afraid of bricking the box, so perhaps there is some tutorial available how to make it with the Suite? Please?

[Script] [Universal] [F-Zip] Recovery Flashable Zip generator for Linux & android

This thread will not be maintained anymore. The source code will be still available and updated. So, anyone interested can still download and use this script from here.
F-zip: Universal recovery flashable zip generator for Linux & android
/* What is F-zip about? */
"F-zip is a universal shell script designed to make recovery flashable zip files with a few simple steps“
/* For those it is helpful? */
Anyone (devs/newbies) who has something (boot.img/apps/libs) to flash and do not want to do all the work to make a recovery zip manually.
/* Background */
After encountered several errors while flashing manually made recovery zips, I made several scripts for my personal use. Now I decided to combine all and share as a universal script for generating recovery flashable zip for various purposes including
Flashing “boot.img”. (Caution: This feature is by default optimized for Samsung Galaxy S5 (kltexxx). Proper modification in the “fzip.sh” (line# 30) will be required for other devices. Don’t worry, you can easily find such details from any other working ROM/Kernel zip).
Flashing app(s) to “/system/app” & “/system/priv-app” (up to a maximum of 5 folders is presently supported though it is infinite without separate folder(s). That is directly as “.apk”).
Flashing "framework-res.apk", into “/system/framework/”
Flashing "bootanimation.zip" (only for aosp ROMs) to the "/system/media".
Flashing infinite number of library (typically “.so”) files into “/system/lib”.
Flashing infinite number of frameworks (typically “.jar”) files into “/system/framework”.
/* Where it works? */
It will works on any Linux and Linux based operating systems including android. The Linux system might be native or with in a virtual box or even the bash inside Windows 10.
/* DISCLAIMER!! */
Code:
I am not responsible for any damage to your device. Everything you are doing on your device is on your own risk.
You have all the chances to mess up your apps (and very rarely the entire ROM), in case if you did some stupid mistakes on this script. Use this script on your own risk.
Please note that flashing anything will mostly void your warranty.
/* How-to-use? */
1. clone or download f-zip repo into your Linux PC or Android device.
2. copy "boot.img", if any, into the root folder. Caution: Don’t forget to modify “fzip.sh” (line# 30), if your device is anything other than Samsung Galaxy S5 (kltexxx).
3. copy the app folder(s) in to "/system/priv-app/" or/and "system/app/". You may also copy the “.apk” file(s) directly to “/system/app/” or/and “/system/priv-app/” (without folder) if your app/ROM supports to do so.
4. copy library (typically “.so”) file(s), if any, into “/system/lib/”
5. copy modules (typically “.ko”) file(s), if any, into “/system/lib/modules/”
6. copy framework (typically “.jar”) file(s), if any, into “/system/framework/”
7. copy "framework-res.apk", if any, into “/system/framework/”
8. copy "bootanimation.zip" (only for aosp ROMs) file, if any, into “/system/media/”
9. modify fzip.sh accordingly (please see instructions below)
10. open terminal and cd to the root folder of f-zip
11. run ". fzip.sh" (in Linux) or “sh fzip.sh” (in android).
12. The recovery flashable zip file will be generated in the root folder.​How-to-modify shell script?
More information can be found here.
/* Video Tutorial (Android mobile) */
A video demonstrating the use of this script in an Android mobile is available in this YouTube link.
/* F.A.Q */
Qn. Will this script works on windows native cmd?
Ans. No.
Qn. Is this script will work on the Bash inside Windows 10?
Ans. Yes. It will work on all the Linux and linux based (either native or virtual) environments.
Qn. I’m a Windows fanboy. I don’t have any working Linux environment at all, and too lazy to do these things in my android device. Is it still possible to use this script?
Ans. Yes. You can use your windows to add the necessory files/folders and also for editing “fzip.sh” (always use “gedit” or “Notepad++” for editing “fzip.sh”). Once you done, simply copy the folder into your android device and follow the remaining instructions.
Qn. Is it possible to make a flashable “boot.img” to “XXX” device using this script?
Ans. Yes. However, proper modification in the "fzip.sh" (line# 30) is required.
Qn. Can you make a similar script for Windows?
Ans. No. I don’t have enough knowledge to do that. Sorry.
XDA:DevDB Information
F-Zip, Tool/Utility for all devices (see above for details)
Contributors
sunilpaulmathew
Source Code: https://github.com/SmartPack/
Version Information
Status: Beta
Beta Release Date: 2017-09-08
Created 2017-06-14
Last Updated 2017-09-08
Chang-logs
This thread will not be maintained anymore. The source code will be still available and updated. So, anyone interested can still download and use this script from here.
3. November 08, 2017
Version 1.3.0.
Added support to flash modules. Some scripts are added to hide the unused folders from output zip. The entire script is now much more simpler.
3. September 23, 2017
Version 1.2.0.
Added support to Framework-res.apk. The entire script is largely simplified in order to make the flashing of "boot.img", "bootanimation.zip", "framework-res.apk", ".jar" & ".so" much easier.
2. June 23, 2017
Version 1.1.0.
Added supported to flash "bootanimation.zip" (only works on ROMs hat supports that functionality) and framework (typically ".jar") files.
1. June 15, 2017
Initial release
Version 1.0.0.
Reserved

[RECOVERY] TWRP 3.0.2-0 - TeamWin Recovery Project for Obi SF1(without QFIL)

[RECOVERY] TWRP 3.0.2-0 - TeamWin Recovery Project​#include disclaimer.sh
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired. Please do some research if you have any concerns about features included in this Recovery before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
Introduction:
Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Key Features:
Touchscreen driven with real buttons and drag-to-scroll
XML-based GUI that allows full customization of the layout true theming!
Settings are saved to the sdcard and persist through reboots
Ability to choose which partitions to back up and which to restore
Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
Onscreen keyboard
Easy selection of internal/external storage
In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe, and run a backup.
We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open source project.
Source Code:
GitHub - https://github.com/TeamWin/android_bootable_recovery
Gerrit Instance - http://gerrit.twrp.me
If you have made your own TWRP build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.
sf1 Device Config: https://github.com/therealthinhhdk/android_device_obi_sf1(nothing)
WHATS WORKING:
-Correct screen/recovery size
-Working Touch, screen
-Backup to internal/microSD
-Restore from internal/microSD
-reboot to system
-ADB
-update.zip sideload
-UI colors (red/blue inversions)
-Screen goes off and on
-all important partitions listed in mount/backup lists
-MTP export
-reboot to bootloader
-reboot to recovery
-poweroff
-battery level
-temperature
-vibrate
-set brightness
-Correct date
-USB mass storage export
UNTESTED:
-F2FS/EXT4 Support, exFAT/NTFS where supported
-backup/restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
-encrypted backups
-screenshot
-partition SD card
BUGS:
-Annoying cursor in the middle of screen
DOWNLOAD:
Google Drive
MEGA
CREDITS:
- TWRP - For making this awesome recovery.
- Me(@thinhhdk) - For porting this recovery.
- androidlover5842 for Porting TWRP for TCL T500L(used as base for this port)
EXTRAS:
I have managed to install TWRP without QFIL, heres how:
-Download TWRP.
-Root phone with this tool.
-Install your root management software(SuperSU, ...)
-Download(and install) Flashtify.
-Allow root and choose Recovery-choose "Insert name here".img, wait for it and reboot, you should be in TWRP now.
Who even use this phone anymore lol, im just learning how to make twrp.
Hello, Thank you for developing this.
I want to ask you if you found a custom ROM for obi sf1... I really want to push my phone to the limit, it's software is laggy and it's using a lot of RAM memory.
Thank you again

Categories

Resources