[SOLVED] Nexus 10 USB tether - Nexus 10 General

Hi, I'm trying to enable USB tethering on the Nexus 10, similar to how was done for the Nexus 7 in this thread.
I've done the required changes in the android os code, however I don't know how to modify the exynos kernel config to enable RNDIS (like was done for the tegra kernel in that same thread).
Anyone have any tips on how to go about doing this? I would really appreciate any help you could throw my way.

agentx3r said:
Hi, I'm trying to enable USB tethering on the Nexus 10, similar to how was done for the Nexus 7 in this thread.
I've done the required changes in the android os code, however I don't know how to modify the exynos kernel config to enable RNDIS (like was done for the tegra kernel in that same thread).
Anyone have any tips on how to go about doing this? I would really appreciate any help you could throw my way.
Click to expand...
Click to collapse
Fixed. No kernel changes needed, just add this to /device/samsung/manta/overlay/frameworks/base/core/res/res/values/config.xml:
Code:
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" -->
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"rndis0"</item>
</string-array>
<!-- Array of allowable ConnectivityManager network types for tethering -->
<!-- Common options are [1, 4] for wifi and dun or [0,1,5,7] for -->
<!-- mobile, wifi, hipri and bluetooth -->
<integer-array translatable="false" name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>

agentx3r said:
Fixed. No kernel changes needed, just add this to /device/samsung/manta/overlay/frameworks/base/core/res/res/values/config.xml:
Code:
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" -->
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"rndis0"</item>
</string-array>
<!-- Array of allowable ConnectivityManager network types for tethering -->
<!-- Common options are [1, 4] for wifi and dun or [0,1,5,7] for -->
<!-- mobile, wifi, hipri and bluetooth -->
<integer-array translatable="false" name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>
Click to expand...
Click to collapse
Where do you find that file path?

unknown_owner said:
Where do you find that file path?
Click to expand...
Click to collapse
Root of your source directory, it'll be there once you've completed everything you need to do before actually building android.

agentx3r said:
Root of your source directory, it'll be there once you've completed everything you need to do before actually building android.
Click to expand...
Click to collapse
Thanks. If I have to do all that they did for the nexus 7, then it's really worth it to me. I'm constantly changing ROMs and such. Thanks anyway. Thought it was a simple solution.

unknown_owner said:
Thanks. If I have to do all that they did for the nexus 7, then it's really worth it to me. I'm constantly changing ROMs and such. Thanks anyway. Thought it was a simple solution.
Click to expand...
Click to collapse
Yeah, I wish it was baked into all of the modified ROMs that are made (since it's such an easy fix in source) but I guess it's not something most people would find useful.

Hi,
just found this thread via search.
Do you guys know any other solution than building android from source with the suggested changes?
Is there any Custom Rom which has USB tethering enabled?

BUMP... come on. I have CM10 can't do it... blew my mind. Need this added into CM10 for N10!

mrsato said:
BUMP... come on. I have CM10 can't do it... blew my mind. Need this added into CM10 for N10!
Click to expand...
Click to collapse
you should have that using cm10.1 ? at least my n7 has the tethering option on cm10.1..
we ordered a n10 for work and need tethering. if cm does not support i probably will have to built aosp with the suggested "fix".

.Zip!
Now only if someone could make it into a update zip, It'd be great!

so i just set up the nexus 10 at work.
flashed cm10.1 and I'm a little disappointed that tethering option is not enabled in cm. (since it is for the n7).
maybe we should ask the devs to for the n10 cm to enable it by default.
btw: downloading cm source now -.-

Has anyone had any luck finding a ROM that has built-in support for USB tethering or networking?
EDIT: Just wanted to point out that this thread was helpful for me: http://forum.xda-developers.com/showthread.php?t=2013742&highlight=usb+tethering.

Related

I wish to become a developer for our O1's!

Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
If you haven't already, I'd highly reccomend setting up a build environment and trying to sync the cm repos. Once you have the code, you can play around and see what you need from there, in terms of an IDE.
Sent from my LG-P500 using XDA
Fantastic, I shall get onto that right away.
May the force be with you, bro!
Sent from my LG-P500 using Tapatalk 2
gymfreak7855 said:
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
Click to expand...
Click to collapse
gymfreak7855 said:
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
Click to expand...
Click to collapse
Read some android books.you already know c++ and Java so you will become good dev.
For playing with code you need.
Ubuntu.
Notepad.
sdk & adb.
And this "good luck!"
Yeah! Actually even i am interested in learning.
I know c/c++. No java yet
I'll be finishing my exams on the 3rd of may and would have around 2 months of vacations to learn
So guidance would really be appreciated. Do we need a separate sdk for linux based os? I have sdk on windows, isnt that enough?
What is the advantage of using linux for android development? I have backtrack(ubuntu based) on vmware. Will it do?
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands
Github account
CyanogenMod gerrit account
Google Plus account
I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.
(I think .so means shared object, .ko means kernel object. Makes sense to me anyway )
The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!
Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds )
The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually
I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.
Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
Can't we practice on something less taxing than the the whole cyanogenmod, like maybe some prebuilt system apps?
I have allocated 2.9gb of ram and enough cpu to my vm for it to run smoothly so speed isn't really an issue here
Will backtrack do or would ubuntu be better(backtrack is a network security related os based on ubuntu only)
And how important is java. I have two months of almost pure vacations(just have to make a project) so time wont be much of an issue and i'll anyway be doing java in a year or two at college so starting now wont be any harm.
BTW just curious why is g+ account an essentiality here?
Edit
Oh and yeah ill be switching from win to linux and that IS going to be a pretty big problem :/
I don't even properly know what a kernel is and what it does.
Edit2
Iv added you to my circles adfad please add me.
These guides could help!
http://forum.xda-developers.com/showthread.php?t=1272270
http://forum.xda-developers.com/showthread.php?t=667298
I'm starting learning too. I already know the android framework and java.
I have some problems when I try to compile for a device.
Code:
[email protected]:~/WORKING_DIRECTORY$ source build/envsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
It doesn't include device/cm_device_lge_p500/vendorsetup.sh (I'm using androidmeda's sources) and if I run "lunch":
Code:
[email protected]:~/WORKING_DIRECTORY$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_maguro-userdebug
5. full_toro-userdebug
6. full_panda-eng
7. cm_anzu-userdebug
8. cm_captivatemtd-userdebug
9. cm_coconut-userdebug
10. cm_crespo-userdebug
11. cm_crespo4g-userdebug
12. cm_epicmtd-userdebug
13. cm_galaxysbmtd-userdebug
14. cm_galaxysmtd-userdebug
15. cm_galaxys2-userdebug
16. cm_haida-userdebug
17. cm_hallon-userdebug
18. cm_i777-userdebug
19. cm_iyokan-userdebug
20. cm_mango-userdebug
21. cm_maguro-userdebug
22. cm_p1-userdebug
23. cm_p1c-userdebug
24. cm_p3-userdebug
25. cm_p4-userdebug
26. cm_p4tmo-userdebug
27. cm_p4vzw-userdebug
28. cm_p4wifi-userdebug
29. cm_p5-userdebug
30. cm_p5wifi-userdebug
31. cm_p920-userdebug
32. cm_p970-userdebug
33. cm_p990-userdebug
34. cm_p999-userdebug
35. cm_pyramid-userdebug
36. cm_satsuma-userdebug
37. cm_shooter-userdebug
38. cm_shooteru-userdebug
39. cm_smb_a1011-userdebug
40. cm_smultron-userdebug
41. cm_tenderloin-userdebug
42. cm_tf101-userdebug
43. cm_tf201-userdebug
44. cm_toro-userdebug
45. cm_urushi-userdebug
46. cm_vibrantmtd-userdebug
47. cm_wingray-userdebug
48. cm_zeus-userdebug
Which would you like? [full-eng]
There isn't our phone.
I think it can't know I've added another device. Does anybody know how to solve this problem? I'm sure it's something pretty stupid...
P.S. I'm using Ubuntu 11.10
EDIT: Ok, I think I've done something wrong syncing androidmeda sources.
What I've done is:
Code:
[email protected]:~$ cd WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo init -u git://github.com/androidmeda/cm_device_lge_p500.git
repo initialized in /home/francesco/WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo sync
Fetching projects: 100% (248/248), done.
Syncing work tree: 100% (248/248), done.
I've done this for git://github.com/androidmeda/cm_vendor_lge_p500.git and git://github.com/androidmeda/lge-kernel-msm7x27.git too. I can't see them though.
Solved the problem. Cloned androidmeda's device folder into device/lge/p500
EDIT2: FINALLY COMPILING!
EDIT3:
Code:
make: *** Nessuna regola per generare l'obiettivo "device/lge/p500/init.p500.usb.rc
It's 'No rule to make target'. I don't know what to do, I can't even find that file, but I've got a file called init.thunderg.usb.rc
Solved renaming init.thunderg.usb.rc to init.p500.usb.rc. It's compiling now
adfad666 said:
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands
Github account
CyanogenMod gerrit account
Google Plus account
I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.
(I think .so means shared object, .ko means kernel object. Makes sense to me anyway )
The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!
Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds )
The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually
I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.
Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
Click to expand...
Click to collapse
Thanks man Your work has really inspired me and yes haha I am moving from windows all though I have had some experience with ubuntu before. It makes sense about the extensions. Thanks for your advice Will ask questions if I need to
I'm having problems compiling using make -j4
Code:
make -C kernel/lge/p500 O=/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=/home/francesco/WORKING_DIRECTORY/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- cyanogenmod_p500_defconfig
make[1]: ingresso nella directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make[1]: *** Nessuna regola per generare l'obiettivo "cyanogenmod_p500_defconfig". Arresto.
make[1]: uscita dalla directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make: *** [/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ/.config] Errore 2
make: *** Attesa per i processi non terminati....
'No rule to make target "cyanogenmod_p500_defconfig". Stop'
Any idea?
When I've used make -i I haven't had this problem
EDIT: Solved moving cyanogenmod_p500_defconfig in p500 folder
Ok, I'm trying to tidy up everything a bit. I've noticed there is a new github. I've seen this:
Code:
LG P500 ICS Setup
Copy/paste it WORKING_DIR/.repo/local_manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/lge/p500" name="p500/cm_device_lge_p500" remote="github" revision="master" />
<project path="vendor/lge/p500" name="p500/cm_vendor_lge_p500" remote="github" revision="master" />
<project path="kernel/lge/p500" name="p500/lge-kernel-msm7x27" remote="github" revision="android-ics-msm-2.6.35" />
</manifest>
I have no local_manifest.xml. Do I have to create it? Or do I have to add these three lines to manifest.xml (which is in .repo folder)? And do I have to add toolchain too?
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?
vlt96 said:
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?
Click to expand...
Click to collapse
No idea, never tried.
If you understand anything:
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?
Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:
What can i do about it?
rishabh22 said:
No idea, never tried.
If you understand anything:
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?
Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:
What can i do about it?
Click to expand...
Click to collapse
VM got me an error when installing saying it is incompatible with win xp (I could install, but didn't wanna risk, windows is harder to recover than Android)
try using virtual box.
https://www.virtualbox.org/
rishabh22 said:
try using virtual box.
https://www.virtualbox.org/
Click to expand...
Click to collapse
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.
BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4
vlt96 said:
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
Click to expand...
Click to collapse
huh? both vmware and virtual box arn't compatible with xp
why the heck were u trying to install win7 video drivers on xp
And why dont you dual boot?
---------- Post added at 08:37 PM ---------- Previous post was at 08:34 PM ----------
ZatBaloo said:
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.
BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4
Click to expand...
Click to collapse
if you have enough ram and a good enough processor there shouldnt be any problem in using a virtual machine. i use backtrack with 2.9/4gb ram and am able to use both windows7 and backtrack simultaneously without any problems/lag
I have an i5 2.3-2.9GHz
Sure it depends on what you want to compile. It was just a suggestion to compile faster. You probably won't notice lag, but it will take more to compile everything.

[DEV]T9 Dialler for the Galaxy Nexus... almost there

Hi dudes, so im trying to get the T9 dialer from CM9 onto 4.1.1 ROM for the Galaxy Nexus..
This is far as i got:
It all works 100% BUT the app names have changed to "true" and "false" lol
I know its because the androidmanifest is pointing to the wrong value but im not sure how to fix it... can anyone point me in the right direction?
Cheers
attatched is the Contacts.apk working with the wrong app names
I'm driving into work. I'll look when I get in.
Sent from my Galaxy Nexus using xda premium
lithid-cm said:
I'm driving into work. I'll look when I get in.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Awesome bro I gave up after my mouse went flat and i chucked it out the window lol. You might have an issue decompiling it also, if you do its because of the manifest... sure you'll figure that out though.
Sent from my Galaxy Nexus using Tapatalk 2
CdTDroiD said:
Awesome bro I gave up after my mouse went flat and i chucked it out the window lol. You might have an issue decompiling it also, if you do its because of the manifest... sure you'll figure that out though.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Why not just zip up the source code? I am grabbing apktool now, but shouldn't be a reason with this being aosp after all.
Line:
Code:
<application android:label="@bool/config_use_two_panes" android:icon="@mipmap/ic_launcher_contacts" android:name="com.android.contacts.ContactsApplication" android:taskAffinity="android.task.contacts" android:hardwareAccelerated="true">
Needs to change
Code:
@bool/config_use_two_panes > @string/contactsList
=====
Line:
Code:
<activity android:theme="@style/DialtactsTheme" android:label="@bool/config_editor_field_order_primary" android:icon="@mipmap/ic_launcher_phone" android:name=".activities.DialtactsActivity" android:enabled="@android:bool/config_bluetooth_wide_band_speech" android:taskAffinity="android.task.contacts.phone" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:screenOrientation="portrait" android:windowSoftInputMode="stateAlwaysHidden|adjustNothing" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_editor_field_order_primary > @string/launcherDialer
=====
Line:
Code:
<activity android:theme="@style/PeopleTheme" android:label="@bool/config_editor_include_phonetic_name" android:name=".activities.PeopleActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_editor_include_phonetic_name > @string/people
=====
Line:
Code:
<activity android:theme="@style/ContactPickerLayout" android:label="@bool/config_use_two_panes" android:name=".activities.ContactSelectionActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_use_two_panes > @string/contactsList
That should be it. Enjoy.
lithid-cm said:
Why not just zip up the source code? I am grabbing apktool now, but shouldn't be a reason with this being aosp after all.
Click to expand...
Click to collapse
Heres the decompiled version, Ive also included the modified AndroidManifest.xml that it needs to install the app (But wont decompile)
The manifest in the source is the CM9 one
lithid-cm said:
Line:
Code:
<application android:label="@bool/config_use_two_panes" android:icon="@mipmap/ic_launcher_contacts" android:name="com.android.contacts.ContactsApplication" android:taskAffinity="android.task.contacts" android:hardwareAccelerated="true">
Needs to change
Code:
@bool/config_use_two_panes > @string/contactsList
=====
Line:
Code:
<activity android:theme="@style/DialtactsTheme" android:label="@bool/config_editor_field_order_primary" android:icon="@mipmap/ic_launcher_phone" android:name=".activities.DialtactsActivity" android:enabled="@android:bool/config_bluetooth_wide_band_speech" android:taskAffinity="android.task.contacts.phone" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:screenOrientation="portrait" android:windowSoftInputMode="stateAlwaysHidden|adjustNothing" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_editor_field_order_primary > @string/launcherDialer
=====
Line:
Code:
<activity android:theme="@style/PeopleTheme" android:label="@bool/config_editor_include_phonetic_name" android:name=".activities.PeopleActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_editor_include_phonetic_name > @string/people
=====
Line:
Code:
<activity android:theme="@style/ContactPickerLayout" android:label="@bool/config_use_two_panes" android:name=".activities.ContactSelectionActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTop" android:uiOptions="splitActionBarWhenNarrow">
Need to change
Code:
@bool/config_use_two_panes > @string/contactsList
That should be it. Enjoy.
Click to expand...
Click to collapse
I know thats what i figured, sorry should have been clearer, my issue is i cant recompile with that AndroidManifest...
CdTDroiD said:
I know thats what i figured, sorry should have been clearer, my issue is i cant recompile with that AndroidManifest...
Click to expand...
Click to collapse
Are you using apktool, sources? When you say recompile.
lithid-cm said:
Are you using apktool, sources? When you say recompile.
Click to expand...
Click to collapse
Yea using apktool 1.4.3
java -jar apktool.jar b Contacts
To get it to install on the device i used the 4.1.1 manifest from my original Contacts.apk and the META folder for signing, otherwise it wont install, and for some reason i dont understand it seems to change the manifest on install or something crazy... either that or im just to tired and missing something lol
SO it will only recompile if i use the CM9 Contacts manifest
heres the pastebin of the recompile
http://pastebin.com/yQLnVeSy
Ah right its because of the MANIFEST.MF that im using that is screwing it up...
but how do i get around that? Thanks for your help by the way mate
CdTDroiD said:
Ah right its because of the MANIFEST.MF that im using that is screwing it up...
but how do i get around that? Thanks for your help by the way mate
Click to expand...
Click to collapse
I guess I don't understand why you are making it harder then it is. This is aosp, you should be using an aosp base, making your changes and compiling. This isn't a sense, blur, touchwiz or miui. Sources are available and there is no reason to use apktool. Chances are it's a bug, I would go about it the right way and just build the app from source. If you need my help to work out issues with apktool, I can't help you. I would though be more then happy to help you build it the right way.
lithid-cm said:
I guess I don't understand why you are making it harder then it is. This is aosp, you should be using an aosp base, making your changes and compiling. This isn't a sense, blur, touchwiz or miui. Sources are available and there is no reason to use apktool. Chances are it's a bug, I would go about it the right way and just build the app from source. If you need my help to work out issues with apktool, I can't help you. I would though be more then happy to help you build it the right way.
Click to expand...
Click to collapse
Ok i didnt even think of it for some reason, ill compile it from source and see how i go... Thanks mate

[ROM][DEV][4.4][UNOFFICAL] CM11 Development Project

Note: THIS IS A DEV thread, not a "I WANT THIS ROM NAU" thread
Local Manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="photon"
fetch="git://github.com/photon-dev-team/" />
<!-- CM Removals -->
<!-- remove-project name="CyanogenMod/android_frameworks_base" / -->
<!-- remove-project name="CyanogenMod/android_system_core" / -->
<!-- remove-project name="CyanogenMod/android_vendor_cm" / -->
<!-- CM Replacements -->
<!-- project path="frameworks/base" name="dragonzkiller/android_frameworks_base" / -->
<!-- project path="system/core" name="dragonzkiller/android_system_core" / -->
<!-- project path="vendor/cm" name="dragonzkiller/android_vendor_cm" / -->
<!-- Photon-Dev-Team Stuff -->
<project path="vendor/moto" name="proprietary_vendor_motorola" remote="photon" />
<!-- Local Projects -->
<project path="kernel/tegra" name="dragonzkiller/daytona-kernel" revision="gb-2.6.32.9" />
<project path="device/moto/daytona" name="iPonyRadio/android_device_moto_daytona" revision="jellybean" />
<project path="vendor/moto/daytona" name="dragonzkiller/android_vendor_moto_daytona" revision="ics" />
</manifest>
Alright, so if you want to help, make sure you have a properly setup CM build enviornment
Code:
mkdir cm11
cd cm11
repo init -u https://github.com/CyanogenMod/android.git -b "cm-11.0"
mkdir .repo/local_manifests/
curl -L -o .repo/local_manifests/daytona.xml -O - L https://raw.guthub.com/iPonyRadio/android_local_daytona/ics/local_manifest.xml
repo sync (this will take a while)
. build/envsetup.sh
brunch daytona
Yoink
This thing is ridiculous
building returns a different error each time
Http://pixelperfectserver.tk/daytona.txt
Been playing around with my x2 back on stock since I have a different main phone. Its not as bad as I remember once you gain root and uninstall the Verizon bloatware.
That being said, I'm looking forward to see what comes of this.
Sent from my LG-LS970 using xda app-developers app
Watching this thread for sure. My X2 has long been shelved but I might break it out for fun if we get a reasonable Alpha build out of this.
I don't have the time nor expertise to help with the build, but I'm always willing to test drive, especially on a device I don't use, and I'm pretty good with logcat.
Thanks for the build thread and good luck!
ajbiz11 said:
This thing is ridiculous
building returns a different error each time
Http://pixelperfectserver.tk/daytona.txt
Click to expand...
Click to collapse
bootable/recovery/minui/../../../device/moto/daytona/recovery/graphics.c:186:5: error: conflicting types for 'gr_text'
http://osxr.org/android/ident?_i=gr_text
meh?
ajbiz11 said:
Note: THIS IS A DEV thread, not a "I WANT THIS ROM NAU" thread
Local Manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="photon"
fetch="git://github.com/photon-dev-team/" />
<!-- CM Removals -->
<!-- remove-project name="CyanogenMod/android_frameworks_base" / -->
<!-- remove-project name="CyanogenMod/android_system_core" / -->
<!-- remove-project name="CyanogenMod/android_vendor_cm" / -->
<!-- CM Replacements -->
<!-- project path="frameworks/base" name="dragonzkiller/android_frameworks_base" / -->
<!-- project path="system/core" name="dragonzkiller/android_system_core" / -->
<!-- project path="vendor/cm" name="dragonzkiller/android_vendor_cm" / -->
[/CODE]
Click to expand...
Click to collapse
You may be able to get dragonzkiller to help you if he is not already working on such or collaborate with him.
Please excuse my noobishness.
When I use the command
repo sync
I get fetch errors for refs/heads/cm-11.0
When I do repo sync -f
I get an error : revision refs/heads/cm-11.0 in proprietary_vendor_motorola not found
The subsequent
brunch daytona
then it fails because the daytona device is not found.
I assume I have to do a rather simple change to a manifest, but being the complete noob I am, I would appreciate
some assistance.
polymath257 said:
Please excuse my noobishness.
When I use the command
repo sync
I get fetch errors for refs/heads/cm-11.0
When I do repo sync -f
I get an error : revision refs/heads/cm-11.0 in proprietary_vendor_motorola not found
The subsequent
brunch daytona
then it fails because the daytona device is not found.
I assume I have to do a rather simple change to a manifest, but being the complete noob I am, I would appreciate
some assistance.
Click to expand...
Click to collapse
Try rm -rf .repo
then the repo init with -f on the end
If not, I may look into it later
smallzfsu said:
bootable/recovery/minui/../../../device/moto/daytona/recovery/graphics.c:186:5: error: conflicting types for 'gr_text'
http://osxr.org/android/ident?_i=gr_text
meh?
Click to expand...
Click to collapse
Dead link
Now that the holiday is pretty much over I'm getting back on my PC...so...YAY!
unimatrix725 said:
You may be able to get dragonzkiller to help you if he is not already working on such or collaborate with him.
Click to expand...
Click to collapse
Tried PM-ing him long ago, still nothing back...
ajbiz11 said:
Tried PM-ing him long ago, still nothing back...
Click to expand...
Click to collapse
he didnt really ever like PM's...
this thread makes me wish i didnt trade the dx2 in for the 5$ at verizon when i bought my gnex lol...or id try and give this all a shot and see what could be done..best of luck friends
pattyboi:) said:
he didnt really ever like PM's...
this thread makes me wish i didnt trade the dx2 in for the 5$ at verizon when i bought my gnex lol...or id try and give this all a shot and see what could be done..best of luck friends
Click to expand...
Click to collapse
Yeah, I figured
And the Nexi will always be a better device than the X2
Also...I've decided to take baby steps towards cm11...I'm working on 10.1 right now
I got it to a point where I need a boot-hijack.zip....I see nothing about one anywhere...
ajbiz11 said:
Yeah, I figured
And the Nexi will always be a better device than the X2
Also...I've decided to take baby steps towards cm11...I'm working on 10.1 right now
I got it to a point where I need a boot-hijack.zip....I see nothing about one anywhere...
Click to expand...
Click to collapse
give me one sec i think i might no where there is one
EDIT: http://d-h.st/1jF :credit to Bluphant
here you go buddy,this is made specifically for cm10.1 already,so that might help a lil,ill try and help you find you anything you need ,i just dont have a test device lol
pattyboi:) said:
give me one sec i think i might no where there is one
EDIT: http://d-h.st/1jF :credit to Bluphant
here you go buddy,this is made specifically for cm10.1 already,so that might help a lil,ill try and help you find you anything you need ,i just dont have a test device lol
Click to expand...
Click to collapse
Alright
Now to see if this will work with the compile by putting it in the OUT dir like the compiler is asking, or if I need to modify the makefiles to zip the device/moto/daytona/hijack/hijack-boot/
ajbiz11 said:
Alright
Now to see if this will work with the compile by putting it in the OUT dir like the compiler is asking, or if I need to modify the makefiles to zip the device/moto/daytona/hijack/hijack-boot/
Click to expand...
Click to collapse
start with having the make compress the hijack. also make clean each time, a pain in the ass as it forces a complete restart but it will hopefully produce more consistant errors. though dont take this for truth, im just making a wild guess from my attemps at building cm10
Lrs121 said:
start with having the make compress the hijack. also make clean each time, a pain in the ass as it forces a complete restart but it will hopefully produce more consistant errors. though dont take this for truth, im just making a wild guess from my attemps at building cm10
Click to expand...
Click to collapse
hi guys, saw the project you all are working on. i'm one of the guys over on dx working on the kk build/development. i know that the dx and the dx2 are different devices with different configurations, but i'm coming here for a possible lead or inspiration on what i need to do to help with our project. http://forum.xda-developers.com/showthread.php?p=48051920 is the link showing our current attempts.
i stumbled across this thread at a good time i think. the issue we're running into does deal with the hijack-boot.zip.
make: *** No rule to make target `home/davidmcleod/android-cm11.0/out/target/product/shadow/hijack-boot.zip', needed by `/home/davidmcleod/android-cm11.0/out/target/product/shadow/obj/ETC/hijack-boot.zip_intermediates/hijack-boot.zip'. Stop.
we keep on running into this same error. any ideas?
palmbeach05 said:
hi guys, saw the project you all are working on. i'm one of the guys over on dx working on the kk build/development. i know that the dx and the dx2 are different devices with different configurations, but i'm coming here for a possible lead or inspiration on what i need to do to help with our project. http://forum.xda-developers.com/showthread.php?p=48051920 is the link showing our current attempts.
i stumbled across this thread at a good time i think. the issue we're running into does deal with the hijack-boot.zip.
make: *** No rule to make target `home/davidmcleod/android-cm11.0/out/target/product/shadow/hijack-boot.zip', needed by `/home/davidmcleod/android-cm11.0/out/target/product/shadow/obj/ETC/hijack-boot.zip_intermediates/hijack-boot.zip'. Stop.
we keep on running into this same error. any ideas?
Click to expand...
Click to collapse
How did you get it to work before?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Lrs121 said:
How did you get it to work before?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That would be a good question. Everything appears to be setup the same as GB and ICS, but it doesn't create the zip. We know its a rule thats missing somewhere, its just a matter of tracking down the correct file that should have the rule in it.
Woah. what luck. I just got a nexus 5, and I was wanting to learn the interals of android. Gave my dad my s3 for his droid x2 to dev on.
I guess i will check this thread out every once and a while

Compile AOSP

Hi there. Not sure if it's the right section. I have a question for you guys.
Let's say that sometimes I need to compile one file.
With make I usually do:
make out/target/product/some/boot.img
Obviously this will not work in the complex hell of makefiles we have in android.
How can I do that?
Also I noticed there are $(hide) prefixes in almost any makefile. Is there an env variable to turn it off (debugging purpose)?
Is there a list of all generic env variables commonly used when compiling android?!
Thanks guys!!!
Sent from my XT1053 using XDA Premium 4 mobile app
If you want to make Settings for example type:
Code:
. build/envsetup.sh
lunch yourdevice-eng
mmm packages/apps/Settings
This will build Settings only, you can also make apps only when you'll use mm instead.
If you don't want to use the debugging build, simply lunch the userdebug target.
eagleeyetom said:
If you want to make Settings for example type:
Code:
. build/envsetup.sh
lunch yourdevice-eng
mmm packages/apps/Settings
This will build Settings only, you can also make apps only when you'll use mm instead.
If you don't want to use the debugging build, simply lunch the userdebug target.
Click to expand...
Click to collapse
Thanks! I'll try and let you know.
If my rom has only the -eng build, how I can manually turn off the debugging stuff and optimize it for speed like the -O3?
DAddYE said:
Thanks! I'll try and let you know.
If my rom has only the -eng build, how I can manually turn off the debugging stuff and optimize it for speed like the -O3?
Click to expand...
Click to collapse
While working on a ROM, I personally always use -eng. For releases, I sometimes compile -userdebug, but only rarely. But if you want to, just re-compile with -userdebug
Optimizing with compiler flags (-O3) is something completely else. Such compiler flags are set within the Makefile(s), and not as a terminal command. But before playing around with compiler flags, I'd suggest you to do some heavy reading before
laufersteppenwolf said:
While working on a ROM, I personally always use -eng. For releases, I sometimes compile -userdebug, but only rarely. But if you want to, just re-compile with -userdebug
Optimizing with compiler flags (-O3) is something completely else. Such compiler flags are set within the Makefile(s), and not as a terminal command. But before playing around with compiler flags, I'd suggest you to do some heavy reading before
Click to expand...
Click to collapse
Thanks for the explanation, I was just wondering why both cyanogen and omni roms compiled by me are slow as hell
Also, I see that before on other roms when you click around sometime appear a red rectangle around the border of the screen... is that a debug thing?
Again thanks!
DAddYE said:
Thanks for the explanation, I was just wondering why both cyanogen and omni roms compiled by me are slow as hell
Also, I see that before on other roms when you click around sometime appear a red rectangle around the border of the screen... is that a debug thing?
Again thanks!
Click to expand...
Click to collapse
hehe, welcome to an old "-eng-bug" when you compile -eng, strictmode somehow goes crazy
you can fix it by adding the following line to your build.prop:
Code:
persist.sys.strictmode.disable=1
laufersteppenwolf said:
hehe, welcome to an old "-eng-bug" when you compile -eng, strictmode somehow goes crazy
you can fix it by adding the following line to your build.prop:
Code:
persist.sys.strictmode.disable=1
Click to expand...
Click to collapse
Awesome! Thanks man!

Chromecast 2 device-desc.xml

Hey folks.
I am developing an application to use the Chromecast with linux. I still supports the first one, but I also want to support the new Chromecast 2015.
For that I need the device-desc.xml of that one. For my self I just bought the Chromecast Audio. So, I am kind of relying on you guys.
You can get it via:
wget h**p://<chromecast-ip>:8008/ssdp/device-desc.xml
Since i am new i am not allowed to post links here. Its not even a valid link. Please replace the 2 asterisks with tt ...
Here it is:
Code:
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.10.20:8008</URLBase>
<device>
<deviceType>urn:dial-multiscreen-org:device:dial:1</deviceType>
<friendlyName>Chromecast1234</friendlyName>
<manufacturer>Google Inc.</manufacturer>
<modelName>Eureka Dongle</modelName>
<UDN>uuid:0b92d3ae-9f2a-d875-9e27-8934e2a7e178</UDN>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<width>98</width>
<height>55</height>
<depth>32</depth>
<url>/setup/icon.png</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>
<serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId>
<controlURL>/ssdp/notfound</controlURL>
<eventSubURL>/ssdp/notfound</eventSubURL>
<SCPDURL>http://www.google.com/cast</SCPDURL>
</service>
</serviceList>
</device>
</root>
Thank you very much. The device identifies it self as Eureka Dongle as the previous Chromecast did before. I would have expected that google changed the modelName to something else. Or at least increasing the version like.: Eureka Dongle 2 or something like that.
Interested in testing? I suppose you are using Linux ...
As soon as I get mine I will get back to you for testing In case you still need someone.
I'd be intetested in testing on linux (I'm using arch) if needed
It would be cool if you could test current master of h**ps://github.com/masmu/pulseaudio-dlna. There is an AUR for version 0.4.6 in case you have troubles installing the dependencies. But current master needs testing ...
Btw, do you guys also own a Nexus Player? I could really use the device description of that too.

Categories

Resources