Giter Site home page Giter Site logo

zhuowei / mcpelauncher Goto Github PK

View Code? Open in Web Editor NEW
669.0 116.0 195.0 1.47 GB

Source code for BlockLauncher, a launcher that patches Minecraft for Android

License: Apache License 2.0

Shell 0.86% C 6.28% C++ 31.51% Objective-C 0.03% Python 1.31% Java 48.78% Makefile 0.28% Assembly 10.95%

mcpelauncher's Introduction

BlockLauncher: a custom Minecraft launcher for Android

Build Status

Building

BlockLauncher's build system is complicated and out of date. It still uses Ant (and thus is incompatible with Android Studio), and uses older versions of various libraries.

Scripts to setup a build environment can be found in tools/ci/ci_build.sh.

This script is tested to work on GitHub Actions' Ubuntu 18.04 image, and on a fresh Ubuntu 19.10 install.

You may need to install:

sudo apt install git p7zip-full openjdk-8-jdk ant
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64

License

Most of the code is licensed under the Apache License, version 2.0.

Some code is licensed under different licenses: see the Third-party licenses section below.

Third-party licenses

This program uses aFileChooser by Paul Burke. See https://github.com/zhuowei/aFileChooser for licensing information.

This program contains code from machinamentum's PTPatchTool, licensed under the Eclipse Public License.

The sample textures are based on NathanX's Slickcraft texture pack.

This program contains a version of Saurik's Cydia Substrate, licensed under the LGPL.

This program uses the libsuperuser library by Chainfire.

This program uses the Rhino JavaScript interpreter.

mcpelauncher's People

Contributors

andrew-boyarshin avatar edwinyoo44 avatar inusualz avatar jiayong620 avatar jose-vm avatar kdwkr avatar ksymc avatar mcmrarm avatar melomancool avatar pemapmodder avatar slice avatar zhuowei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcpelauncher's Issues

Can't play with mods

Helo!

I have Blocklouncher free and i can't play with mods installed i can only play in safe mod.i have a samsung galaxy tab 2 0.7.0

Ps: i have minecraft pe version 0.7.1

Pls help!!!!!!!!

ModPe scripts can use Blocklauncher's root permissions!

The Rhino js interpreter allows any script to run java code. This means that they can do anything a normal app could do, including using root. And since it's all running as the same app, when you allow blocklauncher root permission you also allow any loaded ModPe scripts to use it as well!

I have tested this on my rooted Note 3, stock Android 4.3, SuperSu 1.8.6, blocklauncher pro 1.6.3, but it should work on any rooted phone that runs blocklauncher.

The following 2 line script writes "Hello World" to /data/test.txt, a location that without su could not be touched:

p = java.lang.Runtime.getRuntime().exec("su");
(new java.io.DataOutputStream(p.getOutputStream())).writeBytes("echo Hello World >> /data/test.txt\nexit");

In just a few lines a malicious script could steal your personal information, impersonate you, or completely wipe out your entire phone!

Tracking issue for wishlist methods

Here's a list of methods people wished to see. I'll be removing/adding to this list. Not everything on here is going to be added.
From Reddit:

Some quick would-be-useful ideas:

    more level options via script (see bottom).
    a compiled script system in addition to interpreted scripts
    a built in random seed gen to make up for JavaScript's lack thereof
    spawning of particles via script.

possible functions for Levels:

    Level.create(Name,Seed,Mode,Directory)
    Level.getName()
    Level.getSeed() //isn't this one already existant?
    Level.getMode()
    Level.getDir()
    Level.setMode()
    Mcpe.loadLevel(Name,Dir)
    Mcpe.closeLevel()
    Mcpe.delLevel(Name,Dir)
    Level.setSpawn(x,y,z)
    Level.setTime(time)
    Level.addTime(time)

From the thread:

ModPE.setWeaponItem(image, image,damage,durability,Id)
ModPE.setArmorItem(image,image,durability,protection,id)
ModPE.setBowItem(image,image,durability,damage,I'd)
ModPE.setBlockItem(image,image,blockitplaces,id) This is kinda like how the door works. Its an item but when placed it spawns a door.

From Twitter:
https://t.co/zGanY4ok4c

[Building] Building MCPELauncher?

I'm currently trying to build MCPELauncher, as @MCMrARM has instructed me. During compiling, errors occur. I'm currently building using API18 or android-18.

[PRIVATE]/MCPELauncher/src/net/zhuoweizhang/mcpelauncher/WrappedPackageManager.java:49: error: WrappedPackageManager is not abstract and does not override abstract method getPackagesHoldingPermissions(String[], int) in PackageManager

public class WrappedPackageManager extends PackageManager {
           ^
[SOME WARNINGS]
1 error

BUILD FAILED

Any help?

crashes too much

@zhuowei i play on a Samsung Galaxy Exhibit and when i tap a world to play it loads up all the way to when it is saving chunks and it stop and crashes and exits the app on its own. Please fix this bug. Please please please.

Android stability

BL often crashes on KitKat and other Android versions: always on exit, it also drops many EGL errors to LogCat. Maybe, native part of Android was really changed? Have a look at new OpenGL's implementation.
Vanilla MC doesn't crash.
MC: 0.8.1
BL: 1.6.3

Allow 3rd Party Apps to Import ModPEScripts & Scripts

Hey
Can someone please add Support for 3rd Party apps to import ModPEScripts by providing a URL/File Path and the same for Texture Packs (File Path) and Skins (File Path)

If this is already possible, I would appreciate an example

Thanks

Level.setTile

Hmm.
setTile(x, y, z, id, damage);
Level.setTile(x, y, z, id);
No damage value for Level.setTile?
If we are trying to get people to move to Object-Orientated callbacks, shouldn't the corresponding callback be the same as the original one?

Many thanks,
Connor4898

Commands Bug

When I was using my LG (for specificating, LG Optimus L7 P-708g), I just was testing my command mod. When I pressed enter, BlockLauncher Pro just crashed and I got out of the app.

Too many crashes

@zhuowei my game crashes too much. The device i have is a Samsung Galaxy Exhibit 4G T-mobile. Please fix this please please please.

Byteandahalf's nitpicks

  • errors in modTick opens infinite number of error dialogs - perhaps just stop the script after a certain number of errors, or stop displaying errors?
  • typing in commands still posts the command to chat

Can't input characters

Many people reported that they can't input into chat or signs.

Reported on:

  • Samsung Galaxy Note 2, 4.1.2 Jellybean, and SwiftKey.
  • Galaxy S-Plus GT-I9001, Android GingerBread 2.3.6, Samsung Keyboard
  • Phone: Sony Xperia Arc S Android Version: 4.0.4 Keyboard: Sony Keyboard
  • Amazon Kindle Fire HD, Custom ICS variant, Amazon Keyboard, actually blackscreens the tablet (?!)

You got an issue? Please write down the information according to this template:
Device:
Android version:
BlockLauncher version:
Keyboard:
Input mode (tapping, swiping, voice typing, hardware keyboard)
Does it happen in the official Minecraft PE?

android 4.1.2 jellybean

Hi, thanks for replying my previous questions. But can you update block launcher pro such that it supports Samsung jellybean 4.1.2 android thank you and have a nice day

ItemCategory?

On line 178, I see this code:

ScriptableObject.putProperty(scope, "ItemCategory", classConstantsToJSObject(ItemCategory.class));

However, javac complains that it cannot find an ItemCategory definition.
And sure enough, when I search for it, I see this:
symbolproblem
Is this intentional?
I cannot build MCPELauncher with this error.

EDIT: There seems to be methods for it, but no class definition.

Texturepacks API broken

My Public API update commit AndroidManifest.xml and yours AndroidManifest.xml. Have deeper look at texturepacks support. Have you already found the difference? Wtf?

Why cant block launcher pro work?

Hi zhou wei zhang sir,
My phone is android jellybean but I dont quite know what is the version . I would like to request that you will update this block launcher for my android jellybean. Pls email me at [email protected] thanks zhouweizhang

not working

When I open the app it wants me to choose continue or return to normal. When I press return to normal it will quit to main page then open with the screen black
Google play store wants me to sent to you my device model and my operating system version.
Android 4.1.2, jellybeans, GT-19305

MCPE

Hello,

We would like you to give us your support, our mcpe servers.
We are minecraftserveurs.me we would like you to be able to update your application blocklauncher pro so she could get an ip with a port!
For now our servers are for example as follows: IP: 192.188.1.3 Port: 19600
this is not a server but one example.
In exchange, we can propose you to be our partner, you would be highlighted in order to incite our customers to buy your application.

Regards

BlockLauncher crashes when locking device

When you are using BL (even without mods on), and then lock your screen, when you unlock it, BL will crash and close. I can get a LogCat (CatLog) file if requested.

new stuff

I was hoping maybe you could make it so I could use plugins (that are for pocketmine) in mcpe without a server. Something where I can install the plugins in blocklauncher pro instead of using a server. I hope that makes sense

About change the skin in the game!

long before, BlockLauncher can apply the skin in the game right now.
but now, we can't apply skin and change in the game right now.
can you fix it?

Bugged Custom Items (Lastest BL Beta, 1.6.8 beta 4)

When you add custom items (ModPE.setItem, ModPE.setFoodItem), BL displays the item's icon, but not the name. It always displays the name as "undefined", and when you use ModPE.setFoodItem, you can eat it, but it also displays the name as "undefined" and doesn't raises any hearts. I also added custom blocks and custom craft recipes (Crafting and Furnace) and BL crashed when I opened the crafting table. If requested, I can get a CatLog file of the crash.

crashes too much

@zhuowei i have an Android. Its a Samsung Galaxy Exhibit. its version is 2.3.6 . Block launcher pro is a great app but it crashes and exits the app each time i tap on a world to play. Please fix this bug.

French

I translate block launcher in French I could give by dropbox once finished?

Help Me Pleas!

Hello im have my app but i forgot where i can change the name of the app and versioin muber pleas help me thank you!

crashes too much

@zhuowei i have an Android. Its a Samsung Galaxy Exhibit. its version is 2.3.6 . Block launcher pro is a great app but it crashes and exits the app each time i tap on a world to play. Please fix this bug.

ModPE.setFoodItem crash

When I will give user food made with ModPE.setFoodItem, game will crash when they will get it in hand.

crashes too much

I have an Android. Its a Samsung Galaxy Exhibit. its version is 2.3.6 . Block launcher pro is a great app but it crashes and exits the app each time i tap on a world to play. Please fix this bug. The version of block launcher pro is 1.2.3 and i dont have a problem typing.

New Update

Can't see my chat all the way so I'm never fully sure what I'm typing and ALL DAY TODAY I CAN NOT OPEN MY BLOCKLAUNCHER PRO! Please fix!

crashing again

Now when I donwload block launcher pro it can't work and keep stopping
After that my free block launcher also crash
Please fix this
Android 4.1.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.