APK Manager 4.0 for Mac OSX (64-bit) - Atrix 4G Q&A, Help & Troubleshooting

EDIT: How and why did this post end up in Atrix Q&A? That is entirely unrelated. If a mod sees this, please return this thread to it's original location at Moto Xoom Development.
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Credit for original APK Manger (windows) goes to: Daneshm90
Credit for linux port which this is based off goes to: farmatito
Update: This has been superseded by one of the most excellent rewrites of an application which I have had the pleasure to use. You my find s0niqu3's great work here: http://forum.xda-developers.com/showthread.php?t=1285130
---------
And one more thing: Shout out to Team EOS!

Awesome!!!!!!!!!!!!!!!!!!!!!!!! +9999999999

What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to

crackmulah said:
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
Click to expand...
Click to collapse
Apk Manager is an "automated" environment for apktool and a couple other utilities. Together, it allows you to extract/zip/sign/decompile/recompile and otherwise change apk files. It is most widely used to change strings (sections of text) and graphics within popular apks such as framework-res.apk and SystemUI.apk (for theme development) or adobe's flash apk (for hulu support).

Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.

MAD Industries said:
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Click to expand...
Click to collapse
Hey,
First, to the OP, Thanks for this!!!!
I had been casually working on my own port from the windows version, but now there's really no need. I've tested briefly on OSX 10.7.1, mid-2009 c2d macbook pro, 64-bit, and it seems to work great so far.
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
For the adb error, uhm, really? Anyone that's going to be using this should have the knowledge/ability to add adb to their path. And yeah, I know, it sounds like you were just trying to give the OP a pointer to make it idiot proof, but this really seems like the bare minimum knowledge requirement that someone should have if they're going to use a tool like this.
For anyone that doesn't know, here's one easy way (on osx there are about a million ways to add to $PATH) to add adb to your $PATH:
edit your bash profile file (create a new file if it doesn't exist yet) here: ~/.bash_profile
Add the following:
Code:
export PATH=/path/to/your/sdk/tools:$PATH
export PATH=/path/to/your/sdk/platform-tools:$PATH
(Technically only the second one is necessary for adb to function, I recommend adding them both for quick ddms access too.)
The sox issue on the other hand I can understand, since its not included with OSX. But it is simple enough to install SOX with all dependencies using macports or homebrew. If you plan on doing anything at all with android development, hacking, modding, etc., on OSX, using one of these tools is absolutely essential. I personally use homebrew, because its immensely faster than macports on my laptop, and homebrew will use OSX's default x11, python, etc. binaries, whereas macports will compile its own second copy of x11, python, etc..
for macports:
Code:
POSIXLY_CORRECT=1 sudo port install sox
for homebrew:
Code:
brew install sox
Anyway, hopefully someone finds this useful, else I'll just come back and delete the post in a few days.
Cheers

chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
Though it is very easy to install/add adb to path, I agree that it wouldn't hurt to throw it in the other folder just in case.
As far as sox goes, i don't know many who are using apk manager for ogg files. Those who are I figured would speak up when the time came and I would work with them to come to some sort of solution. Are you getting errors from sox missing? If so, you are absolutely right that the errors should be fixed. I did take steps to disable it from the script. If i missed something, feel free to post a log and I will take care of it.

Just went through the whole installation, from installing ADB with it's own path to setting up SOX with homebrew and I gotta say, I'm a noob but I got it all done within a six pack! lol Thanks for the port mang! I can finally put away the PC to modify apk's!

All I did to "fix" it was change
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" "sox" "adb"
to
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" [COLOR="Red"]#[/COLOR]"sox" "adb"
Since sox isn't supported in the mac port yet (the options are not in the menu), no need to throw a fatal error, or require someone to install sox. You might just want to comment out "sox" in that line and leave adb uncommented though, since the adb commands are enabled.
As for adding adb to the package, well, it's a convenience thing. APKmanager should be a one stop shop for working with apks like that, and having adb added would help with that. I personally don't like mucking about too much with installing packages on my laptop, so I keep adb in my Applications folder, and just cd to it. And I manually run many things. I wouldn't be using APKmanager to install or pull apks anyway.

Hi again,
For anyone else that's doing their smali hacking on mac, I was seriously annoyed by the lack of syntax highlighting in my two favorite editors, Coda and SubEthaEdit, so I made my own syntax mode for them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The screenshot is from subethaedit (notice it supports code-folding at the ".method" level, ) and is somewhat outdated, I fixed the mode already to properly hightlight all variables after parameters.
My thread for the mode on XDA is here: http://forum.xda-developers.com/showthread.php?t=1257025
or you can head straight to my blog to download them here: http://wp.me/p1JZM0-O
Cheers,

Hi again,
So I started hacking your APK manager for mac today to hopefully bring it closer in-line with the windows branch.
And first thing was simply verifying that optimize png and ogg work if you install optipng and sox, and yes, they both do. So in addition to my tip above to install sox, also install optipng:
Macports:
Code:
POSIXLY_CORRECT=1 sudo port install optipng
Homebrew:
Code:
brew install optipng
Then go into the script.sh and uncomment the relevant lines that call those functions (menu lines 2, 14, 16 and answers for opt, bopt and ogg) and comment out the removal/error lines instead.
So far I've done the easy steps, added user selectable compression level, max java heap size, batch signing support, and added the z/p/zp options for batch optimizing.
I'll try to get this all finished this weekend so somebody else can test it too, and I'll try to include at least the 64-bit optipng binary I compiled, and possibly 64-bit sox and all its dependencies too.
Cheers,

hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx

maile76 said:
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
Click to expand...
Click to collapse
Hi,
I've spent the past few days greatly improving the Mac version of APK manager. Well, really its almost a complete re-write. I've added 32-bit/64-bit all-in-one support, re-enabled old disabled features, added project support, system apk "keep" folder options, error checking, debug info, etc., etc., etc.
Really, after writing ~600+ lines of code, I can't even remember every change I've made at this point.
Anyway, I'm still testing and tweaking it multiple times a day, so I'm not really ready to release it here to the masses at XDA, but if you visit my blog, you'll find a current download link.
Until further notice though, I ask is that you please, PLEASE, don't link directly to the download, and please don't re-distribute here. If you want someone else to download my version, please just link them to this post.
I'm not trying to drive clicks or anything like that, I just don't want a billion questions about how to use my mod right now when its not finished, and is likely to change every few hours anyway.
Cheers,

Hey again,
So I'm finally happy enough with my version of APK Manager for OS X, that I released it here on XDA: http://forum.xda-developers.com/showthread.php?t=1285130
I've brought it completely up to date with the windows feature set, and exceeded it in many, MANY ways.
Cheers everyone

Related

[2015/03/07] BotBrew: *nix tools for Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The remainder of this post contains historical information. Please read the update. Thank you.
__________________
​ BotBrew is
a repository of *nix software (such as bzip2, curl, openssl, python, and ruby) for ARM-based Android
a package manager powered by Opkg, a lightweight program that feels like dpkg+apt
a service manager powered by runit
a build system for anyone looking to build and package his/her own scripts and programs
Thanks: mateorod and xela92 for testing the heck out of this thing; racks11479 for delicious artwork; you for using this project, reporting bugs, and making it better
If I missed anyone, let me know!
Warning: BotBrew has been used successfully on a variety of rooted ARM devices, and is developed using a Nook Color, but you should still make backups before trying, just in case.
Install BotBrew
[ Google Play | BotBrew.apk | BotBrew.debug.apk ]
Read the Quick-Start Guide & Manual
[ botbrew.com/manual.htm ]​
Click to expand...
Click to collapse
Alternative (Command Line) Installation
If the BotBrew app fails to bootstrap, you might be able to bootstrap using the command line:
Code:
wget http://repo.botbrew.com/anise/bootstrap/install.sh -O- | su
Such a setup should be compatible with the app, though it may not work perfectly. The manual has more tips for command line usage.
Enjoy!
Install BotBrew+1
The next release of BotBrew, named basil, will be powered by Debian's Dpkg and Apt. This is a non-trivial update, so the app is being rewritten from scratch. I've posted some usage instructions, in case you are adventurous enough to try. Thanks! This app may be used in parallel with the current-stable BotBrew release, without conflict.
[ Google Play | GitHub ]​
Click to expand...
Click to collapse
Changes
5/20: the next release of BotBrew is in development!
4/20: improve support for long package names; fix list of repairable packages
4/16: new UI for devices with wide-enough screens; experimental support for moving to /sd-ext
4/9: Google Play release of BotBrew "anise"; previous release is now BotBrew.oldstable.apk; lots of updates since oldstable
3/16: lots of installer and filesystem changes for cross-device compatibility, work started on multiuser support
3/10: installers now depend on botbrew-core, which will (in the future) pull in basic packages that everyone should have
3/4: swipe left and right to see all/installed/upgradable packages
3/3: added ability to start installation of *.opk files from file managers
3/2: added ability to start installation from browser after clicking *.opk link
3/1: fixed some BotBrew.apk bugs; updated command line installer
2/27: reworked BotBrew.apk; new packages in stable repo
2/18: testing repository now open; new opkg -- please read before upgrading
2/16: make BotBrew.apk display latest versions in the package list
2/2: bugfix release of BotBrew.apk
Well, I now have python, ncurses, openssl and a couple other packages running on my nook. I have indeed printed 42, and even wrote my own (proprietary) code to advance the project some that printed 43. Advanced scripting.
But seriously, this is sweet. I am all over anything that opens up this device. I don't think I have ever bought a piece of hardware that has so outstripped my expectations.
Thanks for the program. I will report back after I play with it some.
Wow, what a great idea! Looks like my Nook will be used for a bit more than entertaining my family with casual games; nice to have some productivity back I was thinking about installing Ubuntu on my Nook for this sort of thing, but there's no need anymore.
It would be great to get this a bit more recognition, and getting more useful things such as gcc or even the GNU toolchain installable with this package manager. Might put a link in my signature, if you don't mind.
Now to look for an affordable lightweight bluetooth keyboard...
You read my mind I got binutils, gmp, mpfr, and mpc working earlier today... and gcc is in the pipeline. My main reason for wanting a native gcc is that some software (such as python) do not like to be cross-compiled at all. I'm having a bit of trouble with gcc, but I'll keep hacking away at it.
Please, go right ahead and share this thread; this is a young project but I think it could be more useful. On the one hand, there's a whole lot of free software (such as the GNU stuff) just asking to be built and packaged; on the other hand, many people who hang out around here have a few scripts/programs of our own to distribute.
In case you're interested, here's where all the packages live. There are actually two more ways to install (remote and local) stuff using Opkg:
Code:
opkg install http://host/path/to/package.opk
Code:
opkg install path/to/package.opk
Very nice project !!!
I have python 2.7 standalone on android.
One problem, in python commandline i can't import hashlib, i can fix this?
Thanks.
So, I just got a working build of GCC+binutils and pushed the packages to the stable repo. Please keep in mind that for now, stable means I tested it a couple of times and it works, so be careful and use at your own risk.
To install gcc and binutils, make sure you have about 160mb of storage free in /system and run:
Code:
opkg update
opkg install gcc-4.6
That's about 70mb's worth of downloads, and my server's underpowered, so please wait patiently and retry if it fails (failure when receiving data from the peer). When that's done, you might want to compile something:
Code:
cd /cache
wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
gcc -o hello hello.c
And if that completed successfully, you should have a new executable, which you could run for a classic greeting. I was not able to get the C++ libraries compiled, but C code should compile alright.
@Fritos2: I've been trying to fix this issue, but I'm not confident that I could do it without help. Python (and Perl) are very resistant to cross-compilation, and even after I hammered it into submission, some modules do not work. Another module that I'd really like is readline, which gives you enhanced editing capabilities in the interactive interpreter. I'm a Pythonista, but I've got to say: Ruby does cross-building right. Even sqlite3 supports readline. I suspect that Python might have to be compiled natively, and this is where native gcc comes in.
I'd appreciate any help, of course
I'll follow this project with great interesting.
Hey guys, there have been a few updates:
opkg's lock file has been moved to /cache/opkg/lock so there's no need for a read-write /system just to query packages
gnupg has been packaged, for those who like to sign their stuff
python... well, I'm still working on it >.<
Anyway, I thought I'd do something to make this project more accessible. I don't have any apk's for you yet, but I've attached a screenshot of the work-in-progress
I am very impressed with the progress. I am a super-noob but have enjoyed toying with the packages from your opening post. I haven't had time to do much but explore, but this sure does open up a whole new world for the nook, from an accessability stand point alone. I wouldn't be suorised to see an uptick in interest as some if the more experienced coders are able to turn their attention from cm9.
I will probably install those latest packages sometime this weekend. Just real strong stuff.
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
If this is too basic and will clog the thread, I would happily accept a pm with a good tutorial. Thanks a bunch.
The problem with python maybe relationed with python-devel package?
Sorry is the question is stupid, i'm so noob.
The Python build process has two steps: first, you get the main Python executable, and then you get the modules. The executable built in the first step is used to test the modules in the second step. So, naively cross-compiling Python would result in most modules not passing the test (because you cannot actually run the Python you just built), and these modules would be removed. As it turns out, you could patch the build scripts to run the tests using a host-native Python, but even then, there are a few modules with particular requirements that still don't pass. This is where we are now, but I think we could do better.
Okay, so more progress: BotBrew.apk is out in the wild! I decided to put it off until I got some basic functionality working. What is this?
a basic GUI for package management
lists all packages
searches for packages by name
shows package information
installs/upgrades/removes packages
manages list of repositories
I've only really tested it with CM7, but it works on the latest CM9 previews as well.
Screenshots
​
mateorod said:
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
Click to expand...
Click to collapse
No worries. If gcc did not complain and dropped you back in the shell, this means it's done! Just list the directory to find a new file named hello, which you could run:
Code:
# gcc -o hello hello.c
# ls
backup download hello.c opkg
dalvik-cache hello lost+found recovery
# ./hello
hello world
#
I hope this helps!
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
BobbyBest said:
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
Click to expand...
Click to collapse
A valid question, I think. BotBrew has the potential of becoming a Cydia of sorts, distributing system extensions, interface customizations, and other useful software for rooted Android devices. Android has a vibrant community of programmers and scripters, but there isn't any standard way to manage software that are not apps. And there's a large body of open source Linux software that might work well on Android. Of course, BotBrew is also able to handle root apps that live in /system/app (i.e. gapps); for user-level apps, the various app stores already work quite well.
In order for this to become a serious platform, we'll need a couple of things: a solid technical foundation, developer support, and a user base. I've been making progress mostly towards the first point; hopefully the rest would follow.
Well I'll be. Yeah it worked. Who knew?
Okay, so that's great! I have printed 43 (my own design) and now the standard greeting has been successfully built and ran as well. I must toodle with it some more. What would you recommend to try? Remember, i am slow-witted and totally inexperienced.
If you say print 44 i will totally understand. : )
How about this, i would like to learn and i would like to help you with your program. I will probably be of most use as a guinea pig, but since i spend a fair amount of time jiggering system files and databases, I have to complete wipe about once a week. failure or risk doesn't bother me.
---------- Post added at 02:27 AM ---------- Previous post was at 01:51 AM ----------
Okay, i just got the apk. I autoremoved all installed packages. I installed opkg, python, gcc (binutils came along as a dependency) and the hello executable. But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
I known I am doing something very simple incorrectly. Do you have enough information to be able to tell me what that is?
Congrats on a successful build! Now that you have a working program, you could package it up for distribution
What's more, you could do it directly on Android. Let's call this package mateorod-hello, prefixing it with the vendor's (your) name to avoid conflicts with other variants. We'll also rename the executable itself.
We'll install the program to /system/bin, where it would feel at home with all the other programs; so we create a staging directory tree that mimics the structure of an Android system, but contains just the one program:
Code:
cd /cache
mkdir -p system/bin
cp hello system/bin/mateorod-hello
Next, we need a control file to describe what's in the package. It might be easier to create the file on a computer and push it over, but we could also create it using the command line:
Code:
echo "Package: mateorod-hello" > control
echo "Version: 1.0" >> control
echo "Architecture: armeabi" >> control
echo "Description: a greeting from mateorod" >> control
And, finally, a magic value to signify what kind of package this is:
Code:
echo -n "2.0" > debian-binary
Okay, now let's pack this up:
Code:
tar zcvf data.tar.gz system
tar zcvf control.tar.gz control
ar -r mateorod-hello.opk debian-binary data.tar.gz control.tar.gz
We now have mateorod-hello.opk, which we could test by installing:
Code:
opkg install mateorod-hello.opk
Now that it's installed, the program within is also available:
Code:
mateorod-hello
This is quite a bit of work for something that could just be pushed over adb, but it could be automated and it works tremendously well for more complex software. The control file helps keep track of versions, and lets you specify dependencies too.
Oh, and to clean up a bit: (the first command makes sure you're in /cache and do not accidentally erase /system)
Code:
cd /cache
rm -r system control data.tar.gz control.tar.gz debian-binary
/edit:
mateorod said:
But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
Click to expand...
Click to collapse
What did you do, cd /cache then ls? If so, you're most likely looking at the /cache/opkg directory, which contains temporary data. If you want to see what's installed using the command line, try opkg list-installed
I uh... picked a random icon I had lying around, and I plan to swap it out when I have time to make one. Thanks, though :3
The amount of help you're offering is just staggering. I will put the above together tonight and will report back.
I have a bug here in the GUI.
Rotation makes the app start looking for updates again.
edit: Reentering does the same...
opkg has then problems with set locks.
(CM7 KANG by MiRaGe)
Currently trying to install gcc to compile and run a small program...
edit2: gcc-4.6 installed. Still trying to compile a small prog. Will continue tomorrow...
Edit3: Well, problem with GUI fixed itself somehow.
Still, maybe you should check out how the GUI behaves during the installation process when rotated.
Yes, I can see how this bug could occur, and it should only happen during the first run. When the package cache is empty, the app tries to update by itself, and it seems that rotation causes something to restart. I've uploaded an update, which hopefully fixes this issue. Thanks for the report.
/edit:
Bug fixed for real. You may now rotate with impunity. Man, why can't Android have sensible defaults?
Okay, took me awhile, but...
$ export PATH=/data/local/bin:$PATH:.
$su
# cd cache/
# wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
Connecting to dl.dropbox.com (174.129.218.194:80)
hello.c 100% |************************************| 93 0:00:00 ETA
# gcc -o hello hello.c
#ls
dalvik-cache hello lost+found recovery
download hello.c opkg
# ./hello
hello world
#mkdir -p system/bin
# cp hello system/bin/mateo-hello
#echo "Package: mateo-hello" > control
#echo "Version: 1.0" >> control
#echo "Architecture: armeabi" >> control
# echo "Description: a word from Mateo" >> control
#echo -n "2.0" > debian-binary
# tar zcvf data.tar.gz system
system/
system/bin/
system/bin/mateo-hello
# tar zcvf control.tar.gz control
control
# ar -r mateo-hello.opk debian-binary data.tar.gz control.tar.gz
ar: creating mateo-hello.opk
#opkg install mateo-hello.opk
Installing mateo-hello (1.0) to root...
Collected errors:
Two sets of collected errors related to system not being mounted R/W excised
Installing mateo-hello (1.0) to root...
Configuring mateo-hello.
#mateo-hello
hello world
#
So there it is. I just followed your more-then-generous guide, with some phrasing changes to show i didn't just copy/paste.
Some notes from the inexperienced:
-As you can see, I had to use the wget command to work on the hello.c script. I had hello as an installed package through the Botbrew GUI already, but no matter what permutation of hello command I ran, gcc would not recognize it as an input file. Just to say that your guide to the initial build, as written, i don't think will work for anyone who installs the packages through the apk. I don't know the solution, but i bet it's simple.
Edit: I guess the package you get through your apk is a fully built executable? I hadn't gone through the later steps when I first tried to build it, so I never thought to simply enter "hello". Output a much fancier greeting then the one I built. Capital letters and an exclamation mark! Very nice.
- For other newbies- make sure that system is mounted R/W through root explorer or some such. And if you employ a firewall, if you intend to use the wget command, not only do you need to allow your terminal through, you also need to allow applications running as root! I am sure this is news to no one, but it cost me FOREVER!
I feel like this constitutes progress. Thanks for all the work!

[Q] How do I build/compile an APK from a Github source?

Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Rakoen said:
Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Click to expand...
Click to collapse
I guess you can download that TextSecure source code and import as a Project in Eclipse and simply run (If no errors are detected), and I think it will build the apk and execute in the emulator (If you have already created one)
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Rakoen said:
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Click to expand...
Click to collapse
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
coolsandie said:
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
Click to expand...
Click to collapse
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Rakoen said:
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Click to expand...
Click to collapse
Hmm, errors must be eliminated before executing. Try a Project Clean.
It's not mentioned on the repo , which is sneaky , but the app uses ActionBarSherlock library: or it was when I last checked. You clone that and bring it into Eclipse or whatever. On ant anyway you must have a file called project.properties with the following lines: android.library.reference.1=path/to/ActionBarSherlock/library and target=android-17. If you have problems you should always write the error, otherwise we can't help you.
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
@dabl8
Thanks for the advice. I'm not sure however if I imported it well, as it always seem to get imported as a different projecten, not quite integrated in my TextSecure building tryout.
This is my current situation:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
These are the errors:
http://dl.dropbox.com/u/3062101/errors.txt
Rakoen said:
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
Click to expand...
Click to collapse
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
coolsandie said:
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
Click to expand...
Click to collapse
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Rakoen said:
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Click to expand...
Click to collapse
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
coolsandie said:
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Click to expand...
Click to collapse
dabl8 said:
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
Click to expand...
Click to collapse
Okay, I've spent some hours on it and got very far, but am stuck now. First of all I've uninstalled all Java versions I had, then installed JDK6 (update 37 final). I rechecked it.
Then I did lots and lots of things that I can't remember all. Things with Eclipse properties, project.property editing, experimenting with environment variables, experimenting with Android SDK and a lot more (like symbolic links in my JDK folder). However, this ended in some very interesting results. I also found that the android-support-v4.jar in the ActionBarSherlock extension was different than the one of TextSecure, so I replaced both files with the TextSecure version (not sure what I did, but it made some progress).
First of all, I am going to show the progress I made with Eclipe (not so interesting that one). Now I only get 688 errors and 157 warnings, which means 236 problems less than yesterdag, awesome!
Log file: http://dl.dropbox.com/u/3062101/upgradedlog.txt
Then I thought, this doesn't work, lets try ANT. After fixing lots of issues and errors, I was finally able to build an APK! It didn't install at first, because it was unsigned, so I used the autosign.bat tool to fix that issue. I finally managed to install the application, but now there is one problem left: it fails to launch.
"Unfortunately, TextSecure has stopped."
Any ideas?
Thanks!
EDIT: Just tried it with the latest android-support-v4.jar from Android SDK and it still doesn't start. So I don't think that's the problem.
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
dabl8 said:
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
Click to expand...
Click to collapse
Tried these steps on Windows. The 'android update project -p abs/library' command fails.
Code:
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
Also the 'ant debug install' command failed.
Code:
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:688: null returned: 1
EDIT: Also, when adding android.library.reference.1="../ActionBarSherlock-master/library" to project.properties myself, I get this error with 'ant debug install':
Code:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:595: Invalid file: C:\Users\PC\Desktop\ActionBarSherlock-master\library\build.xml
EDIT2: Maybe an interesting detail is that it fails here:
Code:
Building Libraries with 'debug'...
It's what it says : you don't have the SDK platform (target) that ActionBarSherlock is looking for. Either download it or change the project.properties to use one that you have.
Link to steps
I'm not sure if you are still looking to build it from source.
This one worked for me: https://github.com/WhisperSystems/TextSecure/wiki/How-to-build-TextSecure-from-the-sources (detailed for newbies)
https://play.google.com/store/apps/details?id=jp.forkhub
Don't forget... getting in the fray of development is the best way to be included!

[ OS ] Builduntu Install Disc v2 - Android ROM Compiling OS

--- copied with permission from nathanpfry.com ---​
Builduntu is a custom branch of the Ubuntu operating system, based on my guide here for preparing Ubuntu 16.04 to compile Android ROMs from source. It includes everything you need to sync with the repository of your choice (Cyanogenmod, AOKP, AOSP, etc) and start building.
I am not responsible for any damage you may cause to your system/files while trying to install Builduntu. This has been tested and verified working by me, so if you break Windows or your system won't boot, it's your fault.
This thread is not the place to ask how to install Linux or Dual Boot!!! These topics are well documented elsewhere and can be easily found in a few seconds on Google.
Thanks to Canonical, Google and me.
Features:
- Xubuntu 16.04 LTS base system
- Installed all necessary packages for compiling (list available in the guide link above)
- Unnecessary junk removed (media players, games etc.)
All you have to do is download the source!
The only requirement is that your host machine supports a 64 bit OS. 32 bit systems will not work!
Instructions:
1. Use your favorite image burning software to write the builduntu ISO to a blank DVD. Will not fit on a CD
2. Boot the disc. When the graphical installer starts, click "Install Xubuntu"
3. Follow the on-screen instructions to select language, username, etc. * Note * When setting up partitions, I recommend doing it yourself if you know how. If not, that's fine, let Ubuntu decide for you.
4. When the installation finishes, reboot and eject the installation media.
5. Sync the Android source locally:
~ A program called "repo" lets you communicate with git repositories and download source code. The following command will install it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
~ Use nano to edit ~/.bashrc
Code:
sudo nano ~/.bashrc
~ At the very bottom (use the Page Down key) paste this code to a new (empty) line:
Code:
export PATH=~/bin:$PATH
~ Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
~ In the terminal, navigate to where you would like to download the Android source code. The command below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external is basically unusable.
Code:
mkdir ~/android
cd ~/android
~ Now to initialize the repo. Decide the flavor of Android to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of the tutorial, here's the command for CyanogenMod 13:
Code:
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync
When that is finished downloading, you're ready to start compiling ROMs!
Download Builduntu ISO:
Click here for mirrors!
Let me know how it works for you!
Feel free to buy me a Zico (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this project helps you out!​
Code:
[U][B]Changelog:[/B][/U]
v1.0 - First Release Mar 05 2014
v1.1 - Rebuilt from scratch the hard way
v1.2 - 4/20 Release - Update to 14.04 LTS Official
v2.0 - Update to 16.04 LTS with OpenJDK 8 for Android M builds
This is just awesome +1
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
And before the end of installation I got this error:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Of course "buildbuntu" doesn't boot, some errors with reading/writing sda partition.
Luckly I installed it on my test drive so my workspace isn't damaged.
lozohcum said:
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
Click to expand...
Click to collapse
I installed it to a fresh system just fine yesterday, not sure what your issue could be from. Could you post an installation log? Did you verify the md5sum of your downloaded file?
It is in fact Xubuntu 14.04. Canonical hasn't bothered changing the initial splash screen yet because it's still in beta. If you run the Live instance and check the version of ubuntu it correctly identifies as Trusty Tahr.
sylentprofet said:
I installed it to a fresh system just fine yesterday, not sure what your issue could be from. Could you post an installation log? Did you verify the md5sum of your downloaded file?
It is in fact Xubuntu 14.04. Canonical hasn't bothered changing the initial splash screen yet because it's still in beta. If you run the Live instance and check the version of ubuntu it correctly identifies as Trusty Tahr.
Click to expand...
Click to collapse
How to take installation log?
lozohcum said:
How to take installation log?
Click to expand...
Click to collapse
After the error appears it should load you into a live desktop session. The install log will be located there, perhaps in /var/log, /var/log/installer or the guest session home directory. Look around for .log files
edit : delete
I was hoping for a ubuntu base same as your virtual os..xubuntu ui is different and difficult
Ccahe error
Im trying to compile tihe ccache and when i set it up i recieve this error
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
any ideas on how i can fix this would be appreciated
thanks
perfectpitch said:
Im trying to compile tihe ccache and when i set it up i recieve this error
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
any ideas on how i can fix this would be appreciated
thanks
Click to expand...
Click to collapse
First, make sure ccache is installed (I'm reasonably sure it is out of the box)
Code:
sudo apt-get install ccache
If that's ok, check this link below and scroll down to Step 4a (optional).
http://forum.xda-developers.com/showthread.php?t=2506695
Ccache is not necessary and not ideal for all systems, so you may just want to disable it in your build process. Hope this helps.
Thanks I'll check it out
Sent from my Nexus 4 using XDA Premium 4 mobile app
so i dual booted ubuntu 13.10 on my laptop... but i couldn't build on it due to some stupidity... anyway, if someone could answer me some questions, maybe I'll uninstall ubuntu and switch to this since it's way easier for me.
1) did anyone successfully dual boot it? even with UEFI on?
2) can we transfer the source codes from an OS to another by packaging them and then extracting them in the new xubuntu? will it work that way?
Sent from my Nexus 4
lozohcum said:
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
And before the end of installation I got this error:
Of course "buildbuntu" doesn't boot, some errors with reading/writing sda partition.
Luckly I installed it on my test drive so my workspace isn't damaged.
Click to expand...
Click to collapse
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
rodman01 said:
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
Click to expand...
Click to collapse
I never received an installation log from anyone so I have no way to start to figure out what went wrong.
It seems like many users have installed successfully, but a few are encountering errors like the one mentioned above.
I don't know how to help you without more information about the problem and your system. It could be a million things with how vague the descriptions are.
rodman01 said:
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
Click to expand...
Click to collapse
I haven't fixed it. I installed xubuntu and ocnfigured it on my own.
I wasted two DVDs for that Builduntu :/
i installed xubuntu today, it boots without a CD (just to confirm it's installed)
inside settings there's a button called "Install RELEASE", should i? i mean... it's already installed :S
Sent from my Nexus 4
sylentprofet said:
I never received an installation log from anyone so I have no way to start to figure out what went wrong.
It seems like many users have installed successfully, but a few are encountering errors like the one mentioned above.
I don't know how to help you without more information about the problem and your system. It could be a million things with how vague the descriptions are.
Click to expand...
Click to collapse
Yes sure can be many things....but here attached are some log files one/two from my try a couple of minutes ago. Problem is, that I already tried so many things and absolutely not sure whether it is my fault, my hardware or perhaps a bad download, in short where I have to look for the solution? Perhaps the log files give some useful information to you :fingers-crossed:
lozohcum said:
I haven't fixed it. I installed xubuntu and ocnfigured it on my own.
I wasted two DVDs for that Builduntu :/
Click to expand...
Click to collapse
Thanks for the info...can you pass me the download link? Haven't found it after a first and quick search ...
Edit: found it in the meantime....
update
In the meantime, I have also downloaded the "pure" Xubuntu and got it installed with the very first try. Exact with the same settings as last tries with builduntu. Dev environment is installed and source codes downloaded. At the moment I am building my first rom with this software. Hopefully it finishes without errors :fingers-crossed: .
i downloaded the sources on a VM, but couldn't make it work on my secondary OS after compression, tranfser, and extraction of the sources...
now redownloading from scratch on a 1Mbps (that's 128KB/s max) speed
Sent from my Nexus 4

Modded Windows Virtual Machines

Hello,
Here are some Virtual Machines with Modded Windows Preinstalled (JROM)...
Password is 0110
VIDEO DEMONSTRATION:
VIDEO IS IN REAL TIME, HOST PC IS ON JROM-WIN10.
LEFT VM IS WIN10, RIGHT VM IS WIN11R00T.
Download Virtualbox:
Oracle VM VirtualBox
www.virtualbox.org
You will need the vbox extension pack too.
https://download.virtualbox.org/virtualbox/6.1.32/Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack
===============================
JROM-WINDOWS11R00t Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1wrUI5F-hNpECDKu28t1k2S28OwmWuY1G/view?usp=sharing
Alternative site pending
8.6 GB
Has Android Subsystem Installed. WSA isn't fully functional in the VM for reasons I haven't figured out yet.
At least on AMD... If Anyone has any Ideas, please reach out~!
Also has brave browser, ADB, Apk installation, and subsystem dependencies preinstalled.
I am taking a break from this project, but will come back to this project to fix WSA in the VM.
Unless a Superstar can Beat me to it ;-)
===============================
JROM-Windows 11 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1un5UXDvx8WfvXABoANmuR5FvgHcNcNAZ/view?usp=sharing
Alternative site pending
5.0 GB
Bare bones install, has windows 11 toolbar.
Mostly intended for Devs to test their software on a more "Genuine" Windows 11 iso, minus some bloat.
===============================
JROM-Windows 10 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1-0Gt_0GY4X77PIoQi1c-pHt9B4HmqB5-/view?usp=sharing
Alternative site pending
4.4 GB
Bare bones install, intended for work use~!
===============================
*HOW TO INSTALL*
===============================
Extract the machine. Right click and cut it.
Go to C:\ USERS YOURUSERNAME
Go to VirtualBox VMs folder or create a folder and name it "VirtualBox VMs".
Paste the machine in the folder. Run the file with the Blue Cube~!
You can edit the ram, etc as you see fit.
===============================
FOR PREMADE MODDED WINDOWS ISOS
===============================
https://forum.xda-developers.com/t/...lite-iso-plus-win11r00t-w-wsa-bundle.4392727/
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
jwoegerbauer said:
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
Click to expand...
Click to collapse
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
I created scripts when GENYMOTION first came out to help get the play store installed and remove bad apps, etc.
They are Greedy as are Most these Emulator Makers
jenneh said:
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
Click to expand...
Click to collapse
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
jwoegerbauer said:
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
Click to expand...
Click to collapse
Perhaps they changed it, it was originally free, then they started incorporating stupid pay walls, like charging you to change the IMEI, and eventually getting rid of their "free" personal use option after folks like me showed how to do this for free.
I guess the free option is back but the company as a whole left a sour taste in my mouth, when you can make anything they can with knowledge on gapps and android firmware, or different operating systems to use our apps entirely, like Lineage and Ubuntu-Touch
So what took me several days to figure out on windows, took me an hour to figure out on linux... And behold, Anbox is installed, in a virtual machine running Lubuntu... tee hee! Lemme do some testings... things.. yeah
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE THAT THEORETICALLY WE COULD INSTALL ANBOX THROUGH WINDOWS SUBSYSTEM FOR LINUX. I WILL TEST VIRTUAL MACHINES VS BARE BONES AND WE WILL SEE WHO IS THE VICTORZ
Posting the code here so I don't lose it when I reinstall my OS's a bagillion timez...
************************************
Installing Anbox:
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt install software-properties-common
sudo apt install linux-headers-generic anbox-modules-dkms
sudo apt update
sudo apt upgrade
sudo modprobe ashmem_linux
sudo modprobe binder_linux
snap install --devmode --beta anbox
***************************************
I'm on a train of thought here, concerning Win 11, creating vms with the stock iso, and this "TPM 2.0" Going to paste this llink here to cement that thought for another day... https://www.msn.com/en-us/sports/es...e-not-meeting-minimum-requirements/ar-AAPe1kg
For those interested in a fully cleaned Android Emulator, w/ R00t
Nox Clones
I'm tired of all the Garbageware on Every Single Android Emulator Out There. So I fixed it. DOWNLOAD UNPACK AND INSTALL: NOX FIX TOOLS https://mega.nz/file/ARxBhSRL#AxOhNGHxyk1keOh1N9KfWvhItDQ85_BHdMBGe5xmIBE CLONED NOX MACHINE...
forum.xda-developers.com
edit--- fixed the tpm settings,, will be updating the virtual machine and this guide shortly
Google Drive links have been added for all machines. The Mega Mirrors are uploading now. . .
Had to roll with Google first bc Mega is being... wonky.
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
ShadowEO said:
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
Click to expand...
Click to collapse
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
jenneh said:
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
Click to expand...
Click to collapse
Oh Gawd I Cannot Resist.
I offer a Solution to the Problem.....
Let's just call it, "WAP"
.... "Windows Android Player".

[CLOSED] How To Make Your Own Modified Windows ISO

==============================================================
HOW TO MAKE A MODIFIED WINDOWS ISO
==============================================================​
Spoiler: DOWNLOAD FILES
MSMG TOOLKIT (Version 12):
Google Drive:
xxxxxxx
WINDOWS MEDIA CREATION TOOL (WIN10):
https://go.microsoft.com/fwlink/?LinkId=691209
WINDOWS MEDIA CREATION TOOL (WIN 11):
https://go.microsoft.com/fwlink/?linkid=2156295
Mod Edit: Link to Tool removed.
Spoiler: VIDEO GUIDE
Spoiler: GETTING THE ISOs install.esd FILE
Unzip and Move MSMGTK12 to C:\
Use Windows Media Creation Tool to make an ISO.
Right Click the Windows ISO and select "Mount"
Open Windows ISO, go into Sources, Copy install.esd
Paste install.esd in C:\MSMGTK12\IMG
Press the Windows Key.
Type CMD and Right Click On Command Prompt.
Select "Run as Administrator"
Type: CD C:\MSMGTK12\IMG ---and press enter.
Now paste: dism /Get-WimInfo /WimFile:install.esd
Find the Index Number for the Version of Windows you want to install.
Add the number to the end of the command below and paste the full cmd to terminal:
dism /export-image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:max /CheckIntegrity
This will create the file install.wim
Open the Windows ISO again. Copy all Files.
Open C:\MSMGTK12, Open the DVD folder and paste the files.
Open the Sources Folder.
Find install.esd and delete it.
Take the install.wim file from C:\MSMGTK12\IMG
Paste the file into C:\MSMGTK12\DVD\SOURCES
Spoiler: USING MSMG TOOLKIT
Go back to the main folder of MSMGTK, Run Start.cmd
Type in "A" for Accept and hit any key to continue...
Run each command in numerical order, begining with the number "1"...
1. SOURCE: Continue to type 1 until your version of windows appears.
Select "Yes" to mounting Windows Setup Boot Image and Recovery Image.
2. Integrate refers to the "Packs" folder in MSMGTK16.
Add Your Own Programs and Install as you wish.
3. Remove allows you to remove the components listed.
4. Customize, many options,, pick for yourself.
5. Apply your selections~!
6. Target builds the iso for you~!
Spoiler: PREMADE WINDOWS ISOs
JROM: WINDOWS 10 AND 11 LITE ISO PLUS WIN11R00T W\ WSA BUNDLE
THIS IS OUTDATED, SEE THE NEW ARTICLE FOR A PREMADE ISO: https://forum.xda-developers.com/t/how-to-make-a-lite-or-modded-windows-iso-tool-premade-lite-win-10-iso.4496967/ ======================================================= JROM: WINDOWS 10...
forum.xda-developers.com
Spoiler: REFERENCES
MSMG Toolkit:
http://msmgtoolkit.in/
How to Create a Custom Windows 10 ISO Image | How to Modify Windows 10 ISO File | MSMG Toolkit
My XDA Thread on WIN 11 Contains a lot of links for helpful stuffz.
Root Windows 11 (Hard Mode)
THESE STEPS HAVE BEEN SIMPLIFIED FOR YOU~! FORGET THIS MESS, PLEASE CHECK OUT THE NEW WINDOWS 11 ISO I MODDED FOR ALL OF US https://forum.xda-developers.com/t/jrom-windows-10-and-11-lite-iso-plus-win11r00t-w-wsa-bundle.4392727/...
forum.xda-developers.com
ESD FILE EXTENSION EXPLANATION:
ESD File Extension - What is it and how to open ESD format - Review
www.filetypeadvisor.com
"Unlike .wim files, ESD images cannot be mounted or directly modified. Thanks to compression, ESD images generally take 30% less disk space and bandwidth than their WIM counterparts."
Therefore, the MSMG Toolkit makes it possible for us to extract the version of windows we want to modify. This is unintended behavior, thus Microsoft flags this tool as malware.
This ISO will work just fine In virtual machines. However..
To install direct to disk you need to use usb method:
Spoiler: DOWNLOAD RUFUS
Index of /downloads
<333333
This guide will teach you how to do this without MSMG:
Spoiler: DISM AND POWERSHELL GUIDE
Using dism.exe and Powershell to Modify Windows ISOs
THIS IS OUTDATED, SEE THE NEW ARTICLE https://forum.xda-developers.com/t/how-to-make-a-lite-or-modded-windows-iso-tool-premade-lite-win-10-iso.4496967/ ====================================== USING DISM.EXE AND POWERSHELL TO MODIFY WINDOWS ISOS...
forum.xda-developers.com
My modded version of Windows 10, Lazily titled "JROM-Win10" has been uploaded to the cloud, and added to the thread. The ISO is 4.24 GB in size.
I am modifying Windows 11 now, running JROM on my Host PC as well as a Virtual Machine, and will do a video once I get my modded Windows 11 posting in VBOX and properly write out what all was removed and left in~!
This includes my toolset to root anything android, called "Phonetoolz" Which is a series of batch files to easily root most anything android that you have the bootloader unlocked on, but that will be explained later...
JROM - Win 11 Iso link has been added to the thread. It is 4gb in file size. I am working on my "Rooted" version of the Win 11 iso, which will have WSA and more included on the ISO. When that is completed I will put all these iso's on their own thread and place that link here. Lol.
These ISO's were made for Virtual Machines, but will work with Rufus USB method too
TPM Requirements are off~!
Also, I took my Virtual Machine thread down Temporarily, when my root copy is complete I will post a VM image on that thread...
THESE ISOS ARE UNACTIVATED~!
This is intentional!
Good Day Sirs~!
Windows 7 is slightly different~!
Here's the command \ steps for anyone interested.
Copy the Window's 7 ISO Contents to the DVD Folder,
Run the start command in the MSMGTK12 folder.
Select option 1 and then pick out the version of windows 7 you want to install.
Proceed as normal
"
Main Differences Between Windows 7 Professional and Ultimate
The Ultimate Edition can boot files directly from VHD without host interference while this is not possible in Professional."
INTERESTING~! LETS EXPERIMENT WITH THAT
Working on some things for y'all <3
jenneh said:
My modded version of Windows 10, Lazily titled "JROM-Win10" has been uploaded to the cloud, and added to the thread. The ISO is 4.24 GB in size.
I am modifying Windows 11 now, running JROM on my Host PC as well as a Virtual Machine, and will do a video once I get my modded Windows 11 posting in VBOX and properly write out what all was removed and left in~!
This includes my toolset to root anything android, called "Phonetoolz" Which is a series of batch files to easily root most anything android that you have the bootloader unlocked on, but that will be explained later...
Click to expand...
Click to collapse
My modded variant of Windows 10, Lazily named "JROM-Win10" has been transferred to the cloud, and added to the string. The ISO is 4.24 GB in size.
I'm adjusting Windows 11 presently, codeprozone running JROM on my Host PC as well as a Virtual Machine, and will do a video once I get my modded Windows 11 posting in VBOX and appropriately work out what everything was eliminated and left in~!
This incorporates my toolset to root anything android, called "Phonetoolz" Which is a progression of cluster records to effortlessly root most anything android that you have the bootloader opened on, yet that will be clarified later...
Almas001 said:
My modded variant of Windows 10, Lazily named "JROM-Win10" has been transferred to the cloud, and added to the string. The ISO is 4.24 GB in size.
I'm adjusting Windows 11 presently, codeprozone running JROM on my Host PC as well as a Virtual Machine, and will do a video once I get my modded Windows 11 posting in VBOX and appropriately work out what everything was eliminated and left in~!
This incorporates my toolset to root anything android, called "Phonetoolz" Which is a progression of cluster records to effortlessly root most anything android that you have the bootloader opened on, yet that will be clarified later...
Click to expand...
Click to collapse
This is a little strange, haha. Rewording, that which I already wrote.
I like your style.
I do see you guys' interest in how the phonetoolz work, my only limitation right now, is the fact that, A. The fastboot drivers continue to break in windows 10.
I want to find out why, but the thought lingers, that these tools, adb, etc, have existed for years without ANY trouble on windows 7, as my toolkit comes from batch files that I made 6 years ago....
I tried to simply install windows 7 on my machine and it was rejected due to "nvme drivers missing" and I was like, what the heck is that>? found out modern systems with ssd only cannot natively run the iso.
Learned about DISM and DISKPART. Figured DISM to edit and inject the tools into the iso could potentially rectify this, but I am failing due to our friend "TIM" TrustedInstall manager....
I realize that everything would work as is right now, but I want to complicate it in a way that teaches myself, and others, bc there's like an infinite way you can do things in computing today, with all the Languages our Puters know...
I got off track, but my other limitation is my USB on my RAZER PHONE 2 went bunk :< I do not have another android phone to show these on yet. Maybe I can find a cheap burner to teach on~!
Long story short, lemme correct these complications and we absolutely will go over these batch files~!
I am trying to build a tiny windows 7 virtual machine with the drivers preinstalled correctly so you could in theory run a script and boom we have root... and windows 7 A for compatibility of ADB and FASTBOOT but B for the filesize of the entire system... you can get that crap down to 1.2 gb zipped...
AN ENTIRE OPERATING SYSTEM, PREINSTALLED, ZIPPED FOR 1.2 GB....
CASE AND POINT
Google Drive - Virus scan warning
drive.google.com
This was made using Experiences' Modded windows 7 called "Tiny 7"
It kinda still works to this [email protected]
This is evidence that virtual machines can preserve history~!
Let's also not forget the fact that Windows 7 could run 21 Virtual Androids at once.
Not as expected, but the music they made was.... One Of A Kind~!
Skip to 2:47 in the video to hear them Sing~!
Also I just ask that people give me time.
I'm just an ordinary girl and I work at an ordinary place. It makes me tired.
So I try my best to make good use of my few hours off before bed haha.
Just a heads up to users still learning, who rely on scripts and tools to learn the process of building your own environment/lab/station. We all start somewhere not knowing what to do next, or which direction to go. especially when it comes to the line between experimenting in isolation and using unknown tools that then are allowed to coexist with your production ready, day to day, IRL devices/servers/network. There is a reason the term edge is used when discussing the line between private and public networks.
Malicious/suspicious code should be treated like like what it is: a novel virus. Untrustworthy, suspect, potentially deadly, and not something you're going to expose your loved ones too if for little else than to save you time, money, effort, and stress when you inevitably have to go into triage mode. Zero wipe your entire setup down to the firmware and driver headers on every machine in your network; muttering to yourself at 2 in the morning, cursing how much there is left to do after you're finished tearing it all down, hoping that it wont show up again like last time 2 times you missed a spot.
Code doesn't care about your intentions, good or bad, innocent or nefarious. It's not concerned about who, why, if it's good or bad, if it's helpful, funny, or destructive. It just is, and it does what it was told to do by someone you'll never know. Zerotrust is the new term, I still prefer paranoid. Everyone else should embrace that as well, especially before running something that has 9 separate flags in a 31MB file on a forum. Even when the poster shows no other signs of mal-intent.
Never forget, it's not a fairytale.
This is the internet, and there be dragons.
MSMGTK12.zip:
VirusTotal
VirusTotal
www.virustotal.com
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
hi thanks buddy but i am facing this error over and over again
Er. Aditya said:
hi thanks buddy but i am facing this error over and over again
Click to expand...
Click to collapse
Based on that, Something is trying to use logic(boolion) code where it's not allowed. Whatever flipit grid is (maybe tiles for start menu?). Windows is throwing the error because it was blocked from doing it's thing and whatever it is wasn't programed to recover from the halt in code at that point. Seeing as how windows covers those types of expectations, I stand by my earlier post and say anyone downloading this person's files should know what they are doing. It threw many flags on virus total. Regardless of their intentions OP should not be trusted. Guess I'll hit the report button since they obviously won't pull the content themselves.
erktheerk said:
Based on that, Something is trying to use logic(boolion) code where it's not allowed. Whatever flipit grid is (maybe tiles for start menu?). Windows is throwing the error because it was blocked from doing it's thing and whatever it is wasn't programed to recover from the halt in code at that point. Seeing as how windows covers those types of expectations, I stand by my earlier post and say anyone downloading this person's files should know what they are doing. It threw many flags on virus total. Regardless of their intentions OP should not be trusted. Guess I'll hit the report button since they obviously won't pull the content themselves.
Click to expand...
Click to collapse
thanks buddy il be aware
MOD ACTION:
Thread closed temporarily.
@jenneh
Please check your PM inbox.

Categories

Resources