Run Google Glass on your Android phone - Android Software Development

Xenologer: repackaging Google Glass XE5 APKs to run on other devices
Google Glass's build process is fairly conservative - they don't use hidden APIs often, and when they do, they use reflection. Thus, it is relatively easy to repackage the Glass APKs for other devices.
Modifications to the base APK
The use-library element in AndroidManifest is removed, as it refers to unused code.
com/google/glass/hidden/HiddenViewConfiguration.smali is patched to always return 0xffff instead of calling the nonexistent View.getDeviceTapTimeout
An instructional video (don_doff_background.mov, 8MB) is removed to save space.
All native libraries required are shipped with the APK, as are all the Glass fonts.
For the camera, instead of calling Camera.open() to get the rear facing camera, Camera.open(0) is called to get the first camera, as the Nexus 7 doesn't have a rear camera.
Install
Download the APK:
Home: http://zhuowei.github.io/Xenologer/glasshome-modded.apk
Camera: http://zhuowei.github.io/Xenologer/glasscamera-modded.apk
Maps: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
Setup: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
This one's been modified so that instead of scanning a barcode, it uses the existing Google Account to setup and then force closes.
Install just like any other boring APK. None of the Google Glass apps need system privilages. I do not recommend installing these APKs as system APKs, as the Glass apps will attempt to reboot the phone after a force close.
Glass apps that won't be converted
Hangouts: crashes on Android 4.2 due to a change in the underlying Android code. If you have another version of Android, try http://zhuowei.github.io/Xenologer/glasshangouts-modded.apk
GlassSound.apk: installs and runs without modification. Get a copy from any XE5 system dump. Not essential for Glass; Glass will just run muted without it.
GlassPhotosphere.apk: As stated by http://www.studio8apps.com/running-google-glass-photo-sphere-viewer-on-android-phone/ , runs (for the easter egg) without modification. Again, any dumped copy from a XE5 should run fine. Not essential to Glass.
Building these APKs from the modified dump
This area is still quite rough - I would love some help!
These sources are managed with a shell script (because I am not familiar with git submodules).
Run getsrc.sh then one of the build*.sh to build the APK you want. You need to modify them to suit your needs. In particular, there's a dosignapk.sh script that they call, which signs the APKs with your key. Go to http://developer.android.com/tools/publishing/app-signing.html for details.
You must have APKTool, 7Zip, and the Android SDK in your path.
Finally, note that the build scripts copy the com folder into the resulting APKs, as APKTool is too dumb to get them from the original APK.
Credits/License
While I don't have permission from the Glass team to post these, Google Glass is a device for explorers, thus, I believe it agrees with the spirit of discovery to post these APKs.
The APK was pulled from Android Police's dump at http://www.androidpolice.com/2013/0...em-dumps-please-do-something-cool-with-these/

Excited to test it! Thanx!

Think you have the wrong link for the 'Setup'
Can't seem to get it working properly even when I have downloaded the correct link, just keeps telling me to register it on my phone/pc.
Also is there a way to get past the warning page of the maps?

where is the setup link? D:
Sent from my LG-P500 using xda app-developers app

Apktool isn't too dumb in the future 2.0 version for "unknown" files/folders (ex /com), fyi.

zeratos said:
where is the setup link? D:
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
It's http://zhuowei.github.io/Xenologer/glasssetup-modded.apk
Sent by typing on my Xperia Sola with my fingers using xda premium

Its awesome, very responsive. Wish I had the hardware to use with it.
SGH-T999

Seems like the Maps and Camera apk link is dead..

Sorry for this dump question, but what is this? Google glass on android? Means the APK is taken from google glass? Can I install it on my S3 non-rooted?

paranoid android got me with their hover joke :S
but i was happy to find the original https://github.com/zhuowei/Xenologer?utm_source=feedly
and then this thread.
the files are mixed from XE5, XE6 and XE7
current build is XE12 ill try with the newest files later...
i like it alot but:
- Browser is not working (no connection)
- Directions do not work (same problem)
- camera has a weird error
but i get incomming mails....
maybe i need a 2nd device for the myglass app? trying later...
currently running paranoid android 4.2 beta 3 (4.2.2) gs3
a nice feature is if you use it with xhalo floating window and launch it in window mode as you can use the touchscreen
too bad it doesnt work with android wear..
{
"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"
}

update the links
pls update the links...
NOMIOMI said:
Xenologer: repackaging Google Glass XE5 APKs to run on other devices
Google Glass's build process is fairly conservative - they don't use hidden APIs often, and when they do, they use reflection. Thus, it is relatively easy to repackage the Glass APKs for other devices.
Modifications to the base APK
The use-library element in AndroidManifest is removed, as it refers to unused code.
com/google/glass/hidden/HiddenViewConfiguration.smali is patched to always return 0xffff instead of calling the nonexistent View.getDeviceTapTimeout
An instructional video (don_doff_background.mov, 8MB) is removed to save space.
All native libraries required are shipped with the APK, as are all the Glass fonts.
For the camera, instead of calling Camera.open() to get the rear facing camera, Camera.open(0) is called to get the first camera, as the Nexus 7 doesn't have a rear camera.
Install
Download the APK:
Home: http://zhuowei.github.io/Xenologer/glasshome-modded.apk
Camera: http://zhuowei.github.io/Xenologer/glasscamera-modded.apk
Maps: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
Setup: http://zhuowei.github.io/Xenologer/glassmaps-modded.apk
This one's been modified so that instead of scanning a barcode, it uses the existing Google Account to setup and then force closes.
Install just like any other boring APK. None of the Google Glass apps need system privilages. I do not recommend installing these APKs as system APKs, as the Glass apps will attempt to reboot the phone after a force close.
Glass apps that won't be converted
Hangouts: crashes on Android 4.2 due to a change in the underlying Android code. If you have another version of Android, try http://zhuowei.github.io/Xenologer/glasshangouts-modded.apk
GlassSound.apk: installs and runs without modification. Get a copy from any XE5 system dump. Not essential for Glass; Glass will just run muted without it.
GlassPhotosphere.apk: As stated by http://www.studio8apps.com/running-google-glass-photo-sphere-viewer-on-android-phone/ , runs (for the easter egg) without modification. Again, any dumped copy from a XE5 should run fine. Not essential to Glass.
Building these APKs from the modified dump
This area is still quite rough - I would love some help!
These sources are managed with a shell script (because I am not familiar with git submodules).
Run getsrc.sh then one of the build*.sh to build the APK you want. You need to modify them to suit your needs. In particular, there's a dosignapk.sh script that they call, which signs the APKs with your key. Go to http://developer.android.com/tools/publishing/app-signing.html for details.
You must have APKTool, 7Zip, and the Android SDK in your path.
Finally, note that the build scripts copy the com folder into the resulting APKs, as APKTool is too dumb to get them from the original APK.
Credits/License
While I don't have permission from the Glass team to post these, Google Glass is a device for explorers, thus, I believe it agrees with the spirit of discovery to post these APKs.
The APK was pulled from Android Police's dump at http://www.androidpolice.com/2013/0...em-dumps-please-do-something-cool-with-these/
Click to expand...
Click to collapse

Related

[GUIDE]Download apk from google play without Device ID

There are 2 methods for (download apk from google play to computer)​
1 - Online Apk Downloader
Check out Here
Do you know about Online APK Downloader?with online apk downloader you can download every free apps on google play store on your coputer.
For all of us using an Android device , we already know that the Google play store limits the download of android apps and games only via an android phone or other android devices . Even if Android supports sideloading of apps and games , Google has always restricted the direct downloads of apps from the play store as apk files .
Google is doing the best to protect our android devices and the reason behind android apps not being available to download as apk files , is to prevent the spreading of virus and malwares by sideloading of apps from the outside of the play store .
Although downloading apps on an android phone is very easy , but if your data connection is slow , you won`t be left with any option apart from waiting for the crawling downloads to complete until you can use your favorite apps or games . Fortunately there is a workaround which will allow you to download Android apps and games as apk files from the Google play store .
android apps are packaged as APK files. You can use any File Manager app to copy these files from the computer to your Android device and then touch the .apk file to install, or sideload, the corresponding app on your device.
{
"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"
}
This online tool alows you to download latest version of android apps or games to your device.
your divice is rooted?dont wory. you do not neet DeviceID and gmail account for downloading apps.
There is no limitation for downloading apps.Apk Leecher let you to generate direct link of Any number of apps from android market and let you to download all of them.
The site address is : http://apkleecher.com
2 - APK Downloader Chrome Extension
APK Downloader is a Chrome extension that allows you to download APK files from within your browser without installing the app on your Android device. Requirements:
Latest Google Chrome
Android Device ID [Google Play]
APK Downloader Chrome Extension
* Please read and follow this instruction carefully before using, or it WON'T WORK * STEPS:
Make sure you have a latest version of Google Chrome installed on your PC.
Download and install the Device ID on your Android device.
Download APK Downloader Chrome Extension.
Open your Google Chrome, and press CTRL + H on your keyboard and select Extension tab, then drag and drop the downloaded file (2.1.2.crx) into that middle of the page.
5.It will add the extension named "APK Downloader" on the Extensions page. Look for the options hyperlink and click on it to get to APK Downloader option page
Enter email and device ID on Options page
How to get Email and Device ID:
install Device IDapp, it will show you your Device ID and Gmail.
For example: if it shows android-1234567890abcdef , then your device ID is 1234567890abcdef
Do not type in random email or device ID, it won't work, if you logged out your phone or reflash your phone with custom ROM you might need to relogin APK Downloader again
That's it. You can now start using APK Downloader.
After logging in, you can navigate to any Google Play App page, and wait for a few seconds for icon to appear and click the APK Downloader icon in the Address bar to download the .apk to your desktop!
auth token not available... what am i doing wrong
sandog12 said:
auth token not available... what am i doing wrong
Click to expand...
Click to collapse
Same problem here..
is there a way to get the hbo go app that firetv uses you dont need a mouse to use it
Thanks you soomuch
What about Firefox ?
Here is a simple and best way
http://apps.evozi.com/apk-downloader/
For your interest, I downloaded a sample APK both from http://apkleecher.com/ and http://apps.evozi.com/apk-downloader/.
Checksums are identical. That might make previous claims that Evozi adds malware (I read it somewhere) not so plausible.
Okay.
I might not be fully getting this whole 'download APKs from 3rd party sources. thing. I made a little experiment: I downloaded one AKP from 4 sources, here are the results:
http://www.aptoide.com/ and https://apkpure.com/ - the same cryptographic hash for the pair, smaller APK file size, compared to the other pair.
http://apk-dl.com/ and http://freeapkpro.co/ - the same cryptographic hash for the pair, larger APK file size, compared to the other pair.
Now, what's the difference in APK file sizes, by pair? Maybe they add the same malware? Hopefully not!
Sangeet007 - http://apkleecher.com/ didn't work at all for this test. Any why did you put this thread in the Sony forum in the first place?

[TOOL] AppDeploy 8.1 all capabilities

After few tries, I've fixed application deployer from SDK 8.1 to sideload xaps with all "restricted" capabilities in the manifest
(he-he, just curious why nobody did it before?)
1) Backup original deployer "AppDeploy.exe" and "Microsoft.Phone.Tools.Deploy.dll" from "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy" first!
2) Unpack attachment and replace files.
3) Enjoy!
I've tested modified deployer on WPTweaker and WPH Tweak apps, works perfectly.
Cons: I was lazy to add original localization so modified deployer has only English lang.
P.S. Of course to be able sideload apps with "restricted" capabilities your handset must be interop-unlocked
sensboston said:
After few tries, I've fixed application deployer from SDK 8.1 to sideload xaps with all "restricted" capabilities in the manifest
(he-he, just curious why nobody did it before?)
1) Backup original deployer "AppDeploy.exe" and "Microsoft.Phone.Tools.Deploy.dll" from "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy" first!
2) Unpack attachment and replace files.
3) Enjoy!
I've tested modified deployer on WPTweaker and WPH Tweak apps, works perfectly.
Cons: I was lazy to add original localization so modified deployer has only English lang.
P.S. Of course to be able sideload apps with "restricted" capabilities your handset must be interop-unlocked
Click to expand...
Click to collapse
Works fine so far. Many thanks.
Maybe you can give instructions how to add other localizations. I would like to add german localization for myself.
sorry does not work for the : WebAccess_0_5_6_AllCapabilities.xap
@megasounds, do you have a handset with all capabilities unlocked? You may compare error message from the original 8.1 deployer and modified, messages are different. In case of modified deployer, the error message came directly from phone or (maybe, I'm not sure) from Microsoft.SmartDevice.Connectivity namespace.
Can't deploy WPTweaker_Release_ARM_1.4.0.xap
{
"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"
}
@titi66200, do you have WP8.1 SDK installed? It's not a standalone deployer but just a replacement of "native" SDK tool.
Yes.
I have build "MDILFileList.xml" with MDILXAPCompile.exe and rezip Xap.
And now i can deploy WPTweaker_Release_ARM_1.4.0.xap
titi66200 said:
I have build "MDILFileList.xml" with MDILXAPCompile.exe and rezip Xap.
Click to expand...
Click to collapse
Kinda strange 'cause I've tested on my xap downloaded from xda thread (for the test purity).
P.S. BTW, could you try to sideload other "interop-only" apps? (except @GoodDayToDie's WebAccess_AllCapabilities - I don't know how to sideload that app to the handset with "usual interop", not a "sammy" with the custom bits)
Can the coveted tetra lock screen app 1.2.0.0 finally be deployed? I'm currently on winmo 10 and can't test lol
megasounds said:
sorry does not work for the : WebAccess_0_5_6_AllCapabilities.xap
Click to expand...
Click to collapse
That's about half my fault and half Microsoft's; the AllCapabilities version of the webserver includes *all* the capabilities that were usable by a third-party app in 8.0 (even if they aren't necessarily used for anything). Microosft removed some of those in 8.1. This results in trying to install an app that requires capabilities which the OS doesn't even understand.
Workaround is to remove capabilities from the app's manifest until it installs. Alternatively, use the normal-caps version (or another registry browser) to see all the available capabilities - they're under HKLM\SOFTWARE\Microsoft\SecurityManager\Capabilities) - and remove the ones in the app's manifest that aren't supported.
I'm really sorry for not updating the app in so bloody long. I got stuck on some really huge set of changes for it that aren't working right yet, and then I got swept up in another project altogether, and that + life generally being busy (travel, girlfriend, day job, you know the drill) has meant I've been neglecting that app. I need to switch back to the stable branch, fix the capabilities, and release a trivial update. I'll try to do that as soon as possible (but my dev PC is temporarily dead, so I'll need to use my laptop, and I've got plans with friends tonight... again, you get the idea). Sorry again.
I've changed slightly AppDeploy (forgot to add app icon in the initial post ); also added decompiled sources (in case someone want to improve/add own localization - but my 2¢ - don't waste you time )
Removed ID_CAP_SOUND_CONTROL in "WMAppManifest.xml"
Added "WindowsPhoneReservedAppInfo.xml"
Code:
<?xml version="1.0" encoding="utf-8"?>
<WindowsPhoneReservedAppInfo xmlns="http://schemas.microsoft.com/phone/2013/windowsphonereservedappinfo" PinableOnKidZone="false">
<SoftwareCapabilities>
<SoftwareCapability Id="ID_CAP_SOUND_CONTROL" />
</SoftwareCapabilities>
</WindowsPhoneReservedAppInfo>
And i can deploy with original AppDeploy.
Hmm, I thought WindowsPhoneReservedAppInfo.xml is just for WinRuntime apps, not Silverlight...
@titi66200, are you able to see/play ringtones after that change (tap any button on the "Sounds" page)?
Yes all Works
Edit
glancescreen.xap is RuntimeType="Silverlight" and use "WindowsPhoneReservedAppInfo.xml"
Wow, pretty cool trick, thanks! I'll add your solution to the WPTweaker project.
sensboston said:
Wow, pretty cool trick, thanks! I'll add your solution to the WPTweaker project.
Click to expand...
Click to collapse
could anyone post not modified files here ?
today I am not able to sideload and debug any apps . and I can't remember where were my backed up files
AppDeploy.exe and Microsoft.Phone.Tools.Deploy.dll.
titi66200 said:
AppDeploy.exe and Microsoft.Phone.Tools.Deploy.dll.
Click to expand...
Click to collapse
I don't know why but I get Error - the specified module could not be found !
What app you try to deploy?
titi66200 said:
What app you try to deploy?
Click to expand...
Click to collapse
any app .
I am working on a new app when app has an error in mainfest or etc. it tells the error but It can't find module to install xap / appx or any other type of apps

APK Tool For Windows

{
"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"
}
APKTOOL FOR WINDOWS
First and foremost thanks to @iBotPeaches for his dedication to Apktool!
Because I can double-click more accurately than I can type, I made this up to avoid having to use command line and speed up modding the couple of apks that I try to keep up on. Maybe it'll help a few others speed up their process too.
Now, this is a Windows based GUI for Apktool. No command line needed. That said, you should be very familiar with already using Apktool via command line so you know the process that it follows and the corrective measures needed should errors pop up. You need to have the exact same setup as Apktool (Java in your environment path and current Java version AND relevant frameworks installed via apktool!! ). All that this does is provide a simple Windows style menu for the process. You can very easily update apktool.jar as @iBotPeaches updates it. Also, if you would like to add any switch to the decompile or compile command other than the typical (which is what I used) you can just modify the corresponding .bat file located in SupportFiles that APKTool For WIN calls on.
See the attached screenshots in the following post for the easy to follow layout and it's capabilities. It will install frameworks/etc, decompile, compile (with or without original manifest and meta-inf), sign (with testkey or your personal one), and display an apktool log.
As this directly uses apktool.jar, it will have the same quirks/issues such as this current one:
10/18/2016 - for apktool v2.2.1 regarding v2 signed apps - LINK​
V4 - As I was posting this, I noticed there was an update to apktool.jar (v2.2.1) which I updated the file to reflect. I modded several apps with the earlier version but only attempted two apps with the updated one (didn't see any issue with either app but I'm still on MM). I haven't looked more in depth at this V2 signed apps issue yet to see if I can modify the signing.bat to account for it (it's 230am). I will update it if there is.
V5 - (1) Updated apktool.jar to 2.2.2 if you haven't already yourself and (2) added java version info in your log file on Decompile routine to help identify a beginners issue on determining whether or not you have java installed in your path
Copy apks to the "APKs_To Decompile" folder.
Copy your framework-res, twframework-res, systemUI as needed to the folder "Frameworks".
Install frameworks.
Running the APKTool For WIN.exe select Install Frameworks
Decompile.
Select Decompile .apk
Choose your apk.
Decompiled app will be in the Decompiled folder.
Compile.
Select Compile
Choose your app to compile.
(One backup will be automatically created if there is an existing one to be safe in the decompiled app's folder)
Choose to copy the original manifest and meta-inf if desired
Compiled apk will be in the Compiled folder
Sign.
Select Sign APK
Choose the apk to sign.
Choose to sign with the testkey or with your personal key (help file is included in the zip for initial setup for using your own key)
Signed apk will be in the Signed folder
APKTool Log
If an Error message is displayed after decompiling or compiling you can check the log.
It's also beneficial to clear the log sometimes.
reserved for future use, faqs, issues
hmmm......after being away for a while i'm checking back to see if anyone had issues with trying to use this....and.......
not a single issue/question/comment with nearly 100 downloads. you guys are GOOD!!! (unless y'all think it's pointless and are being too kind to comment )
in the next few days, i'll use it a bit more in depth with the updated source and see if anything needs tweaking
Great tool !! I like it , this is solve my problems.
thank you so much , please keep it up.
Small update - V5
1. Updated to apktool 2.2.2 in case you haven't already done so yourself.
2. Added your java version info to the log generated when you run a Decompile routine to help beginners identify whether or not java is in the required path

Launchers, how to?

Hi, I have tried installing launchers to get a more tablet feel and everyone I have tried I get the 501 error can't install
Is there a reason? & how can I install a new launcher?
adambomb_13 said:
Hi, I have tried installing launchers to get a more tablet feel and everyone I have tried I get the 501 error can't install
Is there a reason? & how can I install a new launcher?
Click to expand...
Click to collapse
The only launcher I have been able to install is Pie Control from the Play Store. It is only useful for touchscreen but if you do have touchscreen it is fantastic.
I have it organized by the type of app.
I wanted to bump this topic because I still have not found an android style launcher that will download is there a hack or some sort of work around that can be done?
This OS has been blessing for my Nextbook Flexx 11 after years of searching for a way to add android to this cool windows 2 in 1 this works wonderfully
There is a hack, but you have to apply it yourself and it involves Smali editing. I posted the information on this thread: https://www.reddit.com/r/PhoenixOS/comments/5hncla/get_back_launcher3_on_phoenixos/
The no-launcher limitation is a completely arbitrary limitation imposed by Chaozhou, having extra launchers installed does NOT affect system stability. I've used PhoenixOS loads with the Google Launcher and others installed, the only places where you even have the choice of another launcher is when you choose "Switch to Android mode". Being in the Desktop mode is completely unaffected. I understood that previous versions of Phoenix had an issue where the user could replace the desktop mode launcher, but that appears to be resolved in the latest versions for all (PC, ARM, etc) so idk why it's still a thing. :/
I would include a copy of a patched services.jar, but I only have a version for the Nexus 7 ARM copy of Phoenix and since it's been modified by Chaozhou, it's likely copyrighted code (since Android is released under the Apache license) and I don't know if I am allowed to distribute my changed file.
In case you would like to avoid the reddit link, essentially what you need to do is this:
1) Decompile /system/frameworks/services.jar with APKtool
2) Open com/android/server/pm/PackageManagerService.smali
3) Find method "isPackageInstallAllowed"
4) Replace any
Code:
const/16 v6, 0x-33
with
Code:
const/16 v6, 0x1
up until you reach the
Code:
.end method
line for that method.
5) Save the file, recompile your JAR with apktool and then put the changed file back into place on the device's filesystem.
If everything goes well, when you start the system back up, you should be able to install launchers unimpeded.
ShadowEO said:
There is a hack, but you have to apply it yourself and it involves Smali editing. I posted the information on this thread: https://www.reddit.com/r/PhoenixOS/comments/5hncla/get_back_launcher3_on_phoenixos/
The no-launcher limitation is a completely arbitrary limitation imposed by Chaozhou, having extra launchers installed does NOT affect system stability. I've used PhoenixOS loads with the Google Launcher and others installed, the only places where you even have the choice of another launcher is when you choose "Switch to Android mode". Being in the Desktop mode is completely unaffected. I understood that previous versions of Phoenix had an issue where the user could replace the desktop mode launcher, but that appears to be resolved in the latest versions for all (PC, ARM, etc) so idk why it's still a thing. :/
I would include a copy of a patched services.jar, but I only have a version for the Nexus 7 ARM copy of Phoenix and since it's been modified by Chaozhou, it's likely copyrighted code (since Android is released under the Apache license) and I don't know if I am allowed to distribute my changed file.
In case you would like to avoid the reddit link, essentially what you need to do is this:
1) Decompile /system/frameworks/services.jar with APKtool
2) Open com/android/server/pm/PackageManagerService.smali
3) Find method "isPackageInstallAllowed"
4) Replace any
Code:
const/16 v6, 0x-33
with
Code:
const/16 v6, 0x1
up until you reach the
Code:
.end method
line for that method.
5) Save the file, recompile your JAR with apktool and then put the changed file back into place on the device's filesystem.
If everything goes well, when you start the system back up, you should be able to install launchers unimpeded.
Click to expand...
Click to collapse
Have you tried this on the newest build I beleive its 2.5.9? I can't find anything with const/16 v6, 0x-33 to change.
I have not, mostly because I was using Phoenix on my Nexus 7 before they decided to discontinue the normal ARM distribution for bunk reasons. I have not attempted this on the PC builds, however hacking that method (isPackageInstallAllowed) to return 0x1 at all times may suffice.
The aforementioned method is not in stock AOSP's PackageManager implementation, so simply making it a dummy method that returns true would suffice and shouldn't break the system.
ShadowEO said:
I have not, mostly because I was using Phoenix on my Nexus 7 before they decided to discontinue the normal ARM distribution for bunk reasons. I have not attempted this on the PC builds, however hacking that method (isPackageInstallAllowed) to return 0x1 at all times may suffice.
The aforementioned method is not in stock AOSP's PackageManager implementation, so simply making it a dummy method that returns true would suffice and shouldn't break the system.
Click to expand...
Click to collapse
Not sure what you mean in the last sentence you said.
This hack no longer working on 3.0.5. Need Top TV Launcher 2 to work
Phoenix OS is useless to me with the stock launcher. Anyone have a method that works?
Help me, i have an issue.
I download and install Phoenix OS from homepage, then when i boot it, it get stuck in a black screen saying this:
{
"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"
}
Is there something wrong? I dont know what to do next.
This is my PC spec:
Anyone help me? Thank you very much. :fingers-crossed::fingers-crossed:
How to install Launcher Apps
i will help you
Phoenix OS error
I'm sorry for this but since my account is new I can not post a new topic.
Installed the phoenix on my PC and it gives this problem, it makes my games lag and i can not adjust the resolution because the option to change does not exist, only the one of DPI
My confs:
Motherboard B360M-HDV
CPU i3 8100
GPU Intel UHD Graphics 630
Memory 8GB 2400mhz
SO Windows 10 Pro 64 bits

[MOD][TEMPLATE] APK-Patcher Lite

APK-Patcher Lite
Flashable Zip Template for Modifying System APKs On-Device
Based on APK-Patcher by @osm0sis​
Information
This is a modified version of APK-Patcher that will delete / inject files into System APK files instead of using a baksmali / apktool method.
The method used here is a similar method used in my ROMs to patch files, where instead of having to have like for example 4 SystemUI files, I only needed to keep the actual files that were changed.
This method could also be used quite easily to apply OTA updates or addons on already pre-modified APK files.
LINK TO GITHUB (STANDARD): https://github.com/djb77/APK-Patcher-Lite
LINK TO GITHUB (MAGISK): https://github.com/djb77/APK-Patcher-Lite_Magisk
Usage
Copy your pre-compiled resource files (including .dex files) to the patch folder, removing the .apk part of the filename (ie: SystemUI)
Create a file in scripts with the same name (ie: SystemUI.sh) if you want to delete any existing files from the APK
Make edits to envvar.sh, and also to extracmd.sh if needed
Properties / Variables (envvar.sh)
banner="";
apklist="";
apkbak=/data/media/0/APK-Backup;
backup=1;
cleanup=1;
banner is the name of your patch zip, usually suggestive of what it does, to be displayed at the beginning of the zip flash. You should include your name/handle here like "by osm0sis @ xda-developers" for credit purposes.
apklist is a string containing the list of APKs to be patched included in the patch zip, separated by spaces between the quotes. Each APK is automatically found recursively in /system, then copied to the working directory to be decompiled and acted on, then copied back to /system.
apkbak is the location to place backups of the untouched APKs in apklist if backup=1 is set.
backup=1 will store backups of the untouched APKs in the location specified in apkbak.
cleanup=0 will keep the zip from removing it's working directory in /tmp/apkpatcher - this can be useful if trying to debug in adb shell whether the patches worked correctly. cleanup=1 is necessary on multi-APK patching zips, so it's recommended each APK to be patched be tested on their own with cleanup=0 before combining into a single zip.
envvar.sh
Modify the envvar.sh to add your banner, apklist, backup and cleanup options
Multiple files can be patched, put a space between the filenames (ie: apklist="file1.apk file2.apk"
extracmd.sh
Modify the extracmd.sh to add any additional commands to be performed at the end of the patching process that aren't patch-related (/data file changes,
scripts/$apkname.sh
fileremove="";
$apkname is the name of the folder that you put your resources files in. Copy scripts_sample.sh and rename it to your APK (ie: SystemUI.sh)
Multiple files can be deleted, put a space between the paths (ie: fileremove="/res/drawable/file1.png /res/drawable/file1.png"
Good job, mate. Usefull for a 5-SystemUI ROMs :highfive:
Good job as usual..... mate
Nice one mate
Can't wait to try it out
Well done, good job bro [emoji106]
Can I use this to get more coins in wonka's world of candy?
NICE... :good: :highfive:
Good work djb77
Replied to wrong thread
Could this modify an apk's screen orientation?
For months i've been trying to get USTVHUB to open on my Shield TV on 8.0 but wont because the app only opens in portrait mode-meant for phones only.
This app works on my S7 or phones. But no matter which screen orientation app i try, and tried editing code, the app crashes every time on my Shield tv because that's landscape mode.
If the OP app wont work for this can someone point me in the direction of something that would work to change an apk's screen orientation?
{
"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"
}
dovedescent7 said:
Could this modify an apk's screen orientation?
For months i've been trying to get USTVHUB to open on my Shield TV on 8.0 but wont because the app only opens in portrait mode-meant for phones only.
This app works on my S7 or phones. But no matter which screen orientation app i try, and tried editing code, the app crashes every time on my Shield tv because that's landscape mode.
If the OP app wont work for this can someone point me in the direction of something that would work to change an apk's screen orientation?
Click to expand...
Click to collapse
My module will work if you give it the right files to inject, what files/resources my module injects into an APK is your responsibility.
this need root?
smallville7123 said:
this need root?
Click to expand...
Click to collapse
no root needed, just custom recovery to flash your finished zip
Does it support non system app? Can I add files (not replace) that does not exist in the APK itself? (My banking app launcher icon only support mdpi, so I want to add higher resolution)
For me returned error bellow
Code:
local entry crc does not match

Categories

Resources