Question Trying to mod an app to not close when swiping right, having some trouble with the documentation, can someone throw me a hand? - Samsung Galaxy Watch 5

{
"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"
}
according to https://developer.android.com/training/wearables/views/exit this is how you disable swipe-to-dismiss
I tried messing around with android studio to see if there was an easy way to do this, no luck
so I disassembled the subway surfers apk, manually went through every style in res/values/styles.xml and added the no swipe to dismiss tag, recompiled and signed it no issue but the app still closes when swiping to the right. can someone throw me a hand with this?

Hi, I had the same issue as you. I tried installing Subway Surfers by sideloading it through ADB and although it worked surprisingly smooth, the game would exit whenever I'd swipe right.
After a few minutes on Google, I came across Android Wear platform's official documentation about swipe to exit here and then I decompiled the apk using Apktool, headed over to manifest to check what the main theme of the app is by searching "<application" and then after seeing that UnityThemeSelector is the default theme, I headed over to styles.xml and added this property to UnityThemeSelector:
Code:
android:windowSwipeToDismiss
After all that it fortunately worked. Here's the apk in case anyone doesn't wanna bother with all that.

hyperterminal said:
Hi, I had the same issue as you. I tried installing Subway Surfers by sideloading it through ADB and although it worked surprisingly smooth, the game would exit whenever I'd swipe right.
After a few minutes on Google, I came across Android Wear platform's official documentation about swipe to exit here and then I decompiled the apk using Apktool, headed over to manifest to check what the main theme of the app is by searching "<application" and then after seeing that UnityThemeSelector is the default theme, I headed over to styles.xml and added this property to UnityThemeSelector:
Code:
android:windowSwipeToDismiss
After all that it fortunately worked. Here's the apk in case anyone doesn't wanna bother with all that.
Click to expand...
Click to collapse
ah, thank you!

hyperterminal said:
Hi, I had the same issue as you. I tried installing Subway Surfers by sideloading it through ADB and although it worked surprisingly smooth, the game would exit whenever I'd swipe right.
After a few minutes on Google, I came across Android Wear platform's official documentation about swipe to exit here and then I decompiled the apk using Apktool, headed over to manifest to check what the main theme of the app is by searching "<application" and then after seeing that UnityThemeSelector is the default theme, I headed over to styles.xml and added this property to UnityThemeSelector:
Code:
android:windowSwipeToDismiss
After all that it fortunately worked. Here's the apk in case anyone doesn't wanna bother with all that.
Click to expand...
Click to collapse
Hey, could you make a tutorial on how to do this?

Related

Blur-like animation editing... toast and lockscreen animations

Hey,
after playing around with the XMLs that were used to create the blur animations on-source, i finally understood how the whole thing works if anyone wants a how-to, i'll of course point you in the right direction
for now, it only changes the lockscreen animation to a slide out to the upper part of the screen... but in theory it's possible to do anything! hope someone will pick this up and do some modding here...
i tried to make a metamorph update file of the whole thing... not sure if i did it right, just try it out.... you will need this script in order to install the animation...:
http://forum.xda-developers.com/showthread.php?t=574556
there you go... the MM zip file...
http://www.4shared.com/file/145166490/a250ff42/Animation.html
http://www.4shared.com/file/145172923/62775a87/Animation_toast.html
edited toat animation makes the toasts fly in from the right, and they fade out while moving to the left
i tried to take some caps for you
{
"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"
}
toast:
hard to see, but you can see the frameskip in that pic...
more to come
enjoy
the_fish said:
if anyone wants a how-to, i'll of course point you in the right direction
Click to expand...
Click to collapse
point away
xidominicanoix said:
point away
Click to expand...
Click to collapse
alright
first of all, set up a repo on your machine (http://source.android.com/download)
(you don't need to build the whole thing, do make framework)
for the editing, ./frameworks/base/core/res/res/anim/*.xml is the way to go...
you can seek for commands like fromAlpha and toAlpha in other xmls (that's the way i discovered them lol) and insert them properly... which means you mustnt insert it after the </set> for example... gedit is a good way to see what you did wrong... then, after running make framework, go extract the res/anim/*.xml files from the framework-res.apk which is in the path the compiler "tells" you, and insert them into the cm-mod / whatever framework-res.apk, adb push it to /system/framework and reboot
not that detailed but basically that's what i was doing btw: currently editing chargin animation (adding fade stuff) ohh forgot to say, the drawables folder also has those xmls
xidominicanoix said:
point away
Click to expand...
Click to collapse
This
edit: sorry. I see you already did this, Thnx!
i just realized you can basically make anything animated! for example if signal changes, you can make it fade in nicely! just add android:fromAlpha="1.0" android:toAlpha="0.0" behind android:duration="animationtime" at those anims...
in theory... didn't try out yet.
to find the code of the blur animations in order to edit it, you can basically use a hex editor, it'll show you the basic parts of the code...

[TOOL] Android Master v0.2.5

I take no credit for this, I'm just spreading the love.
Credit goes to nightshack0 of XDA
New major release! (ANDROID MASTER v0.2)
{
"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"
}
Changes:
++Completely remade program
++Completely remade and reworked better UI (User interface) for the program
++Website launched
++Checks for updates automatically and can download and install the new version
++.apk file Association, Double click an .apk anywhere and Android Master's apk tool will open to install any apk really fast and easy.
++Batch APK installer, place a lot of .apk's in a folder and install all of them with just a click
++Reworked how the program starts
++Reworked how the program handles the ADB Server
++Now you can kill or start the server double clicking the "ON"/"off" label
++Clicking the android now will only expand the window instead of starting the server or killing it
++Now checks if ADB Server is started, and disables all buttons if the ADB Server is turned off, or if there's no device connected to avoid errors.
++Added "Open file" on the Zip flasher
++Reorganized the tabs and removed unnecessary ones to merge some.
++Added Menu bar for using the program without expanding the window.
++Added links to the website, to XDA-Developers and the Donate button.
++Now uses an installer to make things easier and to associate the .apk files
++New name and new logo.
Hope you like it, he spent a week doing all of that. (He remade the program completely)
PLEASE DONATE TO HIM AND SUGGEST SOME NEW THINGS YOU WANT ADDED!!
Website: http://androidmaster.weebly.com
Where are you supposed to find the IP of the device?
Just for Windows I see but that's cool I'm going to put it on my girls computer to helP her do some stuff more easily. I wish I knew how to break down components that make up .exe's and recompile them for LINUX.that is along the lines of the types of fun stuff I'm striving to learn in my LINUX journey.
Sent from my DROID BIONIC using my gear SHIFT3R and xda premium
abuttino said:
Where are you supposed to find the IP of the device?
Click to expand...
Click to collapse
I'd like to know what ip you want too... because it definitely didn't want the LAN address of my phone.
The UI is deceptive. You don't need to click the connect to button (and I'm not sure it even works properly). Just click on the Android (like you would when you setup the phone) and it will extend the UI and open up the options. They work and they are pretty useful. I think if the guy wrote up a nice little how to I'd probably kick him a few bucks.
!!!
This is actually a phenomenal package, and works great w/ the Bionic. Thank you for posting this, didn't expect this in the dev section and glad I found it.

[APP]Black and white themed mms.apk [Updated 12/8/11]

Ok this is basically finished. Just needs a few more tweaks.
Make sure you back up your default mms.apk before you use this one.
Themed version:
http://db.tt/OMBgFaLa
Stock version:
http://db.tt/woexlR8C
Zip to install Themed mms.apk:
http://db.tt/e7rp4jew
Zip to install Stock mms.apk:
http://db.tt/vJCPKCkb
Installation:
Download
Use a root explorer to place into /system/app
or
Flash the zip file
Reboot
Profit
PS: On certain themes this may not look great... Meezy installed and sent me these screenshots:
http://dl.dropbox.com/u/7129559/screenies/snap20111208_200120.png
http://dl.dropbox.com/u/7129559/screenies/snap20111208_200152.png
If you like this please hit the thanks button
screen shot?
Haxcid said:
screen shot?
Click to expand...
Click to collapse
I don't have that option I'm sorry Maybe someone who wants to install it can take some screen shots and post them for me.
{
"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"
}
idk if the apk on that link works anymore.....I've been working on this a lot today and I got it to the point where it just FCs when you try to open a thread. It's one of the xml files I can either color the text inside the bubbles or put a background on the main page of the app.
pendo said:
Cool...you made it sound a lot easier than when I did this a couple months ago. (I didn't use ImageMagick).
One word of caution, if you are just adjusting hue you'll be ok, but if you inrease brightness or maybe decrease opaticy...you will throw an aapt compiling error. The ticks that mark the stretchable areas have to be either black, or nothing. No imtermediates. What I do is when I'm working with an image like that, I'll just select everything except the 1 pixel border, then I can edit however inside without messing up the 9patch ticks.
Click to expand...
Click to collapse
I just found this. Maybe it will help, maybe not. I tried to do stuff with those damn .9.png files, but I've had no luck.
From this threadhttp://forum.xda-developers.com/showthread.php?t=883392
nmsamsel said:
I just found this. Maybe it will help, maybe not. I tried to do stuff with those damn .9.png files, but I've had no luck.
From this threadhttp://forum.xda-developers.com/showthread.php?t=883392
Click to expand...
Click to collapse
Where did that quote come from? lol
Also, I know what is causing the Force closes I just don't understand why it is causing them. I can either make the back ground in the main part of the app black or change the text color inside the threads. I'm going to work with it tonight and prolly just leave the text color black inside the thread and come up with a different color for the bubbles
Okay. The apk on that link is working. There are 2 things I want to change but when I change them it FC's. btw one of them mt can change just fine.... I will get some screenshots and post them here for your viewing pleasure

[Q] Google Apps 'Syncing'

Hi All,
Got rooted and Market installed and working the only thing I'm missing its seems is some of the google services, namely Gmail, Gmusic and Chrome
Gmail - installs, says sync is not enabled and crashes
Gmusic - installs and works perfectly with local music, knows about my google account, but will not show any of he music in the cloud
Chrome - installs (sideload) and works fine but will not sync up and show other browsers tabs etc.
Is there some google 'sync' service I'm missing?
Stuff I've installed for google is;
GoogleLoginService.apk
GoogleServicesFramework.apk
Many thanks
From what I understand you have to install the apps again after the framework if you didn't do it in that order.
Geekybiker said:
From what I understand you have to install the apps again after the framework if you didn't do it in that order.
Click to expand...
Click to collapse
Thanks, I tried that last night - same thing.
Are there different versions of the framework floating about I wonder?
Has no one else seen this issue?
bryanchapman9999 said:
Thanks, I tried that last night - same thing.
Are there different versions of the framework floating about I wonder?
Has no one else seen this issue?
Click to expand...
Click to collapse
My gmail crashes every time i try to start it. I have no clue what is wrong with it.
jmandawg said:
My gmail crashes every time i try to start it. I have no clue what is wrong with it.
Click to expand...
Click to collapse
Did you install the framework?
Geekybiker said:
Did you install the framework?
Click to expand...
Click to collapse
Yeah, and the GoogleLoginService too. I put them all into the /system/app. Unfortunately i ended up returning it to amazon today. The price point on the device is good. But it seemed very unpolished. Bluetooth headset would disconnect after 15 minutes of watching a movie, but stayed connected fine when listening to music. Web browsing was very slow. If i scrolled the page It would just be white and i'd have to wait 1-2 seconds for silk to render the page. Also my unit had some very bad light bleed, see image below. Not to mention i could never find the buttons (power/volume) I think i'm going to pay a little more and get a nexus, it's probably worth the extra money.
{
"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"
}

[Q] full screen razr I

hi guys,
I´ve been seeing photos in the "post homescreen thread" where the Razr I is in full screen all the time and the home, back button arent there and just show when needed (im imagining works with gestures).
Tried looking for that with search and not even google got me a hint of that (maybe I just suck with searchs), could someone point me in the right direction?
thx
Search for FullScreenToggle V2 and LMT and be happy!! hope it helps!
albertwesquer said:
Search for FullScreenToggle V2 and LMT and be happy!! hope it helps!
Click to expand...
Click to collapse
Thank you very much good sir
Sent from Holy Terra
build.prop edit is much better. It will keep the status bar.
The other methods are nasty hacks that run a permanent service which keeps killing the system ui process. This also removes the status bar.
AW: [Q] full screen razr I
How can i do This?
---------- Post added at 12:16 PM ---------- Previous post was at 12:11 PM ----------
Hello...
How can i change the complete system font of my razr i?
My ri is unlocked, root and JB.
arman68 said:
build.prop edit is much better. It will keep the status bar.
The other methods are nasty hacks that run a permanent service which keeps killing the system ui process. This also removes the status bar.
Click to expand...
Click to collapse
which things i have to change in the build.prop?
@teheda:
there are two ways, one using apps like full screen toggle and LMT or the build.prop edit, as arman said i will try the build.prop
about the font i have no idea
anyone knows which line i have to edit?
thx
The build.prop edit works great. But, make sure you install lmt or similar before you do this;
Download a build.prop editor from market, I use this
Create a new entry and enter this information: qemu.hw.mainkeys
Then set the value to "1"
Reboot, you got fullscreen, now get used to using your lmt or whatever you prefer.
Just to confirm, make sure you have installed an alternative to your newly hidden buttons r you won't be able to control your phone properly!
Hi Guys! please, there`s a way to install Pie Control without root on jelly bean?
like this, with clock and everything else?
{
"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"
}

Categories

Resources