yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=4576707]Ryuinferno[/MENTION]

I downloaded sign-em 2.0 a few weeks ago, after changing to official CM12.1 ROM with its very restricted CM recovery in order to be able to sign some ZIPs myself for flashing.

Although it helped me already "out of the box", I modified it with some features I missed. Then I added some more that I thought would be nice to have or that helped me testing. So I added errorhandling, "file- and path with space"-support, Java-autodetection...

The result was a script, that is backwards compatible with yours, using INPUT and OUTPUT folders if called without parameters, but where the main focus was put on Windows Explorer integration.

It can simply be used by right-klicking on a file (or even multiple selected files) in any folder and choosing "send to->Sign-em-anywhere.cmd"

By default it will also put the signed output-files back into the source folder, but also ouputting to either defaultOutput-folder or an alternate folder is possible (useful if sending to from a readonly drive).

For an overview of the changes I have added the output of the help that I also added.

[IMG="Help-Screenshot-Sign-em-anywhere-3.0"]http://xdaforums.com/attachment.php?attachmentid=3463047&stc=1&d=1441414225[/IMG]

If you should be interested, I would share it here.

Best regards

the.gangster
[Android Software/Hacking General [Developers Only]] Adam Hui:
[MENTION=6560258]the.gangster[/MENTION]

Yes, just upload it here dude, it will help alot..
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=3085711]DrPhant0m[/MENTION]

Obviously the second one is not what should be the output of "sign-em-anywhere /javainfo".

You pasted the same code twice.

Maybe you can also paste "sign-em-anywhere /? variables"
[Android Software/Hacking General [Developers Only]] DrPhant0m:
Good catch. I fixed it above.. I'm doing this remotely from a Note 4 so bear with me. Haha

See below for a /? variables output. Thanks for the reply!

Enter option(s): /? variables
Now calling: C:\sign-em-anywhere_3.0.160204\sign-em-anywhere.cmd /? variables
#### ########################## H E L P #################################################

Help on variables:

wkSignEm
current value: C:\sign-em-anywhere_3.0.160204\Tools
Path to signapk.jar
This variable is needed if used with SendTo or whenever a copy of
this script should run separated from the folderstructure.
Otherwise (if used where it has been extracted) it will autodetect this value
If using /SendTo with this value unconfigured, you will get instructed what to put here.
EXAMPLE: set wkSignEm=D:\ADB\Sign-em\Tools
wkHideBanner
current value: 0
default value: 0
To suppress the short parameter infos on each startup set this to '1'
wkDebug
current value: 0
default value: 0
Verbose mode with even more infos spamming your screen
Can be overruled by commandline /debug
wkJavaDir
current value: C:\Program Files\Java\jdk1.8.0_77\bin
default value: not defined
Preselected Path to java.exe
This variable can be used to skip autodetection of installed Java versions
and to define a specific Java version for use in case you have more than one.
Mandatory if a portable version of Java should be used as they cannot be autodetected.
EXAMPLE: set wkJavaDir=C:\Portable\Java64\bin
wkJavaXmxSize
current value: 6000m
default value: 4000m on x64 with Java64
suggested value: 1200m on x64 with Java32
Maximum Java Heap size
This turned out to be key parameter for signing big zip files like ROM.
But could cause errors if too small or too big.
wkJavaParas
current value: -Xdiag -Xmx6000m
default value: -Xdiag -Xmx6000m
This is the commandline to be passed to java.exe
It can be expanded with further parameters here but at least wkJavaXmxSize
should be kept defined above.
To see possible commandline parameters for java.exe try /JavaInfo
wkWindowResize
current value: 1
default value: 1
Setting this to 1 will try to resize the width of the console window
according to current screen resolution.
The drawback is that the console output is cleared on every run
which can be bothering if run in an existing cmd window.
:)

(c) the.gangster 2016 [_build_3.0.160204_]
clickermode ended
Press any key to continue . . .
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=3085711]DrPhant0m[/MENTION]

looks like you are using it correctly and also already use an x64 java. So the only thing I can advise you is to play around with the java parameters that configure heap (although I am still kind of convinced that the Xmx-value will do). On my 8GB Win7 x64 I successfully signed ~1.75GB with xmx7g. If I try with bigger values it doesn't even manage that.

So try to test out, which value offers you the biggest file. But maybe even then you won't reach 4GB. But would be interesting to hear, where your limit was reached.
[Android Software/Hacking General [Developers Only]] DrPhant0m:
I'm not 100% sure what the "heap size" is/does, and whether or not it can be larger than the RAM in my PC. FWIW... I should mention I've got 16GB of RAM, so I tried doubling the heap size from 4000 to 8000 (proportional to 8GB)... and it failed. I then doubled it to 16000 and it failed. So, I thought maybe I went too big, so I put it down to 6000. Still failed. Of course, it failed on the default of 4000 as well. What other java parameters should I play with?I want to sign a 4GB file, so even storing the entire thing in unsigned form, and storing it again in signed form... it would only take up 1/2 of my total RAM... so I don't know if system memory is the issue.

Theoretically... what are the limitations that prevent signing increasingly larger files? Would CPU speed/cores have anything to do with it? I think I've got an AMD octo-core CPU that's a few years old, but I'd say the processing power requirements shouldn't be that strict. When I contacted the dev of ZipSigner (Android app), he said there was no reason why I couldn't sign a 3-4GB file on a Note 3. (I've got a Note 4 now and it still doesn't work)

Is there anything else I can try? I really want to get it to work. Thanks!
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=3085711]DrPhant0m[/MENTION]

No, that's not how it works. It's not just keeping the files in memory. There is much more processing going on than that. There is a lot of memory used for e.g. building up arrays, pointers and stuff.

That's what the /javaInfo parameter is for. It lists the xtended parameters that your java.exe accepts. I do only pass xmx by default, which defines the maximum heap size. There are also things like e.g. xms for the initial heap size. Even if I expect the xmx to be the key parameter, you could consider playing also with the others.

Concerning the size: I guess you can also define bigger values than your physical RAM, but it might fail nevertheless.

That's why I'd suggest once more to try with smaller zip first. If that works, increase zip size until it fails, then increase heap size value. Maybe that way you'll find the maximum size possible. Or you could do some research on that. There should be more than one resource on the internet covering that. e.g. here

As I personally just wanted to be able to sign ROMs of half a gb I tried until it worked back then. That's why I defaulted to 4000m (expecting no problems on systems with 4GB either).

Now, just for you, I played with the values yesterday and was able to sign 1.75GB file with xmx7g (same as xmx7000m) while it failed on trying with a 2.1GB file.

So maybe you try it yourself what is possible with 16gb RAM. At least I don't how else to help you.
[Android Software/Hacking General [Developers Only]] Marília de Oliveira:
Help me

Signing - sign.zip

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Unknown Source)

at java.io.ByteArrayOutputStream.grow(Unknown Source)

at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)

at java.io.ByteArrayOutputStream.write(Unknown Source)

at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)

at java.util.zip.DeflaterOutputStream.write(Unknown Source)

at java.util.zip.ZipOutputStream.write(Unknown Source)

at com.android.signapk.SignApk.copyFiles(SignApk.java:422)

at com.android.signapk.SignApk.main(SignApk.java:490)

Files signed successfully if no errors above...

Hope you enjoyed my work...:)

Ryuinferno @ XDA 2013
[Android Software/Hacking General [Developers Only]] the.gangster:
How?

See previous posts for how to examine this error (at least with the sign-em-anywhere.cmd).

Did you try the latter at all? It has a preconfigured higher value for JavaXMXsize and is easier to modify for playing around with the values.

How big is your zip, how much RAM do you have and what Java and OS architecture are you running on?
[Android Software/Hacking General [Developers Only]] zround:
;) i tried to do it to be ported rom lollipop 64bit MT6735, an error occurs and I read the answer is no possibility of my computer is not eligible only 4GB of RAM whereas 64bit,
[Android Software/Hacking General [Developers Only]] dexter9:
try a test

thanks to update
[Android Software/Hacking General [Developers Only]] :
[IMG="SCREENSHOT_12_28_2016.png"]https://lh5.googleusercontent.com/PKqrUNwCO9swb605e62aGxVEMasFMuBbuuX-65Vx0W1JSVO4qZcW8eZaDn4f9i_drlkERVZ841I57wY=w1440-h794-rw[/IMG]

Help!

Edit: I needed to run the program as admin, disreguard! :D
[Android Software/Hacking General [Developers Only]] Marília de Oliveira:
HELP ME

[MENTION=4576707]Ryuinferno[/MENTION] I get this error, see attached. Windows10 64x. Any solution? thx
[Android Software/Hacking General [Developers Only]] the.gangster:
You asked the very same question already some posts back in July 16.

I replied to you but you ignored it. Now you repost the same question again. You can now either continue waiting for Ryuinferno to reply or could take into consideration trying to play with the values I hinted at.

You can do that in his script as well but as I already wrote my 3.0 version comes preconfigured with higher values already and also allows testing much easier other values on the fly, as well as bringing some other improvements...
[Android Software/Hacking General [Developers Only]] p32929:
amazing ^_^
[Android Software/Hacking General [Developers Only]] persona78:
Hi!

For Java heap space error you need to change a line:

java -jar .\Tools\signapk.jar -w .\Tools\testkey.x509.pem .\Tools\testkey.pk8 %%A .\Output\%%~nA-signed.zip

to

java -Xms256M -Xmx1024M -jar .\Tools\signapk.jar -w .\Tools\testkey.x509.pem .\Tools\testkey.pk8 %%A .\SignedZip\%%~nA.zip

for example.

To set low and high heap size.

But if you have 32bit Java version you are limited, need to have 64bit version to get a high value for max [ -Xmx ] heap size.

My line for example, with Windows 7 64bit, 8GB RAM and Java 64bit is:

java -d64 -Xms6144M -Xmx6144M -jar .\Tools\signapk.jar -w .\Tools\testkey.x509.pem .\Tools\testkey.pk8 %%A .\SignedZip\%%~nA.zip

to compile a ROM with 1,66GB size...

-d64 is to use Java 64bit version in command.

I have build this simillar software but to use it you need to have a

Windows OS 64bit, 8GB RAM minimum and Java 64bit installed

.

Only need the META-INF and the files, he mount the zip and sign by him self.

Just follow what is write in software.

It have Java 64bit installer inside the zip.

Signed_ROM_V1.0.zip

I hope that i help you...

.
[Android Software/Hacking General [Developers Only]] Ramen Sen:
Thanks....Sir !!!!

It really works ....!!!! Thank you very much sir for such an effort !!!!
[Android Software/Hacking General [Developers Only]] TheYkk:
https://prnt.sc/m4a3rb

base64 error
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
You can also use MiXplorer in android to sign..
[Android Software/Hacking General [Developers Only]] Shiroyuki82:
is there more updated version of application that can sign ZIP? (for desktop if possible) if there is plz kindly link me hehe! thanks!!
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
Try this https://xdaforums.com/showpost.php?p=81324327&postcount=11
[LG Optimus Black] eminent1410:
EmiMIUI for LG Optimus Black - P970

Base: CyanogenMod 10

Port: Galaxy Nexus MIUI JB

Current Porter: eminent1410

.

​

Features

Patched framework.jar for disabling scrolling cache.

Patched service.jar for Supercharger v6.

Patched android.policy.jar for more reboot choice.

Tweaks for Battery life, RAM, graphics.

Bravia Engine & Xloud

AC!D Audio Engine

More Addons for MIUI.

Stable, Fast and Smooth.

​

Installation

Download

- Remove space between adf and .ly then copy to your browser - LOL :)

Bugs 'n' Fixes

Tips

CREDITS
[LG Optimus Black] eminent1410:
EmiMIUI v1.0 Lunar New Year Build

Changelogs

EmiMIUI v1.0 Pre-Final 4

EmiMIUI v1.0 Pre-Final 3

EmiMIUI v1.0 Pre-Final 2

EmiMIUI v1.0 Pre-Final

v1.0 RC2

v1.0 RC1

v1.0 beta - Initial - Only port with some tweaks
[LG Optimus Black] agritux:
another miui!! great!

and welcome back :D
[LG Optimus Black] N00BY0815:
Could you maybe add a list of all supported languages? German would be cool ;)
[LG Optimus Black] dcop7:
For me, Portuguese (from Portugal) :)
[LG Optimus Black] VyktorJonas:
For me just English is great :D Anyway, what if we're coming from Frankestein's ROM? Do we have to do full wipes(3)? Or cache and dalvik is good enough? Once we're comingo from another MIUI ROM..
[LG Optimus Black] theaks30:
am going to try it now :D

only one thing to ask...can you make an mms app with normal emoticons? :)

modify it i mean
[LG Optimus Black] eminent1410:
I'm sorry, my internet is down. So I only upload it tomorrow. So sad.

EDIT. I am not dev, of course. So what we want is more good ROM for OB users, I hope I could learn somethings from devs and users for making a great ROM.
[LG Optimus Black] kinjal:
good luck !

Wysyłane z mojego Transformer TF101G za pomocą Tapatalk 2
[LG Optimus Black] xonar_:
Nice. I like how MIUI looks bit its usually to buggy to use daily perhaps this project will be different.

From where did you take the MIUI camera apk? Try changing it with Galaxy ROM or Franks original.
[LG Optimus Black] blatecktonik:
nice, congratulations!!
[LG Optimus Black] Gloxksss:
ROM??
[LG Optimus Black] JaredMLG:
It is in the OP:rolleyes:
[LG Optimus Black] eminent1410:
The beta has been uploaded. I only port, in next build I will improve RAM management, fix lags of MiHome and fix some bugs.
[LG Optimus Black] Gloxksss:
file manedger not working
[LG Optimus Black] raffux3:
whatsapp doesn't work..it doesn't connect
[LG Optimus Black] mdys:
Finally the multilingual rom I'm trying for now major bug I found them very good job to fix some crashes info type phone and put the network monitor utility otherwise great
[LG Optimus Black] dlarralde:
Please add french language
[LG Optimus Black] OBItalia:
hi. i have install this rom. GOOD Rom, but,

File Explorer, Gallery(exlorer SD), and info telephone non functionally!!!!!
[LG Optimus Black] giec:
Bug???
[LG Optimus Black] eminent1410:
Yes. But if you want it right now, you can use some kernels for CM10 of OB, find it in this forum. almost of them has dim light, overclock, undervolt....
[LG Optimus Black] meddistar:
They dont boot i tried zerogravity 0.6-0.9 all reboot in recovery or give bootloop.

I wiped dalvik cache before
[LG Optimus Black] eric672913:
Control panel does not work !

Control panel does not work . Does anybody have some problem ? :confused:
[LG Optimus Black] Pollie81:
you need to wipe all caches..

Verstuurd van mijn LG-P970 met Tapatalk
[LG Optimus Black] eric672913:
Thanks but still not work

Thanks for your solution, but it still seems not work even I had done wipe before reflash. Is there any other solution for this ??:crying:
[LG Optimus Black] eminent1410:
I will try to release a new version soon for Lunar New Year :). I hope I could improve something such as RAM consumption, Camera, Jaku themed (like CiCi ROM UI), kernel and update to new weekly MIUI version.
[LG Optimus Black] dcop7:
Great news!
[LG Optimus Black] dlarralde:
and for usb ?
[LG Optimus Black] eric672913:
Great to hear that and please consider the control pannel issue in the next release. Eager to download your new release ROM.:laugh:
[LG Optimus Black] eminent1410:
Yes, I will try to fix it
[LG Optimus Black] tkrued:
what about the reboot caused by the flashlight and the portable hotspot doesn't seem to be working..I read through many many responses.and didn't see anyone talking about thus ibhipe it's not a problem unique to me only...this is an awesome Rom please up the good work
[LG Optimus Black] eminent1410:
Flashlight - Fixed in next build.

Hotspot - You can use other wifi tether app. it should work, I think so.

Control Panel - work fine.

USB debug work fine

I hope I could improve camera but maybe it doesnt work better.

I have to try to port from beginning because I meet too much small bugs.

I will upload test version. If you can, please help me fixed some bugs.
[LG Optimus Black] dodgedroid:
i'm waiting for next version, i just flashhed it and it's preaty nice...with my kernel is even more fluid....;)...for flashlight use another app for that is very good tesla led...;)...

edit:

until you will get everything working, i will staiy ons tock ics
[LG Optimus Black] eminent1410:
Updated in OP

EmiMIUI v1.0, PF4
[LG Optimus Black] nghia3d:
How to install theme with .mtz extension?When i install it display this theme not download from offical market :crying::crying::crying: In offical market i can not search that theme :crying:
[LG Optimus Black] tomkierz:
I have some questions and i hope u will help me :)

1. How many free Ram should i have free after use Task Cleaner? I have somethink like 150M. Is it fine or should i have more?

2. What should i do to set Handcent as my main sms app? When i turn off notifications on default app and turn on on Handcent my phone didnt responde me when i get sms.

3. Once or twice some icons on my screen just disappear for example Play Store. What should i do to restore it? I know i dont unistall it because i still can launch it using search widget.
[LG Optimus Black] eric672913:
Wipe required ?

Do I need to wipe if I come from pre-final 3. ??:confused:
[LG Optimus Black] Cazuo:
Re: [ROM][CM10][MIUI 3.1.18] EMINENT ROM | v1.0 PRE-FINAL 4 | AROMA | 22 JAN |

This rom is good. I like so much.

*GPS doesnt work.

Thanks Eminent.
[LG Optimus Black] tkrued:
Thanks for your response...you are awesome..keep up the good work..and I see the update in the OP let me give it a spin...thanks again..I love this ROM
[LG Optimus Black] eminent1410:
I change many things betweens different versions. So I think you have to do all wipe until final version releases. From v1.0 final, I will make a full .zip and update .zip, and of course you only update with wipe cache, but not now for stability.

Download .mtz, copy to sdcard/MIUI/themes. Some themes you need to has got Xiaomi Account (register please, it maybe take a 1 minutes, you will has some functions of MIUI) and internet to apply. It is the way to apply theme of new MIUI4 version.

Sometimes when Play Store updated it would be disappear icon. try to reboot. I think it will appear again,

I see 2 opinions someone likes more RAM, someone says more RAM will waste RAM. But linux and Android works absolutely different with Windows. If the system works not smooth I still check everything include RAM consumption. I think 150 to 200 is acceptable.
[LG Optimus Black] g3r4rd013:
Re: [ROM][CM10][MIUI 3.1.18] EMINENT ROM | v1.0 PRE-FINAL 4 | AROMA | 22 JAN |

Hi ... I love your ROM it's amazing man... but I have a problem my voice sounds like a squirrel on Viber and Zello... please could you fix it?... :o thank you very much

Enviado desde mi LG-P970 usando Tapatalk 2
[LG Optimus Black] manucas:
I installed your new version a few hours ago and so far so good. best MIUI so far...

too bad you can`t add languages like ultrasound`s MIUI...

the improvements on the ram management are very good indeed.... a few more touches and it´s just perfect.... :)

keep it up.... :)
[LG Optimus Black] eric672913:
I love this rom , and try it from first version. But in each version , I had some problem. After open some apps , it become very lagy. Does anyone has the same problem ? What is the reason ? And is there any way to solve ? help ~~~
[LG Optimus Black] eminent1410:
Final Version is Coming soon....
[LG Optimus Black] eric672913:
Do you mean this will be fixed in the final version ? :D. So great to hear that .... :good:
[LG Optimus Black] eminent1410:
I'm not sure 100% but I will improve everything in each build.
[LG Optimus Black] eminent1410:
​

EmiMIUI v1.0 Lunar New Year Version

Changelogs

Based on MIUI 3.1.18

Added Multi-language Packs

Added New Icons

Added LiGux Kernel (Possible to change other kernel if problem)

MIUI Home Tweaks

Clean Some Drivers

Updated All Apps

Updated All Tweaks

Updated in OB

I has problem when adding language, framework causes boot-loop, I will fix soon, but all of apps works fine, so after flashing multi-language pack, you can use more-locale to choose language. Remember do wipe wipe dalvik cache before flash language packs or upgrade from Pre-final 4 build.
[LG Optimus Black] El Brillantinas:
So, I guess I'll wait for the final version. Thanks for this amazing work!
[LG Optimus Black] eric672913:
:good: can't wait to try it ...:victory:
[LG Optimus Black] eminent1410:
I forgot that.

Multi-languages packs includes
[LG Optimus Black] eric672913:
Got a problem adding corporate email account (exchage) since pre-final 3 . Could you help to find out the reason ?? :crying: Thanks in advanced !!
[LG Optimus Black] rrgrrg:
the rom looks so nice ,, i just have a small question ,, is the camera better than cm10 or something or its the same ??
[LG Optimus Black] pkb_always4u:
Also, cant be driver from stock for camera can be used in MIUI? CM10 camera sucks. I hope it can be done.
[LG Optimus Black] thiagomagas:
Waiting for PT/BR =\
[LG Optimus Black] Alucard:
MiuiCamera is better app ,its a same it does not work on p970,hope when miui for 4.2 is released you will release your rom,u can use cm10.1 gallery app to cm10,im just saying something that you possibly already know,can u tell us why u think miuicamera does not work on our phone.
[LG Optimus Black] El Brillantinas:
As a workaround (for now), you may try LG Camera, it works fine.

https://play.google.com/store/apps/...sMSwxLDEsInJ1YmJlcmJpZ3BlcHBlci5sZ0NhbWVyYSJd
[LG Optimus Black] pkb_always4u:
You didnt get me. No matter which camera app you try on CM or based ROMs, they dont offer HD qulity. Even clarity sucks like chinese mobiles.
[LG Optimus Black] rrgrrg:
Re: [ROM][MIUI 3.1.18] EmiROM | v1.0 LUNAR NEW YEAR | MULTI-LANGUAGES | 29 JAN |

Its about the drivers itself not the app
[LG Optimus Black] manucas:
why no portuguese????

:(
[LG Optimus Black] Ilko:
@eminent

could you patch the rom so we can see our custom tones in default menus ? MIUI bypasses the media dir in the SDC. what an annoying feature miss for a rom of that quality.

incomprehensible....
[LG Optimus Black] eighty-four:
Never used MIUI before, so have a question - how can i bring status bar, just like it is on screenshots in post 1? I don't have it at all...

There is also a problem - can't pass start wizard without SIM card inserted.
[LG Optimus Black] leandro9000:
why no portuguese???? (2)
[LG Optimus Black] purefunk:
Why I see only English and chinese????

:(
[LG Optimus Black] eighty-four:
Re: [ROM][MIUI 3.1.18] EmiROM | v1.0 LUNAR NEW YEAR | MULTI-LANGUAGES | 29 JAN |

This rom seems doesn't have preinstalled languages. There is a language pack that includes morelocales. You can switch them through locales program. But some parts will be chinese.

Start wizard is only Chinese and English.
[LG Optimus Black] g3r4rd013:
Which Kernel can i use on this ROM? I want to change the Kernel.
[LG Optimus Black] eminent1410:
Please read my post, in this build I has some problems with framework, I will fix in next build, add more languages.

I use LiGux Kernel