[Q] Help changing how an app works? - Android Q&A, Help & Troubleshooting

Hello
would it be hard to change the app Manga rock so that whenever you tap on the left or right side of the screen that it doesn't change the page?

wj0t said:
Hello
would it be hard to change the app Manga rock so that whenever you tap on the left or right side of the screen that it doesn't change the page?
Click to expand...
Click to collapse
The best way I can think of doing this would be an Xposed module. You need to decompile the APK with apktool and/or dex2jar and then find out what code changes the pages and then disable via (most likely) a method hook. Obviously you'll need to know how to develop with the Android SDK for this.

Related

Launcher editing please?

We need to know how to edit the app short cuts that appear on the home screen. I use apktool. Is there a specific way to edit what icons/short cuts appear on the home screen and their position? Any help will be greatly appreciated.
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
jbirdvegas said:
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
Click to expand...
Click to collapse
Why do you keep posting this like we have ESP and know what you mean?
D
Greenteam! said:
We need to know how to edit the app short cuts that appear on the home screen. I use apktool. Is there a specific way to edit what icons/short cuts appear on the home screen and their position? Any help will be greatly appreciated.
Click to expand...
Click to collapse
Default screen layout may be adjusted when building a ROM by editing the default.xml file in /system/customize/MNS/ and /system/customize/CID/.
Here you configure all of the first boot settings:
What is on each screeen, apps and widgets.
Default browser home page.
Shortcuts in the browser.
News Reader Settings.
Mail app settings.
Boot and shutdown sounds and animations location.
Many, many things are here. Read it carefully and tweak slowly till it makes sense.
D
jbirdvegas said:
~/android/system/vendor/cyanogen/overlay/common/packages/apps/ADWLauncher/res/xml/default_workspace.xml
Click to expand...
Click to collapse
ah, that's the setting in the github. Makes sense now. By changing the setting in the github, after the rom is compiled it will have the changed setting in it. Thanks
dsb9938 said:
Default screen layout may be adjusted when building a ROM by editing the default.xml file in /system/customize/MNS/ and /system/customize/CID/.
Here you configure all of the first boot settings:
What is on each screeen, apps and widgets.
Default browser home page.
Shortcuts in the browser.
News Reader Settings.
Mail app settings.
Boot and shutdown sounds and animations location.
Many, many things are here. Read it carefully and tweak slowly till it makes sense.
D
Click to expand...
Click to collapse
Thanks. Will have to give it a shot!
dsb9938 said:
Why do you keep posting this like we have ESP and know what you mean?
D
Click to expand...
Click to collapse
Sorry for not explaining
default_workspace.xml controls what appears when adw is loaded for the first time. I'm not sure how to do this after compiling but if you want to make changes before look at that file. It's in CyanogenMod's source code.
jbirdvegas said:
Sorry for not explaining
default_workspace.xml controls what appears when adw is loaded for the first time. I'm not sure how to do this after compiling but if you want to make changes before look at that file. It's in CyanogenMod's source code.
Click to expand...
Click to collapse
LOL, okay. I don't run CM, I'm, working on a Thunderbolt.
I'm editing native Rosie, and that ***** ain't forgiving.
Thanks anyway though.
D

[Q] Getting rid of TW Screen Capture...

At the very least I found the png for the screen cap button that I can blank out, but I'd really love to remove the functionality that's running in the background.
Is the ScreenCaptureService.apk the only related file? Anyone try removing this?
(forum won't let me post under development, so I'm posting here)
gseseske said:
At the very least I found the png for the screen cap button that I can blank out, but I'd really love to remove the functionality that's running in the background.
Is the ScreenCaptureService.apk the only related file? Anyone try removing this?
(forum won't let me post under development, so I'm posting here)
Click to expand...
Click to collapse
Making the PNG transparent will look like the button is gone, but it will still be there when you tap that area. Removing screencaptureservice.apk will cause fcs when you tap the screenshot button, for me anyway.
Sent from my Galaxy Tab 10.1 via Tapatalk
Well I just removed the apk, and I'm not getting any visible fcs when I press it. The button still clicks, but nothing happens.
I guess the next question is...where do I look to try removing the actual button? Presumably a layout file somewere?
(If it isn't already apparent, I'm new at this. Experienced developer, but new to android.)
gseseske said:
Well I just removed the apk, and I'm not getting any visible fcs when I press it. The button still clicks, but nothing happens.
I guess the next question is...where do I look to try removing the actual button? Presumably a layout file somewere?
(If it isn't already apparent, I'm new at this. Experienced developer, but new to android.)
Click to expand...
Click to collapse
A a starting point: decompile the systemui.apk, check the smali/com/android/statusbar/tablet: MiniModeAppsPanel.smali et al.
No sources so its reverse engineering task.
PhantomHacker said:
Making the PNG transparent will look like the button is gone, but it will still be there when you tap that area. Removing screencaptureservice.apk will cause fcs when you tap the screenshot button, for me anyway.
Sent from my Galaxy Tab 10.1 via Tapatalk
Click to expand...
Click to collapse
Opps, mispost, sorry.
DocRambone said:
A a starting point: decompile the systemui.apk, check the smali/com/android/statusbar/tablet: MiniModeAppsPanel.smali et al.
No sources so its reverse engineering task.
Click to expand...
Click to collapse
Thanks for the direction. Found the code in smali\com\android\systemui\statusbar\tablet, but I think I'm in over my head in these files for the amount of time I have to commit to this. I'll mess with it a bit later today and see where I end up.
gseseske said:
Thanks for the direction. Found the code in smali\com\android\systemui\statusbar\tablet, but I think I'm in over my head in these files for the amount of time I have to commit to this. I'll mess with it a bit later today and see where I end up.
Click to expand...
Click to collapse
The screen capture references I was looking for are in TabletStatusBar.smali. The easiest thing to do would be to just add a 'return' at the top of the onclick handler for the button (in conjunction with blanking out the png)...but obviously the button would still be there. I'm think getting rid of it cleanly would be over my head, but if anyone else has any interest in picking up from here please post with your findings.
gseseske said:
The screen capture references I was looking for are in TabletStatusBar.smali. The easiest thing to do would be to just add a 'return' at the top of the onclick handler for the button (in conjunction with blanking out the png)...but obviously the button would still be there. I'm think getting rid of it cleanly would be over my head, but if anyone else has any interest in picking up from here please post with your findings.
Click to expand...
Click to collapse
hmm, i try it.
Getting errors in compiling after i try to change the smali
Why remove it? Lets remap it to a custom activity... The same can be done with the TW mini-app bar. Those can all be custom activities...
If you really want to remove the functionality, the quick and dirty would be to simply delete the ScreenCaptureService.apk from your system apps. Then make your icon transparent. Removing the blank space between the multitasking and menu (within apps) buttons may require a tiny bit of smali and/or XML layout tweaks.

[Q] Hide App From launcher, and still have the option to start it.

ok, im trying to hide this app, from the app drawer by editing the manifest.xml file, and i did it, to be specific i just remove this line from manifest.xml "<category android:name="android.intent.category.LAUNCHER" />" but i want to hide it, and still have the option to open it...
i tried to start the application using titanium backup, but it doesnt give the option to open app...
im trying to do it by editing manifest.xml. i know there apps to hide anothers app..
if you have any idea of how to, ill appreciate it...
(im not an expert on this, and i dont even know if im asking in the right forum)
Hey, did you come across a solution? I'm facing exactly the same problem right now: The App's gone from the drawer but no longer executable by no means.
Sorry for bumping this old thread, but I endured reading about 10 pages of search results without success.
Thanks in advance!
You can use my app "App Quarantine" to do the job. You can disable the app in question (so it's no longer in the application drawer) and re-enable it as you want. Therefore you could use the home screen widget for quickly launching the app.
ramdroid77 said:
You can use my app "App Quarantine" to do the job. You can disable the app in question (so it's no longer in the application drawer) and re-enable it as you want. Therefore you could use the home screen widget for quickly launching the app.
Click to expand...
Click to collapse
Hey, thanks for the suggestion. Unfortunately I'm searching for a solution to get along without any 3rd party app.
Which means, I want the app to be "set invisible" before even installing it on the phone. I'd really like to know, which file of the apk has to be edited in which way to achieve this.
It'd be totally fine if it simply didn''t appear on the drawer.
Any other ideas?
I have an idea.
I have replaced the icons with a completely transparent .png image and recompiled the apk.
Remember you should not change the file name of the original icon, just replace the content.
I have used apk editor pro for this work.
The app will be in the launcher or app drawer but it will remain invisible.
You should also replace the app name with 3 to 5 spacebars.You can remember the position of the app in the app drawer.
Everyone will see you tapped on a empty space and a app started
I have tested this.
So you can be sure.
One more thing
If you see any folder like mipmap_anydpi_xxx in /res you should delete it
4RCH1 H4CK3R said:
I have an idea.
I have replaced the icons with a completely transparent .png image and recompiled the apk.
Remember you should not change the file name of the original icon, just replace the content.
I have used apk editor pro for this work.
The app will be in the launcher or app drawer but it will remain invisible.
You should also replace the app name with 3 to 5 spacebars.You can remember the position of the app in the app drawer.
Everyone will see you tapped on a empty space and a app started
Click to expand...
Click to collapse
4RCH1 H4CK3R said:
I have tested this.
So you can be sure.
One more thing
If you see any folder like mipmap_anydpi_xxx in /res you should delete it
Click to expand...
Click to collapse
Thread has been moved to the proper location, even though it is a 9-year-old thread...
I can't understand.
Clark Joseph Kent said:
Thread has been moved to the proper location, even though it is a 9-year-old thread...
Click to expand...
Click to collapse
So where should I post the reply?

[Solved] Screenshot Button Help

I have an Apex AP-GS918 (Nobis NB09) tablet with rooted stock Jellybean Rom. There is an annoying screenshot button on the bottom bar next to the volume button that I keep pressing accidentally because it is in a bad spot. I wish to disable it or remove it completely. I have searched the forums but all the answers seem to be for Samsung devices. They say to change the quick launch in the settings which I do not have. And they say to remove or disable the system app that controls it, they have different names for the app like screenshotcapture.apk and such, but there is no system app with that or similar name.
If anyone knows a way to be rid of this annoyance, any help would be greatly appreciated.
Thanks in advance.
UPDATE EDIT...
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I was unable to find an app to disable, and you were correct that it was part of SystemUI.apk. But I found out how to remove it from the bar. I am unable to post where I found the method because I am not allowed to post outside links yet, So I kind of wrote a tutorial (if you can call it that).
I decompiled my SystemUI.apk using Android Multitool on my PC. I edited \res\layout\system_bar.xml.
The info about the buttons are there. I found the line labeled
Code:
@id/screenshot
and changed the following code after it
Code:
android:layout_width="@dimen/navigation_menu_key_width"
to
Code:
android:layout_width="0.0dip"
which makes the screenshot button 0 pixels wide, meaning not there anymore.
Then I recompiled it, opened the new apk using 7zip and copied the edited xml from it to the original apk to prevent signature failure (after making another backup of it of course), used ADB to push it, permission it, and reboot it. After that I was free of that %$#@ button. I now have to use a third party screenshot app from the play store, but it doesn't have a constant button that leaves me with 50 accidental screenshots a day.
It also works to remove the volume buttons, which are pointless when you have the hardware buttons. Those lines are labeled
Code:
@id/sub
@id/add
(on my device anyway). It does NOT work for the 3 dot menu button, but that one isn't so bad to have there.
Take that you cheap Chinese tablet.
Bump
lovestospooge said:
Bump
Click to expand...
Click to collapse
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
UltraWelfare said:
This feature is included in SystemUI.apk (I think - on some phones) and if you delete it you will have no UI.So don't do it.
Find an app on google play that disables it(I don't know how you will search it :silly
Click to expand...
Click to collapse
I got it to go away. The method is in the original post. Thanks for the info that got me going in the right direction.

How to edit stock smartwatch faces on Amazfit Pace ?

Hello,
I would like to know if it's possible to edit a stock smartwatch face ? I mean, i would like to modify the "Jogging track" face that come by default, and add a battery information on it.
Is it possible ?
Thanks for your help
Those are not wfz faces, they are in an APK.
So you have to get that APK from the watch ( or the corresponding ROM ), decompile it, change the code and recompile it.
fzelle said:
So you have to get that APK from the watch ( or the corresponding ROM ), decompile it, change the code and recompile it.
Click to expand...
Click to collapse
+ deodex it...
yannssolo said:
Hello,
I would like to know if it's possible to edit a stock smartwatch face ? I mean, i would like to modify the "Jogging track" face that come by default, and add a battery information on it.
Is it possible ?
Thanks for your help
Click to expand...
Click to collapse
You know that you can modify some of the stock faces?
Yes you can but not selecting the watch face from the Amazfit app but directly from the watch.
Swipe left-right trough the face collection without selecting one, you will see that some of them have a SETTINGS button down push it and you will have to swipe up/down to customize and swipe left right to choose what you customize.
The most customizing face is Eternal Moment.
Sent from my HTC 10 using Tapatalk
Edit.
For some you can choose a photo as background
Sent from my HTC 10 using Tapatalk

Categories

Resources