[mido] initd, ad-blocking and "bad audio in videos fix" mod - Xiaomi Redmi Note 4 Themes, Apps, and Mods

Here is a copy of my own personal mod for mido. I am only making it available because I thought others might find it useful.
What this mod does
1. Implements init.d functionality - any script in /system/etc/init.d/ with a name that starts with "00" (ie, zero zero) and has a ".sh" extension will be executed every time the phone boots up. My own script for interactive governor (based on @FaustTN tips in this thread is included as "/system/etc/init.d/00_userinit.sh")
2. Ad blocking with a replacement "/system/etc/hosts" file (built from various freely available lists)
3. Modified /system/etc/mkshrc that launches bash automatically (if bash is found) when a terminal session is opened (if bash is not found, then nothing is done)
4. Implements the "bad audio in videos" fix described by @gianluca212 in this thread
Compatibility
This is a mido only mod. It is based on patched files from OctOS, and I am using it successfully on OctOS. It should also be fine for Slim, because the relevant patched files are identical. This may indicate that it is also suitable for other LOS based Nougat ROMs for mido. However, I have not tested it on others. The original files are first backed up (with a ".old" extension) before being patched
Disclaimer
All the usual disclaimers apply. The mod works perfectly fine for me, but your mileage may vary. Use at your own risk!
Download
Get your updated copy from this link (version 2)
AUDIO FIX ONLY
If you are only interested in fixing audio problems (i.e., no initd, and no ad-blocking) then download the attached zip file below only ("mido-audiofix-mod-aosp-LOS.zip"). It is based on SlimOS files, but should be compatible with any CAF/AOSP/LOS based ROM.
Installation
1. Make a full nandroid backup of your ROM. At the very least, the system partition should be backed up (do NOT skip this step)
2. Boot to TWRP recovery, and install the mod (no need to wipe anything)
3. Reboot
Bugs?
You tell me.

UPDATED (NEW ("v2") ZIP FILES)
If you are interested in only the initd implementation, and are not interested in the other stuff listed above, see the links below.
* The first zip is an initd patch for AOSP / LOS based Nougat ROMs
* The second zip is an initd patch for MIUI based Nougat ROMs
* The third zip is a generic initd patch for all Nougat ROMs for mido - it should work equally well with AOSP/LOS/MIUI. New users should use this in preference to the first two zips.
Notes:
1. Since only one file needed to be patched to implement initd, the first zip should also work fine for MIUI based ROMs (there are only minor differences between the AOSP/LOS and the MIUI files). However, a separate zip is supplied for MIUI to avoid all doubt. The third zip adopts a different approach by directly patching the existing file on the fly. Thus, it is not ROM dependent or version dependent.
2. The zip installer contains only the initd patch. No sample initd script is provided - you have to supply your own.
3. Make sure that the name of your initd script starts with "00", and that it has the extension ".sh"
4. Copy your initd script to the /system/etc/init.d directory.
5. Your ROM must be rooted before you can copy your initd script to the /system/etc/init.d directory (you need a file editor that can access root - eg, Root Explorer).
6. If you are using a Windows text editor to create your script, make sure that the script is saved with unix line endings.
As usual, all disclaimers apply.
Installation
1. Make a full nandroid backup of your ROM. At the very least, the system partition should be backed up (do NOT skip this step)
2. Boot to TWRP recovery, and install the mod (no need to wipe anything)
3. Reboot
Bugs?
You tell me.

Works, thank you

I need only instal this zip for AOSP or I must do something with init.d in system or not?

iHusky said:
I need only instal this zip for AOSP or I must do something with init.d in system or not?
Click to expand...
Click to collapse
If you install the mod from post #1, then it already has installed an initd script ("/system/etc/init.d/00_userinit.sh") that tweaks the interactive governor. You can edit that, or remove it. If you install the mod from post #2, then all you get is initd functionality, and you will need to create your own scripts from the start.

Good work mate!

im using official rom MIUI latest, can i use this as well?

~billie joe~ said:
im using official rom MIUI latest, can i use this as well?
Click to expand...
Click to collapse
Yes.

I have updated Post #2 with a new "generic" version of the initd mod (the third zip) which should work equally well with any Nougat ROM for mido.
This is for new users or those who have upgraded their ROM after having installed one of the first two zips. If you have already installed either of the first two, you should not try to install this one. It will simply refuse to install, because it would be wholly unnecessary to install the mod twice.

Thank for your work, can i use this with GovTuner mod?

ksupreme said:
Thank for your work, can i use this with GovTuner mod?
Click to expand...
Click to collapse
Sorry but I have no idea.

How to make my initd to stock?

How to check?
How to check whether the mod is working or not? Thanks!

fahad96 said:
How to check whether the mod is working or not? Thanks!
Click to expand...
Click to collapse
Check the values of the things that you have changed in your initd script. You can do this from a root terminal window - eg
Code:
cat /sys/devices/system/cpu/cpufreq/interactive/target_loads
cat /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

BOYONG06 said:
How to make my initd to stock?
Click to expand...
Click to collapse
Read the "Notes" on post #2

Okay, so I get these values from the terminal. What do u think?
{
"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"
}
---------- Post added at 11:01 AM ---------- Previous post was at 10:49 AM ----------
I keep getting a bad request error while uploading!
---------- Post added at 12:15 PM ---------- Previous post was at 12:01 PM ----------
DarthJabba9 said:
Check the values of the things that you have changed in your initd script. You can do this from a root terminal window - eg
Click to expand...
Click to collapse
Okay
For the "target_load" command I get
"80 652800:57 1036800:67 1401600:75
1689600:9 1804800:85 1958400:87"
And for the "highspeed_freq" command I get
"652800"

fahad96 said:
Okay
For the "target_load" command I get
"80 652800:57 1036800:67 1401600:75
1689600:9 1804800:85 1958400:87"
And for the "highspeed_freq" command I get
"652800"
Click to expand...
Click to collapse
Are those the values that you set them to in your script? If so, then your script is working.

DarthJabba9 said:
Are those the values that you set them to in your script? If so, then your script is working.
Click to expand...
Click to collapse
I just installed your mod. I didn't enter any values by myself!

fahad96 said:
I just installed your mod. I didn't enter any values by myself!
Click to expand...
Click to collapse
If you installed the one which already contains a "/system/etc/init.d/00_userinit.sh" script, then those will be the values in that script.

Could you please create a version for only the bad audio in video problem?

Related

[TOOL][3-10-13] Aroma App Package Creator v1.3.2

{
"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"
}
What Is It?
Aroma App Package Creator is an application for those who flash new rom's often and want an easy way to create a flashable zip to reinstall apps. This utilizes Aroma Installer for more customization, allowing you to choose which apps to be installed instead of installing all of them. I made this tool for myself after seeing strawmetal's Flashaholic Essential Packs and wanted a way to produce the same results without editing multiple config files for each "pack" I make. I hope everyone else will find it useful as well ​
How To Use: Click Steps For Screenshot
1) Download the aroma-app-package-creator.jnlp file and run by double clicking it
You must have Java 6 or higher for the application
You will have to accept a security warning. This is normal for all applications using Java Web Start
2) Click the + button under the Group Names list to create a new group
3) Add an app to a group by selecting the desired group, then click the + under the Apps list
5) Flash your zip like any other in recovery​
Downloads
aroma-app-package-creator.jnlp​
Thanks To:
amarullz - For creating Aroma Installer
strawmetal - For the Flashaholic Essential Packs​
Upcoming Features: *Suggestions Are Welcomed*
Select Theme
Checkbox to delete dalvic + cache
Select app or whole app group to be checked for install by default
Load previously created zip to add/remove apk's from
Drag-and-Drop support for apk files
Support other file-systems (yaffs etc.) - Possibly added as result of v1.2 but need confirmation
Manage kernels
Translations
​
Changelog
3/10/13 -- 1.3.2
Removed automatic zip signing
Added status messages during zip creation
Added logging
1/3/13 -- 1.3
Support for selection of multiple apk files in file chooser
Support for choosing folder in file chooser
Groups now able to be edited by double-clicking
App names automatically filled out based on filename. Old menu of adding/editing apps still available by double-clicking an app you wish to edit specifically
1/2/13 -- 1.2
Added ability to install apps to /system/app/
Zips now automatically signed
Busybox tools now responsible for mounting process
10/4/12 -- 1.1
Updated to AROMA Installer v2.56 base - Device Calibration no longer needed!!
9/5/12 -- 1.0.1/1.0.2/1.0.3
Added new device calibrations
8/26/12 -- 1.0
Initial Release
Q&A
Q: How will updates be distributed?
A: Every time you run Aroma App Package Creator it checks the server for an update. If there is a new version it will be downloaded automatically.
Q: Everything seems to work, but when I reboot none of the apps have been installed. What's going on?
A: Try downloading a zip that utilizes Aroma Installer for your device (such as a rom or theme) and pull the update-binary-installer from it and put it into the zip created with the Aroma App Package Creator.
Q: The above didn't work...Now What?
A: Sign the zip and try again. You can find information on how to do so on google, or use this application: http://www.xda-developers.com/android/tool-to-auto-sign-multiple-apks-and-zips/​
Please post any bugs/errors so they can be fixed
I will test, today.
RB v2.3 selfmodded - 100% Supercharged!
testing tomorrow!thanks!
looks good ..i will test it now
This is sick. I love it, works great on gs3.
After selecting the apps .the apps dont install
simply it says installing Apps but none of the apps get installed.
Help me out
Nice tool... :good:
Some feature suggestion:
Select Theme
Checkbox to delete dalvic + cache (not all app require this)
Okay, so this is giving me a flashable zip that installs apps at /data/app. What about /system?
And files other than apk files will be awesome.
Thanks for your good work.
This looks very cool
Will it work on a rooted phone with stock recovery (In my case SGS2) or just CWM?
http://www.youtube.com/watch?v=gklDSVmGkMc
Crappy resolution, but here's how it works on an S3
For the S3 you need to use the "Yes/alternate" method for the touch calibration... also the colors are totally off but it's still readable and usable. Just has a blue tint to it lol.
Or just use my values:
Code:
119490.00, 2030.00, -619140.00, -840.00, 116060.00, 228210.00, 117939.75, 20
This is on the Rogers I747M S3. (Should be the same for AT&T).
Just wondering... The calibration makes the zip flashable only for the model being calibrated, right?
dbarrera said:
Just wondering... The calibration makes the zip flashable only for the model being calibrated, right?
Click to expand...
Click to collapse
That's right. It's so the touch screen coordinates line up etc.
I kinda wish there was an option for text based only where it would just install all the APKs that you put in the zip. I don't need the fancy UI, I just want to flash the zip, have them installed and done.
ka24e said:
That's right. It's so the touch screen coordinates line up etc.
I kinda wish there was an option for text based only where it would just install all the APKs that you put in the zip. I don't need the fancy UI, I just want to flash the zip, have them installed and done.
Click to expand...
Click to collapse
have you checked app2zip? Guess I'll give it a try soon, a nightly is being built when released, I'll play with it...
Sent from my LG-P350 using Tapatalk 2
nice work ; D
dbarrera said:
have you checked app2zip? Guess I'll give it a try soon, a nightly is being built when released, I'll play with it...
Sent from my LG-P350 using Tapatalk 2
Click to expand...
Click to collapse
Hmm never heard of it. I'll check it out. Thanks
It Says Installing apps but it dont install anything.
pls help me out..
The same with me, say installing but dont do anything
Works for me
Sent from my GT-S5660 using xda premium
Thanks Man ,I Used Strawmetal's Flashaholic Essential Packs and It Took a lot of Time (about 100 apps) so this will save time as hell
Much Respect
PS : for guys having trouble with Calibration ,you can use Volume up\down and Select in CWR and Aroma instead of touch ,Works for me ,Xperia Mini Pro SK17i

[RECOVERY][ROOT][ROMS][MODS][Other] Vodafone Smart II/Alcatel V860/MTC 962

Welcome to Vodafone Smart II/Alcatel V860/MTC 962 Thread
{
"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"
}
Here you can find all my works and much more.
This thread is divided in 5 parts, each part have own post:
Recovery
Root
ROMs
MODs
Other
PlaceHolder (for future)
Click to expand...
Click to collapse
Thanks to qepaxhiu for testing
Enjoy!​
Recovery
Complete Version
HOW-TO
Download the Archive
Extract it
Put Phone into Fastboot Mode (Press Power + Volume Down for 10 seconds)
Make sure that computer recognizes phone and you have installed needed adb drivers
Open ExecuteThis.bat
Press Enter
Wait for OK
If you have stock rom Full Recovery will be replaced at every boot with the limited one, so is better that you flash, after you install this, Root Flashable because it deletes also the Auto Recovery Installer (Read Root Post for instructions)
Read notice
Full Recovery (Windows Executable)
Root
Copy Archive to MicroSD
Make sure you installed Full Recovery
Boot into Recovery Mode (Press Power + Volume UP until recovery is showed)
Install zip from sdcard
Choose zip from sdcard
Choose the archive you downloaded
Reboot
Root Flashable ZIP
ROMs
Stock Based:
Alberto96 ROM​
Hint: For no issues is better that before you install this you restore Stock OTA 5 Backup (link in Other Post)​
Features:
Optimized Stock OTA 5
Init.d Support
Rooted (using SimpleSU, no request for root in UI)
Busybox 1.21.0 Built-In
Removed Vodafone Stuff (all, including binaries needed for OTA)
Enhanced Video/Photo Quality
Updated GAPPS (March)
New Media Sounds
Removed Boot and Shutdown Sounds
New Boot and Shutdown animations
New SplashScreen
Newer APN Configurations
Replaced Stock Gallery with QuickPic
Customized Custpack Partition
ICS Themed Keyboard (no fully themed, only buttons)
Boosted a lot Graphic Performance
Replaced Stock Browser with Lightining Browser (you can install smoother Fennec, link in MODs thread)
Replaced Stock Launcher with 360 Launcher 3.0.1 (first launch will be in chinese, reboot and it will be in english)
Updated Bluetooth Driver
Updated WiFi Things (such as wpa and much more)
New Fonts
Updated Binaries
Faster App Installation
Tweaked a lot
Ad-Free
Fixed WiFi Sleep Policy (use app built-in)
New File Explorer
Link2SD Built-In
Replaced Stock Sound Recorder with a better one based on miui roms
DSPManager
Maybe much more that i don't remember
HOW-TO:
Copy Archive to MicroSD
Make sure you've installed Full Recovery and boot into it (Power + Volume Up)
Wipe Data/Factory Reset
Mounts & Storage
Format /system, Format /data, Format /boot, Format /cache, Format /custpack
Go Back
Choose zip from sdcard
Install zip from sdcard
Choose the archive you downloaded
Reboot
Download Links:
v1.0v2
Mirror v1.0v2
Changelog:
v1.0v2
Fixed boot problem (system partition space problem)
Removed totally Vodafone things
Next Version:
v1.1
Add OTA Updater
2 Versions, ICS and Stock Themed
Deodexed
Customize Settings, adding also OTA link
Much much more
MODs
Fennec 22 ARMv6 Linaro Compiled APK
Other
Stock OTA 5 Backup
PlaceHolder
Sir I expected and I really enjoyed! I'm going to install tomorrow I will write info.
---------- Post added at 08:18 PM ---------- Previous post was at 07:38 PM ----------
Not install!
It's a loop to start the animation. : ((((((
WHITE-CZ said:
Sir I expected and I really enjoyed! I'm going to install tomorrow I will write info.
---------- Post added at 08:18 PM ---------- Previous post was at 07:38 PM ----------
Not install!
It's a loop to start the animation. : ((((((
Click to expand...
Click to collapse
My tester replied to me and he says that is working, check your download and retry. Use my install procedure.
Alberto this is the final release?
i pull out the battery and the rom works but it stops on setup wizard it force closes
chrisg4 said:
Alberto this is the final release?
Click to expand...
Click to collapse
Yes, the Full v1.0
My Tester tested all (except tethering). Also benchmarks are really high
Alberto96 said:
Yes, the Full v1.0
My Tester tested all (except tethering). Also benchmarks are really high
Click to expand...
Click to collapse
Still the same problem: (Previous version ROM works: (
Install Stock OTA 5 (link in thread), redownload rom and check if archive is good. After install rom using my installation procedure.
and for me animation loop
i pulled out the battery and it is working but setup wizard force closes
abd now again animation loop
Why for my tester is working ??!?!? O_O
chrisg4 said:
and for me animation loop
i pulled out the battery and it is working but setup wizard force closes
Click to expand...
Click to collapse
Reinstall it with all wipes i specified, is strange...
And if you can, can you give me logcat?
Alberto96 said:
Install Stock OTA 5 (link in thread), redownload rom and check if archive is good. After install rom using my installation procedure.
Click to expand...
Click to collapse
Still the same: (
Strange....can you give me logcat?
i think that we should not format cache
chrisg4 said:
i think that we should not format cache
Click to expand...
Click to collapse
It doesn't change anything.

[TOOL][BETA][LINUX][AROMA][v1.6]Flash-Font - A Font installation creator!

{
"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"
}
Ever tried to completely customize your droid? Where comes customizing, there comes fonts. "Most" of the users change their fonts using android applications such as FontChanger or so...
This tool will help you make flashable zips for those fonts. So, you can just drag them into your SD Card, and keep them there like, forever. You don't need any, nor do you need to pay anything to download those apps which will help you "change" the fonts. All you need is 4 *.ttf files, for the four styles of a font. If you do, you're ready to go!
What's NEW!!! Its AROMA! Flash-Font now automatically creates an AROMA included flashable zip for your fonts!
Also, you now have the possibility of naming your font installation package!
Features:
Aroma Installer
update-binary from your own ROM. [Accomplished]
More efficient cleaning method for the /fonts folder. [Accomplished by adding a place_holder]
Automated Renaming [Sort of accomplished]
Expected Changelog:
GUI interface.
Reverting to stock fonts
Defined Fonts (example: normal.ttf, bold.ttf, bolditalic.ttf, clock.ttf, etc...)
Your requests
Code:
#include
/*
* You are on your own.
*
* I am not responsible for any sort of damage to your
* phone/computer, as a result of usage of this tool.
*
*/
Do not pass this off as your work! Give appropriate credits even if you make modifications to the script.
Click to expand...
Click to collapse
This is to simplyfy the work of making a flashable fonts zip for a ROM. I have noticed that there are many apps, which do the same thing, but, sometimes, they don't work. Using this simple tool, you can make a flashable zip for your fonts. Also, this contains the fonts from CM10, so, it will NOT cause problems with previous versions of CM. AOKP has the same fonts too, so it wouldn't be a problem. Doubtful about PAC, and PA.
Note:
This will work only on Custom ROMs like CM, AOKP, etc. Have tried on CM, MiniCM, AOKP... Haven't tried on other ROMs... But, as long as the names of the fonts are same/similar, it is bound to work. Also note that, This method uses "symlinking" of fonts, so that you get some extra free space in your /system folder. As only four styles (Regular, Bold, BoldItalic, Italic) are used almost universally, one has to just have all these four font styles of a font. Also note that only *.ttf type fonts work with Android, so... And, talking of symlinks... You will get two files in the output_zip folder, namely, fonts_system.zip and fonts_data.zip. "fonts_system.zip" extracts the fonts, as-is, to the /system folder, whereas, "fonts_data.zip" clears the fonts in /system/fonts, creates a folder named "fonts" in the /data partition, extracts the fonts to the /data partition, and symlinks those to the /system/fonts folder. Thus, if you are running short of space on your /system partition, and don't think you will have enough space to flash the fonts, you can use the fonts_data.zip.
Requirements: You need 4 font styles of a single font for this, namely:
1. *font_name*.ttf (Regular)
2. *font_name*-Bold.ttf (Bold)
3. *font_name*-BoldItalic.ttf (BoldItalic)
4. *font_name*-Italic.ttf (Italic)
Instructions:
Place the four *font_name* files into orig_update/. Rename them into:
Code:
normal.ttf
bold.ttf
bolditalic.ttf
italic.ttf
At times, you may have only one *.ttf file. In such a case, just make four copies of it, and name each copy as "normal.ttf", "bold.ttf" etc.
Now, run the following commands.
First,
Code:
cd mkfontzip
Then,
Code:
chmod +x ./mkfontzip.sh
Now, to start making the flashable zip:
Code:
./mkfontzip.sh
How to use:
First, you will need to decide which partition to use, to install the fonts. If you have less space in the /system partition, and, feel that the fonts are too big to fit into the /system partition, then, you need to flash the "font_data.zip".
If you feel you have enough space in your /system partition required to flash the fonts, then, you can gladly flash the "font_system.zip" file.
NOTE: If you are having any "int2ext" script installed, then, please flash the font_sd-ext.zip! You can even flash font_sd-ext.zip, if you have reversed mount enabled in Mounts2SD. Not tested with S2E.
One way to find out whether you have enough space in your /system partition:
FreeSpace: https://play.google.com/store/apps/details?id=ru.krikun.freespace
Click to expand...
Click to collapse
If you want to use this tool for any other device, then, please replace the update-binary in stock_files/update-binary/ folder with a working update-binary of your device.
Credits
@amarullz (For his awesome AROMA installer!)
Me and my computer :silly:
Downloads in next post :silly:
Downloads
Downloads:
NOTE: Users who have memory increasing scripts installed.... You can flash this addon ONLY IF:
You have int2ext or int2ext+ script installed.
You have Mounts2SD with "Reversed Mount" enabled.
mkfont.zip(version 1.6) (7.5MB): http://github.com/vineethraj49/flashfont
Click to expand...
Click to collapse
Do a "git clone". This version generates the font_sd-ext.zip
mkfont.zip(version 1.5) (6MB): http://www.mediafire.com/?dfbz8d4l04tyg5j
Click to expand...
Click to collapse
Github: https://github.com/vineethraj49/flashfont
Click to expand...
Click to collapse
Reserved
For later updates, or, if I want to add anything I forgot
Hi, thread moved...
This was first in the Android "General" section, but then, I thought that it would be better to have it in our section
P.S. Expect Automated Renaming arriving soon...
Some changes will be made in the method of making the zip
Working on Aroma installer!
And, obtained permission from @amarullz too :silly:
amarullz said:
vineethraj49 said:
Hi,
I am making a tool Flash-Font-A font installation creator! (http://forum.xda-developers.com/showthread.php?t=2255045) and am planning to add aroma installer to it... Do I have your permission to do so?
Appropriate credits will be given, because, I don't like "stealing" other people's works
Click to expand...
Click to collapse
Dont need any permission it was a honor for me if someone use my works
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse

[UTIL][WIN]I Don't Want You! || Get rid of unwanted mods || No data loss || No backup

Hi guys,
Have you ever installed a mod without making a backup before? Did the mod break your system or was not working the way you expected? The only way to recover the system to the previous state was to restore an old backup and loose all new data.
Thanks to my mod, this won't happen again! I present to you "I Don't Want You!".
It means NO NEED TO ALWAYS MAKE BACKUP BEFORE INSTALLING A MOD!
How it works?
It creates update.zip containing apps changed by mod in comparison to stock system and deleting files added by the mod to our system.
What it does?
-creates update.zip
-signs the zip
-Additionally: pulls /system from the device (using adb) (you need to do that once before installing mods instead of unpacking system manually form FTF/.zip file)
Requirements:
-Windows
-.NET Framework 4.5 or higher
-files installed/changed by mod (the content of mod's .zip file without META-INF)
-Recovery installed on your Android device
-Rooted android device
-Java
Compatibility:
Every device and every Android build!
It does not fully support mods with AROMA Installer
Currently It works only with mods influencing /system.
Screenshots:
{
"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"
}
DOWNLOAD
[MIRROR]
Be aware that I am a real beginner in programming and some bugs may occur, so I would be very thankful if you could tell me how my work could be improved and what to fix
Please leave a feedback below!
Do not mirror my files! Ask for permission before posting my work anywhere!​
CHANGELOG:
2.1(25.06.2015)
-fixed bug "zip not found"
2.0 (17.06.2015)
-now the update-binary will be taken from mod's zip file so the mod should be compatible with EVERY device
-added ability to extract the mod's zip file so you don't have to extract it by yourself
-no need to write the path now! just drag and drop the folder or file to the program's window!
1.6 (31.12.2014)
-fixed bug when there were no files to delete
-fixed permission
-should be signed now
1.5 (27.12.2014)
-FIXED CRASH DURING CLEANING UP
1.4 (27.12.2014)
-no need to give path to pulled system!
-fixed little bug when there are no files changed by the mod
1.3
-fixed icon
-fixed temp folder bug
BUGS:
-icon bugs
-some users experience ADB bugs if someone could help me with this one, I will be really grateful​
Maciek602 said:
[place for changelog&bugs]
Click to expand...
Click to collapse
This looks handy. Thanks for sharing. Hopefully I'll be able to test it in the next few days after switching roms.
Looks really handy...been looking for this
Too soon to ask for, but I will stick around for a Linux version to come out
Cheers till then.
Happy Holidays
Saatvik Shukla said:
Too soon to ask for, but I will stick around for a Linux version to come out
Cheers till then.
Happy Holidays
Click to expand...
Click to collapse
Would you like a port of it?
Can the update.zip be flashed with stock recovery?
(Probably not, but I don't have my PC around to check )
Sent from my D620r [Stock 4.4.2]
Vagelis1608 said:
Can the update.zip be flashed with stock recovery?
(Probably not, but I don't have my PC around to check )
Sent from my D620r [Stock 4.4.2]
Click to expand...
Click to collapse
Update.zip made by my tool should work on all recoverys using edify language. Please provide me an example of flashable zip for your recovery and I will check.
If It comes to porting the tool for linux, I need help in that matter as far as I am not using Linux and I haven't made any program for that system yet. Of course I will provide source code. Please contact me via PM. However you can try opening the tool with Wine. The ADB wont work but you can copy your /system manually and provide path to it in program.
Maciek602 said:
Update.zip made by my tool should work on all recoverys using edify language. Please provide me an example of flashable zip for your recovery and I will check.
Click to expand...
Click to collapse
Update.zip (attached) : http://forum.xda-developers.com/showthread.php?p=52214999
Sent from my D620r [Stock 4.4.2]
This doesn't also back up the modem/radio, does it?
Such a nice tool .....
Sent from my Moto G using XDA Free mobile app
Great job man!
Would you mind to put up kind of a noob tutorial with a brief description/explanation of what each option would exactly do?
...dont need to explain what the option "EXIT" will do though! Lol
RMarques said:
Great job man!
Would you mind to put up kind of a noob tutorial with a brief description/explanation of what each option would exactly do?
...dont need to explain what the option "EXIT" will do though! Lol
Click to expand...
Click to collapse
+1
Crashed
Looks like it copied /system but then failed at the last minute
Like jshare, crashed in last minute!
crashes during cleaning up process.....maybe add code to kill ADB and restart it before cleaning
@Vagelis1608
It should work
@ChazzMatt
Of course it doesn't! Currently it works only with /system mods.
@RMarques
The only options you need is:
1. For pulling system from your phone
2. To make update.zip (all other options are included in this one)
@jshare @Limac @Manvindar
Yeah, I forgot to add line for killing "adb" process in latest version, because I slightly rearranged whole code. I will upload fixed version in 10 min
UPDATE
I have uploaded fixed version!
Maciek602 said:
@Vagelis1608
It should work
@ChazzMatt
Of course it doesn't! Currently it works only with /system mods.
@RMarques
The only options you need is:
1. For pulling system from your phone
2. To make update.zip (all other options are included in this one)
@jshare @Limac @Manvindar
Yeah, I forgot to add line for killing "adb" process in latest version, because I slightly rearranged whole code. I will upload fixed version in 10 min
UPDATE
I have uploaded fixed version!
Click to expand...
Click to collapse
Backing up modem would be a neat feature.
There is a message saying "This app cannot be executed on your PC".
Im running Windows 8.1 64bits
Do you have .Net framework 4.5?

[ROOT] Samsung galaxy J2 Prime - G532G (G532GDXU1APL1)

Hi
I created root method for the last version of samsung J2 Prime G532G - G532GDXU1APL1.
It based on modified stock recovery with custom keys (mine), which allow to install a special zip that signed with those keys.
This method include's a patched boot.img (sepolicy), in order the root work properly. (this is normal system root - not systemless, and from Android 6.0 or samsung 5.1.1 and above need also pathed boot)
The phone must be with G532GDXU1APL1 version, or it wont work.
It can be downloaded from here
G532GDXU1APL1
Instructions:
Download this file, and extract it to some folder.
G532GDXU1APL1_root_by_avicohh
Open odin and flash the .tar file inside the folder (In AP).
This file contains the custom recovery, a patched boot, and an empty cache.img in order the phone will restart to recovery after flashing.
In recovery choose "Apply update from ADB".
Run the .bat script file from the "SuperSU sideload installer" folder.
Wait until it finish, the phone will restart automatically with SuperSU inside.
Good luck!
Credits:
@Chainfire for SuperSU
@osm0sis for AIK
P.S. (for devs)
This method can be modified to another build / device, by patching the sepolicy inside boot.img (see here), and replacing the res / keys file inside the recovery.img with my keys. (Attached)
You can unpack and repack boot and recovery images with this tool. (It recomanded to this on linux in order to keep the files permissions)
The stock recovery doesn't support the standart SuperSU installer bacause it bash script, so i wrote another one in Edify. (this zip should work on any device with android 5.11 - 6.0.1 and armv7)
I am waiting new method root for G532G (G532GDXU1APL1)
Now..
great work ,,thanks bro .......I 'm so happy .....
Manual instruction recovery_custom_keys.7z ??? thank
---------- Post added at 02:11 PM ---------- Previous post was at 02:07 PM ----------
avicohh said:
Hi
I created root method for the last version of samsung J2 Prime G532G - G532GDXU1APL1.
It based on modified stock recovery with custom keys (mine), which allow to install a special zip that signed with those keys.
This method include's a patched boot.img (sepolicy), in order the root work properly. (this is normal system root - not systemless, and from Android 6.0 or samsung 5.1.1 and above need also pathed boot)
The phone must be with G532GDXU1APL1 version, or it wont work.
It can be downloaded from here
G532GDXU1APL1
Instructions:
Download this file, and extract it to some folder.
G532GDXU1APL1_root_by_avicohh
Open odin and flash the .tar file inside the folder (In AP).
This file contains the custom recovery, a patched boot, and an empty cache.img in order the phone will restart to recovery after flashing.
In recovery choose "Apply update from ADB".
Run the .bat script file from the "SuperSU sideload installer" folder.
Wait until it finish, the phone will restart automatically with SuperSU inside.
Good luck!
Credits:
@Chainfire for SuperSU
@osm0sis for AIK
P.S. (for devs)
This method can be modified to another build / device, by patching the sepolicy inside boot.img (see here), and replacing the res / keys file inside the recovery.img with my keys. (Attached)
You can unpack and repack boot and recovery images with this tool. (It recomanded to this on linux in order to keep the files permissions)
The stock recovery doesn't support the standart SuperSU installer bacause it bash script, so i wrote another one in Edify. (this zip should work on any device with android 5.11 - 6.0.1 and armv7)
Click to expand...
Click to collapse
recovery_custom_keys.7z hướng dẫn tay ??? cảm tạ
I don't understand, what instructions?
ask something
this root files include custom recovery?
Yes, but no TWRP. Modified stock recovery.
not only G532GDXU1APL1
Not only G532GDXU1APL1 is working but also G532GDXU1AQA4 is rooted smoothly i have tested on my device. So thanks a lot.:fingers-crossed:
Brother. Can you explain to me ste by step to root sm-g532g on aq4 firmware? Please
:fingers-crossed:
bolda.mia said:
Not only G532GDXU1APL1 is working but also G532GDXU1AQA4 is rooted smoothly i have tested on my device. So thanks a lot.:fingers-crossed:
Click to expand...
Click to collapse
Just do the instruction in the first post.
Hei avicoh
avicohh said:
just do the instruction in the first post.
Click to expand...
Click to collapse
sometimes i have an error when daemon start in cmd, maybe my pc's problem? I used win7 64 bit
Upload log
Log is here
avicohh said:
Upload log
Click to expand...
Click to collapse
{
"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"
}
HELP ME
I ALSO USE STOCK FIRMWARE THAT U GIVE ABOVE G532GDXU1APL1 ,
sometimes there is a messege in CMD that saying ADB out of date :/
I believe it something in your computer.
Try another one.
avicohh said:
Upload log
Click to expand...
Click to collapse
avicohh said:
I believe it something in your computer.
Try another one.
Click to expand...
Click to collapse
another one??????
alfanjawa8 said:
I ALSO USE STOCK FIRMWARE THAT U GIVE ABOVE G532GDXU1APL1 ,
sometimes there is a messege in CMD that saying ADB out of date :/
Click to expand...
Click to collapse
@avicohh WHY SUPERUSER CANNOT BE READ?
Try with another computer.
I my god it is now ask for password, and i have no z2x box to unlock it :/
So maybe @bolda.mia is wrong.
The reason the device ask for password is because the custom boot is based on G532GDXU1APL1 and you have a newer system version. (I think is something related to storage encryption, I don't know exactly)
That's why I said this method should work only on G532GDXU1APL1.
Anyway​, flash the stock version back. I believe it will fix the problem even without wipe.
before root, I already flash to lower version brother
avicohh said:
so maybe @bolda.mia is wrong.
The reason the device ask for password is because the custom boot is based on g532gdxu1apl1 and you have a newer system version. (i think is something related to storage encryption, i don't know exactly)
that's why i said this method should work only on g532gdxu1apl1.
Anyway​, flash the stock version back. I believe it will fix the problem even without wipe.
Click to expand...
Click to collapse
i know exactly, that i already flashing with the lower rom such as pl1 pk3 etc. And the result is same, ask for password my brother!

Categories

Resources