Skip to content

Instantly share code, notes, and snippets.

View mimi89999's full-sized avatar

Michel Le Bihan mimi89999

View GitHub Profile
sb_data = b''
with open(signed_apk, 'rb') as unsigned:
unsigned.seek(-6, 2) # From file end, 2 byte comment length, 4 byte offset of CD
cd_start = 0
for i in reversed(unsigned.read(4)):
cd_start *= (0xff + 1)
cd_start += i
print('cd_start:', cd_start)
unsigned.seek(cd_start - 16 - 8, 0) # 16 byte magic, uint64 size
sb_size = 0
import java.util.regex.Pattern
import java.net.CookieManager
import java.net.CookiePolicy
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.JavaNetCookieJar
import okhttp3.RequestBody
import okhttp3.MediaType
07-19 19:12:59.413 25617 25617 I TripsRepository: QueryTripsContext: de.schildbach.pte.AbstractNavitiaProvider$Context[Location{STATION, stop_area:OWW:SA:1901, 52263577/21018030, place=Praga-Północ, name=Warszawa ZOO}|Location{STATION, stop_area:OWW:SA:408501, 52188130/20964230, place=Włochy, name=Radarowa 01}|https://api.navitia.io/v1/coverage/pl/journeys?from=stop_area%3AOWW%3ASA%3A1901&depth=0&datetime=20180719T190033&to=stop_area%3AOWW%3ASA%3A408501&min_nb_journeys=6&datetime_represents=departure&walking_speed=1.12|https://api.navitia.io/v1/coverage/pl/journeys?from=stop_area%3AOWW%3ASA%3A1901&depth=0&datetime=20180719T195300&to=stop_area%3AOWW%3ASA%3A408501&min_nb_journeys=6&datetime_represents=arrival&walking_speed=1.12]
07-19 19:12:59.413 25617 25617 I TripsRepository: Later: true
07-19 19:12:59.483 2853 3800 D WificondControl: Scan result ready event
07-19 19:12:59.539 25617 25830 E StrictMode: null
07-19 19:12:59.539 25617 25830 E StrictMode: java.lang.Throwable: Untagged socket detected; use Traff
This file has been truncated, but you can view the full file.
/home/michel/android/replicant/external/clang/lib/Tooling/CompilationDatabase.cpp:332:12: warning: ‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable]
static int JSONAnchorDest = JSONAnchorSource;
^
/home/michel/android/replicant/external/llvm/tools/llvm-readobj/MachODumper.cpp:206:34: warning: ‘MachOSectionTypes’ defined but not used [-Wunused-variable]
static const EnumEntry<unsigned> MachOSectionTypes[] = {
^
.././../../../../../src/binutils/binutils-2.25/libiberty/choose-temp.c: In function ‘choose_temp_base’:
.././../../../../../src/binutils/binutils-2.25/libiberty/choose-temp.c:62:22: warning: implicit declaration of function ‘choose_tmpdir’ [-Wimplicit-function-declaration]
const char *base = choose_tmpdir ();
^
[INFO] Building jar: /home/michel/android/replicant/toolchain/src/jack/simple/simple-http/target/simple-http-6.0.1-javadoc.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple 6.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
@mimi89999
mimi89999 / 04_08_2016.txt
Created August 4, 2016 19:23
Replicant 6 build error
/home/michel/android/replicant/toolchain/gcc/host/install/x86_64-linux/bin/ld.bfd: /usr/lib/i386-linux-gnu/crti.o: réadressage inconnu (0x2b) dans la section « .init »
/home/michel/android/replicant/toolchain/gcc/host/install/x86_64-linux/bin/ld.bfd: édition de lien finale en échec: Mauvaise valeur
collect2: error: ld returned 1 exit status
Makefile:964 : la recette pour la cible « libgcc_s.so » a échouée
make[4]: *** [libgcc_s.so] Erreur 1
make[4] : on quitte le répertoire « /home/michel/android/replicant/toolchain/gcc/host/build/gcc/x86_64-linux/32/libgcc »
Makefile:1179 : la recette pour la cible « multi-do » a échouée
make[3]: *** [multi-do] Erreur 1
make[3] : on quitte le répertoire « /home/michel/android/replicant/toolchain/gcc/host/build/gcc/x86_64-linux/libgcc »
Makefile:121 : la recette pour la cible « all-multi » a échouée
--------------------- Kernel Begin ------------------------
WARNING: Kernel Errors Present
WARNING: CPU: 0 PID: 0 at net/sched/sch_generic. ...: 1 Time(s)
1 Time(s): ------------[ cut here ]------------
1 Time(s): ---[ end trace 9443ed17aab84553 ]---
1 Time(s): 5f00: 00000000 00000000 00000000 00000000
1 Time(s): 5f20: 80844000 80862ddc 00000001 80862d7c 808c80bc 8083d304 80862d00 80845f64
--------- beginning of system
03-21 20:28:38.142 592 711 I PowerManagerService: Waking up from dozing (uid 1000)...
--------- beginning of main
03-21 20:28:38.145 592 592 V KeyguardServiceDelegate: onStartedWakingUp()
03-21 20:28:38.187 592 646 I DisplayPowerController: Blocking screen on until initial contents have been drawn.
03-21 20:28:38.188 592 646 V KeyguardServiceDelegate: onScreenTurnedOn(showListener = com.android.server.policy.PhoneWindowManager$2@aab7245)
03-21 20:28:38.191 592 646 D Sensors : activate: acc_enable=0, mag_enable=0
03-21 20:28:38.191 592 646 D Sensors : activate: handle=4, enabled=1
03-21 20:28:38.191 592 646 D Sensors : LightSensor enable = 1
03-21 20:28:38.191 592 646 D Sensors : LightSensor enableSensor = 1