so i did a thing and built lineage-17.1-20200302-UNOFFICIAL but cant post it - OnePlus 7T Guides, News, & Discussion

i built lineage-17.1-20200302-UNOFFICIAL-hotdog-build&otafiles but dont have enough post to post in dev lol

oh and it was built for hotdog so i am not sure if it runs on other devices

i want to make a fork with some cherry picks from this project:
https://maruos.com/docs/developer/porting.html#how-do-i-get-started-on-a-port
it is based on Lineage but is an almost dead project and while the guys are very nice they are equally busy so i want to try and get get it updated to 17.1.
what do you guys think? anyone wanna help me out haha lol!!!

Kaesberg said:
i built lineage-17.1-20200302-UNOFFICIAL-hotdog-build&otafiles but dont have enough post to post in dev lol
Click to expand...
Click to collapse
Hello,
it's great that you intend to provide a new development, and I'd just like to encourage you to do so. You certainly have sufficient posts to create a thread in development fora i.e. the issue must be somewhere else. Maybe you can describe the problems you face and provide a few screenshots for better understanding. The moderators' team is on stand-by to support and assist you.
Before you create a thread in development, please have a look into these two guidances:
**Rules for posting in development**
"[Mandatory] XDA-Developers and the GPL"
Be aware that XDA enforces compliance with GPLv2. In this context, another good reading is para. no. 12 of the XDA Forum Rules.
Do not hesitate to contact any moderator or me in case of further questions.
Regards
Oswald Boelcke

For 7t or 7t pro?
7t is called hotdogb right?
Nevertheless, really wanna see more roms for 7t, since it only has 3 at the moment.

i was just a few post under it seems and now it should be fine i was getting the screen that states you need ,ore posts.

i tried hotdog a,b,c,d but the only thing that would show up from roomservice was hotdog

im trying to add a patch to my rom now for a extra feature to work but the patch is for the 15.1 settings and this is 17.1:
:/media/adam/1188954B3ED79929/lineage/packages/apps/Settings$ patch -p1 < android_packages_apps_Settings.patch
patching file AndroidManifest.xml
Hunk #1 FAILED at 140.
Hunk #2 FAILED at 158.
Hunk #3 FAILED at 3213.
3 out of 3 hunks FAILED -- saving rejects to file AndroidManifest.xml.rej
patching file res/drawable/ic_desktop_power.xml
patching file res/layout/mdesktop_settings.xml
patching file res/values/strings.xml
Hunk #1 FAILED at 7950.
1 out of 1 hunk FAILED -- saving rejects to file res/values/strings.xml.rej
patching file src/com/android/settings/mdesktop/HdmiDisplayListener.java
patching file src/com/android/settings/mdesktop/MDesktopSettings.java
patching file src/com/android/settings/mdesktop/ShutdownDialogFragment.java
patching file src/com/android/settings/SettingsActivity.java
Hunk #1 FAILED at 100.
Hunk #2 FAILED at 369.
Hunk #3 FAILED at 1183.
3 out of 3 hunks FAILED -- saving rejects to file src/com/android/settings/SettingsActivity.java.rej
patching file src/com/android/settings/Settings.java
Hunk #1 FAILED at 157.
1 out of 1 hunk FAILED -- saving rejects to file src/com/android/settings/Settings.java.rej
Click to expand...
Click to collapse

Related

[Q] DnsProxyListener (No such file or directory)

I have googled and googled. . I haven't blinked in hours. .I digress
I built AOSP from source with CM7 vendor script. Compilation was successful and I used dsixda's kitchen to mod the .img files. I flashed and logcat is getting.
Code:
I/logwrapper( 77): /system/xbin/busybox terminated by exit(0)
I/Netd ( 239): Netd 1.0 starting
E/Netd ( 239): Unable to start DnsProxyListener (No such file or directory)
I'm pretty much stuck here. Suggestions?
HTC EVO. AOSP boot.img (Salvage-Zen Kernel)
everything else is AOSP
EDIT: This is 2.3.3 via master.git
zemerick said:
I have googled and googled. . I haven't blinked in hours. .I digress
I built AOSP from source with CM7 vendor script. Compilation was successful and I used dsixda's kitchen to mod the .img files. I flashed and logcat is getting.
Code:
I/logwrapper( 77): /system/xbin/busybox terminated by exit(0)
I/Netd ( 239): Netd 1.0 starting
E/Netd ( 239): Unable to start DnsProxyListener (No such file or directory)
I'm pretty much stuck here. Suggestions?
HTC EVO. AOSP boot.img (Salvage-Zen Kernel)
everything else is AOSP
EDIT: This is 2.3.3 via master.git
Click to expand...
Click to collapse
Did you get past this? Im stuck on this error with a build as well
This should of been posted in the question board or the thread that is related to your question.
bigdee1974 said:
This should of been posted in the question board or the thread that is related to your question.
Click to expand...
Click to collapse
Only 4-hours to the first troll alert. Let's break it down...compiling code...hmm, sounds kind of like a task performed in a developing environment...probably use the Android SDK (software Development kit). Now, where would one ask a question related to compiling for an Evo 4G using the Android software Development kit? Maybe under Evo 4G Android Development...where the developers (that's they guys that know the answers to such questions) hang out?
I can understand if he posted a lame question such as, "What kernel should I use?" or, "How do I get the wifi to work?" when its been asked and answered twenty times in each of a hundred threads when someone is too lazy to search. But do we need the forum Nazis to leap in with the same lame crap every time it looks like it might be possible to interpret a post as such 'n' such?
Used to be that everything Android what here on xda. Now, many devs have created their own forums and web sites, and will no longer post here because they're tired of dealing with crap exactly like this. Gee, I wonder why.
Thank you for your time.
Troll that reads
nYdGeo said:
Only 4-hours to the first troll alert. Let's break it down...compiling code...hmm, sounds kind of like a task performed in a developing environment...probably use the Android SDK (software Development kit). Now, where would one ask a question related to compiling for an Evo 4G using the Android software Development kit? Maybe under Evo 4G Android Development...where the developers (that's they guys that know the answers to such questions) hang out?
I can understand if he posted a lame question such as, "What kernel should I use?" or, "How do I get the wifi to work?" when its been asked and answered twenty times in each of a hundred threads when someone is too lazy to search. But do we need the forum Nazis to leap in with the same lame crap every time it looks like it might be possible to interpret a post as such 'n' such?
Used to be that everything Android what here on xda. Now, many devs have created their own forums and web sites, and will no longer post here because they're tired of dealing with crap exactly like this. Gee, I wonder why.
Thank you for your time.
Click to expand...
Click to collapse
I am a troll that can read and I read through the forum for the answer that I need before posting random questions in the "development" thread. Here goes 2 relevant threads that this question should of been posted in: 1.) Link Here
or 2.) Link Here these are both in development section.
So for future reference, you need to learn to read or keep out of things you are not familiar with.

[DECOMPILE] Bootloader Unlocker

Hey,
since im one of the few people that cant get OTAs or unlock bootloader I decided to decompile the unlock apk.
I used dex2jar.
So I now have some Jasmin code (which look to me like assembler) of which I don't understand most. Though looking through the code for things i do understand I found that in "com/asus/unlock/s.j" it says:
Code:
L0:
new java/io/FileOutputStream
dup
ldc "/dev/block/mmcblk0p3"
invokespecial java/io/FileOutputStream/<init>(Ljava/lang/String;)V
astore 10
L1:
aload 10
aload 3
invokevirtual java/io/FileOutputStream/write([B)V
new java/io/FileOutputStream
dup
ldc "/dev/block/mmcblk0p4"
invokespecial java/io/FileOutputStream/<init>(Ljava/lang/String;)V
astore 9
which looks to me like its writing raw data from mmcblk0p3 to mmcblk0p4...
So I was wondering 2 things:
1. does anyone know what is on mmcblk0p3?
and 2. is there someone on this forum who understands Jasmin code better than me and could look at the file?
PS: i attached the Jasmin code to this post if thats against the forum rules please take it down.
EDIT:
ok jsut tryed to dd mmcblk0p3 to mmcblk0p4... nothing happens
Obviously code shows it writes to blk0p3 and blk0p4 some magic (I guess there's a hash done on serial number, and passed to bootloader).
Once rebooting, the bootloader probably checks this magic, and proceed to unlock if the magic is valid (hence the "Unlock Check Failed" some people got).
Two things to do to make it work:
- Know what is written, how to calculate it
- Know where exactly it is written in p3 and p4
I am here to learn.
This post is more suitable for Q&A. This section is for development not for questions of development.
Please have your post moved to the correct location. Thank you
tomween1 said:
This post is more suitable for Q&A. This section is for development not for questions of development.
Please have your post moved to the correct location. Thank you
Click to expand...
Click to collapse
how is this not development?
I'm trying to hack/mod the unlocker apk to unlock all devices... sure its not ready yet but i thought the dev forums are for developers (and wanna be devs - like me) to talk about how to solve problems.
I think its OK on development too. Im asking for xplod/nebkat help to see if we can go further on this.
BierLiebHaber said:
how is this not development?
I'm trying to hack/mod the unlocker apk to unlock all devices... sure its not ready yet but i thought the dev forums are for developers (and wanna be devs - like me) to talk about how to solve problems.
Click to expand...
Click to collapse
I don't see a problem with it, but I'm assuming the person who does was referencing the fact that in many device forums (especially ones with large numbers of users) the rule for the android development section is "if you didn't make it, it doesn't belong here." Which isn't a bad idea considering there isn't a dedicated roms or tweaks section.
TXKSSnapper said:
I don't see a problem with it, but I'm assuming the person who does was referencing the fact that in many device forums (especially ones with large numbers of users) the rule for the android development section is "if you didn't make it, it doesn't belong here." Which isn't a bad idea considering there isn't a dedicated roms or tweaks section.
Click to expand...
Click to collapse
Yes sir
Here are the decompiled java code zip files created with dex2jar and then jad and jd-gui. They're not perfect and not everything could be decompiled, but it should make the program a lot easier to read
hmm after looking at the code for ages and trying to recompile it i always get a "wrong sinature" on the transformer (yes i did sign it)... i dont know and cant/wont work on it anymore since i got the ota's today at 3am and was able to unlock the bootloader
so i guess its a waiting game for anyone who cant get ota's/unlock
BierLiebHaber said:
hmm after looking at the code for ages and trying to recompile it i always get a "wrong sinature" on the transformer (yes i did sign it)... i dont know and cant/wont work on it anymore since i got the ota's today at 3am and was able to unlock the bootloader
so i guess its a waiting game for anyone who cant get ota's/unlock
Click to expand...
Click to collapse
It won't work by compiling it as-is since the obfuscated/undecompilable bytecode resulted as comments in the code (which as it turned out is the part we actually need).
You get "Wrong signature" when installing the app? You probably miscompiled it (or didn't sign it properly). Anyway, as I said above, it won't work as-is.
XpLoDWilD said:
It won't work by compiling it as-is since the obfuscated/undecompilable bytecode resulted as comments in the code (which as it turned out is the part we actually need).
You get "Wrong signature" when installing the app? You probably miscompiled it (or didn't sign it properly). Anyway, as I said above, it won't work as-is.
Click to expand...
Click to collapse
I'm not sure if you're referring to the Java code or the smali code. If you're referring to the latter, I was able to decompile the unlock tool, recompile it, and sign it and it ran in the Android SDK emulator (obviously, with no effect though)
XpLoDWilD said:
It won't work by compiling it as-is since the obfuscated/undecompilable bytecode resulted as comments in the code (which as it turned out is the part we actually need).
You get "Wrong signature" when installing the app? You probably miscompiled it (or didn't sign it properly). Anyway, as I said above, it won't work as-is.
Click to expand...
Click to collapse
i compiled the jasmin code so there were no comments (since it was all byte code)
and i guess i did sign it wrong but i used SignApk (which works for all the cwm zips if created) maybe i have to create/use a special key to sign it?
edit: also i didn't get "wrong signature" when installing i only got it when i tried to install it over the existing install (if i tried to install after factory reset it only said "The app was not installed" )
this apk need to be signed with the same key as the system, test signing it will not
work.
it also submits the device serial number to ASUS looks like
Code:
https://mdm.asus.com/DMServer/DeviceState
the unlock code is probably in the server response.
untermensch said:
this apk need to be signed with the same key as the system, test signing it will not
work.
it also submits the device serial number to ASUS looks like
Code:
https://mdm.asus.com/DMServer/DeviceState
the unlock code is probably in the server response.
Click to expand...
Click to collapse
I don't know if running it on a real tablet is any different from the emulator, but why wouldn't a test key work?
I was able to run the (modified) tool in the emulator by doing this:
1. Extract apk with apktool
Code:
apktool decode UnLock_Device_App_V7.apk
2. Open res/raw/keystore.bks with Portcecle and delete the certificate.
3. Modify smali code
4. Rebuild apk with apktool
Code:
apktool build UnLock_Device_App_V7/ modified.apk
5. Create signing key
[code]keytool -genkey -v -keystore testkey.keystore -alias testalias -keyalg RSA -keysize 2048 -validity 10000
6. Sign apk
Code:
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore testkey.keystore modified.apk testalias
---------- Post added at 04:47 PM ---------- Previous post was at 04:43 PM ----------
Does anyone know how to skip the EULA portion of the tool? The checkbox doesn't show up in the emulator. I don't have an ASUS tablet yet, but I do have have an environment ready to sniff the traffic between the tool and the ASUS server.
I'm thinking of replacing /sys/devices/platform/cardhu_misc/cardhu_chipid in i.smali with different text files and seeing the response from the ASUS server.
Android wont allow the requested permissions, unless the apk is signed with the ASUS
key or you sign the rest of the ROM with the test key, unless something has changed
since froyo.
untermensch said:
Android wont allow the requested permissions, unless the apk is signed with the ASUS
key or you sign the rest of the ROM with the test key, unless something has changed
since froyo.
Click to expand...
Click to collapse
Ahh, I see. I didn't know that.
you may get around that by odex-ing your changed code and installing
along side the unmodified APK, it has been at least a year since I hacked Android
so I don't quite remember what worked and what didn't work. I seem to
remember that APK's installed in /system/app were trusted regardless of the signing
here is my mmcblk0p3 post unlock
Tracing the code with random (but expected length values), I'm getting URLs, like:
https://mdm.asus.com/DMServer/Devic...H=RkNGOTRFNTBGNzI1N0M5NTE2RkYyNTgxNjcxMUQyMkI
there are also 2 variables
&ACTION=...
&STATUS=...
that I can't figure out. No matter what I send to the ASUS server, I always get the "104" reply.
---------- Post added at 07:05 PM ---------- Previous post was at 07:05 PM ----------
untermensch said:
here is my mmcblk0p3 post unlock
Click to expand...
Click to collapse
Thanks! I'll see what I can find in it.
EDIT: The hexdump of the partition is attached (EDIT: removed). I see a whole bunch of \x00 bytes and \xFF bytes and some sort of ASCII table. The interesting stuff seems to be at offset E000. I'm not sure what that is for. I'd need to compare it to an mmcblk0p3 partition from a TF300T that's not unlocked.
EDIT2: Would you also mind posting your mmcblk0p4 partition too?

[TUTORIAL][KERNEL] Kernel Development Tuts - Suspended till 30th July

Dharam's Kernel Development Tutorials​
Since many of the S2 Kernel Developers have moved on or will be moving on to the Galaxy S3, I feel we need more developers for the S2. No offence to those who have moved on, even I would have done the same if I could afford one
Anyways, there will be many people who will have the knowledge of coding and stuff, just wont know how to build kernel's and all...
So here I present the Kernel Development Tutorials for the Galaxy S2. It will be similar for many other devices and so you can refer the same also if you are developing for any other device
The thread will be similar to my previous tutorials for the Galaxy 3, but based on MOD's for the S2.
I do not present myself as an expert of things, there are many great developers for the device including codeworkx, chainfire, gokhanmoral, simone201 and many many others which I am just skipping for the time being. Credits for their work will be provided as and when refered to.
I am also learning stuff myself, and so I maybe wrong at many places. I would request other developer's to keep a look on this thread and help out me and others whenever required. You guys have better knowledge, and it is a great thing to share the knowledge.
I will explain everything Step by Step.
If you got time to learn/develop join in.
If you get some step working and a fellow developer cant get it, please help each other by answering everyone's doubts.I cant reply to each and every query always.
Most of the code is to be run in the terminal. So I wont be mentioning to Open terminal every time.
I would like to thank marcellusbe who was the first one to make a proper custom Kernel for Galaxy 3, who taught me how to build a kernel, and also lot of other help
Note:
Please do not post useless messages.
If you dont know coding, please learn that first.
Do not flood my inbox with PM's. I will not respond to PM's regarding Kernel Development. Please post in the thread, so that everyone can learn.
[*]I AM NOT RESPONSIBLE IF YOU HARDBRICK YOUR PHONE, DOING ANY OF THE FOLLOWING STEPS
A request to all the people, please do not vote down this thread directly. It will take some time to build the tutorials step by step. If you have any doubts, then this thread will be similar to http://forum.xda-developers.com/showthread.php?t=1186409
I have got many requests to do a similar series for the S2, and so I am doing it.
This series will also be posted at www.androidnova.org - Checkout the website for latest Android News, Reviews and other cool stuff
Step 1: Setting Up The Build Environment
Installing Ubuntu​.
1. Download Ubuntu x64 from http://www.ubuntu.com/download/desktop
2. Install Ubuntu directly or as a Virtual Machine ( I prefer direct installation)
3. If setup is Virtual Machine, Please dedicate enough RAM and processor for the Kernel to build fast, else it will take ages
Logging In As Root​
1. When Ubuntu first boots, login with the username and password you mentioned while installing.
2. Open Terminal
3. Use following command.(Always the code after $/# is the one to be used. The one before that just specifies [email protected]:~)
## Anything after ## is a comment by me.
Code:
[email protected]:~$ sudo passwd
[sudo] password for dharammaniar: ## Enter password which you used to login.
Enter new UNIX password: ## Enter Password for root(it can be same as your prev password)
Retype new UNIX password: ## Re-Enter Password for root
passwd: password updated successfully
[email protected]:~$ su
Password: ## Enter the root password
[email protected]:/home/dharammaniar#
4. Once you get the last line as above means you now have root access.
5. Now logout from this user and login with username as root
6. On starting Terminal now, you should get
Code:
[email protected]:~#
Setting Up Build Environment​
1. You should always be running as root.
2. Go To System->Administration->Synaptic Package Manager
3. Search for ncurses-devel
4. Install libncurses5-dev.
5. Download the toolchain. You can find it in the AOSP Source. I will also upload it soon enough.
Downloading Source
Downloading The Source​
1. Download the Update4 Source from http://opensource.samsung.com/ or https://github.com/CheckROM/DK_S2_ICS_KERNEL/tree/5ec9752c34cedf3e8df9e887ecad6db9337de927
2. Download the initramfs from https://github.com/CheckROM/DK_S2_ICS_INITRAMFS/tree/d85b2201b79588e70387d3df0ffd2f83d741c4ac or maybe request some developer to post how to extract initramfs from stock samsung kernel. Even I am trying to figure that out...
(If any developer is reading this, and can help out, We would be grateful)
3. Create a folder named S2.
4. Inside that have 2 folders, 1) Kernel 2) initramfs
5. Kernel folder should have the source e.g. arch, drivers and all
6. initramfs folder should have the files init.rc and stuff
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Last Reserved... I will make use of these posts as and when required, so request the MOD's not to delete any of the above posts
Sure thing i got all the time i need. I was waiting for someone explain this xD
Nice to see this post. .Sir,I have send you PM if you don't mind please see it .
Really nice iniciative
Good luck !
Setting Up The Build Environment is done...
Checkout first page...
Awesome mate that is what i was looking for!
I really appreciate this
this will be the hugest tutorial in know.
but very helpfull for some peoples.
rly nice
Can I follow this tutorial (codes and everything) with mint 13?
Cristiano Matos said:
Can I follow this tutorial (codes and everything) with mint 13?
Click to expand...
Click to collapse
I think it should work, but cant guarantee...Try it and let me know
Dude, it's really nice. But one question. After that, are we going to have a brick wave? I think that unexperienced people like me will have some trouble when trying to build. Your tutorial will be brick safe if we follow all steps? If yes, I will try to do something.
Ics opensource update 4. is believed to be safe,so people will be "brick-safe".
This thread will be handy for disscussions when we get ICs successor,and samsung presents us a new "virgin" kernel source.
Also,u can find 6 toolchains in this repository- https://github.com/sakindia123/Android_Toolchains

OxygenOS 10.0.16 Available

System
- Updated Android Security Patch to 2021.01
- Updated GMS package to 2020.09
---------------------------------------------------------------------
Anyone installed this yet? Anything broken/changed?
GreenApp said:
System
- Updated Android Security Patch to 2021.01
- Updated GMS package to 2020.09
---------------------------------------------------------------------
Anyone installed this yet? Anything broken/changed?
Click to expand...
Click to collapse
Okay, whelp I tried to install it via local, but it says "Installation Failed"
Checked if the system updater was seeing an upgrade to 10.0.16 from 10.0.15(installed) and it does not. Not sure why, but the Oxygen Updater from playstore fetches this:
OnePlus7TOxygen_14.O.22_OTA_021-022_patch_2101280011_eb483796.zip
System updater fails local install.
UPDATE
Had to download FULL (2.6ish gigs) update (only became available after granting OxygenUpdater root permission)
Installed, Magisk patched, 2nd slot
Rebooted fine. I'll update if I find problems.
@GreenApp THREAD CLOSED as a subject matter related thread is already available:
[OnePlus 7T][ROM][OTA][Oxygen OS] Repo of Oxygen OS Builds
As OnePlus doesn't always provide download links for all of their OxygenOS ROMs & OTA update zips, we've created an index to put the links in one post so that they're easy to find. Note: This is not a support thread for issues you may have with...
forum.xda-developers.com
XDA Forum Rules (excerpt):
...
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
...
Click to expand...
Click to collapse

Question Android 12 beta

I saw we are going to enjoy the beta also.
Someone know how it works?
There's already a thread.
Thread 'Android 12 beta' https://forum.xda-developers.com/t/android-12-beta.4278873/
OK, I finally got my device back.
DO NOT ROOT THE DEVELOPER PREVIEW!
It won't work the same as Android 11 and will end up bricking your phone, thankfully I got the MSM to work, it had said it wasn't compatible with EU build before.
Martinodanada79 said:
I saw we are going to enjoy the beta also.
Someone know how it works?
Click to expand...
Click to collapse
Thread closed as a subject matter related thread already exists:
Android 12 beta
https://forums.oneplus.com/threads/new-build-android-12-developer-preview-program-for-oneplus-9-and-oneplus-9-pro.1448673/ Ready to get started on the Android 12 Beta? OnePlus 9 Pro (Fixed version from 3rd June 2021) Note: Please note this...
forum.xda-developers.com
XDA Forum Rules:
Spoiler: Rule No. 5
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.

Categories

Resources