yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] omniwolf:
not from what i've been told. if it's not compressed, the android system doesn't have to explicitly decompress it somewhere when it wants to use it, it can just pick it straight out of the APK.
[Android Apps and Games] gtg465x:
Good man. Here are all of the files blacklisted by the default Android Asset Packaging Tool (aapt) if you want to include them.

{

".jpg", ".jpeg", ".png", ".gif",

".wav", ".mp2", ".mp3", ".ogg", ".aac",

".mpg", ".mpeg", ".mid", ".midi", ".smf", ".jet",

".rtttl", ".imy", ".xmf", ".mp4", ".m4a",

".m4v", ".3gp", ".3gpp", ".3g2", ".3gpp2",

".amr", ".awb", ".wma", ".wmv"

};
[Android Apps and Games] omniwolf:
cool, thanks for the info. i've added the missing ones in and uploaded a new version.

cheers!
[Android Apps and Games] myn:
Nice work.

Suggestion or maybe a challenge for Ver 2:

Given a definition of what languages the user defines, can you repack including only those languages. This would include both drawables and layout language folders.

Removing languages not only speeds up the rom but reduces the apk size which for Sense 3.0 is becoming challenging for many older (> 1 year) devices.

Thanks for your contributions to XDA.
[Android Apps and Games] gtg465x:
Also need to add .so to the blacklist. Ran into a problem with that the other day.
[Android Apps and Games] AdamOutler:
Here's mine.

It synchronizes with our SVN repository and builds the rom. Any commits which were made are automatically turned into a new ClockWorkMod flashable package.

#! /bin/sh

#This is the repository Directory, change to match your setup
Repo="~/TeamKomin/trunk"
#This is the Final folder, this is where the file will end up
Output="~/Desktop"

#synchronize SVN repository
svn update "$Repo"
#remove temp folder if exist
test -e "$Output/tmp/" && rm -Rf "$Output/tmp/"
#make new temp folder
mkdir "$Output/tmp/"
#copy repository to temp folder
cp -rf "$Repo/data" "$Output/tmp/"
cp -rf "$Repo/META-INF" "$Output/tmp/"
cp -rf "$Repo/system" "$Output/tmp/"
cp -rf "$Repo/updates" "$Output/tmp/"

#clear SVN folders to reduce size
find "$Output/tmp/" -name ".svn" -type d -exec rm -rf {} \;
cd "$Output/tmp"
#remove old files if there
test -e "$Output/AndromedaRepo.zip" && rm -f "$Output/AndromedaRepo.zip"

#zip up a new Andromeda3 version
zip -r "$Output"/AndromedaRepo.zip ./*

#done

I've also got a version which uses the Expect command to log into our SFTP server and update the files.teamkomin.com website... I'm not posting that here though as it contains security sensitive information.

Using this method, all members work on the ROM as though it were on the phone... This script packages it. No need to package or unpackage the entire thing.
[Android Apps and Games] omniwolf:
ok, sounds like a good idea. i'm not actually a ROM developer, so i don't know the ins and outs of the various files. any hints on which files i exclude for various languages? just having a vague look around i see in framework-res.apk there's some raw-ar, raw-cs, raw-en-GB folders, are these the ones you're saying i can strip out?

this will obviously be a lot easier if i can do it programmatically, do you know the rules?

ok cool, added it in and uploaded 1.4.3. thanks dude.

ok cool. does this actually repack and zip align the APKs though? this looks like it just takes care of the overall ROM zip structure, not the APKs within..? maybe your script could call mine.. if there was a vbs parser for linux :)
[Android Apps and Games] AdamOutler:
We keep the APKs on the server for ease of use. It makes it easier to reference a single file for testing that way.
[Android Apps and Games] designgears:
http://www.jsware.net/jsware/vblinux.php5

vbscript on linux with wine! ;)
[Android Apps and Games] mike1986.:
Got error on line 118 - WshShell.Run

Anything else shall I edit apart of 4 paths? I have 64-bit OS if that matters.
[Android Apps and Games] AdamOutler:
I just realized how much easier this would be on linux...

#! /bin/bash
OutDir=~/Desktop/newRom
InDir=~/Desktop/myRom
zipAlign=/home/adam/code/android-sdk-linux_x86/tools/zipalign
TempDIr=~/Desktop/TempDir
FIFO=~/Desktop/temp1234
realign="apk dll whatever files"

#set things up
rm -Rf "$OutDir"
mkdir "$OutDir"
rm "$FIFO"
mkfifo "$FIFO"

#Move to dir and start script
cd InDir
#Spawn another process to write to the fifo object
find `pwd`>"$FIFO" &
#read each line in the fifo
while read line
do
#get each object extension in $realign variable
for x in $realign
do
#test if the extension matches the realignment
if [ $x = ${line#*.} ]; then
#make the path in case it does not exist, could be optimized
touch "$line"
#meh... this would be the command ish...
"$zipAlign" "$line" "$temp/$line"
else
mv "$line" "$temp/$line"
fi
done
done <$FIFO

#this just removes the redundant filesystem created...
#/home/adam/desktop/out/home/adam/desktop/myrom
rm -Rf "$OutDir"
mkdir "$OutDir"
mv "$/TempDIr/$InDIr" "$OutDir"

Untested, should work with some realignment of the variables at the top.
[Android Apps and Games] omniwolf:
i'd say it's a problem with your

sevenZipLoc

variable, it's the first place it gets used. my OS is 64bit too, so that shouldn't be a problem. what does your sevenZipLoc variable look like?
[Android Apps and Games] mike1986.:
sevenZipLoc = """C:\Program Files\7-Zip\7z.exe"""

EDIT:

It seems that I forgot to download "command version"...
[Android Apps and Games] williamfold:
Any way to add optimizing PNGs to this script as well?
[Android Apps and Games] omniwolf:
show me how to do this and i might be able to add it in..
[Android Apps and Games] williamfold:
Heres the link to the opensource OptiPNG program to optimize a PNG

http://optipng.sourceforge.net/
[Android Apps and Games] afifth:
I hope it perfectly work:rolleyes:
[Android Apps and Games] gumbung:
wow thanks bro, that's way i need to learn about it
[Android Apps and Games] mudhi:
.dat and .bin are also must be excluded, because when compressed, some proprietary app cannot functioning correctly.
[Android Apps and Games] omniwolf:
new version

hello, i finally got off my ass and updated to v1.5

it can now optimise PNGs, i just use the standard "work it out yourself" -o1 optimise level. There is a

performOptiPNG

boolean variable you can change to false if you don't want it to do this.

i also added .bin and .dat as suggested by mudhi.

check the first post for details and downloads
[Android Apps and Games] mudhi:
Yes, optipng works, slow but still faster than using apk manager. :D
[Android Apps and Games] omniwolf:
v1.5.1

Hello,

I have released v1.5.1, this version sees some code clean ups (i had some ugly code that i actually don't know how it worked.. it shouldn't have from what i can see!), and i have added in a new editable variable:

verboseOutput

it's set to false by default, but if you turn it on you'll get console echo's of where the script is up to, like this:

make sure you run it from the command prompt as you can see i have above, and run it with cscript.

enjoy.
[Android Apps and Games] Titioz:
I use the script (1.5.1) with this rom :

[ROM] BCM b0.3.7 (Bravo CM9) but keyboard don't work => LatinIME.apk

So, I add "*.dict" in STOREFileNames and after it works fine.

Titioz
[Android Apps and Games] omniwolf:
thanks i'll add it in.
[Android Apps and Games] steal25:
First off thanks for the great tool!!

im getting this error

script: C:RemoveDebuggingInfo....

Line: 133

Error: File not Found

Code: 800A0035

Source: Microsoft VBScript runtime error

i check the script and this is line 133 - buildRunDeflateCMD(fileObj.name)

Any help help would be great.
[Android Apps and Games] mingolianbeef:
Nice :-)
[Android Apps and Games] omniwolf:
that's weird, where are you running the vbs file from? did you copy it into the root folder of your extracted ROM? i thought maybe that error could happen if there were no APKs, but i just tried it and it didn't fail with no APKs.

the other thing that concerns me i've bolded in your quote above, why is that all misformed? why doesn't it have the acutal fixAllAPKs.vbs script name in it? when i get a runtime error in vbs it gives me a proper folder path, eg:

Script: E:\downloads\temp\fixAllAPKs.vbs
[Android Apps and Games] steal25:
Thank you for you reply, i tried and ran successfully this mornig.

i didnt caopy and paste the error verbatim, i type it out so i didnt write in the full path, here is the full path

C:\RemoveDebuggingInfo_v2.2\fixAllApks.vbs

for whatever reason its working now and i really appresiate this tool. Thank you again.
[Android Apps and Games] omniwolf:
OK good to hear.

probably next time you're typing out an error message for someone to try and debug, you should type the whole thing out verbatim.. a stitch in time, etc ;)
[Android Apps and Games] varun.chitre15:
Great script!!

Can it be in .exe?(no problem with this but just a suggestion :D)

Any plan to add UI to this script?
[Android Apps and Games] varun.chitre15:
I am getting error

Script : D:\ROM\A60\fixAllAPKs.vbs
Line: 61
Char: 2
Error: Path not found
Code: 800A004C
Source: Microsoft VBScript runtime error

Help please :(
[Android Apps and Games] omniwolf:
well i guess technically anything is possible, but i won't be compiling this into an EXE. the scripting paradigm works well for this task, an exe would be overkill IMO.

Not really possible without using HTA or compiling it on another language.. if you want to covert it over be my guest :) i don't think it's worth the effort, all the variables are absolute, so you should only ever have to set them once, which means a UI wouldn't be that useful.

Line 61 references a temp dir you're supposed to have created:

tempAPKBuild = "D:\Temp\tempAPKBuild"

the comment above says:

have you done this?

i'm guessing you haven't altered this variable, and you don't have a D:\Temp folder and/or drive.

probably in the next version i'll try and put the temp locations in a spot everyone already has to fix these noob errors..
[Android Apps and Games] Saah88:
Signing?

Wow, it does everything, except what i really need - signing all apks in a rom.

Or is there a tool which signs all apks in folders and subfolders of a ROM root directory ?

Edit:

i have extracted framework-res.apk from the released ROM zip file,

then decompiled it,

then edited resource files,

then build (from ApkTool)

i can skip zip-aligning,

but now i HAVE to sign it with the same key, the ROM was originally signed [OR] resign the whole ROM and every apk in it with my signing key, right?

elsewhere i just get BootLoops on CM 10.1 JellyBean 4.2.2 ROM

Edit 2:

Finally i found a proper guide to not end up with a bootloop:

http://xdaforums.com/showthread.php?t=1783525

followind that guide i dont need to resign all apks, i dont even need to sign modified framework-res.apk, just to build it properly with some original files copied, more about it at "-Decompiling and compiling APKs-" spoiler > "Step 4 (proper compilation)"
[Android Apps and Games] omniwolf:
OK, if you need signing as part of my script, and you can show me a command line way to do it, i'll happily add it in.
[T-Mobile LG G2x] SoneGz:
Is it possible to port the lg rom on to the g2x?
[T-Mobile LG G2x] pychobj2001:
Give it a try and port it and post it here, but you didn't do that so you shouldn't be posting at all....not a request thread, it's a development thread.......
[T-Mobile LG G2x] KiNG OMaR:
Just don't flash a 2x rom on the G2x and come crying for help :p
[T-Mobile LG G2x] nonmindo:
IBTL

+10char
[T-Mobile LG G2x] Mr. Clown:
Moved to proper forum as not android development.
[T-Mobile LG G2x] SoneGz:
I'm just saying has someone port the 2x rom for g2 that all.?
[T-Mobile LG G2x] ducehlmg:
if they did, im sure it would be in android development but since its not, my guess would say NO
[T-Mobile LG G2x] freakboy13:
Now that your post has been moved to da right place... I suggest you read the stickies ...you should be able to come up with the right conclusion regarding your answer ... hint: stickies are your friend if you don't like to search ; p

"If Satan lived in heaven he'd be me... "
[T-Mobile LG G2x] Suprah:
No... Research before posting
[Desire HD Q&A, Help & Troubleshooting] NeRvIk:
hi all. sorry for my eng...

install this: http://xdaforums.com/showthread.php?t=957336&highlight=CyanogenMod+7

And now wi-fi can't find my router.... pls help
[Desire HD Q&A, Help & Troubleshooting] NapsterX:
you do wipe?

Try again:

1) flash full wipe 1.3

2) flash ROM

3) start phone

4) after full load and set all settings (do NOT use wi-fi) - do reboot

5) work?
[Desire HD Q&A, Help & Troubleshooting] NeRvIk:
Что ты имеешь ввиду под

?

Можна просто флешнуть, запустить выбрать язык уидеть рабочий стол и опять рестартнуть?

Делал вайп, только не утилитой а руками...
[Desire HD Q&A, Help & Troubleshooting] NapsterX:
1) прошиваешь full wipe 1.3

2) прошиваешь ROM

3) запускаешь телефон

4) после того как загрузится - настрой его (пройди все этапы мастера быстр. настройки до раб. стола). на этом этапе не пользуйся wi-fi

5) перезагрузись

работает?
[Desire HD Q&A, Help & Troubleshooting] NeRvIk:
нет =( Пробовал уже походу все. И вручную и той прогой что ты посоветовал...

Тупо не находит и все, шью другой РОМ все пашет...
[Desire HD Q&A, Help & Troubleshooting] NapsterX:
проверь MD5 скачанного тобою архива, он должен быть bf02583cd1bf31021de17210ec56f37

если совпадает, то попробуй Nightly версию

http://download.cyanogenmod.com/?type=nightly&device=ace
[Desire HD Q&A, Help & Troubleshooting] NeRvIk:
MD порверял...

Nightly ставил... это какойто провал просто-(
[Galaxy S II General] noodles222:
Hello you all,

I would like to ask: almost everybody has this pink spot on camera. Could someone confirm that KE7 upgrade solves this problem? or KF1 ? or how to get rid of it without always changing white balance, auto contrast etc?

Thanks
[Galaxy S II General] godutch:
nope, got pink spots on both my front and rearcam on ke7and kf1 (latest cam firmware)
[Galaxy S II General] Tinderbox (UK):
So where about`s is this pink spot , does the photo need to be dark or lite to see it or what?
[Galaxy S II General] vimto25:
you will only notice on white backgrounds such as ceilings in the light.
[Galaxy S II General] Tinderbox (UK):
I can see it now , I have had enough of this phone it`s going back :mad:
[Galaxy S II General] godutch:
This is the best camera on a mobile phone I have ever seen and the pink spot is barely noticeably and most likely just a bug not a hardware problem (since both my cameras are affected)
[Galaxy S II General] vegetaleb:
It's an Android bug, we have it too on DHD and N1
[Galaxy S II General] godutch:
don't see it on my desire (running 2.3.3 w/ sense)
[Galaxy S II General] J.2K4V:
what pink spot?? I dont see it when using camera..

EDIT: crap..i do have a pink spot..damn!!! I was feeling good for a minute :(
[Galaxy S II General] biffsmash:
Ive got KE7 and both the camera firmware upgrades, and testing indoors and outdoors, in great lighting conditions and bad ones, I do not have a pink red or any other colour dot or area on my photo's.

I have very good eyesight and spotted this on my HTC desire, but it is not present on my SGS 2. Photo's and video's on it are absolutely spot on.

I'm on O2 Galaxy S2 unlocked.
[Galaxy S II General] godutch:
You only get the pink spot if you set the white balance to automatic, so if you are bothered with it change it in the camera dropdown menu
[Galaxy S II General] DoPower:
I had this problem on mine.
[Galaxy S II General] onbacardi:
people just love to complain...!
[Galaxy S II General] El Salvador:
Lame. This thread made me believe that there was a solution to this problem.

If only there was an option to neg rep...
[Galaxy S II General] Rolfiboy:
But there is, read all the post.
[Galaxy S II General] vegetaleb:
The pink spot is only while taking the photo, not when seing on PC
[Galaxy S II General] fluidz:
Same here :(
[Galaxy S II General] itepe:
I've pink spot on both cameras.

Few photos from my phone:

[now I can't insert link ;P ]

For 500€ I expected better quality...
[Galaxy S II General] Sp1tfire:
Pink spot appears in photos too, not just when taking the photo ;) I can provide you pics made with the SII that clearly show the pink spot.
[Galaxy S II General] guitarmafia:
well for some this upgrade dint do anything,,,while for others it almost cured the problem.....it only appears while taking pictures indoors...

go to scene mode and select indoor while taking indoor pics,,,,hope this works for u..

Godspeed.
[Galaxy S II General] brook51:
For my case, I have a pink spot on white things under a daylight. Pink spots happen mostly in the morning. Under a cool daylight lamp, photos is perfectly fine like just any other cameras. I suspect this is something to do with the white balance on my SGS 2. I really hope Samsung can fix this fast. (I have tried 2.3.3 and 2.3.4 rom)

Taken at around 12 pm. Exposure time 1/100. Light is quite bright. Still pink spot is present.

http://i51.tinypic.com/28gtje1.jpg

Morning 8-10am.

http://i51.tinypic.com/2j0l4ic.jpg

Night

http://i51.tinypic.com/iodfrs.jpg

edit: BTW, the front camera works fine. No pink spot.
[Galaxy S II General] davrosuk:
Its not specifically an SGS2 issue nor, as some have intimated, is it an Android bug. It is in fact a digital artifact that you'll find on almost every high end smartphone. Depending on the hardware it may be a little worse or a little better - and it may be possible using clever image processing to lessen it - but its always there whatever OS, whatever hardware.

https://discussions.apple.com/thread/2303125?threadID=2303125&tstart=-6

http://www.smartphonegurus.com/forums/topic/8681-htc-hd2-pink-spot-issue-is-contagious/

Thought I'd should bring this up before you start trying to return your phone!
[Galaxy S II General] guitarmafia:
clean the camera lens..
[Galaxy S II General] rasikh.n:
Hey,

This maybe completely irrelevant but still doesnt harm. My s2 is about a week old. No pink when i bought it and i took about a hundred snaps. Last night i used its led (smd flash) light continuously for 20 minutes and had the phone face down. The smd heated a bit, but immediately after i noticed the purple pinkish spot right in the middle of the pictures. Maybe there is a connection? The heat from the lamp damages the camera sensor? Since they are too close?
[Galaxy S II General] berserk1:
I have a pink spot too but I don't serious
[Galaxy S II General] simacca:
Or maybe the heat that builds up around the camera when using processor intensive apps causes damage to the camera lens??

I don't remember having a pink spot when I first got my phone.

I am hoping it is a software problem and can be fixed. My iphone 4 does not have this problem.
[Galaxy S II General] rlukas79:
this pink artifact shows up for me as well but only under certain circumstances like low light etc. When i switch from auto white balance to a user selected one, it goes away
[Galaxy S II General] rasikh.n:
Hmm, i doubt its software but hope aswel. If it was software it should have been there from the start. I am experimenting to find out more. Another thing i noticed is, when i take the phone out my air conditioned room, into a humid place (condensed) the purple spot is more prominent. Condensation around lens?

There must be an answer and solution to this, doesnt really bother me but i paid a hell lot for this phone and want everything in it to work perfectly
[Galaxy S II General] rasikh.n:
Nope, its random :I its there some days, randomly
[Galaxy S II General] guitarmafia:
Its not random,,,,it is basically due to dirty camera lens,,,,i agree there is some software problem too,,,,but if u r getting a pink spot even outside and with a good amount of light too,,,then just clean ur lens...I mean the glass covering the lens.
[Galaxy S II General] buddy01:
Well if it wasn't software then why would changing white balance from auto to manual make it go away, as it does?
[Galaxy S II General] almorsol:
It is software for sure. For the same reason you are talking about. It happens only with some settings in the camera.

I installed the KF3 from Kies and the pink spot dissapeared.
[Galaxy S II General] brook51:
I always clean my SGS2 including the camera lens. Maybe, I get a defect phone.
[Galaxy S II General] sandeep10:
I am also on KF3 and still have the pink spot in certain circumstances. Now waiting for KG2/3/4.
[Galaxy S II General] GUARDIANBD:
how do i get rid the damn Pinky *****?

I9100XWKI4

I9100XXKI1

I9100DBTKH1
[Galaxy S II General] kohiiou:
I think the pink spot is due to over exposure on the camera CMOS from the flash. Most mobile phone cameras have a distinct pink spot in photos. Try taking a picture without your flash and see if the pink spot is there still.

If you feel that it may be too dark, try raising the exposure and taking a picture of a white piece of paper WITHOUT the flash in a well lit room.

Compare that to taking a picture with exposure at the normal level WITH the flash.

For me, the pink only shows up when I take a picture of a white piece of paper with the flash on but not with it off.
[Galaxy S II General] kmike9km:
I think that is the opposite sir. I research and tested it myself. The pink spot does not show up when the flash is on. Even in a white background.

It will also not show up if you are taking a picture in a well lit room. I think its because of the light.

Flash is my temporary solution for the pink spot.
[Galaxy S II General] whbonney:
I know this thread is old but I wanted to post my findings... Shooting indoors with the flash does make it go away for me. Problem is in lower light outside, ie sunsets, sunrises, etc., I still get the pink spot so using a flash outdoors for a distance shot won't work.

I have had the problem on and off with all the cells I have had. I currently have the GS2 until next week when I get the GS4.. After having it show up last night while shooting the sunset, I got a little frustrated and decided to search the problem out and found this thread.. Someone earlier posted this and after messing with it for a while, I found that if I set my settings for "white balance" to "Incandescent" that the pink spot goes away for indoor shots..I also tried with "Incandescent AND auto contrast" on and it helped with the indoor contrast...this is the only setting I could get it to go away...going to test it tonight outdoors with low light during sunset. ( I usually use a regular camera but didn't have it last night and sunset was fantastic so I got so so pics with the GS2 camera).
[Legend Q&A, Help & Troubleshooting] bonesy:
Anyone care to share how to do this?? I dont want to release my ROM until i can remap the Launcher and get shot of useless buttons! I have asked a few ppl but no answer :(
[Thunderbolt Q&A, Help & Troubleshooting] theherkman:
I bought the Inspire a few weeks ago, rooted it within a few days. I was running GingerBeast Rom (ASOP) and had overclocked to 1.9Ghz. I'm gonna' be buying a Thunderbolt since I returned my Inspire. I know the Thunderbolt uses the same SnapDragon processor, but what is the overclocking support like with these kernels? Also, what is this thing going on where everyone is scarred of gingerbread? Anyway... Did I make a mistake moving to the Thunderbolt? I know it has an extra cam and a much bigger sd card, but what else am I getting into here?
[Thunderbolt Q&A, Help & Troubleshooting] sparta31:
Trust me you made no mistake coming to the thunderbolt. This is the best phone on the market right now. With the kernel support the support is great you can overclock your phone to about 1.9 ghz and still have it stable which I think is amazing. Everyone was scarred of gingerbread before with the old gingerbread radio because a very small percentage had bricked their phone by small I mean very very small. There is a new gingerbread radio that got leaked and no bricks and all seems well. You made no mistake man trust me you will love this thing...its a beast!