yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] TKruzze:
Believe it or not, java heap size is not directly related to the available RAM on your system. As [MENTION=4828250]Ibuprophen[/MENTION] noted above, the maximum java heap size you'll ever get in a 32-bit java VM is less than 1.6GB. What's really interesting is that on a 64-bit java VM I was able to allocate almost 3TiB of heap space. That's almost 2,0000 times what I can generate in a 32-bit java VM. The error messages you shared were, indeed, from Zip Builder. It's my way of explaining the problem in as great of detail as possible.

Thanks for brining this to light. I'm going to add something to the program that will warn 64-bit users if their java is not also 64-bit.

Part of the problem is the java signing utilities that we're working with were never designed to build the size of installers that are being built today. I'm sure that someone with java development skills could rewrite the signing tools to be more memory efficient.

As you found out, once you installed the 64-bit version of java, everything worked fine. As I noted on the OP, once you start building from a source larger than 50-75MB, you're going to need a 64-bit OS and 64-bit java., especially if it's a shell-script based installer. The good news for you is all you needed was the right java.

I spent a lot of time researching this when I first began to ready the tool for release. I knew that any file source larger than 50-75MB would have problems building on a 32-bit system. It just never occurred to me until today that there might be people running 32-bit java on a 64-bit system, which essentially brings all the constraints of a 32-bit system.

My initial research shows that your number is spot on with what I found. You'll basically never see anything more than 1600m. When I was still building GApps packages a few years ago, even a 300MB installer needed a heap size of 4096m, if I recall correctly.
[Android Software/Hacking General [Developers Only]] Ibuprophen:
I also want point out a few other things as well for those who may not have realized this.

There's a common mistake (I've previously addressed, primarily, outside the Forum) the difference between a 64-bit/x64 Capable Computer System and the actual installed Windows Operating System.

I've seen individuals who think that they have a 64-bit/x64 System when it was just the capability of their specific Computer System and actually have a 32-bit/x86 Windows Operating System installed.

Also, the Java Heap Size Capabilities does also vary with other Operating Systems like Linux, Unix, etc...

Oracle has even been slowly dropping 32-bit/x86 Java Binary Support as reflected with their JDK that now only supports 64-bit/x64 Binaries (that was previously announced by iBotPeaches as well).

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software/Hacking General [Developers Only]] bober10113:
thanks for everyone's input. Maybe the OP could have the x86 -x64 warning shifted from targeted OS to actual java version instead.

unfortuantely Win 10 x64 seems to ship with the 32bit version of java... go figure. anyways I learnt my lesson.. i thought it was x64 and the reason i didint bother of manauly installing java. and an nother funny thing is the way its part of the OS but not registered in the same way that the original installer would have done it. Probably it is targeted towards browser support.

anyways thanks again.
[Android Software/Hacking General [Developers Only]] osm0sis:
[MENTION=4470081]topjohnwu[/MENTION] rewrote zipadjust in Java and rewrote minsignapk/signapk to use less memory, so maybe they could be extracted back out of Magisk Manager into solo programs? :)

https://github.com/topjohnwu/MagiskManager/commit/19af5f9e0be9e725264d85552fd60f46bffff32d

https://github.com/topjohnwu/MagiskManager/commit/2c69e2c15154f0bdb315b17559edd6b47d5ef786

Unfortunately he's away for 4 months doing Taiwan's mandatory military service, but maybe you or someone could give it a shot in the meantime.
[Android Software/Hacking General [Developers Only]] Voytec83:
[MENTION=2777334]TKruzze[/MENTION] a massive huge THANKS for what U created, sir?

And it is not only about app itself, but mainly IMO about this awesome 'noob friendly' instruction coming together as a part of the app!

Hopefully, in many Devs' Groups/Channels, popular 'flashable zip, plis' sticker will be in use much less often.

Thank U once again!
[Android Software/Hacking General [Developers Only]] osm0sis:
Ruh-roh, [MENTION=2777334]TKruzze[/MENTION], looks like Windows Defender updated their definitions and are giving an heuristic false-positive for Zip Builder. I imagine you'll be seeing a few more reports of this soon..

Trojan:Win32/Fuery.A!cl

Alert level: Severe

Status: Quarantined

Date: 3/22/2018

Recommended action: Remove threat now.

Category: Trojan

Details: This program is dangerous and executes commands from an attacker.

Affected items:

file: C:\Users\Chris\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Zip Builder\Zip Builder.lnk

file: C:\Users\Chris\AppData\Roaming\Zip Builder\ZipBuild.exe

regkey: HKCU@S-1-5-21-1153087999-1866807045-2142682875-1001\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL\{5B35E706-9EE5-4388-B274-79028B5F2513}_is1

startup: C:\Users\Chris\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Zip Builder\Zip Builder.lnk

uninstall: HKCU@S-1-5-21-1153087999-1866807045-2142682875-1001\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL\{5B35E706-9EE5-4388-B274-79028B5F2513}_is1​

Any other way you can think to package this up so that it doesn't trip heuristics? [MENTION=5787964]SuperR.[/MENTION] had issues with his kitchen exe's at one point, maybe he can help?
[Android Software/Hacking General [Developers Only]] TKruzze:
<sigh>... Thanks for the tip. Better from a friend than an accuser..

In the past I've found that using UPX compression on the exe has led to many false-positives on compiled AutoIt executables. Perhaps I can send you a version to test that's compiled without UPX compression. If that works, I'll try and do an update over the weekend with the other updates I've been meaning to add.
[Android Software/Hacking General [Developers Only]] osm0sis:
Yup! Whenever you're ready. :)

I used UPX on the Windows sudo.exe I now use in AIK and it doesn't trip heuristics though.. maybe because it's a Go lang compiled exe underneath and not Auto-It? I used `upx --brute`. :confused:

https://github.com/mattn/sudo/issues/10
[Android Software/Hacking General [Developers Only]] TKruzze:
Major Update Announcement

MARCH 25, 2018 - v4.3.0

Updated signing code with the new ZipSigner 2.1 Java executable that was rewritten from the ground up by [MENTION=4470081]topjohnwu[/MENTION] for use in his Magisk root management software. This change will allow you to build the largest zip installer on even the smallest 32-bit machine. I was able to build a 1.0+GB shell-script based installer on a 32-bit Windows XP machine with only 1GB of RAM.

- Thanks, of course, to [MENTION=4470081]topjohnwu[/MENTION], but also to [MENTION=4544860]osm0sis[/MENTION] for the heads up on its existence

- Thanks to [MENTION=8340552]jenslody[/MENTION] for building it for inclusion here.

Since memory and java heap size issues are now resolved with the above change, I have removed all memory and java heap size checks from Zip Builder. The above change also allowed me to remove the separate test key files (testkey.pk8 and testkey.x509.pem), signapk.jar, zipadjust, and minsignapk.jar executables as their functions are all now contained in the new ZipSigner 2.1 Java executable mentioned above.

Installer will now clean up its 'temp folder' files before displaying the 'COMPLETED' message. On slower systems this should reduce the delay when selecting the 'Close' button after Zip Builder completes the signing process.

- Thanks to [MENTION=4544860]osm0sis[/MENTION] for reporting and helping track down the issue

Zip Builder is now built without UPX compression on the Windows exe's. This was done to try and reduce false-positives that may be reported by your AV software. If you're still having AV hits, please read the ANTI-VIRUS FALSE-POSITIVES section on the OP.

Fixed bug in installer that would corrupt the context (right-click) menu settings on an update (not initial) installation.

- Thanks to [MENTION=4544860]osm0sis[/MENTION] for reporting and helping track down the issue
[Android Software/Hacking General [Developers Only]] marioo007:
Thank you
[Android Software/Hacking General [Developers Only]] TKruzze:
Update Announcement

ZIP BUILDER v4.4.0 UPDATE

MARCH 26, 2018 - v4.4.0

Updated the ZipSigner java executable to v2.1-min. This version is significantly smaller than v2.1 (458K vs 4.0MB) and was built by [MENTION=4470081]topjohnwu[/MENTION], himself, using using ProGuard optimizations

Recompiled Zip Builder Settings Manager (ZipBuildSettings.exe) without UPX compression to try and further minimize AV false-positives

Windows installer now built using lzma2/max compression and no longer uses solid compression. This was done to optimize installation speed and further minimize AV false-positives

As always, the best and easiest way to update is to simply install the new version using the Windows installer without uninstalling the previous version. All of your settings and options will be retained
[Android Software/Hacking General [Developers Only]] osm0sis:
Excellent! No more false positives from Windows Defender on Windows 10! :D
[Android Software/Hacking General [Developers Only]] TKruzze:
It just hit me why you may no longer be getting false positives on your 32 bit system. Because I stopped using solid compression on the windows installer, the installer no longer needs to decompress the entire archive. It only decompresses what's needed for your particular system. In your case it's just the 32 bit version of Zip Builder, whereas before, it would decompress both the 64 and 32 bit versions and then proceed to install the 32 bit exe and discard the 64 bit. Perhaps it was the presence of the 64 bit executable that was triggering the hit? Anyways, something to remember for the future, I guess.
[Android Software/Hacking General [Developers Only]] osm0sis:
Perhaps! Everything has been working great over here.
[Android Software/Hacking General [Developers Only]] markdave247:
Wow! Thanks for sharing this to us! :D
[Android Software/Hacking General [Developers Only]] $UbconciousNavig@tor:
slowly getting it jist a few more nudges

I have been searching xda for the last 18hours all I want is to ,make a flash able zip of Kali net hunter for my rooted twrp 3.2.1-0 lg aristo 2 LM-X210(G) not a needy hand holding (I hope not) but a basic here's the name Of ur file find it but it there I just must learn backwards Any help greatly appreciated :eek:
[Android Software/Hacking General [Developers Only]] kamilmirza:
what are you asking? :eek:
[Android Software/Hacking General [Developers Only]] madbat99:
There is no short answer. You have to learn how to make a flashable rom that's actually for your device. You have much reading to do.
[Android Software/Hacking General [Developers Only]] saqibrashidk:
How to convert Lumia 520 into Android please help me

Hello guys i want to convert Lumia 520 in Android can any 1 help me

If any 1 knows how to please help me
[Android Software/Hacking General [Developers Only]] TKruzze:
This certainly isn't the place for this question. Always best to start in the device's forum.
[Android Software/Hacking General [Developers Only]] $UbconciousNavig@tor:
Two part question

Sorry I was really deliriously tired when I posted that question my question is I'm trying to make a flashable zip of a custom boot image of nethunter the the animation I finally installed nethunter on my phone now the only thing that didn't work was the the bootanimation that's what I'm trying to flash now I have the gift but I need to figure out how to turn that into a file that I can use on my LG aristo2
[Android Software/Hacking General [Developers Only]] Jiiro:
Thank you! I'll try this out.
[Android Software/Hacking General [Developers Only]] Dark_Cristian:
how do I choose where the root of android files would be installed, for example, my case is that I want to overwrite the blootooth files of another rom to my rom port because it has an issue that does not work when the headphones are paired.
[Android Software/Hacking General [Developers Only]] TKruzze:
Sorry, but your question is way beyond the scope of this thread. This utility is for building zip installers from Windows folders. There's nothing here to help with writing or developing the scripts, only for converting them into flashable zip files once they've been written.
[Android Software/Hacking General [Developers Only]] TKruzze:
Update Announcement

ZIP BUILDER v4.5.1 UPDATE

NOVEMBER 1, 2018 - v4.5.1

Updated the cleanup function to also include removal of the SignAPK*.tmp files that are created in the %TEMP% folder during the signing process.

- Thanks to [MENTION=4544860]osm0sis[/MENTION] for reporting

As always, the best and easiest way to update is to simply install the new version using the Windows installer without uninstalling the previous version. All of your settings and options will be retained
[Android Software/Hacking General [Developers Only]] Tomatot-:
Just tried your your tool. Works so easily and flawlessly. Thanks a lot for sharing this.
[Android Software/Hacking General [Developers Only]] fireborn1472:
Hello,

When I attempt to use tthis tool, I get error 15, zip signing process was unable to complete. I'm not sure how to fix this.

Any help would be greatly appreciated.

Thanks
[Android Software/Hacking General [Developers Only]] TKruzze:
Do you get the error on every zip you build, or is it a problem with a specific folder you're building from?

Also, do you have Java installed on your system?
[Android Software/Hacking General [Developers Only]] bober10113:
how big is the folder you are building?
[Android Software/Hacking General [Developers Only]] SilentEYE:
I can confirm that i also get error 15.

Tried on windows 7 and Windows 10.

Tried as admin too.

Used the windows setup routine

It is a small file I try to sign.

see attachement
[Android Software/Hacking General [Developers Only]] bober10113:
not sure if its related but java changed a bit. but from what i understand its only the licensing part for commercial/enterprise end points.
[Android Software/Hacking General [Developers Only]] osm0sis:
Have you tried reinstalling ZipBuilder and checking your Windows Defender after running? Maybe it got flagged by heuristics again and you'll have to whitelist it.
[Android Software/Hacking General [Developers Only]] TKruzze:
Thanks for providing the folder you're trying to build. It built the signed zip just fine for me. After trying the suggestion from [MENTION=4544860]osm0sis[/MENTION], make certain that you have a recent version of java installed on your system. If your system is 64-bit, make certain you have a 64-bit version of java installed. You can find he latest version at:

Latest Java for Windows Downloads

If installed properly, you should see it in your list of installed software similar to what's shown in the image below:

https://imgur.com/a/PuHatiA

.
[Android Software/Hacking General [Developers Only]] TKruzze:
Were any of our suggestions helpful? Were you able to resolve your issues?
[Android Software/Hacking General [Developers Only]] osm0sis:
Windows Defender started removing things yesterday on my installation after months of working with no issues. Restoring the file from Quarantine and Allowing the "threat" got it working again. Must be the most recent definitions update acting up again.
[Android Software/Hacking General [Developers Only]] SilentEYE:
Yes, it was. because of Java the app didn't build up the zip file.

I pushed the thanks button and I didn't wanted to spam the thread.

Thank you all for your help.

Gesendet von meinem ONEPLUS A6013 mit Tapatalk
[Android Software/Hacking General [Developers Only]] ClownWorld:
Can't download it, nothing happens.
[Android Software/Hacking General [Developers Only]] TKruzze:
Yep. For some reason latest version on XDA throws an error. You can grab a previous version, or I'll re-upload the latest one when I'm back in my office.
[Android Software/Hacking General [Developers Only]] ClownWorld:
Thanks for the answer, I would appreciate that, for the time being: where does one find a previous version?
[Android Software/Hacking General [Developers Only]] TKruzze:
From the downloads page:

https://xdaforums.com/devdb/project/?id=24572#downloads

Grab 4.40. The changes are minor from 4.51. I'll re-up the latest in the morning when I'm back in the office.
[Android Software/Hacking General [Developers Only]] TKruzze:
I just checked and all the downloads appear to be working again. Let me know if you're not seeing the same thing. It's likely a problem with XDA.

https://xdaforums.com/devdb/project/?id=24572#downloads
[Android Software/Hacking General [Developers Only]] ClownWorld:
Not for me, tried the 3 latest, with blocking addons off. With all of em on the download list didn't even show. Can you put a mirror?

Hate Gulag and all these parasites.
[Android Software/Hacking General [Developers Only]] TKruzze:
Update Announcement

ZIP BUILDER v4.5.2 UPDATE

SEPTEMBER 6, 2020 - v4.5.2

Fixed RegEx bug (oversight) that only supported automatic folder renaming through the year 2019. Now we're good through the year 2029. :)

As always, the best and easiest way to update is to simply install the new version using the Windows installer without uninstalling the previous version. All of your settings and options will be retained
[Android Software/Hacking General [Developers Only]] TKruzze:
It's interesting that you report this because I was just thinking this past week about why Defender was flagging Zip Builder (I didn't know it still was) and it occurred to me that it's likely due to my writing the app settings into the registry. I only write tot the the Current User (not the Local Machine), so it's definitely being done correctly, but it's also what's probably causing the false-positives.

I could easily change the software to write the settings to an ini file and it should eliminate all these problems.

I'm scheduled for my second of three eye operations next week (I'm having 2 cornea transplants and 2 cataracts removed, in total) but my recovery time from this procedure (cataracts in one eye) should be relatively minor.

Once I've sufficiently recovered from this procedure, I'll get to work on rewriting it without touching the registry and saving the settings to an ini file. I'll contact you for testing before I release anything. Thanks for prompting me to revisit this before it slipped my mind completely. 👍
[Android Software/Hacking General [Developers Only]] VelvetB:
Hello,

Is it possible to create a flashable update zip file from an unzipped stock firmware that I can use from stock recovery to revive my TCL/Alcatel One Touch 9020A aka AT&T Trek HD. It's completely bricked, stock recovery is my only option. Thank you.

Firmware
[Huawei Mate 10  Questions & Answers] dennis96411:
Coming from Qualcomm devices, we had stock/custom recovery, fastboot, and EDL (emergency download mode). I'm wondering what fail-safes we have in case our phone bricks.

We currently do not have TWRP for the Mate 10, so I'm not sure how to recover without using a paid service like Funky Huawei or DC-Phoenix.

In addition, is TWRP supposed to overwrite eRecovery or are they two separate things? I'm seeing posts about eRecovery remaining even after installing TWRP.
[Huawei Mate 10  Questions & Answers] Sabawballs:
what I encountered is that we have the ff:

- erecovery

- restore factory settings

- emergency download firmware

- fastboot
[Huawei Mate 10  Questions & Answers] dennis96411:
Can we flash anything in fastboot? Even unsigned stuff?
[Huawei Mate 10  Questions & Answers] Sabawballs:
no idea. since I think fastboot was not working when I bricked my phone. lol. So I had no choice and do a factory reset (which I forgot to back-up before downgrading :( )
[Huawei Mate 10  Questions & Answers] dennis96411:
So if we brick, we will have to flash the full OTA in eRecovery? Can we flash it in fastboot if eRecovery doesn't work? I'm just used to being able to recovery easily with TWRP.
[LeEco Le Pro3 Questions & Answers] Reigndeath:
But I can still boot into fastboot and twrp. Can someone help with a rom I can flash via fastboot to get the phone to be useable again(stock or otherwise)
[LeEco Le Pro3 Questions & Answers] lazye53:
Try :)

https://yadi.sk/d/6XlmadNc3Q8qQd/FASTBOOT
[LeEco Le Pro3 Questions & Answers] mchlbenner:


Twrp navigator 3.2.0 it will see your PC.

https://www.mediafire.com/file/um8tyfd1ecnmd11/recovery_twrp.zip
[LeEco Le Pro3 Questions & Answers] clsA:
all of my LEX727 files can be found here >> https://www.androidfilehost.com/?w=files&flid=46339

everything you need to recover your phone is their (the files not in folders are all for the 727)

I recommend the TWRP backup of stock 19s to get your phone booting up again
[iPAQ rw6828, XDA Atom ROM Development] williamSun:
hello, all.

if i flash from the mini sd card, wer do i need to put the diskimg.nb0 and giving wat name for that?

if my root file got eboot.nb0.
[iPAQ rw6828, XDA Atom ROM Development] japa78:
do not flash rOM from ur minisd card you run the risk of bricking the device!! copy the ROM to ur desktop c:windows\temp and then upgrade.
[LineageOS Questions & Answers] H00kr:
Hey guys,

Why there is such partiality between popular and top rated smart phones and normal budget oriented smartphone?? I have my OPPO a37f smartphone. And I also want to flash custom rom for it but there is such 2-3 option online found while searching for it.

I want lineage OS for my OPPO A37f.

Please help me out guys..

Thank you:(

In advance
[LineageOS Questions & Answers] Ibuprophen:
I don't have this device but, your best bet is to take a look at the following thread and, if needed, post your question within it.

https://xdaforums.com/showthread.php?t=3631737

I do see some posts regarding other members trying to get an Unofficial LineageOS developed but, nothing has been released yet. Just be patient... Remember that, the greater the need/want, the greater the chances for someone to release it.

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Samsung Galaxy S8 Themes, Apps, and Mods] Ayh4n:
Introduction

Hi everyone, I wanted to share with you this useful tips with you.

This tips remove selected status bar icons without using overlay apps or status bar app.

Like here on the top : View attachment 4398029

Battery icon is Battery Meter Overlay

How to do that with root directly on my phone (easy way)

- First you need to be rooted.

-Install any terminal app if you don't have already one.

-Tip

su

than enter.

settings put secure icon_blacklist

than what you want to hide.

Here is an

exemple

:

settings put secure icon_blacklist volume,bluetooth

you need to put a comma "," without space between each icon you want to hide like in the exemple.

Here is the list of Samsung icons name

power_saver
rotate
headset
hotspot
location
gps
wearable_gear
bluetooth
nfc
zen
volume
wifi
data_connection
phone_signal
battery
alarm_clock
clock
private_mode

How to do that on my unrooted phone

- You need adb shell on your computer for the operation

-The codes are the same :)

ENJOY and don't forget to press thanks bouton :p

Crédit

Crédit
[Samsung Galaxy S8 Themes, Apps, and Mods] blackenesian:
Merci beaucoup.

I've used this mod on unrooted SM-G950W, using a PC and ADB. Installed Battery Meter Overlay listed as above, unlocked pro version.

If I wanted to revert, would I change "blacklist" to "whitelist"?

---------- Post added at 11:45 AM ---------- Previous post was at 11:37 AM ----------

Oh, I almost forgot, on PC, the ADB commands are:

First,

adb devices

Then,

adb shell

and enter your list, example (I removed these icons):

settings put secure icon_blacklist battery,rotate