[themed] [twrp 2.8.7.0][yureka] - YU Yureka Android Development

Hello friends, this is my first contribution to Android Community! yet not an expert here! Although I myself cannot say that I made it!<br />Its just patching stuff from there and here! Its a bit themed and easier look! with a custom Splash Screen!<br /><br />
- <br /> *
Spoiler
<br /> * Recovery gone App: Designed to mimic the look and feel of an Android app.<br /> * Customisable UI: 15 different accent colors, center clock option, different navbar button layouts...<br /> * Added functionality: ability to flash image files (recovery, radio, boot), ability to change the recovery splash screen, bookmark function for file lists, Aroma File Manager support, theme changer...<br />
<br /><br /><br />Now here goes an interesting part!<br /><br /><br />The splash screen which currently is THIS:<br /><br />
-
{
"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"
}
<br />
<br />Now replaced to my liking which is THIS:<br /><br /><br /><br />
<br /><br />Since this is a materialistic theme.<br /><br />Yet, I`m a noob here! so why not share my way of how I changed the Splash Screen:<br /><br /><br />
Spoiler
In order to change the splash, one must unpack the recovery image, replace the splash and then repack the image.<br />This can be done using the Android Image Kitchen by @osm0sis, which is available for Windows, Linux and Android (mobile AIK).<br />The Materialised theme provides a front end for using the mobile AIK.<br /><br />General prerequisites:<br /><br /> 1. Make sure the splash screen you want to use is in .jpg format and matches your screen resolution (e.g. 720x1280).THIS IS MUST.<br /><br /> 2. Download a stock TWRP recovery image for your device.<br /><br />Change the splash while in recovery:<br /><br /> 3. Download the AIK-Mobile-Installer.<br /> 4. Flash the AIK zip in recovery.<br />This will install the required scripts and binaries to \data\local\AIK-mobile.<br /> 5. In Materialised settings, select <i>CHANGE SPLASH</i>.<br /> 6. Select the stock TWRP .img file.<br /> 7. Select the .jpg file you want to use as splash screen.<br /> 8. Set options:<br />
- <br /> 9. If <i>Automatically install...</i> is unchecked, the repack will only be created and saved to the same folder as the stock TWRP image.<br />If checked, the repacked recovery will also be installed on your device.<br /> 10. If <i>Include current theme...</i> is checked, the theme in its current state (accent color) will be included in the repack, replacing the stock TWRP ui.<br />The ui.zip will automatically be deleted from /sdcard/TWRP/theme, as it is no longer required.<br />Be aware that changing the accent color won't be possible with an integrated theme.<br />In general, I'd recommend to not include the theme into the repack. By keeping the ui.zip, there's always the stock ui as a fallback option in case there's something wrong with the theme.<br /><br />
- Start repacking/flashing with a swipe.<br />During the process, <i>Repacking in progress...</i> will be shown.<br />
<br />Change the splash on a Windows PC:<br /><br /> 11. Download and unpack Android Image Kitchen Win32.<br /> 12. Copy the stock TWRP .img file to the Image Kitchen folder.<br /> 13. In windows explorer, drag & drop the recovery image on the "unpackimg.bat".<br />Unpacking will create two new folders (ramdisk and split_image).<br /> 14. Rename the splash of your choice to "curtain.jpg" and drop it into /ramdisk/twres/images.<br /> 15. Hit "repackimg.bat".<br />This will create a "image-new.img", which you can then flash away using your preferred method.<br /><br />
<br />Personally I recommend using AIK method!<br />Now Thanking Time (Without you guys it was not possible, Although i did not do much of a thing).<br /><br />
Spoiler
@AudioGod For inspiration.<br />@RajGopi For integration help<br />@Bishnu Prasad for sharing stuff<br />@z31s1g from XDA for This theme.<br />@vishal_android freak For TWRP for Yureka<br />and all my inspirators! PM me if i missed any!<br />
<br /><br />Flash it simply via FLASHIFY !<br /><br />
Spoiler
https://mega.nz/#!fl9WRL6b!uGvcxRAt0IqtjowSzXN1Idu1JGaPbx1nYTXGZ3TBHDA
<br /><br />BUGS: <br />None<br /><br />
NOOBS UNITED!!
Click to expand...
Click to collapse
<br /><br /><br />If theme not changed!<br />Okay so for that! Simply place UI.zip into TWRP<" theme"<< place ui.zip here!<br />https://drive.google.com/file/d/0B729Te9ZNHzwZVBmNmUtVFdNVGs/view<br /><br /><br />DARK THEME: <br />RR+dark.img - https://drive.google.com/file/d/0B729Te9ZNHzwT09lVmxYT19sUXM/view?usp=docslist_api

Related

Change Carrier Name in AOSP roms

How to create a custom eri.xml files to change the carrier name in AOSP roms.
Instructions lower are for making your own.
{
"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"
}
(((Prerequisites)))
1. Android Device (doesn't have to necessarily be a phone)
2. Root
3. Working adb connection to phone
4. 7zip
5. HxD or another hex editor
(((How To)))
1. Connect your phone and mount your it with adb.
2. use adb to pull the framework-res.apk file from the phone
3. open the framework-res.apk file with 7zip
4. go into the res/xml folder
5. pull eri.xml from the zip file and open with HxD or your favorite hex editor
6. scroll down until you find the provider name (usually sprint)
7. Change the name to whatever you want. WARNING! Depending on your phone you can have as little as 9 characters available all the way to 16. It depends on the phone. I have found that the Hero CDMA only has 9.
8. Save eri.xml, and copy it back into the zip file via drag and drop into 7zip.
9. Using adb, push the file back onto the phone. You may have to reset it to get it to show up.
I used 7zip and deleted the eri.xml file from framework-res.apk. I had found an eri.xml file from another ROM that is viewable in IE; after editing the file I pushed it to /data/. works fine and you don't have to mess with hex editors.
Tried it with my Hero and some of my custom Android 2.2 Froyo,but
don`t find provider name at "eri.xml"
Only this:
VersionNumber...NumberOfEriEntries...EriFileType...EriFile...1357...12...1...Id...CallPromptText...CallPromptId...0...CallPromptId0...CallPromptId1...2...CallPromptId2...RoamingIndicator...IconIndex...IconMode...EriText...AlertId...EriInfo...64...T-CDMA 64...65...T-CDMA 65...66...T-CDMA Ext 66...67...T-CDMA Ext 67...68...T-CDMA Roam 68...69...T-CDMA Ext 69...70...T-CDMA Roam 70...71...T-CDMA Ext 71...72...T-CDMA Ext 72...73...T-CDMA Roam 73...74...T-CDMA Ext 74...75...T-CDMA Roam 75.......`......
Click to expand...
Click to collapse
If you don't see it then it may just not have been set on build time. Did you build it yourself?
Either way it should be at this address in the hex edior:
Line: 000002D0
You have the column space from 02 to 0A to edit.
However I would side with TheDanimal on this. It would be easier to just find the xml that you can open in a text editor and then push to /data but I have never done this. Hey TheDanimal! does there need to be directory structure there like in metamorph?!
here is the contents of my eri.xml:
- <EriFile VersionNumber="1357" NumberOfEriEntries="1" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="128" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
</EriFile>
I guess deleting it from framework-res.apk makes it look elsewhere for the file. I posted the eri.xml I use. I had to zip it because it won't let me upload a .xml
@TheDanimal - Awesome man! And this also lifts the 9char restriction! 10chars+ for u!
Now if I could just find out where to change the word 'Phone' for the center rosie button...
Hm,deleted "eri.xml" from framework and pushed framework back to
phone,then used attached "eri.xml" and pushed to /data/ but nothing.
Only deleting "eri.xml" the same,still T-Mobile there
You may have to use a hex editor then. I deleted the eri.xml out of framework before i zipped and signed my ROM. I'm also using an AOSP 2.1 build.
That works fine for a sprint phone. Any idea where Verizon is hiding the carrier name? Its not in eri.xml, I've looked.
sent by an Epic4g through the cosmos
@raiderep - AOSP is not carrier specific. Actually the carrier name is something of just a stickit really. I am on cellular south but it will say sprint by default cause thats what the builder put as the carrier name. Maybe the version your running is modified to have it shown somewhere else?
This method will work on European Milestone?
yurasts said:
This method will work on European Milestone?
Click to expand...
Click to collapse
Damn dude, sorry so late on posting, but yeah I think so.... I would definitely do a nandroid first before trying it
Followed ur method to a "T". reboot and its black. after unlocking the phone it just comes up with a bunch of forcloses.
May be something odd on that specific phone... Just to ask (cause I am sorry I didn't earlier) but are you runnin aosp or sense rom? I have never tried it with a sense rom so cannot confirm that it works....
This method doesnt work on milestone =[
hexskrew said:
May be something odd on that specific phone... Just to ask (cause I am sorry I didn't earlier) but are you runnin aosp or sense rom? I have never tried it with a sense rom so cannot confirm that it works....
Click to expand...
Click to collapse
Aosp 0992
10 Char
just edit /system/etc/spn-conf.xml.Change the name to whatever u want and adb shell stop then adb shell start
This method i guess will not work on GSM Phone but only CDMA Phones

How to switch 2G<>3G

I try to use 2G-3G OnOff and power control plus to switch 2G and 3G.
But it not work.
How I switch 2G and 3G?
Go to http://forum.xda-developers.com/showthread.php?t=1106584
Sent from my Motorola Olympus using XDA Premium App.
This doesn't seem to work on all phones..
See detailed discussion here:
http://forum.xda-developers.com/showthread.php?p=14289999#post14289999
scoob8000 said:
This doesn't seem to work on all phones..
See detailed discussion here:
http://forum.xda-developers.com/showthread.php?p=14289999#post14289999
Click to expand...
Click to collapse
It works on most phones, it just reverts to the standard (3g) after longer inactivity / reboot. It's an application from the market, not a mod.
Zee buttons...zey do nuh-sing!!!
(at least on my phone anyway)
{
"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"
}
'Select network' (Settings -> Wireless & network -> Mobile network) 3G/2G"
Root Explorer
/data/data/com.android.phone/shared_prefs/ _has_set_default_values.xml > "network_select_menu" > "false" > "true"
/data/data/com.android.phone/shared_prefs/ com.android.phone_preferenses.xml > "network_select_menu" > "false" > "true"
reboot
No comment..
vertyogo said:
'Select network' (Settings -> Wireless & network -> Mobile network) 3G/2G"
Root Explorer
/data/data/com.android.phone/shared_prefs/ _has_set_default_values.xml > "network_select_menu" > "false" > "true"
/data/data/com.android.phone/shared_prefs/ com.android.phone_preferenses.xml > "network_select_menu" > "false" > "true"
reboot
Click to expand...
Click to collapse
tried, and didn't get this menu..
XRange said:
So you get dialog box then select say 2g only. But it doesn't change to Edge..
Wonder what gives?
Sent from my MB860 using Tapatalk
Click to expand...
Click to collapse
I had this issue as well, the selector appears but doesn't swap between 2g/3g. According to the original thread I saw this solution in you're supposed to do a factory reset after editing the file. I did this and it worked, you may have to redo APNs if you do this (at least I had to).
-Z
to be able see the menu 3g/2g do just like he said
it's work for me.
****
Originally Posted by crnkoj
you can unlock that option, go to system\etc\motorola\com.android.phone
open the defaults.xml and change the
<boolean value="false" name="network_select_menu"/> from false to true.
reboot device
you should be able to manually change 2/3g than. I have it working on my att atrix with gingerblur 3.1, however im not on an att network, it still should work for you tho
THANK YOU THANK YOU THANK YOU!!!!
Had to change in a few other places as well. the data/data/phone.xxx.whatever it was also. Changed all three files in there to say tru to the value but they kept changing back. Fianlly changed all three files in there to say true and DELETED THE BACKUP FILES created and it worked. Thanx again for finding this.
****
No comment..
No comment..
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="network_setting_ens" value="true" />
<boolean name="button_sim_query" value="true" />
<boolean name="data_roaming_menu" value="true" />
<boolean name="network_select_menu" value="true" />
<boolean name="button_hac_key" value="true" />
<string name="button_vq_flu_key">1</string>
<string name="button_voicemail_provider_key"></string>
<boolean name="dns_server_check_disabled_key" value="true" />
</map>
vertyogo: thanks man... Wonder whats correct permissions for this file ?
permissions rw-rw----
vertyogo said:
permissions rw-rw----
Click to expand...
Click to collapse
Ok thanks once again..
Still I got dialog to select 2g ,,
But it still doesn't stick...
.
In atrix I can't use application/wiget to switch 2G<>3G right?
No comment..
No comment...
Full proven method for Atrix can be found here http://forum.xda-developers.com/showpost.php?p=14494826&postcount=24

Help me removing text on lockscreen

The image below shows some text below the lockscreen slider. How do i remove it? What should i edit JARs or APKs ??? Please Help
{
"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"
}
If you have custom rom, you should ask developer of this rom.
this might be in lockscreen apk. decompile it using apktool.
metalrawk said:
this might be in lockscreen apk. decompile it using apktool.
Click to expand...
Click to collapse
There is no such thing as lockscreen apk..
“It is better to keep your mouth shut and appear stupid than to open it and remove all doubt.” - Mark Twain.
It is in framework-res.apk.. decompile it, in res/values/strings.xml, on the last two lines you will see a lines with
Code:
[B]<string name="text_lock_left">Sony Ericsson</string>[/B]
Code:
[B]<string name="text_lock_right">XperiaMiniPro</string>[/B]
that is where we define what text to show.
In res/layout,
in keyguard_screen_tab_unlock_land.xml <-- line 24 and 25,
the code
Code:
[B]<TextView android:textAppearance="?textAppearanceSmall" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginBottom="4.0dip" android:text="@string/text_lock_left" ...[/B]
and
Code:
[B]<TextView android:textAppearance="?textAppearanceSmall" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:layout_marginBottom="4.0dip" android:text="@string/text_lock_right" ...[/B]
and keyguard_screen_tab_unlock.xml, line 20 and 21, the code just the same,
that is where the strings is being called.
If you want to edit the text, just change in strings.xml.
if you want to remove it, 1 way is to remove from those 3 xml files OR just make the text blank
Code:
<string name="text_lock_left"> </string>
in strings.xml..
either way, you need to:
decompile the apk,
make the changes,
recompile back,
use TheGrammarFreak method if you wish, that 2 xml files in res/layout and also the resources.arsc is the one you need to drag and drop into your existing framework-res.apk
good luck..
feed3 said:
There is no such thing as lockscreen apk..
“It is better to keep your mouth shut and appear stupid than to open it and remove all doubt.” - Mark Twain.
It is in framework-res.apk.. decompile it, in res/values/strings.xml, on the last two lines you will see a lines with
Code:
[B]<string name="text_lock_left">Sony Ericsson</string>[/B]
Code:
[B]<string name="text_lock_right">XperiaMiniPro</string>[/B]
that is where we define what text to show.
In res/layout,
in keyguard_screen_tab_unlock_land.xml <-- line 24 and 25,
the code
Code:
[B]<TextView android:textAppearance="?textAppearanceSmall" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginBottom="4.0dip" android:text="@string/text_lock_left" ...[/B]
and
Code:
[B]<TextView android:textAppearance="?textAppearanceSmall" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:layout_marginBottom="4.0dip" android:text="@string/text_lock_right" ...[/B]
and keyguard_screen_tab_unlock.xml, line 20 and 21, the code just the same,
that is where the strings is being called.
If you want to edit the text, just change in strings.xml.
if you want to remove it, 1 way is to remove from those 3 xml files OR just make the text blank
Code:
<string name="text_lock_left"> </string>
in strings.xml..
either way, you need to:
decompile the apk,
make the changes,
recompile back,
use TheGrammarFreak method if you wish, that 2 xml files in res/layout and also the resources.arsc is the one you need to drag and drop into your existing framework-res.apk
good luck..
Click to expand...
Click to collapse
you need to see forum rules. dont disrespect me or any other member of forum, its clear that i didn't know much about how to remove it but I tried helping him. by lockscreen apk, i meant that apk in whick lockscreen is contained, that might be home.apk too. and there is no cons in trying, i'm not telling him to brick his phone.
and yeah, i'm currently not active in forum but i replied to his thread because i know him personally.
@feed3 , Thank you very much . It worked . This was the kind of reply i was looking for so that i can change the text my self. I did not need to drag drop any resource.arsc . APK tool took care of it
Yaaaayyyy......
metalrawk said:
you need to see forum rules. dont disrespect me or any other member of forum, its clear that i didn't know much about how to remove it but I tried helping him. by lockscreen apk, i meant that apk in whick lockscreen is contained, that might be home.apk too. and there is no cons in trying, i'm not telling him to brick his phone.
and yeah, i'm currently not active in forum but i replied to his thread because i know him personally.
Click to expand...
Click to collapse
Ahhh... No, it is not to disrespect but solely to correcting your statementnd and how do you disrespect my answers in other thread? So, it is totally a fair deal to me. You should read your answers first. Btw, thanks for your kind respond. Will hit thanks for ya, seriously, that is my humble and honest thanks..

[MOD]Owner Profile in About 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"
}
Owner Profile Picture​
Here is a guide @Deckoz2302 and I have kind of refined from a thread here.. This is changed for TW and anyone can use these files/changed them or include them in your ROM. Just hit thanks and give proper credits..
Original thread here and here
Credits to : @Deckoz2302, @b16h22 and @nightwalker
Ok so here we go..
Download the attached zip and extract them..View attachment Owner_Profile_Mod.zip
Then start off by decompiling SecSettings/Setting.apk
go to res/values/ids.xml... add these:
Code:
<item type="id" name="image">false</item>
<item type="id" name="owner">false</item>
<item type="id" name="linear_layout">false</item>
<item type="id" name="profile_pic">false</item>
<item type="id" name="layout1">false</item>
<item type="id" name="change_picture_text">false</item>
<item type="id" name="photo_picker">false</item>
<item type="id" name="linear_layout1">false</item>
<item type="id" name="layout2">false</item>
<item type="id" name="name_field">false</item>
<item type="id" name="name_edit">false</item>
<item type="id" name="profile">false</item>
<item type="id" name="profile_name">false</item>
Next go to res/values/strings.xml.. add these:
Code:
<string name="change_pic">Change profile picture</string>
<string name="profile_pic">SET PROFILE PICTURE</string>
<string name="profile_name">CHANGE PROFILE NAME</string>
Now find the files you extracted and put the com folder in correct directory..
Code:
SecSetting/smali/com/blac
Now put the files from the res folder in correct directories..
Code:
res/layout/lacourb.xml
res/layout/profile_info.xml
res/drawable-hdpi/ (is where the png files go)
res/drawables/done.xml
res/drawable/pick_profile_picture.xml
Now go to where you want to have the option of changing the Profile Picture and Name. I chose to put it in general.xml which you will NOT have..So put it where you want it. Maybe user_settings.xml add this:
Code:
<PreferenceScreen android:title="Owner Profile Picture">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.blac.Profile" />
</PreferenceScreen>
Xml's will vary too depending on which one you pick so you need adjust the tag in the beggining of the line and the end of line depending on what it is calling. Example: <PreferenceScreen></PreferenceScreen> OR <headers></headers
Now go to res/xml/device_info_settings.xml and add:
Code:
<PreferenceCategory android:title="Device Info" />
<PreferenceScreen android:fragment="[COLOR="Red"]com.android.settings.deckoz.RomControl.General[/COLOR]" android:focusable="false" android:layout="@layout/lacourb" android:key="profile_pic" />
Pay special attention to the line in RED..This line defines where it takes you when the image is clicked when in About Device. SO you would NOT add the same directory as mine because you won't have it. But you DO need to define this because if DO NOT it will FC
So say you want it to be under Users in SecSettings/General/Users.. you would add it like this:
Code:
<PreferenceCategory android:title="Device Info" />
<PreferenceScreen android:fragment="[COLOR="Red"]com.android.settings.UserSettings[/COLOR]" android:focusable="false" android:layout="@layout/lacourb" android:key="profile_pic" />
So now when you click the picture in About Device it will bring you to this directory in SecSettings..So you'll end up in SecSettings/General/Users
Now open your AndroidManifest.xml. At the bottom add these lines:
Code:
<activity android:label="@string/change_pic" android:name="com.blac.Profile">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
Okay now compile your SecSettings/Settings.apk..Then grab the newly compiled one and decompile it.. Make sure you keep the AndroidManifest.xml because you changed it..
Now go to the MY public.xml you downloaded and extracted and then open YOUR res/values/public.xml open it and keep it open..You need to have these open to compare ids..
Open your smali folder you added: com/blac/
You need to find all the ids in the smali and change them to match yours.. for example open com/blac/Profile.smali.. Search 0x7f0401ee
Under my public.xml this id: 0x7f0401ee is for "profile_info".. Yours will NOT be the same.. SO you need to search each id in the smali and then in MY public.xml, you downloaded, then search yours and changed the id's...
NOTE: Be free to changed whatever you want..directories, names of xml etc ect. Also, some things we are still working out.. When you add your name in Profile Name.. It does not show up here>>Click to Show>>
Also.. We are going to look into setting this up so that it reads your Google + account profile.. and then also links you there..:good:
Neat. Might just try this for fun.
Sent from my Galaxy Note II
Tried this and got an error compiling smali (profile$1.smali). Error in line 15 and 50, no viable alterative at input "intent". Tried to mess with it for a few hours and no luck. Not that great at smali yet. Any advice would be appreciated.
Sent from my Galaxy Note II
icedventimocha said:
Tried this and got an error compiling smali (profile$1.smali). Error in line 15 and 50, no viable alterative at input "intent". Tried to mess with it for a few hours and no luck. Not that great at smali yet. Any advice would be appreciated.
Sent from my Galaxy Note II
Click to expand...
Click to collapse
Sorry about that must have forgot to add something.. post the error here L. . That usually means there is a line like:
.local v2, x: lcom/android/blah/blah
And you have to add quotations to x..so like this:
.local v2, "x": lcom/android/blah/blah
Btw I'm not that good either..still learning and still being taught
Sent from my SCH-I605 using xda app-developers app
Okay actually your code is correct, I just needed to be using a newer version of apktool.
Sent from my Galaxy Note II

Relative Layout Mod

How would I modify this code to remove the center On Demand option? I have followed other guides on XDA to complete the other modifications that I was making, as well as Raiz's response. Currently the button is hidden, but it would be nice to have it removed as it takes two d-pad presses to get from Live TV to Search and vice versa, and you can still accidentally select it.
Here is what it looks like right now:
{
"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"
}
Here is what it originally looked like:
Here is the current code:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<android.support.percent.PercentRelativeLayout xmlns:android="HAD TO BE REMOVED DUE TO NOT ENOUGH POSTS" android:orientation="vertical" android:background="@drawable/coam_main_menu_bg" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="40.0dip" android:textColor="@color/defaultText" android:id="@id/brand_logo" android:background="@color/transparent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="48.0dip" android:layout_marginTop="40.0dip" android:text="@string/symbol_brand_logo" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="18.0dip" android:textColor="@color/defaultText" android:id="@id/time" android:background="@color/transparent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="40.0dip" android:layout_marginRight="48.0dip" android:text="8:00p" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<LinearLayout android:orientation="vertical" android:id="@id/saved_item" android:nextFocusLeft="@id/saved_item" android:nextFocusRight="@id/live_tv_item" android:nextFocusUp="@id/saved_item" android:nextFocusDown="@id/saved_item" android:layout_toLeftOf="@id/live_tv_item" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/saved_icon" android:src="@drawable/atv_menu_saved_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/saved_text" android:text="@string/section_title_saved" style="@style/AndroidTvMainMenuItemText" />
</LinearLayout>
<LinearLayout android:id="@id/live_tv_item" android:nextFocusLeft="@id/saved_item" android:nextFocusRight="@id/on_demand_item" android:nextFocusUp="@id/live_tv_item" android:nextFocusDown="@id/live_tv_item" android:layout_toLeftOf="@id/on_demand_item" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/live_tv_icon" android:src="@drawable/atv_menu_live_tv_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/live_tv_text" android:text="@string/section_title_guide" style="@style/AndroidTvMainMenuItemText" />
</LinearLayout>
<LinearLayout android:id="@id/on_demand_item" android:layout_width="0dip" android:layout_height="0dip" android:nextFocusLeft="@id/live_tv_item" android:nextFocusRight="@id/search_item" android:nextFocusUp="@id/on_demand_item" android:nextFocusDown="@id/on_demand_item" android:layout_centerHorizontal="true" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/on_demand_icon" android:src="@drawable/atv_menu_ondemand_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/on_demand_text" android:text="@string/entity_tab_on_demand" style="@style/AndroidTvMainMenuItemText" />
</LinearLayout>
<LinearLayout android:id="@id/search_item" android:nextFocusLeft="@id/on_demand_item" android:nextFocusRight="@id/settings_item" android:nextFocusUp="@id/search_item" android:nextFocusDown="@id/search_item" android:layout_toRightOf="@id/on_demand_item" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/search_icon" android:src="@drawable/atv_menu_search_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/search_text" android:text="@string/search_title" style="@style/AndroidTvMainMenuItemText" />
</LinearLayout>
<LinearLayout android:id="@id/settings_item" android:nextFocusLeft="@id/search_item" android:nextFocusRight="@id/settings_item" android:nextFocusUp="@id/settings_item" android:nextFocusDown="@id/settings_item" android:layout_toRightOf="@id/search_item" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/settings_icon" android:src="@drawable/atv_menu_settings_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/settings_text" android:text="@string/settings" style="@style/AndroidTvMainMenuItemText" />
</LinearLayout>
</android.support.percent.PercentRelativeLayout>
Just Bumping Up My Thread
pizzakid25 said:
Sorry if this thread is in the wrong forum, this is my first post and I am not a dev. How would I modify this code to remove the center On Demand option? I have followed other guides on XDA to complete the other modifications that I was making, however I was unable to figure out how to complete this. It is very important that somebody helps me, as I am sharing this with my clients. Here is approximately (image is of the Roku version) what it looks like right now:
Click to expand...
Click to collapse
Code:
android:layout_centerHorizontal="true" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/on_demand_icon" android:src="@drawable/atv_menu_ondemand_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/on_demand_text" android:text="@string/entity_tab_on_demand" style="@style/AndroidTvMainMenuItemText" />
First you'll have to erase the text, find the strings.xml file and delete the text between the ' ' on the entity_tab_on_demand line. Replace it with a space (1or2 space bar click). Do that for every strings.xml in very values folders (E.g.: values-gb, values-fr,....)
Then you'll have to modify the image view. Find in the drawable folder the image named "atv_menu_ondemand_selector", replace it with a blank png file. The new file has to be named the same as the old one.
Recompile and see if it works.
This modification is purely aesthetic, if you click you'll still be able to enter that option. It will just be invisible.
To modify the imageview, if the png method didn't work, add those line :
android:layout_width="0dp"
android:layout_height="0dp"
between the "android:id=" and the "android:src="
Let me know if it worked
Raiz said:
Code:
android:layout_centerHorizontal="true" style="@style/AndroidTvMainMenuItem">
<ImageView android:id="@id/on_demand_icon" android:src="@drawable/atv_menu_ondemand_selector" style="@style/AndroidTvMainMenuItemIcon" />
<TextView android:id="@id/on_demand_text" android:text="@string/entity_tab_on_demand" style="@style/AndroidTvMainMenuItemText" />
First you'll have to erase the text, find the strings.xml file and delete the text between the ' ' on the entity_tab_on_demand line. Replace it with a space (1or2 space bar click). Do that for every strings.xml in very values folders (E.g.: values-gb, values-fr,....)
Then you'll have to modify the image view. Find in the drawable folder the image named "atv_menu_ondemand_selector", replace it with a blank png file. The new file has to be named the same as the old one.
Recompile and see if it works.
This modification is purely aesthetic, if you click you'll still be able to enter that option. It will just be invisible.
To modify the imageview, if the png method didn't work, add those line :
android:layout_width="0dp"
android:layout_height="0dp"
between the "android:id=" and the "android:src="
Let me know if it worked
Click to expand...
Click to collapse
Thanks for your response, I will have to try this out tomorrow. Even if it is still clickable, at least the button is gone.
Update: I was able to try out Raiz's suggestion, and it worked. I've edited my original post to have the current code/images. This is really just to bump up my thread, in hopes of another user telling me how to remove it completely.
pizzakid25 said:
Update: I was able to try out Raiz's suggestion, and it worked. I've edited my original post to have the current code/images. This is really just to bump up my thread, in hopes of another user telling me how to remove it completely.
Click to expand...
Click to collapse
Nice, to fully disable the function, you'll have to dive into the smali files. But you need to understand have to make that work. Good luck with that
Raiz said:
Nice, to fully disable the function, you'll have to dive into the smali files. But you need to understand have to make that work. Good luck with that
Click to expand...
Click to collapse
Would you know how to do that or someone that does? If needed I could share the apk.
pizzakid25 said:
Would you know how to do that or someone that does? If needed I could share the apk.
Click to expand...
Click to collapse
Idk personally, but if you can learn the Java basics for android I think you'll be able to do it.
Here's were to start : https://www.androidauthority.com/ja...mple-app-with-no-previous-experience-1121975/
(I know a bit of java but wouldn't be able to help since I'm starting to get busy)

Categories

Resources