[HOW-TO]Flappy Mods | Make your own Flappy Bird!

DIII

Member
Nov 2, 2011
27
12
0
EDIT: ignore this post. while copying apktool, i forgot to copy aapt.exe, hence the errors. All fixed now.

This probably belongs in that guide thread, but i'll post it here.

I decompiled the apk and without modifying anything tried recompiling it again. But faced following error.

Code:
C:\apktool>apktool b workspace FlappyExample.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\C-Tech\AppData\Local\Temp\
APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Tech\apktool\framework\1.apk, -S,
 C:\apktool\workspace\res, -M, C:\apktool\workspace\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\C-Tech\AppData\Local\Temp\APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Te
ch\apktool\framework\1.apk, -S, C:\apktool\workspace\res, -M, C:\apktool\workspa
ce\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:87)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at brut.util.OS.exec(OS.java:78)
        ... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
this is what i did so far.

1. Download + extract apktool from mega link

2. install Java
Code:
C:\apktool>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
3. copy the framework-res.apk and twframework-res.apk from my S3's /system/framework folder and put it in apktool folder

4.
Code:
C:\apktool> apktool if framework-res.apk
I: Framework installed to: C:\Users\C-Tech\apktool\framework\1.apk
5.
Code:
C:\apktool> apktool if twframework-res.apk
I: Framework installed to: C:\Users\C-Tech\apktool\framework\2.apk
6. Decompile
Code:
C:\apktool>apktool d "Original FlappyBird.apk" workspace
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\C-Tech\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
7. Recompile
Code:
C:\apktool>apktool b workspace FlappyExample.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\C-Tech\AppData\Local\Temp\
APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Tech\apktool\framework\1.apk, -S,
 C:\apktool\workspace\res, -M, C:\apktool\workspace\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\C-Tech\AppData\Local\Temp\APKTOOL8920522532462920879.tmp, -I, C:\Users\C-Te
ch\apktool\framework\1.apk, -S, C:\apktool\workspace\res, -M, C:\apktool\workspa
ce\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:87)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at brut.util.OS.exec(OS.java:78)
        ... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
can someone guide me what am i missing or what am i doing wrong?
 
Last edited:

PulseDroid

Senior Member
Jan 7, 2012
2,525
2,435
0
21
www.pulsedroid.com
Could you maybe list all your mods and let me post them to OP? Credits of course. :)[/QUOTE

I've edited the Atlas.png, Splash screen, Sounds, Icons, App names and package names so they can be installed together.
I also have a sonic the hedgehog one if anyones interested
Cool, PM me with download links to each, I'll create some banners and put it on the OP.
 

jerbear294

Recognized Contributor
Oct 9, 2013
1,748
956
143
21
Hey guys, I don't know much about GIMP so bear with me. If you open up a PSD does it also show the rulers? Could you maybe provide me a screenshot of how it looks when you open my PSD?
I'm opening up GIMP to get a screenshot now. Bear with me though, my computer's only got 1 gig of RAM so GIMP takes ages to load.

EDIT: Nevermind, I got beaten to it.
 
Last edited:
  • Like
Reactions: PulseDroid

Robert-

Senior Member
Feb 10, 2014
413
106
0
x
How can I modify the rate button? I want that button to go to other site( something to scare my friends)
And any ideea,how can I put a background sound?
 
Last edited:

PulseDroid

Senior Member
Jan 7, 2012
2,525
2,435
0
21
www.pulsedroid.com
How can I modify the rate button? I want that button to go to other site( something to scare my friends)
And any ideea,how can I put a background sound?
Rate button would be in smali, try to find it yourself otherwise I can add it to the OP later on. As for sound, that will take a bit more coding which also wouldn't bee too hard but it'll take some time.
 

wulsic

Senior Member
Aug 21, 2013
1,881
2,315
0
20
Nijmegen
PulseDroid thanks for posting the guide so that people can edit it also easy by them self. I added some tips that might resolve also some problems by people who edit flappybird.
They can use Virtuous Ten Studio its an program with baksmali apktool etc built in so it will be really easy to do it without knowledge and could you also add some png editors that support transparent like gimp and paint.net so people can edit it also without the need of photoshop cause some people dont know that.

For background audio check this http://abhik1987.wordpress.com/2012/08/09/android-playing-audio-file-in-background-of-an-activity/ i didnt tested or looked really into it yet or it is good but i think you need to focus on the game not the music right? else you can always use normal music player for background audio. or you can edit the audio if bird flaps that it will last longer but i think it will repeat then.
For the rate button i was just finding rate with virtuous ten studio in all files and i found something that says something about buttons backgrounds etc in smali/com/dotgears/flappy/C.Smali at line 1388.

Tips Below so click show content. PulseDroid you can add some to your post it will be usefull i think.
Dont want to conflict your old score from flappy with your new game?
open Androidmanifest and edit
<manifest android:versionCode="3" android:versionName="1.2" package="com.dotgears.flappybird"
Com.dotgears.flappybird to com.dotgears.YourFlappyBird so if your build failed and you will uninstall it that you dont loose your highscore in flappy bird cause else it will conflict and you will have the same highscore so its risky if you dont edit that.

Dimensions for perfect editing:
There is an file named atlas.txt in the folder Flappybird\Data\res\raw where the resolutions are in and the coordinates i believe on the png image just like in minecraft. and there you

Logo creator for easy logo making and for all dimensions on the same time (Xhdpi,Hdpi etc)
https://undev.de/icon/

Got black screen after splash screen?
Check your Atlas.png dimensions if its too big and got stretched after insert image then it will result into a black screen. so make it smaller.
And make decompile also the original and recompile it with your same atlas.png and see if its really your atlas.png which is causing the problem or you might have accidently changed something else.
And people if you upload your own FlappyBird version please add the proper credits also to the developer(Dongatory) which spend hours to code it. PlusDroid i dont want to hijack your thread i just want to help people who dont know much about it and want to get it easier. Cause an Community is to help each other just like your signature says its not about thanks fishing its about to make the difference.:D
 

Robert-

Senior Member
Feb 10, 2014
413
106
0
x
PulseDroid thanks for posting the guide so that people can edit it also easy by them self. I added some tips that might resolve also some problems by people who edit flappybird.
They can use Virtuous Ten Studio its an program with baksmali apktool etc built in so it will be really easy to do it without knowledge and could you also add some png editors that support transparent like gimp and paint.net so people can edit it also without the need of photoshop cause some people dont know that.

For background audio check this http://abhik1987.wordpress.com/2012/08/09/android-playing-audio-file-in-background-of-an-activity/ i didnt tested or looked really into it yet or it is good but i think you need to focus on the game not the music right? else you can always use normal music player for background audio. or you can edit the audio if bird flaps that it will last longer but i think it will repeat then.
For the rate button i was just finding rate with virtuous ten studio in all files and i found something that says something about buttons backgrounds etc in smali/com/dotgears/flappy/C.Smali at line 1388.

Tips Below so click show content. PulseDroid you can add some to your post it will be usefull i think.


And people if you upload your own FlappyBird version please add the proper credits also to the developer(Dongatory) which spend hours to code it. PlusDroid i dont want to hijack your thread i just want to help people who dont know much about it and want to get it easier. Cause an Community is to help each other just like your signature says its not about thanks fishing its about to make the difference.:D
Isn't there..
If someone found something ..:(