broo2s / ingress-apk-mod Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I'm an ammature dev that wanted to add to this mod, mainly because the current ingress app isn't at it's fullest potential. I'm having an issue building the app (yes, I'm aware it's "not that easy to build," but I've gotten pretty far and seem to be at a small road block).
I am running ubuntu 13, and I believe I have all the dependencies including python3, pyyaml, java, all PATH deps, and all necessary files in the lib folder. The extras jars were "just in case" it actually helped. Other than the lib folder and files within, no other files or folders have been added to the initial repo pull.
The following code is the exactly what I ran, as well as the following output. The first place I see the error is at, grep: /home/jordan/ingress-apk-mod/app/smali/com/nianticproject/ingress/common: No such file or directory
jordan@jordan-VirtualBox:~$ cd ingress-apk-mod/bin/
jordan@jordan-VirtualBox:~/ingress-apk-mod/bin$ python3 import_apk.py "/home/jordan/com.nianticproject.ingress-1.apk"
Apktool v1.5.2 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wiśniewski <[email protected]>
with smali v1.4.1, and baksmali v1.4.1
Updated by @iBotPeaches <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
COMMANDs are:
d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.
OPTS:
-s, --no-src
Do not decode sources.
-r, --no-res
Do not decode resources.
-d, --debug
Decode in debug mode. Check project page for more info.
-b, --no-debug-info
Baksmali -- don't write out debug info (.local, .param, .line, etc.)
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--frame-path <dir>
Use the specified directory for framework files
--keep-broken-res
Use if there was an error and some resources were dropped, e.g.:
"Invalid config flags detected. Dropping resources", but you
want to decode them anyway, even with errors. You will have to
fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>.
It will automatically detect, whether files was changed and perform
needed steps only.
If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
will be used.
OPTS:
-f, --force-all
Skip changes detection and build all files.
-d, --debug
Build in debug mode. Check project page for more info.
-a, --aapt
Loads aapt from specified location.
if|install-framework <framework.apk> [<tag>] --frame-path [<location>]
Install framework file to your system.
For additional info, see: http://code.google.com/p/android-apktool/
For smali/baksmali info, see: http://code.google.com/p/smali/
~/ingress-apk-mod/app ~/ingress-apk-mod/bin
Initialized empty Git repository in /home/jordan/ingress-apk-mod/app/.git/
[master (root-commit) d542134] Import.
1 file changed, 6 insertions(+)
create mode 100644 .gitignore
Counting objects: 3, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), done.
Total 3 (delta 0), reused 0 (delta 0)
~/ingress-apk-mod/bin
grep: /home/jordan/ingress-apk-mod/app/smali/com/nianticproject/ingress/common: No such file or directory
Traceback (most recent call last):
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 272, in <module>
Analyzer().analyze(len(sys.argv) > 1 and sys.argv[1] == 'release')
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 22, in analyze
self.auto_analyze()
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 86, in auto_analyze
found, unknown_pkg = self.auto_identify_class(cls, max_unknown_pkg)
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 123, in auto_identify_class
ret = find_class(q)
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 114, in find_class
ret = set(getattr(self, 'find_class_' + q[0])(*([cls, (obf_pkg, unknown)] + q[3:])))
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 177, in find_class_by_string
return self.find_classes_by_string(self.obj.expr(s, regex=True), pkg)
File "/home/jordan/ingress-apk-mod/bin/analyze.py", line 267, in find_classes_by_string
out = subprocess.check_output(grep % (s.replace('"', r'\"'), smali_dir, '/'.join(pkg)), shell=True).decode()
File "/usr/lib/python3.3/subprocess.py", line 586, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 'grep -P -l -r "onEnterForeground" /home/jordan/ingress-apk-mod/app/smali/com/nianticproject/ingress/common' returned non-zero exit status 2
Traceback (most recent call last):
File "import_apk.py", line 28, in <module>
main(sys.argv[1])
File "import_apk.py", line 24, in main
''' % (LINE_PREFIX, apk), shell=True, executable='/bin/bash')
File "/usr/lib/python3.3/subprocess.py", line 544, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '
rm -rf $MOD_HOME/app
java -jar $MOD_HOME/lib/apktool.jar d -d -o $MOD_HOME/app --debug-line-prefix ';// ' "/home/jordan/com.nianticproject.ingress-1.apk"
mkdir -p $MOD_HOME/app # to not mess up everything if apktool fail
cp $MOD_HOME/res/app.gitignore $MOD_HOME/app/.gitignore
pushd $MOD_HOME/app
git init
git add -f .
git commit -m "Import."
git gc
popd
$MOD_HOME/bin/analyze.py
' returned non-zero exit status 1
If there are any ideas of how I might go about fixing it, that would be awesome!
after baksmali, import stops with the following: No such file or directory: '/usr/local/ingress/rmod/ingress-apk-mod/trunk/app/smali/com/nianticproject/ingress/common/v/i..java'
Traceback (most recent call last):
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 272, in
Analyzer().analyze(len(sys.argv) > 1 and sys.argv[1] == 'release')
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 22, in analyze
self.auto_analyze()
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 86, in auto_analyze
found, unknown_pkg = self.auto_identify_class(cls, max_unknown_pkg)
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 123, in auto_identify_class
ret = find_class(q)
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 114, in find_class
ret = set(getattr(self, 'find_class_' + q[0])(*([cls, (obf_pkg, unknown)] + q[3:])))
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/analyze.py", line 202, in find_class_super_of
return [self.obj.edit_cls(obj_name[1:]).get_super()]
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/common.py", line 64, in edit_cls
return ClassEditor(self, cls)
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/common.py", line 367, in init
self.open()
File "/usr/local/ingress/rmod/ingress-apk-mod/trunk/bin/common.py", line 370, in open
self.parts = [open('%s/app/smali/%s' % (HOME, self.cls.get_obf_file_name())).read()]
Traceback (most recent call last):
File "bin/import_apk.py", line 29, in
main(sys.argv[1])
File "bin/import_apk.py", line 25, in main
''' % (LINE_PREFIX, apk,apk), shell=True, executable='/bin/bash')
File "/usr/lib/python3.2/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '
rm -rf $MOD_HOME/app
java -jar $MOD_HOME/lib/apktool.jar d -d -o $MOD_HOME/app --debug-line-prefix ';// ' "/tmp/ingress.apk"
apktool d /tmp/ingress.apk $MOD_HOME/app
mkdir -p $MOD_HOME/app # to not mess up everything if apktool fail
cp $MOD_HOME/res/app.gitignore $MOD_HOME/app/.gitignore
pushd $MOD_HOME/app
git init
git add -f .
git commit -m "Import."
git gc
popd
$MOD_HOME/bin/analyze.py
' returned non-zero exit status 1
yes, i included an 'apktool' command in import py as the java -jar line did not work for me.
Please add a counter for the bombs in the inventory when firing and add a label with the level of the currently firing bomb.
Hi, the build could be simplified, by providing a virtual machine, thu it won't makes it much easier for non-developers to build it. But i think most of us are working in the IT, so sth like http://www.vagrantup.com/ would speed up this task.
Maybe just need to add a NumberPicker to the recycle screen. How does the protocol handle recycling? Can you send one request to recycle multiple items? If not, you would have to send multiple requests then, which can be tricky.
Alternatively, if you can get rid of the recycle animation, that'll also speed up the process.
Thanks!
A simpler request than implementing a timer, can the hack button be disabled (similar to not having enough XM) if time-to-hack is within the hack cool down time (depending on heat sink mods applied)?
This APK is awesomeness to the max. Thank you for modifying this.
My suggestion is about the Upgrade button. I love the Deploy mod of Highest Resonator. The Upgrade would be similar. When clicked it will deploy the Highest Resonator on the Lowest Resonator automagically.
Again, this mod APK is now my favorite mod for Ingress. It outdoes IITC. I know they are two different things, but that is how much I like this APK!
Turning off XMP particles and field animation would also help saving resources.
Please make an option to drop multiple items at once or make a drop screen like the new fire so that you can keep pressing the same button and exit when done, maybe with a counter of dropped and remaining items.
Please, add option not to download portal pictures at all. It can improve game experience when FUP is reached.
Workflow of new way of hacking introduced in 1.30.2 is not that bad.
Please, add option to disable animation of the hack, but keep the behaviour of no big window but small notification as it is.
1] click hack
2] get back from portal view to map view
(no animation here)
3] show results of hacking
I have two copies of "Ingress Report EP8" (one from hack, one acquired from ground). The simplified item view show only one.
Great version and I like the new features but there is no QVGA option for the UI setting, is this something that will not return or is this a small oversight?
Please add cyrillic font support as do in ingressopt mod for portal names and descriptions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.